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,919,193
2,919,194
Making divs constantly move randomly
<p>I have created a shooting game for children, where they have to shoot the correct number (depending on the question) when it appears. My problem is at the moment the numbers appear one at a time but I would like to make it so that the canvas is constantly populated with numbers that keep moving around like the shape...
javascript jquery
[3, 5]
5,197,837
5,197,838
How to get sent data?
<p>I send data in this way:</p> <pre><code>&lt;form method="post" enctype="text/plain action="Func"&gt; </code></pre> <p>And I have a function:</p> <pre><code>protected void Func(object sender, EventArgs e) </code></pre> <p>How Can I get data which I sent?</p>
c# asp.net
[0, 9]
4,838,653
4,838,654
Bullet-proof detection of the user's IP Address in ASP.NET
<p>I have tried fetching the ip from below mentioned methods</p> <pre><code>HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] &amp; Request.UserHostAddress &amp; Request.ServerVariables["REMOTE_ADDR"] </code></pre> <p>The problem is this that <code>Request.ServerVariables["REMOTE_ADDR"]</code> ret...
c# asp.net
[0, 9]
3,661,523
3,661,524
C++ to java, language equivalency questions
<p>I've grown quite fond of some structures in C++, and I've recently been porting over some old school projects to java, but have run into a few snags that weren't resolved by simple google searches... So I figured that I'd ask here:</p> <p>In C++ I'm quite fond of <code>Stringstream</code>, <code>vector</code>, <cod...
java c++
[1, 6]
5,012,006
5,012,007
Cycle through JS array onclick and write value to DOM
<p>So I've got this JavaScript array full of fifty YouTube video id's and a while loop that writes the first two videos to the DOM. This code is being printed using PHP in case you're wondering about the backslashes.</p> <pre><code>&lt;script type="text/javascript"&gt; var videoArr=["id1", "id2", etc.]; var i = 0; whi...
javascript jquery
[3, 5]
5,701,185
5,701,186
jQuery remove an object and replace in same spot
<p>How would I go about removing an object say from an unordered list and add it to another list while keeping its location? I know i can set the original item to hide() but then that leaves a small space where the item use to appear. Say i have a list A and B, if a user clicks on an item in A it needs to be added to...
javascript jquery
[3, 5]
3,152,334
3,152,335
Simulating touchstart and touchend events?
<p>I'm developing a jquery component which works primarily for ipad. So is there anyway to simulate 'touchstart and 'touchend' events in desktop rather than having the device itself to check the events.</p>
javascript jquery
[3, 5]
2,751,024
2,751,025
Best Practice: iPhone app communicating to php script hosted on server
<p>My iPhone app communicates with a php script hosted on a server. Hard coded into the app is the domainname.com/phpscript.php?=data</p> <p>If something happens to my domain name, the app won't work. Is there a best practice for handling this. Do you suggest a DNS or something? I'm just looking for ways to avoid a co...
php iphone
[2, 8]
2,408,489
2,408,490
How to get a collapsible bottom bar Jquery?
<p>I want to do something like this:</p> <p><a href="http://devheart.org/articles/jquery-collapsible-sidebar-layout/" rel="nofollow">http://devheart.org/articles/jquery-collapsible-sidebar-layout/</a></p> <p>But I would like the separator bar to be vertical such that the sidepanel is on the bottom and content is on t...
javascript jquery
[3, 5]
1,413,152
1,413,153
get user confirmation activation link value
<p>I'm using a confirmation link method to activation of user account in my website.when user submit the form, I send a link on user email address, with activation code. when user click on this link he redirect on my site registration page with value in address bar like <a href="http://showmycode.co.in/boobloom/regist...
php javascript
[2, 3]
4,649,017
4,649,018
How do I subscribe to a method in jQuery?
<p>I would like to do something like this.</p> <pre><code>var foo = function() { this.run = function() { alert('got'); } this.init = function() { this.run(); } this.init(); }; window.onload = function() { var f = new foo(); $(f).bind('run', function() { // this doesn't work...
javascript jquery
[3, 5]
1,782,686
1,782,687
Why right click is not triggered with .click()?
<p><a href="http://jsfiddle.net/fPhDg/2/" rel="nofollow">This</a> is a simple code :</p> <h1>HTML</h1> <pre><code>&lt;a id="link" href="#"&gt;Ciao&lt;/a&gt; </code></pre> <h1>jQuery</h1> <pre><code>$('#link').click(function () { alert("ciao"); }); </code></pre> <p>in fact, left/middle button is triggered (the ...
javascript jquery
[3, 5]
4,710,157
4,710,158
Query String Encryption problem while postback events in asp.net 3.5
<p>Query String Encryption is getting while navigating . But while postback the query string data will be decrypted . Suggest me how to keep the encrypted data as it is</p>
c# asp.net
[0, 9]
4,435,978
4,435,979
disableSelection on everything except input[type=text]
<p>I am looking to use jQuery's "disableSelection()" function because I have a lot of drag and drop on the pages but I do not want to disable selection on input boxes, just everything else. </p> <p>I have tried </p> <pre><code>$('body').disableSelection(); $('input').enableSelection(); $('body').not('input').disable...
javascript jquery
[3, 5]
3,399,392
3,399,393
how to integrate javascript in iPhone application?
<p>i am new in iphone application and i want to integrate the javascript so would you please give some information about how to implement javascript? </p>
javascript iphone
[3, 8]
4,306,390
4,306,391
a tag toUpperCase comparison
<p>Given:</p> <pre><code>&lt;div&gt; &lt;span&gt;&lt;a href="#"&gt;abc&lt;/a&gt;&lt;/span&gt; &lt;span&gt;&lt;a href="#"&gt;def&lt;/a&gt;&lt;/span&gt; &lt;/div&gt; </code></pre> <p>Is there a way to do a string comparison with toUpperCase() between a given string value and the link text (as shown above in the spa...
javascript jquery
[3, 5]
1,060,451
1,060,452
Using a String to change a Bitmap
<p>I have the following problem:</p> <pre><code> String explosion_type = this.prefs.getString("explosion_type", "ring_explosion"); BitmapFactory.Options optionsExplosion = new BitmapFactory.Options(); optionsExplosion.inPurgeable = true; this._explosionSprite = BitmapFactory.decodeResource(_context.get...
java android
[1, 4]
2,980,475
2,980,476
how to change header info in mp3 file?
<p>Below are my queries.</p> <p>1.What information is there in header field of mp3 file?</p> <p>2.If i need to change like bitrate,length,is it possible to change programatically.</p> <p>3.Is it necessary that all mp3 contains id3 tag?</p> <p>4.is there anyway that if i change some info in mp3 file it cant be playe...
java android
[1, 4]
1,778,437
1,778,438
How to Use ScriptManager.RegisterClientScriptBlock from Javascript
<p>I want to use </p> <pre><code>ScriptManager.RegisterClientScriptBlock(ctrlName, Page.GetType(), "msg", _script, false) </code></pre> <p>from Javascript function in</p> <pre><code>OnClientClick="CheckMaxLength(this);" </code></pre> <p>of TextBox. I want to show my custome PopUp.I am able to use it in .cs but I wa...
javascript asp.net
[3, 9]
3,049,379
3,049,380
Conflicting javascript
<p>I've got a bunch of jquery/javascript running on a new site I'm building, and of course I've run into a conflict. I can't figure out where it's coming from as I'm not that great with js. There is a sticky relocate function that's supposed to show a navigation bar when you start scrolling the page but since I've adde...
javascript jquery
[3, 5]
1,691,361
1,691,362
problem with Jquery equivalent to javascript createElement
<p>I'm trying to recreate the following code with jQuery:</p> <pre><code> var node = document.createElement("div"); node.innerHTML = "DynaColumn"; node.className = "ui-state-default ui-corner-all"; return node; </code></pre> <p>this is the code I'm trying to get to work:</p> <pre><cod...
javascript jquery
[3, 5]
2,699,684
2,699,685
How to remove the end tag from a HTML string using JS
<p>I want to remove the end tag of a given HTML string. I get the HTML string from the document like so:</p> <pre><code>var front = $('&lt;div&gt;').append($(clean_copy).contents().remove().end()).remove().html(); </code></pre> <p>I now want to remove the <code>&lt;/div&gt;</code> from the below:</p> <pre><code>&lt;...
javascript jquery
[3, 5]
8,302
8,303
using a selection box to change font with jquery
<p>I have 3 text input boxes that i want to allow a user to change the font of, but im not sure how to do this.</p> <p>This is the code for my preview boxes:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function() { $(".line1").keyup(function() { var word=$(this).val(); $(".line_preview1").h...
javascript jquery
[3, 5]
5,808,969
5,808,970
How to create a dynamic tree like structure
<p>I have the details of the members of my family in a database. I want to generate a web page with a family tree generated dynamically by reading from the table.</p> <p>My table schema looks like this</p> <pre><code>id(int) name father(int) mother(int) spouse(int) dateOfBirth </code></pre> <p>where <code>fathe...
php javascript
[2, 3]
3,105,450
3,105,451
how to simplify my code using jquery?
<p>I want append <code>&lt;span&gt;&lt;/span&gt;</code> tag in my every <code>&lt;a&gt;</code> tag:</p> <p><strong>now:</strong></p> <pre><code>&lt;a href=#&gt;aaa&lt;/a&gt; &lt;a href=#&gt;bbb&lt;/a&gt; &lt;a href=#&gt;ccc&lt;/a&gt; </code></pre> <p><strong>I want:</strong></p> <pre><code>&lt;a href=#&gt;&lt;span&...
javascript jquery
[3, 5]
5,988,622
5,988,623
Is there any way to automate triggering a custom event?
<p>On my pages I have several different elements that are showing different representations of the underlying data. I have AJAX that will update the data through a PHP page, but I then want to trigger an update of all the different elements so they reflect the changes.</p> <p>I'm thinking of binding the independent e...
php javascript jquery
[2, 3, 5]
704,551
704,552
How to show text area pop on radio button click?
<p>I want to do something like <a href="http://www.eurekaforbes.com/our-service.aspx" rel="nofollow">this website</a>.</p> <p>In this if you will click on the poor option (radio button):</p> <p><img src="http://i.stack.imgur.com/QRpjk.png" alt="enter image description here"></p> <p>A text area will appear in a light...
javascript jquery
[3, 5]
1,577,944
1,577,945
Jquery find all except
<p>I have following HTML:</p> <pre><code>&lt;div id="123" class="test"&gt; &lt;div class="testMessage"&gt;Foo&lt;/div&gt; &lt;div&gt;&lt;div class="testDate"&gt;2010&lt;/div&gt;&lt;/div&gt; &lt;div id="127" class="test"&gt; &lt;div class="testMessage"&gt;Bar&lt;/div&gt; &lt;div&gt;&lt;div class="t...
javascript jquery
[3, 5]
346,566
346,567
Find parent element
<p>I do not find easy way to find parent element of the element. "Parent" word in this situation is not correct to describe element which I need to find using JS. I will try to show example.</p> <p>I need to find "collapser1" A element if collapser4 A element is clicked. How to do that?</p> <pre><code>&lt;ul id="pdfb...
javascript jquery
[3, 5]
2,235,503
2,235,504
animating an object after fling gesutre
<p>I have a basic object that responds to flings on the screen. my problem i am not sure how to animate the image I am flinging on the screen. basically I have a static image of a football, that I want to animate as its flung across the screen. here is a snippet of my code where I define my image to fling:</p> <pre><c...
java android
[1, 4]
4,377,452
4,377,453
invoke javascript function on tabindex change
<p>I want have link on click of that link a javascript function is called. Now i want to invoke that function using tab key. so when the focus goes to the link using tab key, the javascript function should be called.</p> <p>How to implement this?</p>
javascript asp.net
[3, 9]
922,698
922,699
Getting the remote address from a <script> tag
<p>I have a page with a tag in it pointing to a php script that generates javascript.</p> <p>In this php script, I verify the remote ip to see if this ip has the right to use the script.</p> <p>My question is: how do I get the IP from the machine that embeds the tag?</p> <p>In $_SERVER, I have REMOTE_ADDR which is...
php javascript
[2, 3]
3,498,564
3,498,565
declaring a variable blocks my code
<p>is something wrong here? declaring those variables stops the execution of my code :(</p> <pre><code>var color = $('fieldset input[type=checkbox]').data("color"); if(color === orange){var bgy = '-1'} else{var bgy = '-37'}; </code></pre> <p>If you need more info please ask me :)</p>
javascript jquery
[3, 5]
806,364
806,365
Bin directory in ASP.NET Website
<p>I am creating a web page using Visual studio. and I added some references which works perfectly but there is no Bin Directory in the project directory. What Should I do?</p>
c# asp.net
[0, 9]
2,220,723
2,220,724
Asp.Net usercontrol codebehind: reference nested class from another usercontrol
<p>Edit: apparently it was a hickup in VS intellisense. Costed me quite some time, sight. Thanks for the help anyway.</p> <p>What I'm trying to do is to reference an inner class from one codebehind to the other, I've managed to be able to reference the outer class using <code>@ reference</code> and <code>classname</co...
c# asp.net
[0, 9]
3,515,471
3,515,472
sort javascript array with word_number values
<p>how do I sort an array</p> <pre><code>var arr = new Array("word_12", "word_59", "word_17"); </code></pre> <p>so that I get</p> <pre><code>["word_12", "word_17", "word_59"] </code></pre> <p>Thanks!</p>
javascript jquery
[3, 5]
4,803,171
4,803,172
Reverting back to previous state - drag and drop
<p>After dragging/dropping multiple I'd like the option to cancel so that all of the divs revert back to original state and position when pressed.</p> <p><em>HTML:</em></p> <pre><code>&lt;div class="connected"&gt; &lt;div class="myDivs"&gt;Hello 01&lt;/div&gt; &lt;div class="myDivs"&gt;Hello 02&lt;/div&gt; ...
javascript jquery
[3, 5]
1,676,044
1,676,045
How to define ChekBoxes in Java?
<p>I face a problem in defining the <code>CheckBox</code> in Java because I dont want to define it in a XML layout file.</p> <p>I get the count of a <code>HashTable</code>. I want to display CheckBoxes according to the number of that HashTable count.</p> <p>Here is the code</p> <pre><code>public class SHO extends Ac...
java android
[1, 4]
1,942,130
1,942,131
Row_DataBound or Row_Created event in GridView
<p>I have doubt about the <code>Row_DataBound</code> and <code>Row_Created</code> events :</p> <ol> <li><p>What is the difference between <code>Row_DataBound</code> and <code>Row_Created</code> events?</p></li> <li><p>What are the parameters for choosing between these two events?</p></li> </ol>
c# asp.net
[0, 9]
3,628,001
3,628,002
Why is test.elem undefined in this scenario?
<p>The title gives the error I get when I use the following:</p> <pre><code>var test = { elem : undefined, init : function() { console.log("test.init() fired"); elem = $("#id"); console.log("elem assigned to jQuery object"); elem.click(function() { console.log("elem clicked"); }); ...
javascript jquery
[3, 5]
1,619,622
1,619,623
Binding Dropdown List From Code-Behind
<p>I would like to display all my category names in a drop down menu in the latest .net framework. So far, all I have is:</p> <pre><code>&lt;asp:DropDownList ID="DDCategories" runat="server"&gt; &lt;asp:ListItem&gt; &lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; </code></pre> <p>Now I need in Code-Behind to ...
c# asp.net
[0, 9]
4,162,880
4,162,881
focus on user control
<p>I want to focus on a user control but it is giving me errors</p> <pre><code>function getFocus() { document.getElementById('&lt;%myUserControl.ClientID%&gt;').focus() } &lt;a href.... onclick="getFocus()&gt;Click&lt;/a&gt; </code></pre> <p>How can i do this?</p> <p>Thank you</p>
c# asp.net
[0, 9]
1,266,742
1,266,743
Clear input field when data is dragged and dropped
<p>I wrote a function that automatically clears the preset value of an input field when the user focusses on it, and puts it back on blur if the user does not input any value.</p> <p>so the value of <code>&lt;input type="text" value="example" /&gt;</code> would be set to nothing on focus.</p> <p>The problem I am faci...
javascript jquery
[3, 5]
2,917,978
2,917,979
ViewState list of objects c#
<p>hallo iam getting this error message when the page is load,</p> <p>Type 'messageBox' in Assembly 'App_Code.e9hyffkh, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.</p> <p>iam new in asp.net , and i can find what iam going worng!</p> <p>heres my code:</p> <pre><code>public p...
c# asp.net
[0, 9]
1,718,062
1,718,063
What is the java Vector.element() C# equivalent
<p>Here is the java code i incompletely tried to translate</p> <pre><code> static Enumeration enumerate() { Vector list = new Vector(); Enumeration e = cache.keys(); while (e.hasMoreElements()) { Vector v = (Vector) cache.get(e.nextElement()); for (int i = 0; i &lt; v.size(); i...
c# java
[0, 1]
4,784,979
4,784,980
session in c# and ASP.net
<p>I've been trying to pass the course_code session value as a parameter but it gives nothing - the page just appears to be blank. I've tried to print the session course_code to check whether it was saved correctly and it was printed correctly. </p> <p>Also, I'm sure that the SQL stored procedure is written correctly...
c# asp.net
[0, 9]
4,920,186
4,920,187
How to extend jQuery's ajax
<p>This is rather a syntax question I am going to explain it jQuery's ajax functionality.</p> <p>Let's say I want to control <code>dataType</code> of all ajax request according to <code>url</code>. For example url's with parameter <code>&amp;parseJSON=true</code> should have a dataType of <code>'JSON'</code> automatic...
javascript jquery
[3, 5]
5,159,165
5,159,166
jQuery slideToggle - callback function on slideUp action only
<p>Does anyone know a good way to fire a callback function on the slideUp event only during a slideToggle? The default callback function fires on both slideUp and slideDown.</p> <p>Thanks!</p>
javascript jquery
[3, 5]
4,359,640
4,359,641
What is meaning of numbers to Sending in ajax function?
<p>I wrote basicly ajax function in my project and then i opened firebug and i saw this number I want to know what is number is sending or what is meaning of number. Thanks you very much.</p> <p><img src="http://i.stack.imgur.com/ARPFg.jpg" alt="enter image description here"></p> <p>Example Code : </p> <pre><code>$(...
php jquery
[2, 5]
3,203,797
3,203,798
In ASP.NET, what's a good strategy for maintaining dynamically generated controls across Postbacks?
<p>Although <a href="http://www.4guysfromrolla.com/articles/092904-1.aspx" rel="nofollow">this</a> is a great article on handling dynamic controls in ASP.NET, I have an application where I cannot generate controls on PageLoad or PageInit. They are generated much later, after the user has input data. Is there a good str...
c# asp.net
[0, 9]
4,241,582
4,241,583
Need help regarding RSS Feed and wordpress
<p>i need to read rss feed from wordpress url. so here is the url <a href="http://bbaremancareers.wordpress.com/feed/" rel="nofollow">http://bbaremancareers.wordpress.com/feed/</a></p> <p>i just need to pick up title,content,publish date,title hyperlink url and media file url etc.</p> <p>i just could fetch only title...
c# asp.net
[0, 9]
4,437,325
4,437,326
jquery: Cant unbind hover event?
<p>My continue button has a hover event that tells you why it's disabled. The only problem is I can't remove the hover event when I enable the button....</p> <p><strong>this works</strong></p> <pre><code>function disable_continue_button(){ $('#frame_2 &gt; .next') .addClass('faded tt') .hover(func...
javascript jquery
[3, 5]
3,666,169
3,666,170
User controls (listview, gridview etc) or Use custom made tables or lists
<p>I'm starting a project in ASP.net, but since I first started with asp.net mvc. It's a bit weird with all the user controls you can just drag on the page and bind it with a datasource.</p> <p>Is it bad practice to simply make a public variable on the code behind file and loop through it with a for-each like in asp.n...
c# asp.net
[0, 9]
172,278
172,279
Trouble figuring out jquery selector to use
<p>I have the following code, basically:</p> <pre><code>&lt;form&gt; &lt;p class="comment-form-comment"&gt; &lt;textarea id="comment" &gt;&lt;/textarea&gt; &lt;/p&gt; &lt;p class="form-submit" style="display: none;"&gt;&lt;input id="submit" value="submit" type="submit"&gt;&lt;/input&gt; &lt;/p&gt; &lt;/form&gt; <...
javascript jquery
[3, 5]
280,334
280,335
Http Client while using mobile data
<p>I'm trying to make a get request to a servlet but I keep getting a time out exception, while using the mobile data connection</p> <blockquote> <p>java.net.SocketException: The operation timed out</p> </blockquote> <p>When using the phone mobile data connection, I can surf the web on the browser so its not my dat...
java android
[1, 4]
1,518,064
1,518,065
How to check if a file is already exists or not in dropbox?
<p>I am uploading a file in dropbox by this method:</p> <pre><code>public void upload() { FileInputStream inputStream = null; try { File file = new File(Environment.getExternalStorageDirectory() .toString() + "/write.txt"); inputStream = new FileInputStream(...
java android
[1, 4]
3,266,008
3,266,009
jQuery recursive fade-in function
<p>I'm trying to animate a logo. The markup looks like this:</p> <pre><code>&lt;div id="logo"&gt; &lt;h1&gt; &lt;span&gt;A&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;span&gt;t&lt;/span&gt;&lt;span&gt;o&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;o&lt;/span&gt;&lt;span&gt;R&lt...
javascript jquery
[3, 5]
4,130,236
4,130,237
JQuery popup.....Uncaught TypeError: Object [object Object] has no method 'dialog'
<p>I have been searching for the solution to this problem for a few days now and have gained a few grey hairs in the process. I am echoing a JQuery popup script in php:</p> <pre><code> echo '&lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /&gt; &lt;script src="ht...
php javascript
[2, 3]
2,980,590
2,980,591
Is there a compact equivalent to Python range() in C++/STL
<p>How can I do the equivalent of the following using C++/STL? I want to fill a <code>std::vector</code> with a range of values [min, max).</p> <pre><code># Python &gt;&gt;&gt; x = range(0, 10) &gt;&gt;&gt; x [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] </code></pre> <p>I suppose I could use <code>std::generate_n</code> and provid...
c++ python
[6, 7]
5,175,649
5,175,650
how to detect change for a radio button list
<pre><code>&lt;ul id='theList'&gt; &lt;li&gt;&lt;input type='radio' name='foo' val='1' /&gt;&lt;/li&gt; &lt;li&gt;&lt;input type='radio' name='foo' val='2' /&gt;&lt;/li&gt; &lt;li&gt;&lt;input type='radio' name='foo' val='3' /&gt;&lt;/li&gt; &lt;li&gt;&lt;input type='radio' name='foo' val='4' /&gt;&lt;/li&gt; &lt;li&gt...
javascript jquery
[3, 5]
3,733,173
3,733,174
alert msg onclick event
<p>I am trying to invoke a button click from inside a .cshtml file:</p> <pre><code> &lt;input type="button" id="ImageHosting" value="To Image Hosting" onclick="ImageHosting_Click()"/&gt; </code></pre> <p>This is the .js file:</p> <pre><code> function ImageHosting_Click() { $("#ImageHosting").click(f...
javascript jquery
[3, 5]
688,542
688,543
asp.net convert asp.net page into Page variable
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/376404/load-an-asp-net-2-0-aspx-page-using-system-reflection">Load an ASP.NET 2.0 aspx page using System.Reflection?</a> </p> </blockquote> <p>In the following code, I iterate through my project and get file pat...
c# asp.net
[0, 9]
79,998
79,999
Understanding crossdomain.xml and malicious scripting?
<p>Trying to get my head around why only javascript code can only call back to the same domain the page is hosted from and I understand that you do not want the code sending personal details etc to another domain (could be a malicious site).</p> <p>However, if the other domain puts a crossDomain.xml file on their serv...
javascript jquery
[3, 5]
1,845,643
1,845,644
Filtering Content using jQuery
<p>I'm attempting to create a filterable photo gallery using jQuery and multiple classes. I have some code set up, but it doesn't seem to work. Can anybody give me any insight on how to fix this function?</p> <pre><code> $(document).ready(function(){ $('#sorter a').click(function(e){ var sortName = $(...
javascript jquery
[3, 5]
5,374,649
5,374,650
Wrapping try-catch that fetches from internet, in a while
<p>So I have a try-catch statement in a java program that fetches things from the internet. How do I handle timeouts? Would I just wrap the try catch in a while statement and after some number of failed iterations tell the user to try later?</p>
java android
[1, 4]
1,251,536
1,251,537
If I click on button in quick succession, it causes text selection
<p>Below I have a checkbox which is styled like a button:</p> <pre><code> echo '&lt;p&gt;'; foreach($options as $indivOption) { echo '&lt;div id="ck-button"&gt;&lt;label&gt;&lt;input type="checkbox" name="options[]" id="option-' . $indivOption . '" value="' . $indivOption . '" /&gt;&lt;span&gt;' . $indivOption ....
javascript jquery
[3, 5]
2,742,181
2,742,182
How to create android onitemclick for layout change process?
<p>i've created list in first layout from server, and now i want to go to next layout when i choose the content in current layout it'll go through with that content using onlistitemclick? how can i use this?</p>
java android
[1, 4]
3,486,446
3,486,447
How can I get image from url in PHP or Jquery or in both?
<p>Can anybody tell me, how can I get image for a particular site by its url only? As that is done on the google search page. I have searched web but I didn't get any satisfactory ans.</p>
php javascript jquery
[2, 3, 5]
1,693,185
1,693,186
what is it my code problem?
<pre><code>package com.basic.android; import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class androidbasics extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(sa...
java android
[1, 4]
4,715,245
4,715,246
How to detect if the brower is loading
<p>I am trying to show a loading image when a users click a link that will show a large image in the same page.</p> <p>I was wondering what's best way to detect image loading WHILE the page has been loaded already (so window.onload() doesn't work).</p> <p>Thanks for any help!!!!</p>
javascript jquery
[3, 5]
2,588,659
2,588,660
Error when calling a function inside jQuery plugin
<p>I am developing a jQuery plugin in which, when i click a pause link I need to call a function inside plugin. My code is like this </p> <pre><code>$("#pauseAnimation").click(function () { $.fn.cjImageVideoPreviewer().pauseAnimation(); }) </code></pre> <p>and function to be called is this</p> <pre><code>(function (...
javascript jquery
[3, 5]
1,261,018
1,261,019
Binding a php variable with Jquery slider
<p>I have two JQuery sliders, value of "Second_Slider" gets updated and a div named "amount2" as well as it should.</p> <p>Now i want to update an php variable to the value of "Second_Slider" also. how can i achieve this?</p> <pre><code> $( "#Slider" ).bind( "slide", function(event, ui) { $("#Second_Slider").sl...
php javascript jquery
[2, 3, 5]
2,181,739
2,181,740
The column header Hide isn't being displayed in firefox in an iis application
<pre><code>&lt;TABLE align='center' BORDER=1 CELLPADDING=4 CELLSPACING=0 CLASS=cTable&gt; &lt;TR&gt; &lt;th CLASS=TH1 align='center' valign='top' colspan='15'&gt;Input Summary&lt;/th&gt; &lt;th CLASS=TH1 align='center' valign='top'&gt; &lt;style type="text/css"&gt; .myLayersClass { p...
java javascript
[1, 3]
768,594
768,595
jquery target multiple title attributes
<p>I have the below code which works fine.</p> <pre><code> &lt;div id="testdiv"&gt;&lt;/div&gt; &lt;table&gt; &lt;tr&gt; &lt;td class="test" title="two"&gt;2&lt;/td&gt; &lt;td class="test" title="one"&gt;1&lt;/td&gt; &lt;td class="test" title="three"&gt;3&lt;/td&gt; ...
javascript jquery
[3, 5]
3,632,135
3,632,136
Prevent user to see directly PHP url in Javascript
<p>I want to prevent user to see directly PHP URL in Javascript. Example :</p> <pre><code>{ $.ajax( { type: "POST", url: "search.php", data: dataString, cache: false, success: function(html) { $("#display").html(html).show(); } }); }return false; </code></pre> <p>Is it possible or ...
php javascript
[2, 3]
905,473
905,474
Android Canvas.DrawBitmap without blurring/AntiAliasing?
<p>I'm trying to make an android game using sprites, (or very pixelated characters, backgrounds etc.). I draw them on the canvas like so...</p> <p><code>matrix.preScale(xrat,yrat);</code></p> <p><code>canvas.drawBitmap(img, matrix, null);</code></p> <p>Where img is the Bitmap and the xrat and yrat are the scales.</p...
java android
[1, 4]
5,522,792
5,522,793
Picking a server control depending on environment
<p>I have an aspx page that references a server control from an assembly and lives in Sharepoint (knowledge/experience in Sharepoint is not required to answer this question, i'm simply giving you context). The implementation looks something like this:</p> <pre><code>&lt;%@ Register TagPrefix="wc" Assembly="Test.Contro...
c# asp.net
[0, 9]
1,421,582
1,421,583
Javascript appendChild()
<p>Hey I am trying to appendChild() two consecutive div's but what I am expecting as result is for them to be side by side, but they are one on top of the other like so:</p> <pre><code>1st div 2nd div </code></pre> <p>instead of 1st div 2nd div</p> <pre><code>var addBudContainer = document.createElement("div"); addB...
javascript jquery
[3, 5]
593,763
593,764
How to send Push Notification Message to iPhone using Java?
<p>I want to send a Push Notification message to particular iPhone device using Java.</p> <p>I dont have any idea how to do this.</p> <p>I have googled on this, they have suggested to use "PayLoad" class but not getting this class from any jar files.</p> <p>Please anybody can guide me to send the push notification m...
java iphone
[1, 8]
2,778,805
2,778,806
jquery change div shape on click of button
<p>i am showing user uploaded image into a div. there are four buttons for square, landscape, portrait and panoramic shape of div. user can change shape of div and according to div shape image set automatically. but i did not found any jquery or anything related to shapes. i want when user will click on square button d...
php jquery
[2, 5]
2,967,473
2,967,474
jquery: Exiting function
<p>I am doing animation in jquery. I have a looping picture moving from left to right of the webpage. I used following code:</p> <pre><code> function run() { $("#run").animate({ left: "980px" }, 250).animate({ left: "-600px" }, 0); setTimeout("run()", 250); } </code></pre> <p>I want to stop the loop(OR break th...
javascript jquery
[3, 5]
1,997,424
1,997,425
Insert bullet and newline into database
<p>is there a way, using gridview let users to input newlines and bullets in a cell? Since there's no Bullet key on the keyboard, probably I can assign shortcut?</p> <p>Another way I'm thinking is allowing users to insert asteriks, but when I'm going to build report, I'm going to replace asteriks with asci bullet.</p>...
c# asp.net
[0, 9]
2,788,495
2,788,496
How can i get a button using its ID in a user control in ASP.NET?
<p>I have made a user control (.ascx) consisting of a div containing six buttons. It has a string attribute "selectedButton" containing the value of the ID of one of the buttons.</p> <p>What i would like to do is to be able to change the backcolor of the button whose ID corresponds to the selectedButton attribute when...
c# asp.net
[0, 9]
5,945,778
5,945,779
Jquery - how to explode arrays value
<p>Is it possible to explode datas in array according to a charachter?</p> <pre><code>.each(myArr, function(key, value) { }); </code></pre> <p>i take array like that </p> <p>value is the values of array . Can explode value with "-" ?</p>
javascript jquery
[3, 5]
5,628,820
5,628,821
Blue tooth Chat
<p>Is that possible to add multiple sockets for google's android Bluetooth Chat Application, so as to enable to communication between more than one android Bluetooth device for chat ?</p>
java android
[1, 4]
1,068,077
1,068,078
window.location with relative url
<p>I am trying to use window.location to redirect to a relative url</p> <p>this variable</p> <pre><code>var redirect = $(this).attr('title'); </code></pre> <p>has this value</p> <pre><code>../../000_Movies/_assets/playlist.html </code></pre> <p>this wont redirect</p> <pre><code>window.location = redirect; </code>...
javascript jquery
[3, 5]
1,280,659
1,280,660
How to restart the setInterval in jquery so that when the user Click the counter restarts?
<p>How to restart the setInterval in jquery so that when the user Click the counter restarts?</p> <p>So i created a tabs section so that it will cycle to the next tab after 12 sec. However, I would like to restart time if the user clicks on a desired tab so that the user gets a new set of 12 sec.</p> <p>I'm a novice ...
javascript jquery
[3, 5]
2,136,689
2,136,690
Replaced Inefficient Javascript with JQuery with language errors
<p>In the process of trying to be more efficient I have been learning a bit of JQuery, but obviously don't know enough.</p> <p>I need a script that will get each checked function $(':checked').each(function() . Then if a hidden field id (combined with this fields alt tag's) title is not equal to this check boxes title...
php javascript jquery
[2, 3, 5]
1,303,171
1,303,172
Get content inside script as text
<p>I would like to print the content of a script tag is that possible with jquery?</p> <p>index.html</p> <pre><code>&lt;script type="text/javascript"&gt; function sendRequest(uri, handler) { } &lt;/script&gt; </code></pre> <p>Code</p> <pre><code>alert($("script")[0].???); </code></pre> <p>result</p>...
javascript jquery
[3, 5]
159,540
159,541
Action Attribute
<p>I want to send form data to aspx.cs page view below codes.</p> <p>But this error generated:Object reference not set to an instance of an object.</p> <p>Please guide me.</p> <pre><code> &lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %&gt; &lt;!DOCTYPE html P...
c# asp.net
[0, 9]
5,228,349
5,228,350
Whats the best way to deal with pages loaded via browser history in asp .net?
<p>I have an app which is very database and user intensive. The users are very keen on the browser history buttons for navigation.</p> <p>Is there a way that I can absolutely guarantee that the page will reload if a user picks something out of their browser history? </p> <p>What I regularly see is that a copy of the ...
c# asp.net
[0, 9]
3,694,429
3,694,430
Changing the UI of a webform when the browser language changes
<p>I need to change the location of some controls of a webform when the page is opened in a different language. That is I simply need to Localize the GUI of the Webform too along with the text of the webform.</p>
c# asp.net
[0, 9]
2,485,605
2,485,606
Use javascript to determine if an ASP.NET page is a postback
<p>Is it possible to determine if an ASP.NET page is a postback from javascript? So basically a javascript equivalent of C# Page.IsPostBack.</p> <p>Thanks.</p>
asp.net javascript
[9, 3]
4,149,913
4,149,914
Get the Value of form element - without clicking on submit button
<p>I have a form say i have selected Volva from drop down box . So without clicking on submit button when i move to next field that is <code>&lt;input&gt;</code> the value that is volva should get store in php variable </p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;form action=""&gt; &lt;select name="cars"&gt; &lt;op...
php javascript
[2, 3]
3,267,162
3,267,163
Jquery: How to window.open() with no valid href?
<p>I have web page on which I display a lot of summary information. I would like to be able to, by clicking a right button or link, to open up a new window and display the underlying data.</p> <p>For many reasons I cannot request the underlying data again from the server once the summary information page is generated<...
javascript jquery
[3, 5]
1,250,834
1,250,835
Grab URL parameters to maintain search form options using jQuery or javascript
<p>I have a set of search filters that set a URL string (for further processing). As the page reloads to show the results, the options selected by the user are lost. I was wondering if it's possible to use jquery to capture the parameters from the url and 'remember' what options had been selected?</p> <p>For example, ...
javascript jquery
[3, 5]
2,150,315
2,150,316
calling a method from a python interpreter
<p>per Voo's advice on this thread:</p> <p><a href="http://stackoverflow.com/questions/7033612/how-can-i-hook-into-python-from-c-when-it-executes-a-function-my-goal-is-to">How can I &quot;hook into&quot; Python from C++ when it executes a function? My goal is to profile</a></p> <p>I have opened up a new thread for a ...
c++ python
[6, 7]
2,294,214
2,294,215
Change Input to Upper Case
<p>JS: </p> <pre><code>&lt;script type="text/css"&gt; $(function() { $('#upper').keyup(function() { this.value = this.value.toUpperCase(); }); }); &lt;/script&gt; </code></pre> <p><strong>HTML</strong></p> <pre><code>&lt;div id="search"&gt; &lt;input type="radio" name="table" class="table" va...
javascript jquery
[3, 5]
4,623,138
4,623,139
Javascript on wizard step change
<p>I have asp.net wizard control with 3 steps. All steps have user controls. in second step user control i have certain javascript function which i want to execute but when i move from first to second step i always get function undefined.</p> <p>Currently i am doing </p> <p>in page load of user control.</p> <pre><co...
javascript asp.net
[3, 9]
1,764,226
1,764,227
Defining multiple instances of a jquery ui widget on a single page
<p>I am developing a website where I use a custom build jQuery widget to load data into multiple divs.</p> <p><strong>This is the code for the widget:</strong></p> <pre><code>(function ($, window, document, undefined) { $.widget ("my.contentloader", { options: { loading_message: true ...
javascript jquery
[3, 5]