Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
5,246,042 | 5,246,043 | Message box run behind the browser | <p>I have a pop out message box, what I want is the message box always pop out in front of the browser when it is clicked, but the problem is it sometimes pop out behind the browser.
Anything I can do to make sure the message box is always pop out in front the browser?
Thanks.</p>
<pre><code>protected void Button1_Cli... | c# asp.net | [0, 9] |
424,279 | 424,280 | How to submit a form on enter that doesn't have a submit button? | <p>I have a form whose submit "button" is actually a link. Is there a way to submit this form automatically on enter, other than attaching an event handler to check for Enter keypresses? It just seems a little wasteful to me.</p>
| javascript jquery | [3, 5] |
1,210,811 | 1,210,812 | How to add a html <a> tag with javascript or jquery? | <p>I've done a slideshow for news on a website which works with jquery. Everything works perfectly except for a line where I try to add a link which links the complete version of the news. But Javascript never adds the tag nor show an error on the console.
Here's the function which changes the currently displayed news ... | javascript jquery | [3, 5] |
5,499,129 | 5,499,130 | javascript: Even after returning false, click event triggers default action: takes to the top of the page | <p>I have a script which involves a click function and it always takes me to top of the page. I tried returning false as well as event.preventDefault() function but none seem to work. Here is my code: <a href="http://jsfiddle.net/79Rzh/14/" rel="nofollow">http://jsfiddle.net/79Rzh/14/</a></p>
<p>Please help.</p>
<p>T... | javascript jquery | [3, 5] |
5,516,152 | 5,516,153 | Select table rows between 2 rows | <p>Quick js\jquery question.</p>
<p>I have a table like this:</p>
<pre><code><table id="test">
<tr class="divider"><td>Set 1</td></tr>
<tr><td>Row 1</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 3</td></tr>
<tr cl... | javascript jquery | [3, 5] |
1,476,171 | 1,476,172 | What is the purpose of `convertView` in ListView adapter? | <p>In android, I usually use <code>MyAdapter extends ArrayAdapter</code> to create view for the <code>ListView</code>, and as a result, I have to override the function </p>
<pre><code>public View getView(int position, View convertView, ViewGroup parent) {
// somecode here
}
</code></pre>
<p>However, i don't know ... | java android | [1, 4] |
3,842,784 | 3,842,785 | How to reference a div using id contained in another element? | <p>I have an alphabetical index that when clicked unhides a div that contains it's content.</p>
<p>Here is the HTML so I can explain properly:</p>
<pre><code><ul class="index">
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
<div id="index-A" class="hide">A co... | javascript jquery | [3, 5] |
4,039,239 | 4,039,240 | null reference with and if statement c# | <p>I am just want to check for empty text boxes and change the text the boxes if they are null in RowEditing event. I just can't figure this out. Of course the some of the boxes will be empty when the Grid is populated. The other question is am I placing this in the right event? </p>
<p>Here is the row editing event :... | c# asp.net | [0, 9] |
4,033,956 | 4,033,957 | jQuery selector path bug on IE8 | <p>On IE8, jQuery version 1.4.2 return 0(when length is checked) for the following selector path but with version 1.9.1 it returns 1.</p>
<pre><code>selectorPath = 'DIV#header + DIV > TABLE:first-child > TBODY:first-child >
TR:first-child > TD:first-child > TABLE:first-child >
... | javascript jquery | [3, 5] |
1,115,755 | 1,115,756 | android-java: check boolean value checking for null | <p>I am trying for null check like below </p>
<pre><code>if (isTrue == null)
</code></pre>
<p>compile error says : "The operator == is undefined for the argument type(s) boolean"</p>
<p>Please help, how to do null check.</p>
<p>Thanks </p>
| java android | [1, 4] |
1,929,994 | 1,929,995 | C#|Working with process help | <p>a few days ago i started working with process, i did a few things.. and wanted to ask a question. </p>
<p>lets say i got a process :</p>
<pre><code>process = Process.Start("D:\\Server1\\orangebox\\srcds.exe", "srcds.exe -console -game cstrike +maxplayers 16 -port 27017 +map de_dust2");
process.EnableR... | c# asp.net | [0, 9] |
1,877,570 | 1,877,571 | response.end method causing session variable to expire | <p>I am storing the returned sql resultant rows in a session variable ... so that I need not to query again and again</p>
<pre><code>Session["ds"] = datasetname;
</code></pre>
<p>Everything is fine but when I am doing export to excel ... where at last after the export is completed I am calling the method in try/catch... | c# asp.net | [0, 9] |
5,894,314 | 5,894,315 | stats is not defined | <p>This code load the content of the php file with the parameter: online and name and print them dynamic every 0.2s, the whole code works, but it says that " stats " is not defined in internet explore, i dont know why. Help me out guys</p>
<pre><code>function updateStats(stat)
{
var stat = ["online","name"];
... | javascript jquery | [3, 5] |
345,388 | 345,389 | check for at least 2 char sequence before whitespace in javascript / jQuery | <p>Well like the title says, how can i check it?
i have started something like this:</p>
<pre><code> for (var i = 0; i < elm.val().length; i++) {
if (elmVal.charAt(i) !== '') {
//do something
}
}
</code></pre>
<p>For example:</p>
<p>if the string is: "g g g" OR "gg g " it shou... | javascript jquery | [3, 5] |
2,221,458 | 2,221,459 | How to make a confirm box in asp .net using c# | <p>I want to show a confirmation box from c# code rather than JavaScript.
Is there any way I can have the confirmation box pop up when the below condition is true?</p>
<p>Here is the code so far:</p>
<pre><code>if (items.SelectedNode.ChildNodes.Count >= 1)
{
ScriptManager.RegisterStartupScript(this.nav_tree_i... | c# asp.net | [0, 9] |
225,920 | 225,921 | jquery (javascript) refresh div | <p>Bear with me. I recently started implementing jquery at work. I created a new app already so I do have an understanding of what goes but I have not fully grasped it yet.</p>
<p>I have this function below that is being called everytime someone clicks a checkbox in a table wrapped in a unique div id. Currently, the t... | javascript jquery | [3, 5] |
2,465,797 | 2,465,798 | Get value from GridView when a button is clicked | <p>I have a GridView , and the GridView has an item template. Now I need to get the value of the first cell which contains the value I need but I have tried the following and does not work, it eturns a ""</p>
<pre><code> int id = Convert.ToInt32(GridView.Rows[index].Cells[0].Text);
</code></pre>
<p>Here is the code I... | c# asp.net | [0, 9] |
532,036 | 532,037 | jQuery (JavaScript) 3 > 10 = true | <p>There seems to be some stripping issue with jQuery when retrieving integer values from input values.</p>
<p>My code:</p>
<pre><code> // Control the rating input field to only accept numeric values
// -else set the values back to 0
// For the highest value:
$('.dsListItem .firstItem').keyup(function(... | javascript jquery | [3, 5] |
5,576,344 | 5,576,345 | Wrapping Image around a Cuboid using C# | <p>Hi friends i faced with a new task like converting or merging the rectangular image into a cuboid some thing like a rectangular image to cuboid using c# in asp.net</p>
| c# asp.net | [0, 9] |
5,058,575 | 5,058,576 | Firebug giving jQuery "$ is undefined" error even when jQuery is loaded before the script | <p>OK so I have a WordPress site. It uses quite a few jQuery scripts and jQuery is loaded in the pages' headers. I have a small block of code that should simple add a class to image links. I have placed this at the bottom of the document, just before the <code></body></code> tag.</p>
<pre><code><script type="... | javascript jquery | [3, 5] |
4,899,435 | 4,899,436 | Converting binary characters to something jQuery can use | <p>I’m using the <a href="http://msdn.microsoft.com/en-us/library/system.web.httpresponse.binarywrite.aspx" rel="nofollow">BinaryWrite</a> method of the HttpResponse class to fetch a web page. </p>
<p>Something similar to the example…</p>
<pre><code>FileStream MyFileStream;
long FileSize;
MyFileStream = new FileStre... | c# javascript jquery | [0, 3, 5] |
435,982 | 435,983 | __dopostback is not working in javascript function | <p>am calling <code>__dopostback</code> function in javascript while closing event of browser but its not working in Chrome.</p>
<p>the same function is working in IE </p>
<p>can any one give me the solution.</p>
<pre><code><script type="text/javascript" language="javascript">
function doUnload()
{
var btn... | javascript asp.net | [3, 9] |
246,999 | 247,000 | Accessing SessionState in IHttpModule after 404? | <p>Is it possible to access SessionState in the Error event handler of a HttpModule following a 404?</p>
<p>Im trying to implement a consistent error handling mechanism for both full and partial postbacks using the technique described in this blog post,</p>
<p><a href="http://blogs.microsoft.co.il/blogs/oshvartz/arch... | c# asp.net | [0, 9] |
1,863,299 | 1,863,300 | handling views by ID | <pre><code>for(id=1;id<=33;id++) {
i = new TextView(this);
i.setClickable(true);
i.setOnClickListener(this);
i.setId(id);
i.setBackgroundResource(R.drawable.yes);
AbsoluteLayout.LayoutParams lp2= new AbsoluteLayout.LayoutParams(abc, abc,abc ,abc);
al.addView(i, lp2);
}
i = (TextView) fin... | java android | [1, 4] |
4,606,618 | 4,606,619 | Best way to tint my buttons? | <p>I'm currently developing an android app where I use transparent png's as buttons for the user interface.</p>
<p>The buttons look kinda like this:</p>
<p><img src="http://i.stack.imgur.com/mGHl7.png" alt="enter image description here"></p>
<p>When the user presses the button I want to automatically tint the non-tr... | java android | [1, 4] |
1,577,119 | 1,577,120 | How to enable a linkbutton server control using javascript? | <p>I have a linkbutton server control in my page whose Enabled attribute is initially set to "false". When a text box's text changes I would like to enable the linkbutton. I tried the following but it does not work. Could you let me know if i am missing something.</p>
<pre><code>function TextBox_TextChanged()
{
va... | asp.net javascript | [9, 3] |
76,910 | 76,911 | the pre-init fucntion | <p>i am working in a specific task.
I have three master pages with three different stylesheet,</p>
<p>I have a javascript function that can detect what the user is using for example window,mobile or i pad...</p>
<p>when the page size for example is less than 700 i want to set master page 1 foe example and when the p... | c# javascript | [0, 3] |
1,359,967 | 1,359,968 | Checkbox uncheck if other checkbox is selected | <p>I have many city input checkboxes. I have given the first checkbox the name <strong>All</strong>; if the user selects that then only <strong>All</strong> checkbox gets selected, and not the other city checkboxes.</p>
<p>If the user checks any other city, then the <strong>All</strong> checkbox should automatically b... | javascript jquery | [3, 5] |
1,078,519 | 1,078,520 | How do I create a text file on server or memory? | <p>How do I create a text file and write the contents of a string to it? I plan to reference to the text file later. It could be on the server (root folder) or anywhere where I can reference it. Below is the string contents</p>
<pre><code> foreach (string s in strValuesToSearch)
{
if (resu... | c# asp.net | [0, 9] |
1,144,469 | 1,144,470 | Editing links inline with jquery - preventing them from being clicked while editing | <p>I am attempting to edit sections of a site inline with jQuery, everything is working fine so far, expect that some of the editable items are links. When attempting to edit the fields, it's clicking through on the href.</p>
<p>here is the jQuery:</p>
<pre><code>$(".button-edit").click(function(){
$(".edit").eac... | javascript jquery | [3, 5] |
3,438,644 | 3,438,645 | mouseenter and mouseleave only works with the first element | <p>i am fetching this data from database :</p>
<pre><code>$sql = "SELECT * FROM articles WHERE uid='".$uid."'";
$res = mysql_query($sql) or die (mysql_error());
if (mysql_num_rows($res) > 0) {
while ($row = mysql_fetch_assoc($res)) {
$article_id = $row['id'];
$author = $row['author'];
... | php jquery | [2, 5] |
201,803 | 201,804 | How to check a input IP fall in a specific IP range | <p>If we let users input a couple of ip ranges, e.g., 172.16.11.5 - 100, how could I write a fucntion to check if a IP (172.16.11.50) falls in the ranges?</p>
<p>Is there any existing library in .NET to leverage?</p>
| c# asp.net | [0, 9] |
5,210,537 | 5,210,538 | jquery, submit form when field loses focus | <p>How can I submit a form when a field (In this case the form only has one field) loses focus?</p>
<p>I tried this, but it's not working:</p>
<pre><code>$("form").submit();
</code></pre>
<p><strong>UPDATE</strong></p>
<p>I forgot to mention that the form was created with jquery as well:</p>
<pre><code>$("div").ht... | javascript jquery | [3, 5] |
5,901,183 | 5,901,184 | Code behind does not recognize my control variable on its aspx page | <p>I have apsx page that has the following simple code:</p>
<pre><code><%@ Page Title="" Language="C#" MasterPageFile="~/Team.master" AutoEventWireup="True" Inherits="Lib.team" Codebehind="team.aspx.cs" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<asp:GridVie... | c# asp.net | [0, 9] |
3,380,969 | 3,380,970 | Jquery $().each method obscures 'this' keyword | <p>I am creating a Javascript object that contains a function that executes a jQuery <code>each</code> method like the following:</p>
<pre><code>function MyClass {
Method1 = function(obj) {
// Does something here
}
Method2 = function() {
$(".SomeClass").each(function() {
// 1 2
... | javascript jquery | [3, 5] |
4,798,879 | 4,798,880 | Prevent displaying of previous pages after logout in php | <p>I an using session_cache_limiter ('private_no_expire, must-revalidate'); on each page to avoid "Web page has expired" issue, so that issue is resolved. But i am facing the problem with logout. When i clicked log out the page is redirect to index page but when i clicked browser back button it redirects me to previous... | php javascript | [2, 3] |
1,282,758 | 1,282,759 | Can I get wmode parameter from Flash object? | <p>I am working on a site that includes Flash-based third party ads. Some of these ads do not have a wmode parameter set, and so when we pop up an overlay from our site, the ad blocks it or appears on top of it. We do not have the ability to insert wmode parameters into the ads. </p>
<p>Is there a way to determine ... | javascript jquery | [3, 5] |
1,525,131 | 1,525,132 | Getting error as ThisApplicatio.workbook does not exists | <p>I have written the following code to refer to a work book but i am getting the error as i specified</p>
<pre><code> Microsoft.Office.Interop.Excel.Workbook wb = ThisApplication.Workbooks[1];
</code></pre>
<p>I have gone through this page here <a href="http://msdn.microsoft.com/en-us/library/aa168292%28v=office.11... | c# asp.net | [0, 9] |
1,719,114 | 1,719,115 | Theme has superfish - how to add supersubs? | <p>I'm using a theme that is using Superfish for the navigation menu. The problem is, if the sub item is too long it will drop underneath, i want to keep the individual menu item's text on one line.</p>
<p>Now i've found supersubs for the superfish menu but i don't know how to add it to the theme.</p>
<p>This is in t... | jquery javascript | [5, 3] |
2,699,223 | 2,699,224 | Android: VIewFlipper and onBackPressed not responding | <p>Developing in Android 2.1, I have a ViewFlipper layout with 3 includes and I have tried to explicitly make the program go back one include when pressing the 'Back' button.</p>
<pre><code>@Override
public void onBackPressed() {
switch (backStatus) {
case 0: finish();
case 1: //TODO Check save
case 2:... | java android | [1, 4] |
1,382,642 | 1,382,643 | Set Session in codebehind for an Onclick | <p>How can i add Session value in codebehind. I have tried doing it this way but the session does nt have any value. </p>
<pre><code> x is string.
td1.InnerHtml = "<a href=\"Search.aspx\" onClick=\"Session['catvalue']=" + x + "\">" + x +</a>
</code></pre>
<p>Thank you in advance!</p>
| c# asp.net | [0, 9] |
2,346,545 | 2,346,546 | Efficiency: Page_load vs Ajax call on page request | <p>When my page gets hit, is it better practice to have my functionality in the <code>page_load</code> of the cs file or in the <code>$(document).ready(funtion() {});</code> have an ajax call to a webmethod?</p>
<p>Which way will be more efficient, I am leaning towards the Ajax call, but my mind is saying that it will... | jquery asp.net | [5, 9] |
978,650 | 978,651 | How to send data from a C# ASP.NET Web Page to a java webservices | <p>I have created a C# ASP.NET web page(Front End) to collect information from user and I would like to know how to send the information to a java web services to process the information which is from the web page?</p>
| java asp.net | [1, 9] |
4,230,154 | 4,230,155 | How to display a page only for the first time in asp.net | <p>I am developing an application using Asp.Net.My question is whether there is any solution to display a page only for the first time.i.e when the user logs in for the first time it should ask to change the password but when the user logs in after changing the password it should not display the changepassword page ins... | c# asp.net | [0, 9] |
3,197,082 | 3,197,083 | Include jQuery in the Javascript Console | <p>Is there an easy way to include jQuery in the chrome Javascript Console for sites that do not use it? For example - on a website I would like to get the number of rows in a table. I know this is really easy with jQuery.</p>
<pre><code>$('element').length;
</code></pre>
<p>But the site does not use jQuery. Can I ad... | javascript jquery | [3, 5] |
5,650,217 | 5,650,218 | Obtaining Phone number | <p>I am trying to get the user's phone number but the problem is that I am getting null response
based on my research so far we can get the same by using the object of TelePhony Manager and calling function getLine1Number()</p>
<p>but I am not getting any response,somebody suggested that this is because the service p... | java android | [1, 4] |
566,450 | 566,451 | Unable to include iostream in android why? | <p>Have installed android-ndk-r7, and trying to compile .cpp file.</p>
<pre><code>#include <iostream>
using namespace std;
int main ( int argc, char ** argv)
{
cout <<"Hello World.."<<endl;
}
</code></pre>
<p>Executed following command:
Got into jni folder, and executed </p>
<pre><code>#n... | android c++ | [4, 6] |
5,424,978 | 5,424,979 | Retain Password Field Value on PostBack | <p>Right now I have an asp:Wizard with 3 Steps.</p>
<ol>
<li>Create User</li>
<li>Form to Email</li>
<li>Summary of Fields</li>
</ol>
<p>When the finish button is clicked on the third step I would like to Create the user and send the form. I have the logic for this written but the only problem I have is the when the ... | c# asp.net | [0, 9] |
5,161,846 | 5,161,847 | How can I make this jQuery "shrink text" function more efficient? With binary Search? | <p>I've built jQuery function that takes a text string and a width as inputs, then shrinks that piece of text until it's no larger than the width, like so:</p>
<pre><code>function constrain(text, ideal_width){
var temp = $('.temp_item');
temp.html(text);
var item_width = temp.width();
var ideal = parseInt(ideal_wi... | javascript jquery | [3, 5] |
582,380 | 582,381 | Vector-Java equivalent in PHP? | <p>Is there a:</p>
<p>1> Vector(Java) class<br>
2> ListIterator<br>
3> Single Linkedlist </p>
<p>equivalent available in PHP?</p>
| java php | [1, 2] |
4,258,815 | 4,258,816 | How to add reverse scroll functionality to jQuery.SerialScroll? | <p>i am using jQuery.SerialScroll in my website.</p>
<p>Everything is working fine except </p>
<p>i just want that when my slider finish scrolling then it should scroll in reverse direction one by one step.</p>
<p>But currently it will scroll complete image at once and reach to start point after finishing up.</p>
... | javascript jquery | [3, 5] |
1,506,477 | 1,506,478 | Make jquery toggle work with dynamic content | <p>I've the following code on my website: <a href="http://jsfiddle.net/dJLK3/1/" rel="nofollow">http://jsfiddle.net/dJLK3/1/</a>
As you can see, it works just fine.</p>
<p>The problem is: those divs and link triggers come from a database. Today I have 1, tomorrow it can be 10...</p>
<p>I can not figure out how to con... | javascript jquery | [3, 5] |
5,192,364 | 5,192,365 | How to get mac address of client in asp.net? | <p>i want get mac address of my website visitor in asp.net
how can i do it?</p>
<p>this code get host mac address</p>
<pre><code> ManagementClass objMC = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection objMOC = objMC.GetInstances();
foreach (Management... | c# asp.net | [0, 9] |
3,654,273 | 3,654,274 | Adding multiple boxes in one page and saving the info from each box | <p>I have this task - to make a simple CMS where one of the abilities should be to create a page and add as many boxes as the admin would like and then to have the ability to edit each one of them using ckeditor, and ofcourse the page should be visible in the frontend.</p>
<p>For now I'm just using CodeIgniter trying ... | php javascript | [2, 3] |
2,884,231 | 2,884,232 | Executing ASP.NET 1.1 Code within Javascript | <p>When the user clicks a certain LinkButton, I need to open a confirmation dialog with OK/Cancel. If the user hits OK, then I need to run a function from ASP.NET (something to update the database).</p>
<p>Something like the following...</p>
<p><strong>Javascript</strong></p>
<p><code>function openConfirm() {
re... | javascript asp.net | [3, 9] |
1,207,853 | 1,207,854 | jQuery / JS - Detecting / Matching an URL string to determine it's type | <p>I have two URLs types, (TYPE A)</p>
<pre><code>/items
</code></pre>
<p>Or /items/XXXX with a trailing number (TYPE B)</p>
<pre><code>/items/187
/items/12831
</code></pre>
<p>I would like to know how to detect if the URL is type A or Type B</p>
<pre><code>if (TYPE A) ... else if (TYPE B) ....
</code></pre>
<p>A... | javascript jquery | [3, 5] |
587,057 | 587,058 | How can I create a dynamic form using jQuery | <p>How can I create a dynamic form using jQuery. For example if I have to repeat a block of html for 3 times and show them one by one and also how can I fetch the value of this dynamic form value.</p>
<pre class="lang-html prettyprint-override"><code><div>
<div>Name: <input type="text" id="name">... | javascript jquery | [3, 5] |
789,219 | 789,220 | JQuery onclick do something ... after click alert | <p>I am using this code:</p>
<p><code>onclick="$('#default').click();"</code> ... is there any way to return an alert of something if it's done sucessfully?</p>
<p>Update:</p>
<p>There seems to be a proble here:</p>
<pre><code>onclick="$('#default').click( function() { alert('clicked'); });"
</code></pre>
| javascript jquery | [3, 5] |
3,670,487 | 3,670,488 | I want to get the row value from the gridview into another gridview and use it for calculation | <p>I want to get the value from the gridview into another gridview and use it for calculation..</p>
<p>my first gridview as</p>
<pre><code> depotcode|depotname|lat_deg|lat_min |lat_sec| lon_deg |lon_min |lon_sec |lat_decimaldegree |lon_decimaldegree|
</code></pre>
<p>my secondgridview as</p>
<pre><code> depotcode... | c# asp.net | [0, 9] |
3,697,926 | 3,697,927 | ClassCastException when getting the selected item of ListView as string or textview | <p>I got <strong>runtime error</strong> exception: </p>
<pre><code>java.lang.ClassCastException: android.widget.TwoLineListItem cannot be cast to android.widget.TextView
</code></pre>
<p>My Activity extends Activity <strong>NOT</strong> ListActivity and here is my layout construction:</p>
<pre><code><LinearLa... | java android | [1, 4] |
4,180,699 | 4,180,700 | Getting HTML textbox input | <p>I need some help with ASP.NET.</p>
<p>I have an html page that has a form tag with a couple of input tags and I want to do a Post.</p>
<p>Now on the server, I'm implementing IHTTPHandler. I get the response, but i don't see my input data.</p>
<p>How can i get what the user types in into the input tags in the http... | c# asp.net | [0, 9] |
1,000,173 | 1,000,174 | problem in showing listview in horizontal layout? | <p>I am trying to show a list view with calendar view in a linear layout. when i am using vertical layout then list view appears but in horizontal layout the same listview disaappears. I solved the problem using relative layout, but can i do this using linear layout.here is my xml...</p>
<pre><code><?xml version="1... | java android | [1, 4] |
4,533,253 | 4,533,254 | enable/disable radiobuttonlist with javascript | <p>I am trying to enable/disable radiobuttonlist with javascript code. This javascript is working fine with textboxes but it looks like that it doesn't work with radiobuttonlist.
Here is the code I am using:</p>
<pre><code> var chkEPM = document.getElementById("<%=chkEPM.ClientID %>");
chkEPM.onchange = ... | javascript asp.net | [3, 9] |
2,536,605 | 2,536,606 | How to make Android emulator boot faster | <p>I'm currently stuck with using Atom CPU desktop for my Android app development. What are the ways to improve its boot time. When running the emulator I can see that the number of cores used by the emulator is just one, I'm running the emulator from within the Eclipse ADT plugin. </p>
<ul>
<li>How can I make the emu... | java android | [1, 4] |
2,983,217 | 2,983,218 | How to use vector with jquery | <p>Im using jquery to load a listbox based on another list box.
For that Im setting the data base values(list box values) to a vector.
If it is a single value then response.getwriter.write(string) will send the response to the jsp and with the help of this I can set it to the another list box.But how can I able to get ... | java jquery | [1, 5] |
4,928,288 | 4,928,289 | Add container #id to .load('$(this).attr("href")); | <p>I want to pull only a specific div from the page my link is pointing to.</p>
<p>My links are formatted like this : <code><a href="about-smith.asp" class="pic">img</a></code></p>
<pre><code>$(function(){
$("a.pic").live('click', function (e) {
e.preventDefault();
$("#subs... | javascript jquery | [3, 5] |
773,018 | 773,019 | how to add cancel button inside spinner | <p>I want to add cancel button inside of spinner how to add cancel button in spinner without </p>
<p>using alert dialog please give me an example..</p>
<p>spinner = (Spinner) findViewById(R.id.spinner);</p>
<pre><code> ArrayAdapter<String> adapter = new ArrayAdapter<String>(getApplicationContext(),R.l... | java android | [1, 4] |
805,576 | 805,577 | Navigation quickly disappearing | <ol>
<li><p>My navigation dropdown quickly disappears when you're trying to hover over the menu. How can I possibly delay the disappearance of the navigation by some miliseconds/seconds? </p></li>
<li><p>Again, say when you hover over the <code>menu</code> (e.g. sub-item 0.1 etc) of <code>Folder 1/Folder 2</code>, I wa... | javascript jquery | [3, 5] |
3,355,421 | 3,355,422 | What's the name of exception for app pool recycle? | <p>I need to do some custom processing when method fails on app pool recycle, app domain recycle, or IIS shutdown. Is there a specific exception type? maybe: ApplicationException? instead of using generic <code>Catch (exception ex)</code></p>
| c# asp.net | [0, 9] |
5,818,203 | 5,818,204 | open a url on change of dropdown | <p>"I need to navigate to a url on change of dropdown such that it would have done in by clicking on a link as <code><a href="www.abc.com" target="_blank"></code></p>
<p>My dropdown is </p>
<pre><code><select onchange="goTo(this);">
<option selected="selected" disabled="disabled... | javascript jquery | [3, 5] |
3,125,795 | 3,125,796 | Traverse JSON data with jQuery | <p>I can't figure out how to get a bunch of MySQL rows into a JSON data structure and iterate each of the row fields in java script.</p>
<p>Here is my query in codeigniter</p>
<pre><code>function get_search_results() {
//$this->db->like('title', $searchText);
//$this->db->orderby('title');
$q... | php javascript jquery | [2, 3, 5] |
4,701,302 | 4,701,303 | Set current url with jQuery? | <p>How do change the url shown with the jQuery? With pagination, I do an ajax call to get the next page, but I want to update the url for bookmarking purposes. How do I do that?</p>
| javascript jquery | [3, 5] |
5,963,244 | 5,963,245 | Javascript/jQuery height calculation | <p>Im looking for a way, in javascript, to calculate the size of the browser <code>(px)</code> then calculate the size of a <code><div></code> taking away <code>50px</code> from that full screen size:</p>
<p>E.g.</p>
<pre><code>Browser screen size: 800px (Height)
Existing <div> that is always 50px (Height... | javascript jquery | [3, 5] |
1,134,569 | 1,134,570 | visual c++ run java class as process | <p>Something like NativeJ which is able to run Java application as myjava.exe in the task manager instead of displaying as java.exe. Please advice how do I code it from scratch in Visual studio 2010.</p>
| java c++ | [1, 6] |
4,288,840 | 4,288,841 | Get a session back from a class in another class | <p>I have a class where i am setting and getting a session. I am fairly new to C#
How can i retrieve a session from my class in another class?</p>
<p>Here is my session class.</p>
<pre><code>public class JobApplicantSession
{
public JobApplication ApplicationSession
{
get
{
JobA... | c# asp.net | [0, 9] |
4,713,291 | 4,713,292 | Detect when link is clicked, open in new frame | <p>I would like to create a basic URL rewrite using frames. I don't have access to .htaccess to do mod_rewrite. Is there a way using PHP, jQuery, JavaScript etc. to detect which URL has been clicked on and then open URL in new frame? Ex: user clicks on <code>/index.php?12345</code> it will open in framed window <co... | php javascript jquery | [2, 3, 5] |
441,140 | 441,141 | how can I handle SMS send/receive ? | <p>I want to write method to send SMS on number and with text from edit text fields. After message is sent I want to receive some sound or something to alert me that SMS is received. How can I do that?
Thank you in advance,
Wolf.</p>
| java android | [1, 4] |
2,444,695 | 2,444,696 | ViewTreeObserver Listener not called after some time | <p>I have great difficulties when using ViewTreeObserver. All works fine for some unpredictable period of time, and then the listener is not operational anymore. It is certainly because of what is written in the doc:<strong>The returned ViewTreeObserver observer is not guaranteed to remain valid for the lifetime of thi... | java android | [1, 4] |
1,084,132 | 1,084,133 | Filter in DIV content | <p>I have made <a href="http://jsfiddle.net/hari_it_ram/fbC6w/" rel="nofollow">this jsFiddle</a> for searching/filtering the <code>div</code> content which I am getting from an XML response. But I have done it for one text box alone. Any one can help me in implementing for next three?</p>
<p>For example:</p>
<p>If I ... | javascript jquery | [3, 5] |
294,371 | 294,372 | Javascript error in asp.net | <p>I have a calendar control that is hosted on an iframe. I get a javascript error when I click on a date on the calendar. <strong>window.top.document.getElementById(..) is null or not an object</strong> </p>
<p>The iframe is hosted on another page ConfigSettings.aspx </p>
<p>The code in the calendar control code b... | javascript asp.net | [3, 9] |
4,042,374 | 4,042,375 | jquery call to javascript function that returns true returns undefined | <p>I have a jquery function that is triggered by a button click. When it then calls a javascript function that returns true however, jquery claims the value is undefined. </p>
<pre><code>function mytrue()
{
alert ("true is returned");
return true;
}
$('#save').click(function()
{
var response = mytrue();
if... | javascript jquery | [3, 5] |
5,167,027 | 5,167,028 | Loading JWplayer dynamically | <p>Hi and thanks for looking into this.</p>
<p>I have a code I've been working on to add videos to my site. All videos are from youtube. Once a user has clicked on submit, a link becomes visible. When clicking on it the user can preview the video.</p>
<p>One week ago I used the following to achieve this:</p>
<pre><c... | javascript jquery | [3, 5] |
5,518,605 | 5,518,606 | How to get type of input object | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1940471/how-do-i-determine-an-html-input-element-type-upon-an-event-using-jquery">How do I determine an HTML input element type upon an event using jQuery?</a> </p>
</blockquote>
<p>I want to get type of input o... | javascript jquery | [3, 5] |
4,240,277 | 4,240,278 | How can I select an element based on its position? | <p>How is it possible to select an element based on its position?</p>
<pre><code><div id="parent">
<p id="text">This is a text</p>
</div>
</code></pre>
<p>//CSS</p>
<pre><code>#parent{width:100px;height:100px;position:absolute;left:100px;top:100px;}
</code></pre>
<p>Now using the left=10... | javascript jquery | [3, 5] |
2,450,065 | 2,450,066 | asp checkbox not firing jquery function | <p>Ok I have checked several solution and have no luck. What the heck am I doing wrong. I can retrieve the ID from check_controls doing an alert onload but not on change</p>
<pre><code><asp:CheckBox ID="chkAutoReverse" runat="server" CssClass="" Width="200px"
Text="Auto Reverse:" TextAlign="Right" AutoPostBac... | jquery asp.net | [5, 9] |
2,867,000 | 2,867,001 | How can I get the contents of my table with dynamic row adding? | <p>how to retrieve from the server-side contained a table html constructed this way:</p>
<pre><code> <table id="myTable" >
<tr>
<th> <input type="text" value="name"/></th>
<th> <input type="text" value="quantity" /> </th>
</tr>
<... | c# asp.net | [0, 9] |
752,134 | 752,135 | gridview updating a particular record after search | <p>1.I have one grid having 100 records and it is in updatepanel.
2.I have implimented search using jquery.
3. when i found that record after search then i when i go for for editing all the records are comming.
4. what i want is to have only that record to display for updating.
here is my code</p>
<pre><code>$(docume... | javascript jquery asp.net | [3, 5, 9] |
2,515,927 | 2,515,928 | how to restore the previous page on browser back button Click? | <p>how to restore the previous page on browser back button Click, i don't need reload the page, just restore it. I notice the url changed, but not the content? I am using master page.</p>
| c# asp.net | [0, 9] |
559,656 | 559,657 | Could Not Write File on FTP server using FTPClient in Java | <p>I am reading files on a FTP server and writing that data into another file. But after properly reading the data I couldn't write the file on to the FTP server.</p>
<p>I can retrieve files using "retrieve file", but can not store file using the <code>storefile</code> function.</p>
<p>My code is:</p>
<pre><code>imp... | java android | [1, 4] |
83,468 | 83,469 | JQuery Animation Question | <p>I have created a jquery animation that can be seen by clicking the <strong>Preview</strong> button on top:</p>
<p><a href="http://jsbin.com/anayi3/edit" rel="nofollow">http://jsbin.com/anayi3/edit</a></p>
<p>I have used the <code>slideDown</code> animation method. The problem is that all items slide down together.... | javascript jquery | [3, 5] |
5,176,340 | 5,176,341 | Read XLS file in memory ASP.Net | <p>I have an xls file sitting in a byte[] as a result of a file upload on my asp.net web application. Is there a library that can read in and process the xls file as a byte[]? I do not want to save the file to disk. </p>
<p>All I need to do is be able to read the cell contents (I would prefer to accept csv file if I h... | c# asp.net | [0, 9] |
441,247 | 441,248 | How to pass the textbox value in jquery autocomplete | <p>I'm using jquery autocomplete in some textboxes in my web application (.Net 3.5). My problem is the prefix text is always blank. The correct value won't be assigned to it.</p>
<pre><code>function TextBoxAutoComplete(scope, controlId, contextKeyId) {
var txtbox = null;
var flagValue;
if (scope) {
txtbox = $('in... | c# javascript jquery | [0, 3, 5] |
5,898,518 | 5,898,519 | Outputting Javascript from PHP, but Javascript doesn't get executed | <p>The PHP script doesn't seem to call <code>dis();</code> function..Here it is:</p>
<p>PHP:</p>
<pre><code>if (!$_SESSION['user']) {
echo"<script type='text/javascript'>dis();</script>";
}
</code></pre>
<p>JS:</p>
<pre><code> <script type="text/javascript">
function dis() {
$(documen... | php javascript jquery | [2, 3, 5] |
1,825,698 | 1,825,699 | Dynamic table with multiple datepickers | <p>I have a web form which has dynamic table using repeating rows. New rows are added by calling the addRow function below:</p>
<pre><code>function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var... | php javascript jquery | [2, 3, 5] |
5,906,811 | 5,906,812 | how to read item template field in c# | <p>I have one dropdown box inside the item template. As per of my requirement I need to update the tooltip field of drop down in aspx.cs page.</p>
<p>I use the following code:</p>
<pre><code><asp:TemplateField HeaderStyle-CssClass="grid-label-small" HeaderText="*State">
<ItemTemplate>
<asp:DropDo... | c# asp.net | [0, 9] |
5,221,696 | 5,221,697 | Use JavaScript to prevent spacebar? | <p>I have a live search on a site I'm developing. At the moment, it searches the MySql database after the first character is typed, and updates the search for each new character. When <kbd>Space</kbd> is pressed as the first character, it displays all entries in the database. I don't want it to do that. I have the foll... | php javascript | [2, 3] |
3,168,774 | 3,168,775 | Select box in php not getting the selected value in jQuery | <p>I have a select box like </p>
<pre><code><select id="addressbook_user" name="addressboook_user">
<?php
$asql = "SELECT * from demo_addressbook WHERE user_created_id IN(SELECT id FROM demo_user WHERE user_name = '$get_user_name') AND type = 1 ";
// $result = mysql... | php jquery | [2, 5] |
331,559 | 331,560 | all validators executed when page is loaded | <p>Can i run all validators when page is loaded. I need to show * in all input text fields that are necessary. I have require field validators for that fields, can i run it by default when page is loaded?</p>
| c# asp.net | [0, 9] |
3,209,345 | 3,209,346 | PHP or Javascript date and time code from both server and local time | <p>Does anybody have a simple code for showing week nr, date and time taken from the webserver?</p>
<p>And then another code that gets the time from the local computer?</p>
<p>I'm looking for a JS or PHP code</p>
| php javascript jquery | [2, 3, 5] |
3,226,151 | 3,226,152 | how to convert text file to xml | <p>I want to convert the <code>text file</code> into <code>xml file</code>.I have a large amount of string but i dont want to write in xml directly.</p>
<p>So that I have made a text file now i want to convert this </p>
<p>text file into xml format but when i am running this file getting no output. here is my </p>
<... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.