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,432,207
3,432,208
IS php same as java in terms of pass by reference?
<p>As PHP borrows most of its object oriented features from java. I would like to know whether PHP and java both uses the same concept of pass by value?</p> <p>I know Java is not pass by reference.Its just that object references are passed by value. How about PHP? Does PHP support pass by reference?</p>
java php
[1, 2]
5,683,305
5,683,306
jquery hide problem
<p>I use this to toggle my div elements, and hide all them when the DOM is ready...</p> <pre><code> $('div[class*="showhide"]').hide(); $('input:image').click( function() { var nr = $(this).attr('id').substr(7,2); $('div.showhide' + nr).toggle(400); }); </code></pre> <p>I have dynamically creat...
php jquery
[2, 5]
5,630,444
5,630,445
Handling board game fields with a loop?
<p>This is my first question here. I am writing a simple game on Android (my first one). It is a board game with 64 fields. Now every time one field is clicked something needs to be done. I figured a way to do it in this way:</p> <pre><code>switch(v.getId()) { case R.id.field1: ... ... ... } </code></pre> <p>It is wo...
java android
[1, 4]
150,896
150,897
Creating an arguments and adding it to a click event
<p>Hi I'm pretty new to javascript looking for some help on creating an argument and adding it to a click event in jquery</p> <p>Heres a demo: <a href="http://jsfiddle.net/zidski/8VwAy/1/" rel="nofollow">http://jsfiddle.net/zidski/8VwAy/1/</a></p> <p>Can someone help example what I have to do?</p> <p>Thanks</p>
javascript jquery
[3, 5]
4,184,748
4,184,749
requestLocationUpdates can generate location when I want to?
<p>When the requestLocationUpdate generates a location that stands by my standarts I would like to re-generate a location after 5 minute. This is fine and possible by using the minTime parameter.</p> <p>But when the location is not stands by my standarts and I don't want to use it, can I re-generate immediately anothe...
java android
[1, 4]
5,717,182
5,717,183
Advantages of using php in frontend and java at the backend
<p>I want to use PHP in the frontend(for UI and calling services) and java at the backend(for database interaction and creating REST services) for my web application.</p> <p>I want to know the advantages and disadvantages of this kind of approach.</p>
java php
[1, 2]
56,200
56,201
'Object doesn't support this property or method' IE8 throwing jquery error
<p>I get this error on the page when I load my website on IE8,</p> <p>Message: Object doesn't support this property or method Line: 1025 Char: 5 Code: 0 URI: <a href="http://www.domain-name.com/../default/js/jquery.wt-rotator.js" rel="nofollow">http://www.domain-name.com/../default/js/jquery.wt-rotator.js</a></p> <p>...
javascript jquery
[3, 5]
5,678,896
5,678,897
How to display List items in Listview?
<p>I have a ListView in my aspx file like this:</p> <pre><code>&lt;asp:ListView ID="ListView1" runat="server"&gt;&lt;/asp:ListView&gt; </code></pre> <p>and then I have List like this:</p> <pre><code>List&lt;string&gt; mylist = new List&lt;string&gt;(); </code></pre> <p>Im trying to populate the ListView like so:</p...
c# asp.net
[0, 9]
854,247
854,248
Unable to select multiple OPTIONS in a SELECT with jquery
<p>I have an HTML select element that allows multiple selection. I am populating the options with the results of an ajax request. I am adding custom attributes to the options. In one instance, when another ajax request completes, I would like to update the multi-selected values. I have the following javascript method t...
javascript jquery
[3, 5]
3,986,215
3,986,216
asp image button refreshes page
<p>Hi My web page has lots of imageButtons, which refresh the page on click. How do I prevent this?</p> <pre><code> var imageButton = new ImageButton(); imageButton.ImageUrl = "Styles/unClicked.png"; imageButton.ID = "btn" + questionName; imageButton.OnClientClick = ("javascript:button_pressed()"); </code...
c# asp.net
[0, 9]
4,320,152
4,320,153
How to notification to android remotely?
<p>Is there anyway in android to send a code or something to a device with an app installed and cause the device to show a notification or vibrate?</p> <p>What would be the best way to do this?</p> <p>like a PC you have the ability to send a specific code to the device with the app installed and cause it to do a noti...
java android
[1, 4]
5,311,322
5,311,323
disabling ASP.NEt Validtor such that its disabled on postback
<p>I am trying to disable ASP.Net Validator such that its disabled on postback.</p> <p>I am disabling the validator on client side using</p> <pre><code>$('.c_MyValidator').each(function() { ValidatorEnable(document.getElementById($(this).attr('id')), false); }); </code></pre> <p>but when the page postbacks, my ...
asp.net javascript jquery
[9, 3, 5]
4,275,004
4,275,005
window.location.href on Safari and Chrome
<p>This does not work in Safari and Chrome:</p> <pre><code>$(".myButton").click(function(){ window.location.href('www.blahblahblah.com'); }); </code></pre> <p>what's the solution?</p>
javascript jquery
[3, 5]
742,653
742,654
Append li after current li
<p>I would like to append a li in a ul after my current selection.</p> <p>I bound a click event to the li, and when it's clicked, another li has to be added after the current.</p> <p>What I have now is:</p> <pre><code>$(this).parent().append('&lt;li&gt;test&lt;/li&gt;'); </code></pre> <p>But this just adds the li t...
javascript jquery
[3, 5]
5,105,737
5,105,738
Change opacity with javascript?
<p>I need some help figuring this out! I am trying to change the opacity of a toolbar (Class) that's at the bottom of my site. The following code works for Chrome and Firefox but when it comes to IE8... NO GO. I've tried all kinds of stuff to get this to work but to keep this post clean I'm not gonna list it all.</p> ...
javascript jquery
[3, 5]
4,187,646
4,187,647
Is there a Java equivalent of php's gzdeflate?
<p>I'm using Java to construct a url to a php site. The query string has a parameter that has been compressed using php's gzdeflate. Is there a way in Java that I can do the same thing gzdeflate does?</p>
java php
[1, 2]
3,611,846
3,611,847
How to read the head section of a web page?
<p>On my web page, when the user types in a URL in the text field, I wan to get some information about that page, like title or link information. </p> <p>Is there way to do it? On the client (JavaScript) or on the server (PHP)? And how?</p>
php javascript
[2, 3]
1,431,978
1,431,979
Menu control generated js causes Sys undefined exception in Web Forms
<p>I'm developing an ASP.NET 4 web application. When I put a Menu control into the web form, the menu causes the following code to generate just before the closing <code>&lt;/form&gt;</code> tag:</p> <pre><code> &lt;script type='text/javascript'&gt; new Sys.WebForms.Menu({ element: 'NavigationMenu', disappear...
asp.net javascript
[9, 3]
1,587,067
1,587,068
Getting complex attribute value of object
<p>Given json like this :</p> <pre><code>{ "rss": { "page": 1, "results": [{ "type": "text", "$": 10 }], "text": [{ "content": "Lorem ipsum dolor sit amet.", "author": { "name": "Cesar", "email": "cesar@evoria.com" }, }, { "content": "Tema Tis rol...
javascript jquery
[3, 5]
992,653
992,654
Method...Must Override a Superclass Method (Latest SDK)
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8697513/why-do-i-get-must-override-a-superclass-method-with-override">Why do I get “must override a superclass method” with @Override?</a> </p> </blockquote> <p>I recently installed the latest Android SDK in a n...
java android
[1, 4]
4,090,668
4,090,669
Setting active link dynamically on static navigation
<p>I have "navigation.html" (static coded navigtaion ) file loaded on multiple pages, using jQuery .load() Now I need to dynamically set active <code>&lt;li&gt;</code> for each page user clicking on. I can not use body id for specific reasons. Any other ways to do this?</p>
javascript jquery
[3, 5]
3,738,967
3,738,968
How to handle ThreadAbortException Without Specifying False for Response.End
<p>I know all about this exception, read the msdn article here <a href="http://support.microsoft.com/kb/312629/EN-US/" rel="nofollow">http://support.microsoft.com/kb/312629/EN-US/</a> but I do not know how to handle this when my boss does not want me to throw in false for the Response.End.</p> <p>Here's what I have:</...
c# asp.net
[0, 9]
4,334,479
4,334,480
Sliding div panel goes back on clicking buttons inside div panel
<p>I am using this code to slide my div from right on (button_panel) button click, everything is working fine but when I click any button inside div panel the panel goes back to its original position. It shouldnt happen because the click event is used only for button_panel. Any idea why ?</p> <pre><code>var sipPos = 0...
jquery asp.net
[5, 9]
387,681
387,682
Why does setTimeout(myFunction, 0) work, but running the function itself not work?
<p>This code should select the contents of a textarea when that textarea is selected. However, it doesn't work by itself:</p> <pre><code> $("#form").focus(function() { $("#form").select(); }); </code></pre> <p>It only works when I give it a <code>setTimeout</code> of 0, like so: </p> <pre>...
javascript jquery
[3, 5]
4,046,765
4,046,766
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,749,312
4,749,313
$(document).ready(function(){}); vs script at the bottom of page
<p>what is the difference / advantage / disadvantage of writing script at the bottom of the page and writing the script in </p> <pre><code>$(document).ready(function(){}); </code></pre>
javascript jquery
[3, 5]
1,272,078
1,272,079
Javascript confirm dialog - prevent event handler firing?
<p><br></p> <p>I've got a form with a number of fields and a few checkboxes. When the user clicks save, if a certain checkbox isn't checked, they're prompted with a 'Confirm' dialog box asking if they still want to save the form. If they click okay, the button should fire it's event handler normally, but if they click...
c# javascript asp.net
[0, 3, 9]
3,520,415
3,520,416
SharedPreferences not able to set
<p>Whats wrong with the below code</p> <p>I am not able to retrieve a simple setting saved in SharedPreferences. s1 is always "". What it the small mistake I am doing > SharedPreferences sp = getSharedPreferences("MyTestPref", 0);</p> <pre><code> String s = "Item1"; sp.edit().putString("VAL", (s)); ...
java android
[1, 4]
4,859,746
4,859,747
How to see which element was clicked first?
<p>I have a selection menu using <code>toggleClass().</code> to see which menu options were selected:</p> <pre><code>$('.img1, .img2, .text1, .tex2').click(function() { $(this).toggleClass('selected'); }); </code></pre> <p>The way my selection menu works is that if two elements have the class <code>selected</code...
javascript jquery
[3, 5]
2,453,689
2,453,690
How to create string HttpContext.GetGlobalResourceObject(@"languagetext","PersonalReportFrench") in C#?
<p>I have hardcoded value in javascript in my aspx page which is working</p> <pre><code>PersonalReportLink.innerHTML = '&lt;%=(String)HttpContext.GetGlobalResourceObject(@"languagetext","PersonalReportFrench")%&gt;'; </code></pre> <p>now I want do it dynamically what I am trying is </p> <blockquote> <p>sel_lang =...
c# javascript asp.net
[0, 3, 9]
2,439,254
2,439,255
jQuery -- How did I get here?
<p>I must have used someone's existing code as a framework, and I developed a jQuery/JavaScript application I now need to use. It works fine if invoked from within the following code but I need to pass values for <code>nnn</code> from elsewhere in the page. Because I don't understand jQuery structure well enough, my ef...
javascript jquery
[3, 5]
2,001,220
2,001,221
How to get address from latiude and longitude?
<p>I'm getting the latitude and longitude on touch event in map in android.</p> <p>I want to getting address on particular touch in map.</p> <p>How do I do this?</p>
java android
[1, 4]
3,977,271
3,977,272
Something similar to checkstyle for C++ to be working on Linux
<p>I am looking for some tool to help with C++ like <code>checkstyle</code>, which is for JAVA. It should be available for LINUX.</p> <p>Are you guys aware of any?</p>
java c++
[1, 6]
5,774,991
5,774,992
objects in a c# arraylist
<p>I'm coming from a Javascript background which possibly is a good thing although so far it's proving to be a bad thing.</p> <p>In Javascript, I have:</p> <pre><code>function doStuff(){ var temp = new Array(); temp.push(new marker("bday party")); alert(temp[0].whatsHappening); // 'bday party' would be al...
c# javascript asp.net
[0, 3, 9]
1,814,120
1,814,121
Calling a function more than once in jQuery
<p>I have a function called "go()" which needs to be called thrice on page load. Right now I have called it on the ready event of a div with class "nav". Can someone suggest how can I call the go function thrice. Adding go() calls one after other calls it only once.</p> <pre><code>$('.nav').ready(function() { go(...
javascript jquery
[3, 5]
2,059,957
2,059,958
Add class to last div when it exists
<p>I have the following HTML structure, I want to add a class to the last <code>&lt;div&gt;</code> which contains the <code>&lt;p&gt;</code> tag but only when it exists. </p> <pre><code>&lt;div id="view"&gt; &lt;div class="login"&gt; &lt;/div&gt; &lt;div&gt; &lt;p&gt;Add a class to this parent DIV&lt;/p&gt; ...
javascript jquery
[3, 5]
5,442,248
5,442,249
Asp.net Beginner
<p>i have designed a Page just like Yahoo Sign Up Page.. i want to do such that when i fill all the required fields of that page, those filled values get displayed on a textbox. i wrote a code i.e:</p> <pre><code>TextBox9.Text = TextBox1.Text; TextBox9.Text = TextBox2.Text; TextBox9.Text = TextBox3.Text; TextBox9.Tex...
c# asp.net
[0, 9]
5,789,369
5,789,370
page 140 quiz questions
<p>I'm working right now at present to make a quiz page to my friends about firefighter training. and I'm thinking about whether I can do it with javascript or should I do it with php?. where there are about 140 questions but I will start to build so there are only 10 questions to start with :)</p> <p>I never try to d...
php javascript jquery
[2, 3, 5]
999,382
999,383
Is it possible to send an arraylist as a response to jquery?
<p>Is it possible to send an arraylist as a response(from action class) to jquery?If so please give sample code</p>
java jquery
[1, 5]
3,186,909
3,186,910
How do I use IValidatableObject?
<p>I understand that <code>IValidatableObject</code> is used to validate an object in a way that let's one compare properties against each other. </p> <p>I'd still like to have attributes to validate individual properties, but I want to ignore failures on some properties in certain cases.</p> <p>Am I trying to use i...
c# asp.net
[0, 9]
3,670,153
3,670,154
How to call javascript function from code-behind
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1828566/calling-javascript-from-code-behind">Calling javascript from code behind</a> </p> </blockquote> <p>I wrote a javascript function on asp.net page. This is that..</p> <blockquote> function Alert...
javascript asp.net
[3, 9]
2,445,406
2,445,407
strip unwanted html elements by retaining its content using JQuery
<p>I have an input with lots of html content. looking for a jquery function to efficiently strip the unwanted elements(just the elements, but would need to retain the content), the elements to retain would be the ones which i specify. Also would like the function to be easily configurable to add or remove the elements ...
javascript jquery
[3, 5]
207,058
207,059
How to know how many times a button has been clicked?
<p>like I want the user to send some info only once ..actually have sent a link thru email that opens a page with text box in it ..In that user sends some info by clicking a button..now I dont want user to use that link over and over to send the info ... ..so how do i go abt it ? hope the ques isnt confusing</p>
c# asp.net
[0, 9]
1,794,649
1,794,650
Writing an ArrayList back to an XML File
<p>When my activity starts I check for an existing data file and if there isn't one I call a web service that provides a blank one to begin with. The file is read into an ArrayList collection and the user makes changes as needed. Now I am in need of advice for the best approach. </p> <p>Should I try to match the updat...
java android
[1, 4]
1,177,820
1,177,821
stop build up of clicks with jquery toggle
<p>I have a little query, when I click on the image to toggle the navigation multiple times really fastly it builds up a que of clicks that go on by themselves, its really annoying and I can't figure out how to stop it as the jquery .stop isn't working.</p> <p>here is the url</p> <p><a href="http://satbulsara.com/tes...
javascript jquery
[3, 5]
3,772,776
3,772,777
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]
234,406
234,407
jquery load specific page / query strings
<p>I have the following working code:</p> <pre><code>&lt;script&gt; $(document).ready(function(){ $('#target').click(function() { $("#success").load("/contacts/person/view/1", function(response, status, xhr) { if (status == "error") { var msg = "Sorry but there was an error: "; $("#error").html(msg + xhr.status + " " ...
javascript jquery
[3, 5]
141,816
141,817
How to open select element using jquery
<p>I have a select element as follows. i want to open it without user having to click on it.</p> <pre><code> &lt;select id="selId" class="pos_fixed"&gt; &lt;option value="volvo"&gt;Option1&lt;/option&gt; &lt;option value="saab"&gt;Option2&lt;/option&gt; &lt;option value="mercedes"&gt;Option3&lt...
javascript jquery
[3, 5]
257,906
257,907
JavaScript Scripts in dynamic content
<p>I've got a problem. I have a web-app with dynamic content (so URL in browser is always /index.php). I want to add some scripts in that, but they talk about elements that WILL BE created, for example some divs. FireBug throws me an error that element, e.g. $('#div1") is null. When I attach those scripts in loaded vie...
javascript jquery
[3, 5]
3,026,025
3,026,026
Object required?
<pre><code>$(document).ready(function(){ function openEditor(){ $("#editor").show().animate({width: 965, height: 380}, 1500); $("#editor textarea").show(); } function closeEditor(){ $("#editor").animate({width: 985, height: 1}, 1500, function(){ $("#editor").hide(); ...
javascript jquery
[3, 5]
4,603,914
4,603,915
Implementing BluetoothChat in emulator
<p>I want to implement the bluetooth chat in my Emulator while application running in Eclipse. Plz help me. . . </p> <p>Same way i also want to implement the Online chat threw the Emulator. Is it possible ? And if it is then plz give me the Sollution for it.</p> <p>Thanks.</p>
java php android
[1, 2, 4]
4,197,269
4,197,270
Zoom in and zoom out images in Javascript
<p>How do I zoom in and zoom out images, like Google Maps, using mouse scroll in Javascript? Is there any jQuery framework that supports this feature?</p>
javascript jquery
[3, 5]
3,580,660
3,580,661
Using autocomplete with on the fly elements
<p>I have autocomplete nested within a jquery that creates text elements on the fly. The autocomplete works properly on the <code>#url</code> text field on every text field I create, however, I cannot make it work on the price field. </p> <p>It only works if <code>nextUrlId</code> is not increasing every time I press ...
php javascript jquery
[2, 3, 5]
2,119,376
2,119,377
Get link href and apply it to another link jQuery
<p>I have a set of DIVs, each contains an image with an empty anchor tag wrapped around it</p> <pre><code>&lt;a href="#"&gt; Image is here &lt;/a&gt; </code></pre> <p>I then have a <strong><em>'Continue reading'</em></strong> link just before the div closes</p> <pre><code>&lt;a href="?p=453"&gt;Continue reading &lt;...
javascript jquery
[3, 5]
4,390,897
4,390,898
How to get Valuepath property of a asp.net treeview node using Jquery?
<p>Can Anyone help me with the following queries</p> <ol> <li>How to get Valuepath property of a asp.net treeview node using Jquery?</li> <li>How to insert a node in asp.net treeview control using Jquery?</li> <li>How to delete a node from asp.net treeview control using Jquery?</li> </ol> <p>I want to do these thing ...
jquery asp.net
[5, 9]
3,616,259
3,616,260
C++ equivalent of PHP's pack()
<p>My question is simple.</p> <p>Is there an equivalent of PHP's pack() and unpack() function in the C++ STL? If no, is there an alternative to achieve the same goal?</p> <p><a href="http://us.php.net/pack" rel="nofollow">http://us.php.net/pack</a></p> <p>Thanks.</p>
php c++
[2, 6]
2,268,891
2,268,892
FileNotFoundException when trying to save game
<p>When I attempt to save my android game (played via Android simulator on my Windows laptop), I get a <code>FileNotFoundException</code>. I have spent hours trying different things, but remain perplexed as the code works perfectly on my previous version not for Android.</p> <pre><code>FileOutputStream saveStream; Obj...
java android
[1, 4]
5,614,684
5,614,685
How to only clear file upload field?
<p>Here is the JSfiddle: <a href="http://jsfiddle.net/buyC9/128/" rel="nofollow">http://jsfiddle.net/buyC9/128/</a></p> <p>I want to clear only the file upload field when pressed on clear.</p> <p>My HTML:</p> <pre><code>&lt;h1&gt;Upload image:&lt;/h1&gt; &lt;input type="file" name="blog[opload]" id="blog_opload" cla...
javascript jquery
[3, 5]
4,757,270
4,757,271
How to call a function repeatedly with 5 seconds delay? (ASP.NET with C#)
<p>I have a some piece of code in Default.aspx.cs file which is written within Page_Load function like this:</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { //code stars here ... //code ends here } </code></pre> <p>What i want is that this piece of code will run continously with 5...
c# asp.net
[0, 9]
4,091,533
4,091,534
How To exporting to Excel parent and nested GridView data?
<p>I have a gridview and some nested gridview inside it, when I try to export gridview data to Excel I get downloaded entire web page, I am sure it is beacause of nested gridviews.</p> <p>How can I export parent and nested gridview data into an Excel sheet?</p> <p>I use the following code to export to excel</p> <pre...
c# asp.net
[0, 9]
2,225,863
2,225,864
match the passwords
<p>I have a piece of code for the password match. I want to verify every character with password field while typing in confirm password field.</p> <pre><code> var npass = $('#password'); var rpass = $('#confirmpassword'); if( npass.val() != rpass.val() ) { Val.errors = true; Val.showerrors =...
javascript jquery
[3, 5]
1,821,095
1,821,096
jquery clone form fields and increment id
<p>I have a block of form elements which I would like to clone and increment their ID's using jQuery clone method. I have tried a number of examples but a lot of them only clone a single field.</p> <p>My block is structured as such:</p> <pre><code>&lt;div id="clonedInput1" class="clonedInput"&gt; &lt;div&gt; &l...
javascript jquery
[3, 5]
2,838,745
2,838,746
JQuery event.stopPropagation() not working
<p>In my html I have a span of class dragHandle embedded within a li. </p> <pre><code>&lt;div class='treeView'&gt; &lt;ul class='tree'&gt; &lt;li&gt;&lt;span class="dragHandle"&gt;&lt;/span&gt;Item 1 &lt;ul&gt; &lt;li&gt;&lt;span class="dragHandle"&gt;&lt;/span&gt;Item 2 &lt;a href="#"&gt;link&lt...
javascript jquery
[3, 5]
912,112
912,113
Where are the options saved in this javascript?
<p>I am about to learn javascript and encountered <a href="http://themematcher.com/" rel="nofollow">http://themematcher.com/</a> where I have a question about their javascript. If you enter an address on the front page, you can select different on step two and this is managed by <a href="http://themematcher.com/script...
javascript jquery
[3, 5]
230,459
230,460
jQuery - click (almost!) anywhere to hide div
<p>I have a search input box that appears upon rollover of a button. Rather than having its own close button I would like to be able to click anywhere on the page to re-hide the Search.</p> <p>If I attach a click handler to the document this works fine but the problem being is that the search itself is part oofthe doc...
javascript jquery
[3, 5]
1,685,204
1,685,205
jQuery: FadeIn a selected value on click
<p>I have a selected box with 5 values. I'm trying to fadeIn inputs of what is selected in the box. For example: If input1 is selected, fade in input1 on click.</p> <p>Here is what I'm trying to do:</p> <pre><code>$(document).ready(function(){ $('.btn').click(function() { if($("#selectbox").value =...
javascript jquery
[3, 5]
2,074,643
2,074,644
Android Progress Bars (Continuously Updating)
<p>The following code updates a set of progress bars when a button is clicked. (the values are random generated test values).</p> <p>For testing purposes I would ideally like the progress bars to be continuously updating. i.e. the button is pushed and the progress bars update, wait a second or two and update again and...
java android
[1, 4]
4,173,401
4,173,402
jQuery: sharing function between page code and document.ready code
<p>I have some nice dialogues defined as such in jQuery:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { $( "#someDialog" ).dialog({ autoOpen: false, model: true, buttons: { "Do Something": function() { var cleanInput = saniti...
javascript jquery
[3, 5]
2,305,130
2,305,131
Question on popup window
<p>In my code I am using a popup window to display extra information. I also have the ability to export the information in the main window to Excel.</p> <p>The problem is, after the window pops up -> I see the info -> I close the popup window -> but if I try the export to Excel button, it throws the exception <em>"nul...
c# asp.net
[0, 9]
2,290,003
2,290,004
how to popup modal before window close?
<p>I am using a fancybox jquery plugin, what i need is to make sure before the website close a modal popup up and get us the details for submission to a form. </p> <p>Please let us know how to make sure that before close a website a modal box fires up.</p> <p>Have tried using unload method. It works when you use retu...
javascript jquery
[3, 5]
5,726,405
5,726,406
closests jquery
<pre><code>&lt;div class="panels"&gt; &lt;div&gt; &lt;h2&gt; Test &lt;/h2&gt; &lt;/div&gt; &lt;div class="inner_panel statict"&gt; Test2 &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I want so that when people click on Test, Test2 appears. If not, they don't see Test2, How...
javascript jquery
[3, 5]
2,794,962
2,794,963
How to programmatically invoke the error function in $.getJSON?
<p>In the code below, is it possible to call the error function from the else block?</p> <pre><code>$.getJSON('something.php', function(data) { if (data.error === undefined) { } else { // How can I call the error function below? } }).error(function() { // This is the error function the be calle...
javascript jquery
[3, 5]
4,850,079
4,850,080
How to send serialize form data using JQuery if the input element is an array
<p>I have this piece of code in my PHP code:</p> <pre><code>while ($row = mysqli_fetch_assoc($result)) { extract($row); echo "&lt;tr&gt;"; echo "&lt;td bgcolor='#FFFFFF'&gt;&lt;input id='bookArray[]' name='bookArray[]' type='checkbox' value='$book_id' /&gt;$book_id&lt;/td&gt;"; echo "&lt;td bgcolor='#F...
php jquery
[2, 5]
2,703,458
2,703,459
Is there anything I can do to optimize the tab loading in javascript?
<p>My colleagues have create a website and there is a webpage which contains a Tab. He Implement the tab with the following method: </p> <p>1.Load all content of the page<br> 2.Use javascript to display those group content as block and organize them into tabs.<br> 3.when user click one tab, then acitve it, and hide a...
javascript asp.net
[3, 9]
2,012,081
2,012,082
Parsing python arguments in c++ extension
<p>Is there a function similar to PyArg_ParseTuple and PyArg_ParseTupleAndKeywords, without using a variable argument list?</p> <p>I have a c++ extension that takes a long list of input arguments. Parsing them in the format of PyArg_ParseTuple and PyArg_ParseTupleAndKeywords is just ugly to look at. I'm hoping to be a...
c++ python
[6, 7]
784,713
784,714
Simple javascript Question (not simple for me)
<p>Can someone please correct my code here. It works well in most browsers but I get an error in ie7. I'm sure it's a syntax thing:</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function() { $(".testimonail-label").addClass("-webkit-animation"); $(".banner h2").addClass("-webkit-animation")...
javascript jquery
[3, 5]
2,714,968
2,714,969
Looking for a JQuery plugin that can upload images and provide a slide show for the same
<p>I am looking for a <strong>single</strong> jquery plugin that provides a slide show for uploaded images and an image upload section. </p> <p>While searching it I found many plugins but none of them could do both the tasks (<strong>uploading + slideshow</strong>). </p> <p>If anyone knows a plugin satisfying my ...
javascript jquery
[3, 5]
4,816,923
4,816,924
How do I create tags like stackoverflow?
<p>I've searched google looking for the jquery/php code to create the tags used when asking a question. Does anyone have a good reference or example of how this is done. </p> <p>I'm basically trying to create the multiple blocks allowing a user to remove them by clicking the 'X' I also need to integrate them with my...
php jquery
[2, 5]
676,547
676,548
C# Image.FromStream is that secure?
<p>after reading the data from the request as Stream i needed to convert it to Image so i used this Method:</p> <pre><code>Stream inputStream = HttpContext.Current.Request.InputStream; Image img = Image.FromStream(inputStream) </code></pre> <p>my question is, while im unable to know what was in that inputStream (file...
c# asp.net
[0, 9]
3,134,924
3,134,925
Need help with logic on how to assign the correct value to a textbox
<p>I am passing in a value to the form that I ultimately assign to a textbox using javascript. The value is a calculation based on values from another page/form. However, the textbox is editable. </p> <p>When reloading the form with the previously saved data, I don't want the value of the textbox to be overwritten w...
javascript asp.net jquery c++
[3, 9, 5, 6]
639,981
639,982
meta tag for compatibility mode
<p>I have web app with lots of JS and jQuery code and my problem is with IE9. For some reason my JS is not responding in IE9, in all other browsers is working well including IE8.</p> <p>What is happening is that when I put <code>&lt;meta http-equiv="X-UA-Compatible" content="IE=8"/&gt;</code> the JS is working in IE9 ...
php javascript jquery
[2, 3, 5]
4,621,531
4,621,532
DataTable that can be accessed from Repeater.ItemDataBound
<p>I'm new to ASP.Net, C#, and OOP in general, and I'm trying to get into the right paradigm about classes, objects, methods, etc.</p> <p>I would like to access a <code>DataTable</code> from the Repeater.ItemDataBound event. Where would I create the <code>DataTable</code> so the method can access it? I don't want the ...
c# asp.net
[0, 9]
4,081,599
4,081,600
jQuery Form Problem
<p>I have developed a form using jQuery, HTML and a C# and ASPX back-end.</p> <p>It works fine on Firefox and other Web browsers but if fails on Internet Explorer and don't know why.</p> <p>I have tryied everything.</p> <p>The URL is <a href="http://incolmotos.datacenter.arkix.com/appYamaha/Frmcontacto.aspx" rel="no...
c# jquery asp.net
[0, 5, 9]
480,698
480,699
Conditional HyperLink in GridView?
<p>I have a gridview with a hyperlink:</p> <pre><code>&lt;asp:GridView ID="gvEmployees" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-striped" GridLines="None" &gt; &lt;Columns&gt; &lt;asp:TemplateField HeaderText="Name" SortExpression="EmployeName"&gt; &lt;ItemT...
c# asp.net
[0, 9]
5,484,320
5,484,321
jQuery Click how to?
<p>I have a newsletter I am sending and when a certain link is clicked I want it to show information not shown on the page by default. I am doing this by having the URL check for URL parameters but I am doing something wrong as it does not work. Can someone help me please since I am not very good at javascript.</p> <p...
javascript jquery
[3, 5]
5,496,574
5,496,575
I need some help importing an RSS feed from Wordpress
<p>I'm trying to import the last 5 posts from a Wordpress RSS feed and show them on my site.</p> <p>I was using this, but it grabs the whole feed.</p> <pre><code>&lt;asp:DataList ID="dataNews" runat="server" DataSourceID="xmlSource" &gt; &lt;ItemTemplate&gt; &lt;a href="&lt;%# XPath("link") %&gt;"...
c# asp.net
[0, 9]
4,071,056
4,071,057
Grid view SelectedRowStyle does not apply to Template Fields
<p>Markup</p> <pre><code>&lt;asp:GridView ID="gridView_Config" runat="server" AutoGenerateColumns="False" CssClass="gridViewStyle" OnRowDataBound="gridView_Config_RowDataBound" OnSelectedIndexChanged="gridView_Config_SelectedIndexChanged"&gt; &lt;Columns&gt; &lt;asp:TemplateField ControlStyle-CssClass="ConfigProf...
c# asp.net
[0, 9]
5,548,959
5,548,960
Unable to set GridView row widths on RowDataBound
<p>My current code to attempt to set widths for the rows on a gridview is:</p> <pre><code>protected void RowDataBound(Object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Header) { foreach (DataControlFieldHeaderCell dcfhc in e.Row.Cells) ...
c# asp.net
[0, 9]
4,949,789
4,949,790
Start a thread a second time
<pre><code>thread = new Thread() { @Override public void run() { while(!requestedToExit) { SystemClock.sleep(3000); Log.d("debug", "in"); } } }; </code></pre> <p>So a button got a...
java android
[1, 4]
5,318,009
5,318,010
Javascript encoding test for url?
<p>I need to send data via a url (it's JSON'd) that I would like to encrypt using some method that I can then decrypt it using php. I was thinking base64, but I need a url safe base 64 (I'm using CI and CI removes +,= and /).</p> <p>Is there anyway to duplicate </p> <pre><code>function url_base64_encode(&amp;$str="")...
php javascript
[2, 3]
3,007,535
3,007,536
open URL with IF THEN
<p>I would like to open a website with IF THEN command in my app.</p> <p>Here is my code thus far:</p> <pre><code>if (RecognizerIntent.EXTRA_RESULTS.equals ("google")){ Executions.getCurrent().sendRedirect("http://www.google.com", "_blank"); </code></pre> <p>but it says 'executions' can not be resolved.</p> ...
java android
[1, 4]
5,744,458
5,744,459
Android simple widget
<p>I have a problem with my first android widget... I am doing like this:</p> <pre><code>public class TestwidActivity extends AppWidgetProvider { @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager,int[] appWidgetIds) { Timer timer = new Timer(); timer.scheduleAt...
java android
[1, 4]
2,025,527
2,025,528
Dynamically adding asp:button to web form using jQuery append() method
<p>I am trying to add an ASP.Net Button programatically using jQuery append method to HTML. Here is the code:</p> <pre><code>$("#form1 #container").append('&lt;div id="cool"&gt;&lt;asp:Button ID="Button1" runat="server" Text="Button" &gt;/div&gt; '); </code></pre> <p>But somehow it shows this error </p> <blockquote>...
jquery asp.net
[5, 9]
1,143,639
1,143,640
Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
<p>I am getting an : <strong>Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function</strong> error in Chrome with my script.</p> <pre><code> &lt;script type="text/javascript"&gt; function showSlidingDiv() { $("#slidingDiv").fadeToggle("slow", "linear"); } function showS...
javascript jquery
[3, 5]
2,517,517
2,517,518
edittext validation
<p>I have following small block of code to set validation on edit text when a button is pressed and display the validation message in a dialog.</p> <p><strong>Java Code</strong> </p> <pre><code>setContentView(R.layout.addnewcontacts); Button buttonSave = (Button) findViewById(R.id.buttonSave); ...
java android
[1, 4]
5,553,089
5,553,090
using php array in jquery
<p>In the below code i have an array arrSGoal. On Click of RemoveGoal i need to delete or set the value to 0 for the the id in the array. Array is in php. dont know how to use in the jquery. </p> <pre><code>&lt;SCRIPT LANGUAGE="JavaScript"&gt; $(document).ready(function() { $('a.removegoal').click(function(e) { ...
php jquery
[2, 5]
1,601,311
1,601,312
.click function .load not working
<p>I am a total novice at jQuery, but giving it a go. I cant seem to get the <code>.click</code> function below to work. Can anyone tell me were I am going wrong?</p> <pre><code>$(".news").click(function() { $("#contentarea").load("console/news.php"); }); </code></pre>
javascript jquery
[3, 5]
4,314,609
4,314,610
Jquery script not working with IE
<p>I written this script, to add JavaScript functionality to my online shop, the script works fine with Firefox and Chrome, but will not run on ie, and i am not sure why?</p> <p>i am using <code>jQuery(function( $ ){</code> instead of <code>.ready</code> due to script conflicts, i have tested the script using <code>.r...
javascript jquery
[3, 5]
2,603,547
2,603,548
RegisterStartupScript not working inside catch block
<p>I am <code>ASP.NET/C#</code>.In one of my pages where I am submitting customer information to the database I am using popup to notify the user if data was inserted, or when the form has not been filled correctly and I am also trying to show popup if something goes wrong while trying to insert.So far the popup displa...
c# asp.net
[0, 9]
997,775
997,776
How to know at page load, if view state is clear at some other event on the page?
<p>I am facing a weird problem, i am dynamically loading user control at page load with ViewState condition check, if true then load it, else not. Now the problem is on a dropdown selected index change event i set NULL to view state but the page load comes in action first and it sees that the viewstate is not null, so ...
c# asp.net
[0, 9]