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
3,857,700
3,857,701
Slide effect (jQuery)
<p>I wonder why this isn't working as expected:</p> <pre><code>$(function() { $(".door1-trigger").click(function() { $(".door").hide(); // $(".door1").show("slide", { direction: "right" }, 1000); return false; }); $(".door2-trigger").click(function() { $(".door").hide(); $("....
javascript jquery
[3, 5]
1,161,869
1,161,870
Javascript concatenate variable to url
<p>If i have a variable lets say </p> <pre><code>var id = //something dynamically generated then i have &lt;a href="http://localhost/ (the variable id)" </code></pre> <p>How do i go about this?</p>
javascript jquery
[3, 5]
3,192,579
3,192,580
jCarousel stop immediately on mouseover
<p>I'm using jQuery jCarousel for a slider, after few mins I found the way to stop the slider on mouseover, but the problem is it doesn't stop immediately on mouseover, it only stop at the end of the image set (3 images in my demo). However it does start immediately on mouse out. I'm new javascript stuff and couldn't d...
javascript jquery
[3, 5]
383,954
383,955
Determining ASP.NET client ids
<p>This question is similar to <a href="http://stackoverflow.com/questions/546392/forcing-client-ids-in-asp-net">http://stackoverflow.com/questions/546392/forcing-client-ids-in-asp-net</a> but not quite.</p> <p>ASP.NET generates clientids according to its own internal mechanism. I would like to run a xmlhttprequest qu...
asp.net javascript
[9, 3]
2,759,194
2,759,195
Implementation of a social app
<p>I would like to gain some knowlegde and expertience on the subject of what it takes to build a social app.</p> <p>Such as allowing the user to:</p> <p>Like things.</p> <p>Have a profile with username, picture, about you section. etc.</p> <p>Have friends</p> <p>Have the ability to view friends profiles.</p> <p>...
java android
[1, 4]
3,159,581
3,159,582
x must be < bitmap.width()
<p>I'm building an app that takes a picture, displays the picture and then once tapped, returns the color of the picture wherever it was tapped.</p> <p>It gets as far as the tap before it crashes. I get the error that x must be &lt; bitmap.width()</p> <p>As far as my understanding goes, if I'm clicking within the bi...
java android
[1, 4]
3,889,252
3,889,253
When mousing over any control in this user control, the text of every label turns red
<p>I have a custom user control that contains <code>asp:ValidationSummary</code>. It is placed on a page along with other controls that display data. When I try to save the page and the validation fires, I get the following, strange behavior:</p> <p>If I mouse over any controls on the page, all labels turn to red colo...
c# asp.net
[0, 9]
2,335,040
2,335,041
Running android using device connected to usb
<p>can I somehow run the android project currently running using my phone that is connected via usb? the android emulator starts pretty slow so i think it would be better to use my device</p>
java android
[1, 4]
2,107,932
2,107,933
Add a Click Event to elements added to the DOM
<pre><code> var myOP = '&lt;div&gt;'; for (var i = 0; i &lt; op.length; i++) { myOP += '&lt;div&gt;'; myOP += '&lt;div id="myBTN-' + [i] + '"&gt;' + op[i]['Field1'] + '&lt;/div&gt;'; myOP += '&lt;div id="blah-' + [i] + '"&gt;' + op[i]['Field2'] + '&lt;/div&gt;'; myOP += '&lt;/div&gt;'; } myOP += ...
javascript jquery
[3, 5]
4,472,301
4,472,302
c#: crawler project
<p>Could I get very easy to follow code examples on the following: </p> <ol> <li>Use browser control to launch request to a target website.</li> <li>Capture the response from the target website.</li> <li>convert response into DOM object.</li> <li>Iterate through DOM object and capture things like "FirstName" "LastNam...
c# asp.net
[0, 9]
2,002,440
2,002,441
Adding several input boxes based by a select box value
<p>I have a select box:</p> <pre><code>&lt;select id="steps_number"&gt; &lt;option value="2"&gt;2&lt;/option&gt; &lt;option value="3"&gt;3&lt;/option&gt; &lt;option value="4"&gt;4&lt;/option&gt; &lt;option value="5"&gt;5&lt;/option&gt; &lt;option value="6"&gt;6&lt;/option&gt; &lt;option value="...
javascript jquery
[3, 5]
3,802,606
3,802,607
Working with money in android app
<p>Hello my app is working with money. What structure i should use and how ? </p> <p>I mean that from web service i get decimal number price. I don't do any operations with this money, no calculating. Can i keep this in String and when time comes to pass this price to bank ? Nothing would happens. Can i lose in this ...
java android
[1, 4]
3,255,234
3,255,235
Is there are proper way to $.extend a nested properties in jQuery?
<p>What I have and what I need. It's easy.</p> <p>The default options (there are nested properties):</p> <pre><code>{ sDom: 'frt&lt;"tfoot"lp&gt;', bInfo: false, sPaginationType: "full_numbers", oLanguage: { sSearch: "", sLengthMenu: "Show _MENU_", oPaginate: { sFirst: "|&lt;&lt;", ...
javascript jquery
[3, 5]
3,567,487
3,567,488
How can i rearrange div order at every reload?
<p>Is there a way of rearanging div order? More exact how can i get from</p> <pre><code>&lt;div id="1"&gt;&lt;/div&gt; &lt;div id="2"&gt;&lt;/div&gt; &lt;div id="3"&gt;&lt;/div&gt; &lt;div id="4"&gt;&lt;/div&gt; </code></pre> <p>this</p> <pre><code>&lt;div id="3"&gt;&lt;/div&gt; &lt;div id="1"&gt;&lt;/div&gt; &lt;di...
javascript jquery
[3, 5]
5,745,039
5,745,040
declare an array in a for
<p>Is there a method for declare and use an array in a <code>for</code> loop like this:</p> <pre><code>foreach(string j in ["1","1"]) { } </code></pre> <p>?</p> <p>thanks</p>
c# asp.net
[0, 9]
912,914
912,915
How to put a LinkButton INTO a tooltip using ASP.NET?
<p>When using the core ASP.NET 3.5 (w/ Ajax), is it possible to include a LinkButton in a tooltip?</p> <p>Unfortunately, these tooltips are generated on-the-fly within a GridView to display custom data from each row. Tooltips are currently showing using jQuery.</p> <p>So, I don't know how to add a LinkButton (for a ...
c# asp.net
[0, 9]
5,537,068
5,537,069
problem with setInterval(); and clearInterval
<p>I have a problem involving setinterval. It's probably best to show an example so here's a link here:</p> <p><a href="http://boudaki.com/testing/carouselTest" rel="nofollow">http://boudaki.com/testing/carouselTest</a></p> <p>Basically I'm having problems making this work like I need it to. When the page loads the c...
javascript jquery
[3, 5]
1,397,788
1,397,789
Problem removing a dynamic form field in jquery
<p>I'm trying to remove a dynamic form field by click a button. It will also subtract whatever values it had from the total amount from my calculation. This is the code:</p> <pre><code>function removeFormField(id) { var id = $(id).attr("name"); $('#target1').text($("#total" + id).map(function() { var c...
javascript jquery
[3, 5]
2,739,888
2,739,889
Dynamically get changed select value JQuery
<p>What I need to do is get the value of the selected option (when changed) in a select list and change the text in a span next to the select list. The problem is I don't know the id the the select list. There are lot of different select list on the page (5-25+) and they are all created dynamically and so I can't have ...
javascript jquery
[3, 5]
5,278,873
5,278,874
how to remove error text from the email format checker code?
<p>I have been writing a code for validating forms using javascript/jquery. Following is a code snippet for checking email format. The problem is when I enter invalid email, it recognizes it, but when I go back to this field and enter correct email, the error text still stays even though I have used the 'else' part. Ho...
javascript jquery
[3, 5]
4,915,392
4,915,393
whats the pros/cons with working with PHP as opposed to asp.net or the whole .net framework?
<p>I'm currently working with php but everyone is telling me that asp.net is so much better. What is the real story?</p>
php asp.net
[2, 9]
4,570,963
4,570,964
Fade out before loading new content
<p>How do I fade out #special, then load the content, and when it´s loaded fade in again.</p> <pre><code>function test(x,y) { $('#special').fadeOut('fast').fadeIn('slow'); $('#special').load('index.php?close=1 #special'); } </code></pre> <p>I don´t want it to display/load the new content until #special h...
javascript jquery
[3, 5]
3,373,368
3,373,369
How to get the text from the selected option?
<pre><code>string x = "&lt;select&gt;&lt;option value='2'&gt;dfgdfh&lt;/option&gt;&lt;option value='3'&gt;cvncvn&lt;/option&gt;&lt;option value='4'&gt;cvn&lt;/option&gt;&lt;option value='5'&gt;dhdfh&lt;/option&gt;&lt;option value='6'&gt;dfhdfh&lt;/option&gt;&lt;option selected="selected" value='7'&gt;dfhdfh&lt;/option&...
javascript jquery
[3, 5]
2,089,555
2,089,556
Can I prepend table to another table using jQuery?
<p>I am trying to prepend table "new" to table "lasttable" using jQuery but I cannot get the result. Am I doing the right thing or I misunderstood the meaning of prepend?</p> <pre><code>&lt;table id ="lasttable" class="add" border="1px" width="100%"&gt; &lt;tr class="header"&gt;&lt;td class="location" colspan="7"&gt;N...
javascript jquery
[3, 5]
4,931,846
4,931,847
java from command line over and over
<p>i have a PHP application that invokes a command line to execute some specific operations.</p> <p>The command line calls a 'java -jar somefile.jar arg1 arg2'</p> <p>The problem is that this is slow, since it has to startup the jar every time it get's invoked.</p> <p>Is there any way keep the java machine code in c...
php java
[2, 1]
4,521,044
4,521,045
Ajax jquery unauthorized request
<p>I am making an ajax request using Jquery and everything works fine except the page is protected so only logged in users can make request. I am already logged in but I think Jquery ajax doesn't send my cookies to the url. How can I solve this error so cookies, headers are also sent so the page doesn't treat it as 401...
javascript jquery asp.net
[3, 5, 9]
2,709,373
2,709,374
jQuery :: How to execute one function based off two possible events
<p>I'm looking for a clean way to fire one function that may be triggered by two possible events. For example:</p> <pre><code>$('form').on('submit', function() { stuff in here... }); $('input').on('change', function() { same stuff in here as before... }); </code></pre> <p>I could do</p> <pre><code>function ...
javascript jquery
[3, 5]
1,785,584
1,785,585
Jquery Anythingslider too much recursion error
<p>I am getting a too much recursion error on my main page.</p> <pre><code>too much recursion NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_...|absolute|fixed)/.test(b.curCSS(this, </code></pre> <p>jquery-ui.min.js (line 11)</p> <p>and another one that looks like this:</p> <pre><code>too much recursion (function(){"use s...
c# jquery
[0, 5]
5,282,105
5,282,106
thread problem in suspend() and resume()
<p>hi all i doing a stop watch. for pause i use Thread.suspend() and resume i use Thread.resume(). but the resume is not resume the work. code:</p> <pre><code>pause(){ shouldRun = false; currentThread.suspend(); } resume(){ shouldRun = true; currentThread.resume(); } </code></pre> <p>while(shouldRun...
java android
[1, 4]
1,584,959
1,584,960
jQuery.on() not working
<p>I'm trying to change some things in my wordpress lightbox plugin when click event is fired on it. The lightbox itself is injected after the page is loaded so I have to use <code>on()</code>.</p> <p>Javascript in the header:</p> <pre><code>jQuery(document).ready(function(){ jQuery("body").on("click", "#lightbox...
javascript jquery
[3, 5]
4,068,094
4,068,095
How to run <br> when using .text()
<p>I try to use php post $value for jquery and slow on .text()</p> <pre><code>$value = "&lt;html&gt;"; $value .= "&lt;/html&gt;"; $(document).ready(function(){ $('#area').text(value); }); result is: &lt;html&gt;&lt;/html&gt; </code></pre> <p>I try add \n ,<br>,but not work. </p> <p>How to change it output </p> ...
php jquery
[2, 5]
3,165,390
3,165,391
&nbsp suddenly coming all over the aspx. file
<p>Suddenly i noticed <code>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.....</code> suddenly showing up in my .aspx file. Everything seems to be working fine but i have no idea where this is coming from?</p> <p>These lines appear everywhere inside my validator control where the display="dynamic".</p> <p>The debugger sho...
c# asp.net
[0, 9]
5,787,260
5,787,261
How could I access the ring and vibration as an alert from java script or html
<p>How could I access the ring and vibration as an alert from java script or html.</p> <p>I am trying to activate the ring tone, when AJAX returns the valid data.</p> <p>I couldn't find anything so far.</p> <p>Thanks, Zafer Boz</p>
javascript iphone
[3, 8]
5,608,681
5,608,682
Unable to evaluate expression because the code is optimized or a native frame is on top of call stack
<p>I am working on a website where user comes and submits some information. After the information is submitted I am trying to send two mails simultaneously - one to my sales team and one to the visitor on my website.</p> <p>While the mails are getting sent I am getting the following error while redirecting to another ...
c# asp.net
[0, 9]
4,811,294
4,811,295
Error unterminated string literal when using php javascript?
<p>I have a file with format</p> <pre><code>&lt;script src="test.php"&gt;&lt;/script&gt; </code></pre> <p>And code in test.php with table test(id, name) with 4000 rows</p> <pre><code>&lt;?php $sql = "Select * From test"; $data = array(); $query = mysql_query($sql); while($row = mysql_fetch_object($query)) { $da...
php javascript
[2, 3]
4,284,051
4,284,052
Using clientscript.registerstartupscript with parameters to call javascript function
<p>1) I'm having an javascript control created with HTML5 and showing it with div.</p> <pre><code>&lt;div id="&lt;%=this.ClientID%&gt;" style="z-index:100;"&gt;&lt;/div&gt; </code></pre> <p>The control has a method <code>init()</code> to which I need to pass parameters from code behind; in order to initialize it. So ...
c# javascript asp.net
[0, 3, 9]
487,782
487,783
selectedindexchanged event of dropdownlist is not working with jquery
<p>hello I have a <code>dropdownlist</code>. I am using jquery plugin to give style to <code>dropdownlist</code>. jquery plugin is <strong>jquery.dd.js</strong>. but my problem is <code>selectedindexchanged</code> event is not working in Internet exlorer 8 although it is working fine in other browsers.</p>
jquery asp.net
[5, 9]
4,912,941
4,912,942
remote implementing c++ program through php
<p>Recently I've been working on web page based remote control. the function is already there done by c++ and now I'm trying to find a way linking this function to my web page. I tried using soap and now almost give up because of those "cannot load wsdl file" and "http get method not implemented" errors</p> <p>Is ther...
php c++
[2, 6]
2,024,912
2,024,913
Passing Value to Javascript function
<p>I'm calling a jQuery function, but the alert function displays [object Object]. The check value works, but not the passed id value.</p> <p>Here's the call to the function taken from the html output:</p> <pre><code>&lt;td class="myGroups"&gt; &lt;input class="chkSubscribed" type="checkbox" onclick="UpdateSubscr...
javascript jquery
[3, 5]
4,462,543
4,462,544
preventing android daily alarm from running the intent during alarm setup
<p>I followed the instructions in <a href="http://stackoverflow.com/questions/7845660/how-to-run-a-service-every-day-at-noon-and-on-every-boot">this thread</a> to create a daily alarm that starts a service at 12:30 each day which shows a notification. The problem I'm having is that setting the alarm also triggers the s...
java android
[1, 4]
1,796,885
1,796,886
How can I remove an element from a list returned by a jQuery selector?
<p>I would like to uncheck all checkboxes that have a specific class with the exception of the one just checked.</p> <pre><code>function PizzaToppings_OptionValueChanged(checkboxElement) { if ($(checkboxElement).attr("checked")) { if($(checkboxElement).hasClass('cheese_toppings')) { // ...
javascript jquery
[3, 5]
3,308,768
3,308,769
Determine the browsers homepage
<p>I've searched for an answer but I can't seem to find out how this is done. Obviously I know that access to the browsers homepage is a security issue and not easily obtained, but I want to know if there is a way we can compare it.</p> <p>If you search for something on Google in Internet Explorer and click on page 2...
php javascript
[2, 3]
250,799
250,800
why alert function not show index of each one
<p>I create one object named "Ball". after document load, script will create 12 instance of object and insert so many element li to </p> <pre><code>&lt;ul&gt;&lt;/ul&gt; </code></pre> <p>my purpose is that when click ball, it show index of ball. for exmaple: click No 3 ball, it show 3. but when i click each ball, i...
javascript jquery
[3, 5]
3,278,260
3,278,261
Jquery Clone Function
<p>Is there any way to customize html by JQUERY clone function let say i have a div</p> <pre><code>&lt;div id="my_Div" style="margin-right:14px;"&gt; Name : &lt;input type="text" name="file_name[]" id="file_name" class="validate[required]"/&gt; &amp;nbsp;&amp;nbsp; Choose File : ...
javascript jquery
[3, 5]
3,443,298
3,443,299
Captcha image not displaying on remote server
<p>I have a problem with my Captcha image. It's working fine on my local system but not on remote server. Recently we shifted server that was working fine in previous server. I didn't miss any references. Please reply soon</p>
c# asp.net
[0, 9]
5,858,599
5,858,600
Count Down Timer on Resume
<p>I'm currently updating an Android application that uses an AsyncTask to do a countdown timer, which isn't stopped onPause or onStop. (The process gets cached by Android, and resumed after the activity is brought back up)</p> <p>However, I think this could be done in a better way, rather than a AsyncTask. The bigges...
java android
[1, 4]
3,464,411
3,464,412
How to make list header and footer not click able?
<p>I have a list with footer and header. I added onLongClick to delete item from list. When I press long on header it remove first item from list. When I click on last item or footer the app will crash- item out of range.</p> <blockquote> <p><strong>Can I make footer and header not clickable? or how should i count i...
java android
[1, 4]
2,578,551
2,578,552
getLocationOnScreen crashes, pls help
<p>I need to get the coordinates of my app on screen to use them as an offset for a popout.</p> <pre><code> View tempView = (View) findViewById(R.layout.main); int[] loc = {0,0}; tempView.getLocationOnScreen(loc); /// crashes here! </code></pre> <p>Tried this...
java android
[1, 4]
5,788,869
5,788,870
Javascript: Tabs in an searchsystem?
<p>Well I need a bit help here, i just dont get how i can manage to make that script dynamic. I like to press one continent, and it opens the correct land - then from the land it should open the correct region -> And from there it should open the correct city. Also it shouldn't try to open one, if this continent/land/r...
javascript jquery
[3, 5]
5,791,193
5,791,194
Check if device is dual core
<p>Is there any way to check if an Android device is dual core? (Other than <code>Runtime.availableProcessors()</code> as it only reports the correct number occasionally.)</p> <p>I need it as SoundPool doesn't work on dual cores (see <a href="http://code.google.com/p/android/issues/detail?id=17623" rel="nofollow">http...
java android
[1, 4]
65,102
65,103
Dynamic change of select values in a form, how to save them
<p>Html Code</p> <pre><code>&lt;select id = "country"&gt; &lt;option selected = "selected" value = "0"&gt;all&lt;/option&gt; &lt;option value = "1"&gt;country1&lt;/option&gt; &lt;option value = "2"&gt;country2&lt;/option&gt; &lt;option value = "3"&gt;country3&lt;/option&gt; &lt;/select&gt; &lt;select id = "region"&gt...
javascript jquery
[3, 5]
2,672,443
2,672,444
When form submission not accepted, dependent selector is messed up
<p>I have a page with a selector/drop-down menu that's dependent on another selector. In other words</p> <p>-there is selector 1, which contains some number of categories, and selector 2, which contains some number of subcategories for each category in selector 1. </p> <p>-when the page loads, selector 1 has its full...
javascript jquery
[3, 5]
362,877
362,878
jsgauge - setValue gives Illegal invocation in Chrome
<p>I'm using <a href="http://code.google.com/p/jsgauge/" rel="nofollow">jsgauge</a> initialised with:</p> <pre><code>$('#gauge').gauge('init'); </code></pre> <p>If I try to call</p> <pre><code>$('#gauge').gauge('setValue', 50); </code></pre> <p>With Chrome I get</p> <blockquote> <p>Uncaught TypeError: Illegal in...
javascript jquery
[3, 5]
720,103
720,104
Using a constant variable in C++
<p>I have a C++ file in my C++ project in Visual Studio. The C++ file has a snippet wherein some applications are run using <code>system</code></p> <pre><code>system("Files\\tx1"); system("Files\\tx2"); system("Files\\tx3"); system("Files\\tx4"); </code></pre> <p>I want to replace the "Files" constant with some cons...
c# c++
[0, 6]
1,358,968
1,358,969
Using a dynamic variable within a for statement
<p>I would like to dynamically create and reference some variables on the fly, but i'm not understanding how to.</p> <p>Here is what I would think 'should' work, but I know doesn't.</p> <pre><code>var weeks = 4; for(i=0; i&lt;weeks.length;i++){ var 'week_'+i = valueFromXML; } function wtFn (){ 'week_'+i.splic...
javascript jquery
[3, 5]
1,565,097
1,565,098
populate rows of programatically created asp:table
<p>I m creating one Empty <code>asp:Table</code> in design view.</p> <p>Pro-grammatically I am adding <code>row</code> to this <code>table</code>. This rows contains various <code>custom controls</code>. for e.g combination of (<code>text box &amp; dropDownList</code>).</p> <p>Initially I m adding all <code>control</...
c# asp.net
[0, 9]
1,901,909
1,901,910
Getting a PHP variable in jQuery
<p>So I have this:</p> <pre><code>&lt;?php echo ' &lt;script&gt; $(function(){ $("a#yeah").click(function(){ $.ajax({ url: "ajax.php?action=yeah&amp;id='.$id.'", success: function(html){ $("a#yeah").html("your cool") } }) }) })&lt;/script&gt;'; ?&...
php jquery
[2, 5]
1,174,107
1,174,108
Accesing contents of res/raw programatically (Android)
<p>I'm working on an app for Android with a few other people, and the primary content is specified by our designers as text files in a certain file format, which we then parse, process, and serve in the app. We're currently storing them in <code>res/raw</code>.</p> <p>This makes things great for the designers because...
java android
[1, 4]
1,147,117
1,147,118
Inconsistent behavior of Javascript click method on file input element
<p>I have 2 HTML elements:</p> <pre><code>&lt;input type="file" name="file" id="file"&gt; &lt;a href="#" id="link"&gt;Click me!&lt;/a&gt; </code></pre> <p>and the following jQuery code:</p> <pre><code>jQuery(document).ready(function() { $('#file').click(); $('#link').on('click',function (e) { $('#fil...
javascript jquery
[3, 5]
1,476,848
1,476,849
where to call the base class's implementation in derived class?
<p>Sometimes,deriving classes should always call through to the base implementation. where should I put the calling statement, before or after the subclass-specific code. For example:</p> <pre><code>boolean foo(T x) { super.foo(x); ....blabla...; //&lt; derived calss-specific code return true; } </code></p...
java android
[1, 4]
1,361,305
1,361,306
difference between $("#id").load and $.ajax?
<p>does anyone know what is the difference between $("#id").load and $.ajax?</p>
javascript jquery
[3, 5]
5,249,780
5,249,781
Using string format for Url.Content doesn't work
<p>I have this little foreach statement in an ASPX page: </p> <pre><code>&lt;% foreach(string path in pathList) { %&gt; &lt;img src="&lt;%=Url.Content(string.Format("~/Content/Images/{0}", path))%&gt;" /&gt; &lt;% } %&gt; </code></pre> <p>I want that to display all images using <code>Url.Content</code> from the li...
c# asp.net
[0, 9]
4,408,955
4,408,956
Jquery horizontal select list
<p>I have seen this select list:</p> <p><img src="http://i.stack.imgur.com/xnM10.png" alt=""></p> <p>any one have an Idea how can I do similar select list like this with jQuery?</p>
javascript jquery
[3, 5]
502,529
502,530
onDestroy for making data persistent and sync with the server
<p>I have a little problem to detect when the application is finished. I need to do some actions onDestroy like save the parameters into the database and make a final connection to the server.</p> <p>The problem is that if I put the code in <code>onDestroy</code> its is called when the orientation changes for example....
java android
[1, 4]
656,948
656,949
Jquery droppable live disabling/enabling
<p>I have a some draggables in a list of droppables (1 draggable per droppable li). </p> <p>When I move a draggable from one droppable to another free droppable, I want to diable the receiving droppable, and enable the droppable it is leaving from. </p> <p>In firebug the droppable class gets removed – but the functi...
javascript jquery
[3, 5]
2,064,959
2,064,960
I want to change combobox when mouse is on it or when its not
<p>in my application i need ... if a user click on combobox it will work as usual like show all the list and when mouse is not on any of item or on combobox...then that combobox should take its default position .... that mean it must compress again </p> <p>in jquery or javascript..you can post your answer ... i just ...
javascript jquery
[3, 5]
4,308,709
4,308,710
jQuery help: How can i hide divisions?
<pre><code>&lt;div id="rightside"&gt; &lt;div id="rightsideone" &gt; &lt;div class="class_color_title" &gt;&lt;/div&gt; &lt;div id="id_color_archive" &gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="rightsidetwo"&gt; &lt;div class="class_color_title" &gt;&lt;/div&gt; &lt;div id=...
javascript jquery
[3, 5]
2,278,868
2,278,869
Datagrid refresh not working
<p>I have a datagrid to display some information from a SQL table, and then a simple textbox and button to allow users to add records to the database. Problem is, when the user clicks Add, the datagrid SHOULD update, but it doesn't, any ideas? The code in question is as follows:</p> <pre><code>protected void Page_Load...
c# asp.net
[0, 9]
2,715,069
2,715,070
How to check whether GridView is Empty or not in Android?
<p>I have add buttons in <code>GridView</code> using base adapter, that buttons depend on word length when click the button then hide. After clicking all buttons the <code>GridView</code> is make empty i want to check, if <code>GridView</code> is Empty Display another buttons. I want to check whether <code>GridView</co...
java android
[1, 4]
3,743,768
3,743,769
android post https request through HtttpClient apache
<p>I've created complete method that executes https and returns an answer as a string.</p> <pre><code> public static String makeHttpsRequest(String url) throws ClientProtocolException, IOException { SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register(new Scheme("https", SSLSocketFa...
java android
[1, 4]
5,760,477
5,760,478
How to use parseDate()
<p><code>variable</code> currently outputs as <code>2013-02-05T16:30:01Z</code></p> <p>How do I use parseDate(), to change how the date is formatted?</p>
javascript jquery
[3, 5]
3,778,323
3,778,324
UpdatePanel misplaced buttons
<p>I am using an update panel inside a tag of a table using the code below. However, because of the update panel, the Log Story button appears on top of the remaining two buttons: reset and cancel. This is probably an easy fix, so how can I align all buttons in one row? Thanks!</p> <pre><code> &lt;td colspan="2" alig...
c# asp.net
[0, 9]
5,358,246
5,358,247
Finding out when both JSON requests have completed
<p>I currently have the following code:</p> <pre><code>function render(url1, url2, message) { utility.messageBoxOpen(message); $.getJSON(url1, function (items) { // Do something utility.messageBoxClose(); }); $.getJSON(url2, function (items) { // Do something }); } </code...
javascript jquery
[3, 5]
4,678,279
4,678,280
How to find the exact same element as the one on the page in an iframe
<p>So I need to find an element in an iframe that is the exact same element of that that is in the webpage (the iframe is of the same page). I need to figure out what the index is of the elements without id's with jquery so I can get the same element in an iframe. </p> <p>Edit: How can I find the index of an element?<...
javascript jquery
[3, 5]
2,172,923
2,172,924
Session Timeout Add to QueryString
<p>I have an web app in C# and after 20 mins the session times out. I can't change this because other apps use the same config.</p> <p>So I am checking to see if the Session is NULL and if it is. It redirect and adds a QueryString with the Session ID. The problem I am having is when the Session times out the SessionID...
c# asp.net
[0, 9]
2,922,421
2,922,422
Use a PHP variable inside a jquery click()?
<p>I have this, </p> <pre><code> $(document).ready(function(){ $('#link').click(function(){ var user_login = &lt;?php $base_url; ?&gt;; window.location = user_login + '/login'; }); }); </code></pre> <p>note that <code>$base_url</code> is global variable. This works in ...
php jquery
[2, 5]
5,961,595
5,961,596
Store & Return Settings for a Webpage
<p>So I am using C# ASP.NET 3.5 and I would like to add a feature to my site to turn on and off a sort of debug mode for testing purposes. </p> <p>Is there a best way to have a file or class that stores or returns simply if myDebug is on or off. It has to be accessed fast since it will be used a lot on multiple page...
c# asp.net
[0, 9]
3,041,622
3,041,623
anchor tag scrolls to top after onclick event return false doesn't work
<p>I have a click event that will not return false after I have called my ajax function i was wondering how I can get around this. I have used e.preventDefault() which works so that the url doesn't add a hash but when I use return false after my ajax function it doens't work but If I do it the other way round it works ...
javascript jquery
[3, 5]
164,293
164,294
Resetting preferences when using PreferenceScreen
<p>I am loading a PreferenceScreen from an xml file to use as the screen to configure a new event so I'm attempting to clear and reset the values of the SharedPreference this activity is using. The problem I'm encountering is that when attempting to move to using a named preference manager, it seems the preference gets...
java android
[1, 4]
610,170
610,171
Window resized when window is small and remains same even after window width is larger
<p>Sorry for the ambiguous title, wasn't sure what should I use. I want to resize the player (Javascript) on the basis of the window size in an attempt to make it responsive. The standard width is <code>620px</code>, if the width is less than that I want that the width of the components should be <code>100%</code>. I h...
javascript jquery
[3, 5]
2,631,731
2,631,732
sd.canWrite() always returns false
<p>I've set the following my android manifest:</p> <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; </code></pre> <p>I've got the following in my activity:</p> <pre><code>File sd = Environment.getExternalStorageDirectory(); boolean can_write = sd.canWrite(); </code></pre>...
java android
[1, 4]
1,857,700
1,857,701
CharSequence ArrayList to charSequence casting
<p>There is problem of class casting. Please tell me how to cast this. I want to this <code>ArrayList&lt;CharSequence&gt;</code> in my <code>CharSequence[]</code> named <code>Contacts</code>.</p> <p><code>java.lang.ClassCastException</code> (in Android):</p> <pre><code>CharSequence[] Contacts; List&lt;CharSequence&gt...
java android
[1, 4]
5,695,787
5,695,788
Newly Opened Tab kills Function Calls
<p>I have such a for loop:</p> <pre><code>for (var i = 0; i &lt; documentsCount; i++) { var e = checkBoxes[i]; if (e.checked) { var documentType = documents[i].value; if ("ConcreteType_1" == documentType) { makeAction(); } else { if (attachmentCount &gt; 0) { ...
javascript jquery
[3, 5]
4,498,302
4,498,303
jquery exclude data out of object when sending via ajax
<p>I am sending post data via ajax, and that data looks like this:</p> <pre><code>var cardProperties = { container: $("#cardContainer"), elementsWrapper: $("#cardElementsWrapperBorder"), size: 0, //0 -&gt; (90x50mm &lt;-&gt; 510px x 283px), 1-&gt; (85x55mm &lt;-&gt; 482px x 312px) position: "h", //defa...
javascript jquery
[3, 5]
5,034,920
5,034,921
How to use the addChild method of javascript to add a node to my div?
<p>Hello I have a div as follows</p> <pre><code>&lt;div id="test" class="test2"&gt; &lt;p&gt; &lt;a href=""&gt; &lt;a&gt; &lt;/p&gt; &lt;p&gt; &lt;a href=""&gt; &lt;a&gt; &lt;/p&gt; &lt;p&gt; &lt;a href=""&gt; &lt;a&gt; &lt;/p&gt; &lt;p&gt; &lt;a href=""&gt; &lt;a&gt; &lt;/p&gt; &lt;/div&gt; </code></pre> <p>(I have ...
php javascript
[2, 3]
2,615,099
2,615,100
Reading a binary file and using Response.BinaryWrite()
<p>I have an app that needs to read a PDF file from the file system and then write it out to the user. The PDF is 183KB and seems to work perfectly. When I use the code at the bottom the browser gets a file 224KB and I get a message from Acrobat Reader saying the file is damaged and cannot be repaired.</p> <p>Here i...
c# asp.net
[0, 9]
5,514,328
5,514,329
how can an create a dotnet desktop application to access SMS.db on IPhone without Jailbreak?
<p>i want to create a desktop application using c#, by which i can access the iphone device and able to read SMS.db to read the SMSs</p>
c# iphone
[0, 8]
2,021,998
2,021,999
Jquery class removed after link click, but second click is still recognized
<p>I'm having a little problem. I'm trying to use Jquery <code>load()</code> function to load in stuff on a page using AJAX. After the content has been loaded, and the link gets tapped on a second time, I need to loaded content to slideup/hide; And when the same link is clicked for the 3+ time, I need to just toggle ...
javascript jquery
[3, 5]
804,897
804,898
What is the problems of using onClick function in Javascript?
<p>Is there a particular reason programmers prefer not to use onClick function in Javascript? </p>
javascript jquery
[3, 5]
3,343,185
3,343,186
how to Highlight being read words in text to speech asp.net?
<p>I'm am building a web app and need a text to speech which highlights the text being read at the moment. I built the text to speech but don't have any idea how to tackle the highlighting of text are there any tips or functions for this problem? 10x a lot.</p>
c# asp.net
[0, 9]
1,488,030
1,488,031
jQuery delegate selector problem
<p>I'm trying to delegate click event to all first anchor tags of all now and future divs with "panels" class. I did something like that:</p> <pre><code>$('#panel').delegate('.panels a:first', 'click', function(event) [...] </code></pre> <p>but that doesn't work. It binds event only to one, first ".panels". Any hints...
javascript jquery
[3, 5]
1,872,959
1,872,960
How to populate IList<t> from DataTable or from a table in database?
<p>I have a table say, Student. I have a class 'Student'. I want to populate <code>IList&lt;Student&gt;</code> with objects of Student class from Student table in database.</p> <p>Is it possible to implement this?</p> <p>If yes then how to implement this.</p> <p>Please help.</p>
c# asp.net
[0, 9]
1,775,782
1,775,783
Can I iterate through table using JQuery and collect values in three arrays?
<p>Can I iterate through table with id="tbl" using JQuery with three columns and collect this value in three javascript arrays ? </p>
javascript jquery
[3, 5]
1,980,209
1,980,210
Passing data between webpages
<p>I have a webpage with a form on it. The heading of the form is this: </p> <pre><code> &lt;form name="sw" METHOD ="POST" ACTION="logger1.php"&gt; </code></pre> <p>After some event has happened, a javascript function submits the form like this: </p> <pre><code> document.forms["sw"].submit(); ...
php javascript
[2, 3]
338,296
338,297
Get value of checkbox in gridview template field inside jquery ui dialog
<p>I have a gridview that is dynamically bound to a datasource. It has a template field with a checkbox in it. This gridview is also inside a jQuery UI dialog which is shown/displayed when a button is pressed.</p> <p>Now, I am able to loop thru all the rows in the gridview, however when I get the checkbox control, the...
c# jquery asp.net
[0, 5, 9]
949,071
949,072
check uncheck all checkbox of checkboxlist using jquery ASP.Net
<p>i was trying to check uncheck all option of checkboxlist programmatically but my code is not working. here is snippet</p> <pre><code> $(document).ready(function () { $('#myLink').click(function () { $("INPUT[id^='chkFileds']").attr('checked', $('#chkFileds').is(':checked')); }); }); </code></pre> <...
jquery asp.net
[5, 9]
2,813,664
2,813,665
Optimal Way to Pass C# Variables to JS
<p>I have several functions that are written in JS that do error checking on my site. On one instance I want to disable two of the checks if a certain instance in the DB is true. </p> <p>I have something like this on the aspx.cs</p> <pre><code>if (this.exemptcheck == true) { // could set a variable to pass or wha...
c# javascript
[0, 3]
3,299,934
3,299,935
how to create the div on the fly in javascript / jquery in this way
<p>i have asp.net mvc 2 application where i have a scenario as follows: I want to create the parent div and in side it want to create n-number of divs with controls.like</p> <pre><code> for(j=0;j&lt;parentCount;j++) { //Create the parent div for(i=0;i&lt;childDivCount;i++) { //create child div...
javascript jquery
[3, 5]
2,092,189
2,092,190
Are the values in android app preferences saved automatically?
<p>I am trying to create preferences for an experimental app for android. However I can get the preferences to work. </p> <p>The preference that I want to use determine the display langue and use this function to retrieve it:</p> <pre><code>private String selectLang() { SharedPreferences preferences = PreferenceM...
java android
[1, 4]
4,601,982
4,601,983
Jquery call function dynamically
<p>I have a following scenario that I have to call a function on a jquery object dynamically. The code looks like this :</p> <pre><code>$('div[class]').each(function(){ var class=$(this).attr('class'); // I want to now check if that function with the name of class exists for jquery // object. I need help ...
javascript jquery
[3, 5]