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 |
|---|---|---|---|---|---|
2,502,648 | 2,502,649 | How to implement a generic click event for anchors | <p>Currently i have a php script that throws out a bunch of buttons(Format in case needed is</p>
<pre><code><a class="ClassInfo" id="id">Name</a>
</code></pre>
<p>The file is retrieved dynamically and there can be as many buttons as possible, maybe none and maybe a million(Unlikely though).
Anyways this i... | javascript jquery | [3, 5] |
5,636,294 | 5,636,295 | Increasing a number by 1 using jquery? | <pre><code>$('.fav').live('click', function(e){
$(this).toggleClass('highlight');
//increase the number by 1
</code></pre>
<p>html:</p>
<pre><code><li class="fav light_gray_serif">5</li>
</code></pre>
<p>how can i use jquery to increase the number between the li everytime its clicked? thanks</p>... | javascript jquery | [3, 5] |
4,561,023 | 4,561,024 | JS error in IE7 / IE8 : 'var' has value Null or is not an object | <p>This snippet just makes IE7/IE8 crashes the page throwing error. I don't know why cause on chrome / FF, everything is fine.</p>
<p><a href="http://jsfiddle.net/Zrz9t/15/" rel="nofollow">http://jsfiddle.net/Zrz9t/15/</a></p>
<p>The problem seems to be here :</p>
<pre><code> return event.Date.valueOf() =... | javascript jquery | [3, 5] |
5,709,853 | 5,709,854 | How to get JQuery and ASP.Net work together? | <p>Is there any reason why JQuery would not work when used in an ASPX page? We have been trying to get working a simple call like this:</p>
<pre><code>$(document).ready(function() {
alert("This is SPARTA!!!!!!!!!");
});
</code></pre>
<p>An the alert box is never shown. I've had some experience with JS and ASP.Net... | asp.net javascript jquery | [9, 3, 5] |
1,195,865 | 1,195,866 | jquery - checking for inline javascript on attribute | <p>Is there a way to test if a custom attribute is a function? I've tried using jquery's isFunction method, but it doesn't seem to work with this scenario. </p>
<p>For example:</p>
<pre><code><input id="test" class='date' oncomplete="function() { alert('i am a function'); }" type="text" />
<script>
... | javascript jquery | [3, 5] |
5,521,408 | 5,521,409 | File.GetAttributes(unc) generating "Network path not found" error | <p>I'm passing a UNC path to File.GetAttributes(). This works fine when running off my local, but when I move the site to the test server, I get a "Network path not found" error. I am able to navigate to the path from the test server, so I don't know why I would be getting this error. The code is very simple. This ... | c# asp.net | [0, 9] |
1,160,626 | 1,160,627 | Checkbox in listview | <p>I would like to set a checkbox in a listview's click-event.
How can I set the right checkbox?</p>
<p>This is my code:</p>
<pre><code> listView.setOnItemLongClickListener(new OnItemLongClickListener()
{
@Override
public boolean onItemLongClick(AdapterView<?> adapter, View view,
... | java android | [1, 4] |
1,478,055 | 1,478,056 | ASP.Net: Programatic runat="server" and onclick | <p>I am trying to edit a control which doesn't have an .ascx page, it was done completely in code. I am trying to add an optional delegate to be called from an ImageButton which was previously completely handled at the client. So I would like to set runat="server". However, I don't see this property exposed programatic... | c# asp.net | [0, 9] |
38,664 | 38,665 | Adding # before a div id without creating an HTMLDivElement | <p>I have an array of div names (with no hash), and i'm using the following jQuery code do do something with them:</p>
<pre><code>for(dayList in dayLists) {
dayListID = "#" + dayList;
$(dayListID).append("test");
}
</code></pre>
<p>Unfortunately, it does not work. I can see in the console that <code>dayListID</co... | javascript jquery | [3, 5] |
2,135,770 | 2,135,771 | Fire an ASP.NET TextBox event on enter press | <p>How do i fire a ASP.NET click event when the user press enter.</p>
<p>This is what i do now but it does not work:</p>
<pre><code>function KeyDownHandler(event) {
if (event.keyCode == 13) {
__doPostBack('<% ButtonGetListforUser.ClientID %>', 'OnClick');
isClicked = true;
}
}
</code></p... | c# javascript asp.net | [0, 3, 9] |
5,794 | 5,795 | jQuery 'document', 'body' and 'html' selectors not working on iPhone | <p>I need to run a function when you click anywhere on the page. Initially I used this: </p>
<pre><code>$('html').click(function() {
// stuff to happen
});
</code></pre>
<p>This works perfectly in my android phone and in firefox, but doesnt work on iPhones. Ive tried changing 'html' to 'body' and 'document' but s... | jquery iphone | [5, 8] |
5,589,546 | 5,589,547 | Request.Form.Get from a select option tag error | <p>Im trying to get a value or a text from the "select option" tag through C#, but I run on some issues :</p>
<p>this is my code :</p>
<pre><code><select id="country" >
<option value="" >Select One...</option>
<%for (int i = 0; i < dt.Rows.Count;... | c# asp.net | [0, 9] |
1,513,897 | 1,513,898 | Detect if input has focus | <p>One of my web app's page consists of a grid and a search box. I capture the keypress event to select through each of the grid's rows using the space bar. However, this creates a problem for when someone wants to look up a phrase in the search box.</p>
<p>I know that jQuery has a <code>.focus</code> method to bind a... | javascript jquery | [3, 5] |
4,151,094 | 4,151,095 | jquery class selector with css() does not seem to work? | <p>When I click the link(Anasayfa), function doesn't work. There is no change. What am I doing wrong?</p>
<pre><code><script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js">
</script>
<script type="text/javascript" language="javascript">
functio... | javascript jquery | [3, 5] |
1,801,896 | 1,801,897 | jquery fetch php data is slow. How to make it fast? | <p>As the title describe, the speed of jquery display data is 1 to 2 seconds slower than pure php. Demo at <a href="http://plekz.com/test-slow3.php" rel="nofollow">http://plekz.com/test-slow3.php</a> . How to make jquery display data as fast as pure php?</p>
<p>Codes :</p>
<pre><code><div id="jqryd">
</div&g... | php jquery | [2, 5] |
1,501,015 | 1,501,016 | Jquery not working | <pre><code>(function($) {
$(document).ready(function(){
/*$('body').css('position','relative');
$('body').animate({'left':'-9999px'},3000);*/
alert('hello');
});
}(jQuery));
</code></pre>
<p>Tried also</p>
<pre><code>$(document).ready(function(){
/*$('body').css('position',... | jquery javascript | [5, 3] |
2,379,211 | 2,379,212 | request parameter using jquery/javascript | <p>is it possible to stop the submission of a form,after submit button has been clicked and get the action attribute and the request parameters of the submission using javascript(preferably jQuery) ?
I want to get the action and the parameter so that the it can be submitted to an alternate location ,what i am tryin to ... | javascript jquery | [3, 5] |
4,051,995 | 4,051,996 | Code works in Chrome but infinite loop in IE | <p>I am using this code to dynamically change the text of a span element. It works in chrome, only changing the content of the span once, but does an infinite loop in IE (the count keeps updating and the html text keeps changing). Anyone know how I can fix it or why its happening?</p>
<pre><code>bindFlagUpdate();
func... | javascript jquery | [3, 5] |
176,662 | 176,663 | Function doesn't work as it should in IE7 & IE8 when invoked from a setTimeout | <p>I've got this crazy javascript issue with IE7 and IE8. The function expression below loads some images. That's it. quite simple. When the function is invoked directly ie <code>testmypatience()</code> it works as it should but if I call it from inside a timeout it won't load the images. The function is invoked but th... | javascript jquery | [3, 5] |
2,815,390 | 2,815,391 | GridView DataFormatString problems. convert Doudle to TimeStamp | <p>Need some help with DataFormatString in GridView. I have a Double value that needs to be shown as TimeSpan. I have tried DataFormatString="{0:HH:mm:ss}". This did not work. </p>
<p>Tested it a bit in C# and there I would do:</p>
<pre><code>TimeSpan.FromHours(16.7358217592592).ToString()
</code></pre>
<p>This give... | c# asp.net | [0, 9] |
3,804,859 | 3,804,860 | How do I show an enlarged version of a thumbnail properly even when I'm close to the edges of a container div or the browser? | <p>I have a div full of 60x60 images arranged in rows of 5. I want to show an enlarged version (at 300x300 max) of each thumbnail when you hover each image. I have a surrounding div that hides overflow, so if you hover over an image at one of the corners, the enlarged image will get cut off, so I need to flip the ima... | javascript jquery | [3, 5] |
966,623 | 966,624 | I need help with Android and Java | <p>I am struggling to figure out how to handle a situation in Android where code continues to execute when I really don't want it to. In the onCreate() of an activity I have some stuff that I need to do in order and I can't have the code continue to execute until certain things happen first. I understand that this is h... | java android | [1, 4] |
4,386,800 | 4,386,801 | Jquery to populate input or textarea | <pre><code><div id="example"></div>
<script type="text/javascript">
jah = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
jah+= "<p>Browser Name: " + navigator.appName + "</p>";
jah+= "<p>Browser Version: " + navigator.ap... | javascript jquery | [3, 5] |
4,701,313 | 4,701,314 | Member '<method>' cannot be accessed with an instance reference | <p>I am getting into C# and I am having this issue:</p>
<pre><code>namespace MyDataLayer
{
namespace Section1
{
public class MyClass
{
public class MyItem
{
public static string Property1{ get; set; }
}
public static MyItem GetItem... | c# asp.net | [0, 9] |
1,215,581 | 1,215,582 | Inherit parent frame's jQuery object including plugins | <p>I have a frame B which is a child of A:</p>
<pre><code>A
|_B
</code></pre>
<p>The page loaded by B can (will) change, and I used multiple jQuery plugins in my app. Is there a way I can include jQuery and all those plugins in A and just inherit the whole jQuery (which will have the plugins) object in every page in ... | javascript jquery | [3, 5] |
1,328,409 | 1,328,410 | HTML-Javascript - Filechooser showing only server-side files | <p>I hope the following isn't too tricky. </p>
<p>I have a simple html button. Now I want to open a filechooser as soon as a user clicks on this button.</p>
<p>I do this like the following:</p>
<pre><code>$('.button').click(function()
{
$('<input type="file"/>').attr('value');
});
</code></pre>
<p>Thi... | javascript jquery | [3, 5] |
5,661,742 | 5,661,743 | Canvas draw once flashing | <p>I have a game loop that's drawing to the canvas, when I open the menu within the game I want to be able to display the game in the background and overlay a transparent layer on top. The problem is when I draw this layer once it keeps flashing all over the place instead of being persistent. Here's the code I'm using ... | java android | [1, 4] |
4,416,367 | 4,416,368 | Prevent an element from losing focus | <p>We have a lot of <code>input</code>s in a document.<br>
We want to open a dialog that generates text and puts that in the currently focused input.</p>
<p>The problem is that, when I click a button or anything else to open the dialog that input loses focus. I can't determine which input has to get the generated text... | javascript jquery | [3, 5] |
5,549,239 | 5,549,240 | How to use HTML Table as gridview | <p>How to fetch data from database in HTML TABLE rather than Gridview?</p>
| c# asp.net | [0, 9] |
5,524,102 | 5,524,103 | The method getPreferenceManager() is undefined for the type BatteryService in android app | <p>I am making a service so I have service class which is extended from Service. I am getting a checkbox from PreferenceScreen and based on whether it is checked or not I perform an action. To get CheckBoxPreference I use getPreferenceManager() method. But it has red underline. When I hover over it shows me this error ... | java android | [1, 4] |
951,402 | 951,403 | Best method to repeat JS function | <p>Sometimes this function can be called too quickly and multiple elements are created but since it uses an ID that's not unique to each instance it the part to fade out and remove the div only applies to the top level element, not all of them. So I end up with a static div tag that isn't fading/removing.</p>
<p>The ... | javascript jquery | [3, 5] |
1,886,393 | 1,886,394 | Page jumps when fadeIn() and fadeOut() of two overlapping elements occurs | <p>I've created something in jQuery, I have a problem when clicking the images though. If you scroll down entirely to the bottom of the page and then click, you'll see it jumps. I've tried multiple methods to prevent jumping but its not working.</p>
<p>Here is my code:</p>
<pre><code>$('.author').click(function(e) {
... | javascript jquery | [3, 5] |
3,094,242 | 3,094,243 | Problem tracking what javascript is causing jQuery UI error in firebug | <p>So I am getting the following error in firebug regarding jQuery UI. It would be as simple if it was a matter of a process-of-elimination on the JS on the page, but there is allot of JS as well as some on the page and some on the site.master.</p>
<p><strong>ERROR</strong></p>
<pre><code>(this.uiDialogTitlebarClose... | javascript jquery asp.net | [3, 5, 9] |
2,922,951 | 2,922,952 | Jquery changing the value of a drop-down using its value, not the text | <p>I'm having difficulty changing the calue of a dropdown menu using jquery.</p>
<pre><code><div class="input-box">
<select name="options[4]" id="select_4">
<option value="">-- Please Select --</option>
<option value="24">Not Sure - Send Me Some Samples First </option>
... | javascript jquery | [3, 5] |
3,048,869 | 3,048,870 | How can I get current location on Android? | <p>I use this code for getting current location:</p>
<pre><code>LocationManager lm = (LocationManager) this
.getSystemService(Context.LOCATION_SERVICE);
List<String> providers = lm.getProviders(true);
/*
* Loop over the array backwards, and if you get an accurate location,
* then break out the loop
*... | java android | [1, 4] |
2,015,120 | 2,015,121 | Single click triggered on a double click | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1067464/need-to-cancel-click-mouseup-events-when-double-click-event-detected">Need to cancel click/mouseup events when double-click event detected</a> </p>
</blockquote>
<p>I am trying to get a HTML object to be... | javascript jquery | [3, 5] |
425,155 | 425,156 | Is it considered bad practice if you use an <input> for a textbox compared to <asp:Textbox>? | <p>I have an ASP.NET page that contains a form and a button. In order to use the <code>OnKeyPress</code> and a javascript function (to stop the user from using the enter key and without adding a <code>FilteredTextBoxExtender</code>) attribute I had to change the <code><asp:Textbox></code> to an <code><input>... | c# javascript asp.net | [0, 3, 9] |
6,032,147 | 6,032,148 | Copying file to .jar file results in an error | <p>I am attempting to copy a zip file to a jar file in a C# method like this:</p>
<pre class="lang-cs prettyprint-override"><code>ProcessStartInfo start = new ProcessStartInfo();
start.FileName = "java.exe";
start.WorkingDirectory = @"C:\mydir\";
start.Arguments = @" -jar example.jar example.zip";
Process java = new P... | c# java | [0, 1] |
3,537,929 | 3,537,930 | How to use Web parts in asp.net C#? | <p>How can i use web parts for performing drag and drops ?</p>
| c# asp.net | [0, 9] |
3,816,441 | 3,816,442 | Folder Browser Dialog Box in ASP.Net | <p>I've created a word document generator in C sharp and I want that generated word document to be save in a specific place in the client. I'm looking for a similar functionality like FolderBrowserDialog in Windows Form. I'm using ASP.Net and I tried may solutions but still no luck. Anyone can help me.</p>
| c# jquery asp.net | [0, 5, 9] |
540,460 | 540,461 | How can I get the Android SDK, version 1.5, to run on my G1 phone? | <p>Well, put it this way. I have already tested an Android application in emulator. Now I want to try that in a real G1 phone. But I am not able to run 1.5 SDK on my G1. Could anyone help me with this, please.</p>
| java android | [1, 4] |
883,347 | 883,348 | Adding characters to string (input field) | <p>I have a text box where the value is the result of a calculation carried out in jQuery. What I would like to do, using jQuery, is to display brackets around the number in the text box if the number is negative. </p>
<p>The number may be used again later so I would then have to remove the brackets so further calcula... | javascript jquery | [3, 5] |
1,817,434 | 1,817,435 | how to insert value in input, with javascript | <p>So I tried to do something like this -</p>
<pre><code>$('#price').val(price);
</code></pre>
<p>price is 300, and it shows good on browser, in input field, but when I want to take it out and mail it with PHP, in $_POST['price'] it doesn't show up, How can I insert something in inputs value with JavaScript, so I can... | javascript jquery | [3, 5] |
4,015,961 | 4,015,962 | Android make scroll view auto scroll to bottom | <p>How can i make it once the scroll view is out of the screen it will auto scroll to the bottom?</p>
| java android | [1, 4] |
1,260,894 | 1,260,895 | Change background of Div from select | <p>I have made the following, which works, fine. It changes the background of a Div onSelectChange from a dropdown. I’m sure there is abetter way. Could anybody recommend?</p>
<p>Thank you for looking.</p>
<pre><code>$(document).ready(function() {
$("#QuoteRequiredFor").change(onSelectChange);
});
function onS... | javascript jquery | [3, 5] |
4,148,246 | 4,148,247 | Prevent click event in jQuery triggering multiple times | <p>I have created a <a href="http://pmck.net/jq-switcher/">jQuery content switcher</a>. Generally, it works fine, but there is one problem with it. If you click the links on the side multiple times, multiple pieces of content sometimes become visible.</p>
<p>The problem most likely lies somewhere within the click even... | javascript jquery | [3, 5] |
1,825,816 | 1,825,817 | jquery toggling a div - how to do this with multiple ids? | <p>I am new to Jquery. My setup is as follows:</p>
<p>I have a series of divs that need to be able to be toggled (display hidden and shown). Each div has an action that can be performed so a unique ID will be necessary to know from which div the event came from.</p>
<p>To toggle the div I have a button for each div... | javascript jquery | [3, 5] |
409,634 | 409,635 | Detect if navigated to by Domain Name or IP address | <p>Is it possible to detect whether a user navigated to my site via Domain Name or by IP Address? Google isn't being very helpful.</p>
| php javascript | [2, 3] |
4,545,076 | 4,545,077 | Delete image from Folder/Database using RowCommand/RowDeleting events | <p>I am uploading images and display them in a <code>Gridview</code>.I save the images in a folder and the name in the database.Now I want if I uploaded 3 pictures and have to delete one which I select.So I have picture 1 2 3. When I select picture 2 than this will be deleted..How can I do that? This is my code to uplo... | c# asp.net | [0, 9] |
2,096,255 | 2,096,256 | Getting dropdownlist.selectedvalue trough Postback | <p>I've got this dropdownlist wich i populate using programming code :</p>
<pre><code> while (teller < modellen.Length)
{
SqlCommand cmd2 = new SqlCommand("SELECT Mod_Naam FROM Model WHERE Mod_ID = '" + modellen[teller] + "' ", con);
string modnaam = (string)cmd2.ExecuteScalar... | c# asp.net | [0, 9] |
4,078,487 | 4,078,488 | Wait for animation to complete before continuing in jQuery | <p>Is there anyway to wait for a jQuery animation to finish before proceeding with another command?</p>
<p>For example, I want to fade out/slide up an element, change some items within the element and then fade them back in/slide back down.</p>
<p>If I put the statements one after another, you can see the items chang... | javascript jquery | [3, 5] |
2,676,200 | 2,676,201 | How to call a jQuery method? | <p>Say for example, using javascript i would normally call a method like this</p>
<pre><code><a href ="" onclick="javascriptMethod()">Link</a>
</code></pre>
<p>and implement the method like this</p>
<pre><code><script type="text/javascript">
function javascriptMethod(){
//codes
}
</script>
<... | javascript jquery | [3, 5] |
5,469,793 | 5,469,794 | How to set href to some value if I have <a id='view.php'> | <p>I need to get time in miliseconds and attach that on like get parameter on 'view.php'. How to set href to that value ( <code>href='view.php?time=x</code>) if I have <code><a id='view.php'></code> using JQuery ?</p>
| javascript jquery | [3, 5] |
5,060,740 | 5,060,741 | Need help regards copy image to clipboard in website using ASP.Net or JavaScript? | <p>I need a help regards copy image to clipboard in website. The image is dynamically created one.</p>
<p>I found two solutions</p>
<p>Solution 1 : </p>
<pre><code>using System.Windows.Forms;
Bitmap bitmapImage ;
protected void buttonClipboard_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
MemoryS... | javascript asp.net | [3, 9] |
1,345,587 | 1,345,588 | Calling multipe Scripts from JavaScript in Android | <p>I am having problems with calling one or more scripts from JavaScript. My application has to login to an external website. I don't have access to that website. It doesn't work with webview.loadUrl(url). Also I could not get it to work with JavaScriptInterface. The best thing would be if I can get it to work without ... | javascript android | [3, 4] |
1,585,875 | 1,585,876 | Why does php insert backslash while replacing double quotes | <p>I'm wondering why php adds a backslash when i remove double quotes.</p>
<pre><code><input type="text" name="number" id="number" />
<input type="button" name="button" id="button" value="Button" />
</code></pre>
<p>Say they user enters the value 5-1/2" and i'm passing it to a processing page via jquery's... | php javascript jquery | [2, 3, 5] |
667,656 | 667,657 | Where to use jQuery.noConflict | <p>I have some code I was given in jQuery and I am really new to it. I need to use the jQuery.noConflict() method because I am using a Mootools framework as well. I just don't know where I should replace the $ symbols in the code for 'jQuery'. Any help would be greatly appreciated!</p>
<p>The code for it is at www.... | javascript jquery | [3, 5] |
3,438,449 | 3,438,450 | android: start in symbol keyboard mode, but don't restrict to numbers-only input | <p>I want to specify that Android should start the soft keyboard for a given EditText in the numeric/symbols mode. I know this can be done by setting the input type of the EditText to be numeric using EditText.setInputType() except that I do not want to restrict the input type for the EditText to numeric input only**. ... | java android | [1, 4] |
1,311,861 | 1,311,862 | Send multiple dynamic arguments to jquery event functions | <p>I want to send multiple arguments to JQUERY event functions.For sending one data i put it in value attr in html code. </p>
<pre><code><li id="<?php echo 'v'.$value['vehicleid'] ?>" value="<?php echo $value['vehicleid']; ?>" >
</code></pre>
<p>And get data in JQuery event function with <code>$(th... | php jquery | [2, 5] |
1,508,221 | 1,508,222 | tcp/ip open connection | <p>currently i am using the following code to interact with server</p>
<pre><code> public String connectToserverforincomingmsgs(String phonurl, String phno)
throws IOException {
URL url = new URL(phonurl);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setDoInput(true);
... | java android | [1, 4] |
5,375,950 | 5,375,951 | Page wise total in grid | <p>Hi I am using a data grid in my page, in which I am displaying a cost column. my page contains 1000s of records. i am displaying 25 records per page. And I have to display the total in the footer. and the problem is i want to display the total by page wise. How can i achieve it?</p>
| c# asp.net | [0, 9] |
2,153,460 | 2,153,461 | Dropdownlist onselectedindexchanged problem | <p>I have a dropdownlist like this</p>
<pre><code><asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/>
</code></pre>
<p>and on codebehind i m doing this</p>
<pre><code>page_load : if(!page.postback)I m binding data into dropdownlist
fire_event: I am redirec... | c# asp.net | [0, 9] |
4,724,164 | 4,724,165 | What is the difference between Server.MapPath and HostingEnvironment.MapPath? | <p>Is there any difference between <code>Server.MapPath()</code> and <code>HostingEnvironment.MapPath()</code>? Does <code>Server.MapPath()</code> have any advantages over <code>HostingEnvironment.MapPath()</code>?</p>
<p>My original problem was mapping the file path on a server when the <code>HttpContext</code> is no... | c# asp.net | [0, 9] |
3,866,911 | 3,866,912 | Session in jquery | <p>I am trying to get session value in jquery using following code:</p>
<pre><code>function CheckUserType() {
var user = '<%= Session["LoginUserType"]%>';
alert(user);
if (user == 'Type1') {
jQuery("#customizationTool.customization-tool div.CostEstimate div.EstimateDetail div.QtyUpdateSec").hide();
jQuery("#c... | jquery asp.net | [5, 9] |
812,956 | 812,957 | notifydatasetchanged from within listener not working | <p>I am trying to update my Activity's ListView from within the onLocationChanged function of a Location Listener using notifyDatasetChanged() but it doesnt work. I can however use setListAdapter from the same point in my code and this will work.</p>
<p>Here is my code:</p>
<pre><code>public class TestListeners exten... | java android | [1, 4] |
2,432,719 | 2,432,720 | javascript alert before php code | <p>page:content display.php</p>
<pre><code><td width="100"><a onclick="return confirmSubmit()" href="delete.php?id=<?php echo $row['id']; ?>&table=labour_details&return=content_display.php"><img src="../images/delete.png" border="0" alt="delete"></a></td>
</code></pre>
<p>p... | php javascript | [2, 3] |
5,488,017 | 5,488,018 | jQuery Countdown serverSync 15 hours difference | <p>I am using Keith Woods countdown timer (http://keith-wood.name/countdown.html) with the serverSync function. This seems to work great in a single country however when I check the countdown from a different country it seems there is 15 hours ish difference.</p>
<p>So in Australia the countdown shows 1 day but in the... | php jquery | [2, 5] |
2,031,391 | 2,031,392 | loop in javascript | <pre><code>function DC() {
var elements = $(".panel");
elements.first().fadeOut(1000, function() {
$(this).insertAfter(elements.last());
$(this).fadeIn(1000);
});
}
$(document).ready(function() {
var i =0;
for (var i=0; i < 10; i++) {
DC();
};
});
</code></pre>
<p>I ... | javascript jquery | [3, 5] |
2,900 | 2,901 | jQuery create function and call it on each separately | <p>Hey guys I'm trying to create a function and call it inside another each loop. I got it to work, but the each loop is not working. So I tried to add an extra <code>$(this)</code> and it didn't work either...any help is appreciated.</p>
<pre><code>.moveClass {
position:relative;
}
$(function() {
$('.a_projectLoa... | javascript jquery | [3, 5] |
758,532 | 758,533 | Prevent jQuery() from executing javascript | <p>I am working on some code that uses jQuery to parse data out of html documents from the web. This decision was made because jQuery, with its awesome ability to select objects on a page, makes it excellent for parsing.</p>
<p>The code works like this (where 'html_string' is the html of a whole web page):</p>
<pre>... | javascript jquery | [3, 5] |
318,743 | 318,744 | Difference between String and AttributedString | <p>I am quite confused here. Today I came across this concept of <a href="http://download.oracle.com/javase/7/docs/api/java/text/AttributedString.html" rel="nofollow"><code>AttributedString</code></a>. But I am not able to find the exact difference for <strong>String and AttributedString</strong>. And more ever I am no... | java android | [1, 4] |
148,862 | 148,863 | jQuery Remove table row on $.ajax success | <p>I need to remove a table row after a successful ajax call, not sure how to do it. Here is my code:</p>
<pre><code>function closelead(rowid){
var rowid1 = rowid;
alert(rowid1);
var parent = $(this).parent();
$.ajax({
type: "POST",
url: "... | php javascript jquery | [2, 3, 5] |
5,820,267 | 5,820,268 | jQuery functions inside click events | <p>The following works fine:</p>
<pre><code> classes_tab.click(function(evt){
evt.preventDefault();
h_c.filter(':visible').fadeOut(fast, function(){
disactive.removeClass('active');
classes_tab.addClass('active');
classes.fadeIn(fast);
});
});
con... | javascript jquery | [3, 5] |
4,221,003 | 4,221,004 | Taking Selected Item of ListBox into selected TextBox | <p>I have a ListBox object which allows multiple selection and also for the selected item's to be removed.</p>
<p>Now I have an additional problem, which relates to a ListBox and 3 TextBoxes.
I want it to work so that when I shift the focus into or mouseover any of the textboxes, I would like for the ListBox selected... | c# asp.net | [0, 9] |
329,966 | 329,967 | How to convert Byte Array to PDF file in Android? | <p>I'm working on an application where i am getting the data in the form of byte array ,and i need to use this byte array for creating a new PDF file.How can i achieve this in android ?</p>
| java android | [1, 4] |
1,081,665 | 1,081,666 | php + web service | <p>Can someone confirm good performance using PHP + Java webservice (for heavy duty tasks) running on NGINX (or Apache) because PHP is slow in completing some heavy tasks and I want to make a web service in java to communicate with PHP via SOAP or REAT or JSON.</p>
<p>The fact I'm asking this question is that I alread... | java php | [1, 2] |
3,930,020 | 3,930,021 | Problem adding javascript/jquery to my WebPart | <p>My ascx looks like this:</p>
<pre><code><SharePoint:ScriptLink ID="ScriptLink1" runat="server" Name="/_layouts/1033/MyProject/js/test.js"/>
test: <input id="example" />
</code></pre>
<p>test.js looks like this:</p>
<pre><code>$(document).ready(function () {
alert("test");
});
</code></pre>
<p>In... | jquery javascript | [5, 3] |
5,254,907 | 5,254,908 | set select option back to default selected | <p>I'm trying to set the select option back to the "choices" every time I finish adding a new row. How can I do it here? Please help. Btw, adding new row(s) works just fine. Here is what I've got so far:</p>
<pre><code>$(document).ready(function() {
$('#Add-btn').live('click',function() {
$("#tabName tr:last"... | javascript jquery | [3, 5] |
805,169 | 805,170 | database not working with 2.2,working good with 2.3 and Higher Version | <p>my app working on 2.3 and higher version good bt on 2.0 or 2.2 it gives error like "android sqlite returned error code 1 no such table" please help.</p>
| java android | [1, 4] |
895,576 | 895,577 | How to show a web page in full screen mode without statusbar and addressbar in all browsers? | <p>How to show a web page in full screen mode without statusbar and addressbar in all browsers and it should not show the taskbar also.</p>
| c# javascript asp.net jquery | [0, 3, 9, 5] |
3,847,561 | 3,847,562 | Differences between Script & Code behind? | <p>Please let me ask something. I just confused for what is the difference of javascript, JQuery and code behind attributes.
for example :
ASPX</p>
<pre><code><tbody id="toggleSup" runat="server">
</code></pre>
<p>C#</p>
<pre><code>toggleSup.Visible = false;
</code></pre>
<p>---------------------------------... | c# javascript jquery asp.net | [0, 3, 5, 9] |
4,781,842 | 4,781,843 | filestream fileshare access by 2 process to read and write at the same time | <p>I got a primitive website, where the aspx webform and socket server access flat files, which stores the data. The socketserver will be accessing the same exact files to write, which is accessed by the aspx c# code for reading. I think there may be an issue with locking the files. I think it is the higher priority fo... | c# asp.net | [0, 9] |
3,116,464 | 3,116,465 | To get controls inside static function | <p>I am calling function in codebehind from javascript using webservice.</p>
<pre><code>function GetAdmissionType()
{
InitComponents();
var type="";
type=document.getElementById(dlAdmissionType.id).value;
document.getElementById(hdnAdmissionType.id).value=docum... | c# asp.net | [0, 9] |
1,644,274 | 1,644,275 | Receive form input data with PHP POST | <p>I'm using the jQuery tag-it plugin, which basically has an input field. Everything works well, but I am unable to receive the input field value by submitting the form with PHP.</p>
<p>Here's the form part:</p>
<pre><code><form action="<?=$PHP_SELF?>" method="post">
<div class="line"&... | php jquery | [2, 5] |
2,687,138 | 2,687,139 | question-suggestion list | <p>i have a asp.net page. i m writing some words in a question textbox named txtTitle, after moving to another txtbox named txtbox2, i want that it should open a question-suggestion page based on that keyword typed in txtbox1 in the space before txtbox2. i hv tried this but it is not working. can anyone provide me the ... | c# asp.net jquery | [0, 9, 5] |
3,635,892 | 3,635,893 | Alternative to jQuery ready() for detecting that the page anchor in the URL changes | <p>Does anyone know how to get a page load event to fire if the page anchor in the URL changes, i.e., going from </p>
<pre><code>http://mywebsite.com/#test1
to
http://mywebsite.com/#test2
</code></pre>
<p>when using the Back button?</p>
<p>I tried the code at the bottom (the <code>history.navigationMode</code> li... | javascript jquery | [3, 5] |
3,086,389 | 3,086,390 | Why does my spinner GIF stop while jQuery ajax call is running? | <p>I'm just starting to wean myself from ASP.NET UpdatePanels. I'm using jQuery and jTemplates to bind the results of a web service to a grid, and everything works fine. </p>
<p>Here's the thing: I'm trying to show a spinner GIF while the table is being refreshed (à la UpdateProgress in ASP.NET) I've got it all workin... | javascript jquery | [3, 5] |
15,858 | 15,859 | Setting User language for Localization/Globalization | <p>I need to select the language based on the user choice and set it for the entire session.
Can anybody suggest where do i need to do these settings and how can i do this?</p>
| c# asp.net | [0, 9] |
1,101,035 | 1,101,036 | How to handle touch or press down events in Android? | <p>Alright so i have 4 image views..</p>
<p>How can i control what happens when they are pressed down and up</p>
<p>So say like:</p>
<p>one of the images is press down a textview gets changed to 1 but when they let go of that one the text will change back to 0?</p>
| java android | [1, 4] |
3,069,840 | 3,069,841 | how to instantiate a listener by reflection in Android | <p>I have to develop an application for Android 1.6 (API 4), which should be able to use the OnAudioFocusChangeListener (available since Android 2.2 - API 8) in the phones with Android 2.2 or later.</p>
<p>Anyone can tell me how to instantiate a listener by reflection?
I have already managed to run static and also non... | java android | [1, 4] |
552,423 | 552,424 | Find Every Instance of "<br />" in a page and remove it with jQuery | <p>I'm working within a template using the Cargo Collective platform and it adds unecessary <code><br /></code> tags inside the <code>body</code> of my document. </p>
<p>How can I write a line or two of jQuery to search for every <code><br /></code> tag on my page and remove them, or replace them with noth... | javascript jquery | [3, 5] |
5,366,901 | 5,366,902 | Save value in PHP Session variable | <p>I have an html table which contains records, comes from mysql db. Each row also contains id (PK) wrt db table record.
Now I want to save record id in <strong>PHP Session variable</strong>, when I click on a row.
To do this I used <strong>onclick</strong> property for each row & call a javascript function with re... | php javascript | [2, 3] |
4,581,499 | 4,581,500 | Applying Bleed effect to an image using jQuery (or) javascript (or) c# coding | <p>Can any one help me how to apply bleed effect for an image using javascript or jQuery or c-sharp.</p>
| c# javascript jquery | [0, 3, 5] |
1,723,729 | 1,723,730 | How to get information from realtime springer | <p>Realtime Springer updates information about articles being downloaded right now. I think it's being done jquery but I am not sure how to get this information to my computer automatically.</p>
| javascript jquery | [3, 5] |
5,776,455 | 5,776,456 | session state of checkbox list | <p>Can you please help me in storing the checkbox list items in session.</p>
<p>I have a checkbox list as follows</p>
<pre><code>asp:CheckBoxList ID="cblScope" runat="server"
onselectedindexchanged="cblScope_SelectedIndexChanged">
asp:ListItem ID="liInScope" runat="server" Value="true">In Scope (M... | c# asp.net | [0, 9] |
327,552 | 327,553 | JavaScript opening new window instead of tab when command run too early | <p>I realize that you cannot control whether a browser opens a new <em>window</em> vs. a new <em>tab</em>, so this may have no solution.</p>
<p>The problem is basically that I run something like:</p>
<pre><code>function runCommand() {
//...
window.open(url);
}
</code></pre>
<p>This runs from time to time if th... | javascript jquery | [3, 5] |
1,810,943 | 1,810,944 | Check for values in multidimensional input array | <p>I store values in a multi-dimensional hidden input array that looks like this:</p>
<pre><code><input type="hidden" name="tokens[0][Search_Type]" value="a" />
<input type="hidden" name="tokens[0][Search_Term]" value="123" />
<input type="hidden" name="tokens[1][Search_Type]" value="b" />
<input ... | javascript jquery | [3, 5] |
1,898,278 | 1,898,279 | How to get the http://www.blbah.com part of the url in javascript? | <p>My url on a page is like:</p>
<pre><code>http://www.example.com/dir1/file.html?a=1
</code></pre>
<p>I need to extract:</p>
<pre><code>http://www.example.com
</code></pre>
<p>how can I do this in javascript?</p>
| javascript jquery | [3, 5] |
5,467,680 | 5,467,681 | How to get the text after the # symbol in a link? | <p>I have a simple link with a hashtag in it. ie:</p>
<pre><code><a class="page_navigation" href="#something">click</a>
</code></pre>
<p>On clicking this, I would like to just end up with the 'something' part (minus the hash) in a var.</p>
<p>So far I have</p>
<pre><code>$('.page_navigation').click(func... | javascript jquery | [3, 5] |
1,129,124 | 1,129,125 | ASP..NET Hod to hide a Div before Page is loaded? | <p>I have a div on my page - I'd like when that page is being loaded tthat Div is being hidden by jQuery's .hide method. Now I have that when a page is ready then that div is hiding - but that hiding is visible. I don't want that</p>
<p>Now I have that code:</p>
<pre><code>$(document).ready(function(event)
{ ... | asp.net jquery | [9, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.