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,513,245
3,513,246
Shared Preferences Between Activities
<p>Still fairly new to android, wondered if anyone can help...</p> <p>I have an App that has multiple activities. Each Activity has a shared preferences file to save strings for that activity. Each preference has its own name.</p> <p>However, i want any activity to be able to read all preferences....</p> <p>Am i rig...
java android
[1, 4]
2,191,574
2,191,575
using php within setTimeout in javascript
<p>I have an issue using my php code within the javascript function setTimeout. The code is in a php file, but instead of acting like it should and waiting the five minutes to send the user to the index page of my website, it just does it instantly. Any ideas?</p> <p>Here's the code:</p> <pre><code>&lt;script&gt; s...
php javascript
[2, 3]
1,277,123
1,277,124
unterminated string constant javascript error when opening tiny box
<p>I am opening a url using tiny box by following code</p> <pre><code> function openAddBranchPopup(siteurl) { TINY.box.show(siteurl+'/pages/dept.php',1,780,'',1); } </code></pre> <p>but in internet explorer 8 and 9, i am getting "unterminated string constant" error. Please help.</p> <p>Thanks</p>
javascript jquery
[3, 5]
3,655,619
3,655,620
how to get file without as it is
<p>Hi I am trying to read a html file and store its content but when I am converting it I am Getting all the special characters are converted to Question mark.</p> <p>I am using stream reader to read the file and stream writer to write the content of that file to another file after storing the content in the Database....
c# asp.net
[0, 9]
1,679,585
1,679,586
Is there a free website to store code (php, javascript, css) online?
<p>I am looking for website to store my code and then reused if may I need it. Would be great something like Delicious but for coding or something like Snippely.</p> <p>Thanks. </p>
php javascript jquery
[2, 3, 5]
4,983,677
4,983,678
Print content of div as png image without any prompt
<p>I am writing a script in jquery and supporting languages for a special purpose and after completing it i will make it live with GPL licencing. i have wrote around thousand of line. till now the script is working fine, i required some technique to print content of div with the background image and every thing inside ...
javascript jquery
[3, 5]
4,231,330
4,231,331
convert number from 12 to 12.00
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5648205/in-php-how-to-print-a-number-with-2-decimals-but-only-if-there-are-decimals-al">In PHP, how to print a number with 2 decimals, but only if there are decimals already?</a> </p> </blockquote> <p>Brothers I...
php javascript
[2, 3]
5,853,653
5,853,654
condition if two checkboxes are checked doesn't work in jquery
<p>I have two radio groups. I wish to put a condition where if pRange is checked (val=pRange) and periodType value is 'one', 'two' or 'three', it displays a div called message. but my js code below doesn't seem to work. Any help is much appreciated.</p> <pre><code>$("input[name$='periodType']").change(function() { ...
javascript jquery
[3, 5]
3,359,266
3,359,267
Pass variable between functions
<p>I have the following line of code that is executed inside the <code>$(document).ready</code>:</p> <pre><code>$('#sliding_menu_area').toggle(effect, reAlign); </code></pre> <p><code>reAlign</code> is a function that is declared outside of the <code>$(document).ready</code> main function in my <code>.js</code> file....
javascript jquery
[3, 5]
1,402,363
1,402,364
How to return variable datatypes from a method
<p>I have a method whose callers require different datatypes. I could repeat the requisite conversions a dozen times by putting them in each of the callers, but it seems much more efficient to do it once in the called method.</p> <pre><code>public String myMethod(String myArg) { return DoSomething(myArg); } ...
c# asp.net
[0, 9]
2,156,722
2,156,723
onchange event is not fire on asp checkbox in chrome only
<p>This doesn't work for me in chrome</p> <pre><code>&lt;asp:CheckBox ID="chkFullReIndex" runat="server" ClientIDMode="Static" onchange="funCalled();" /&gt; &lt;script&gt; function funCalled() { if ($('#chkFullReIndex')[0].checked) { alert('check box checked') } else { ...
javascript jquery asp.net
[3, 5, 9]
2,368,737
2,368,738
Java Mobile Application
<p>Can any one tell me the book which can help me developing the application for Android ( java based), Please tell me about the IDE as well so that I can read and try myself.</p>
java android
[1, 4]
37,476
37,477
How do I select string after a specific symbol in javascript/Jquery?
<p>Let says I have a string that says <code>and the cow went @moo</code>, and I want to only select moo... how would I go about that?</p>
javascript jquery
[3, 5]
3,010,699
3,010,700
How to show image using onmouseover in javascript
<p>I have lots of pets. what i want to achive is that when ever i hover, it will display the image of particular pet in nearby div.</p> <p>for example</p> <pre><code>&lt;code&gt; &lt;select name="pet" id="pet"&gt; &lt;option value="1"&gt;Dog&lt;/option&gt; &lt;option value="2"&gt;Cat&lt;/option&gt; &lt;option value=...
php jquery
[2, 5]
4,043,354
4,043,355
Variable from JavaScript to PHP
<p>Here is the code:</p> <pre><code> $('#sousmenu a').click (function (){ startSlideshow(&lt;?php echo json_encode(glob("photos-" .$_GET["folder"]. "/*.jpg"));?&gt;); return false; }); </code></pre> <p>The question is I like the HREF to change and get caught by PHP, now it doesn't do anything, ...
php javascript jquery
[2, 3, 5]
3,639,597
3,639,598
jQuery remove all list items from an unordered list
<p>Quick question -- i forgot the jQuery command that will clear all list elements from a list. I did a bit of searching, done it a bunch of times before, but just simply forgot the command.</p> <pre><code>$("ul").clear() $("ul").empty() </code></pre> <p>both didn't seem to accomplish this.. which command is it again...
javascript jquery
[3, 5]
1,978,874
1,978,875
jQuery: Get reference to click event and trigger it later?
<p>I want to wrap an existing click event in some extra code.</p> <p>Basically I have a multi part form in an accordion and I want to trigger validation on the accordion header click. The accordion code is used elsewhere and I don't want to change it.</p> <p>Here's what I've tried:</p> <pre><code> //Take the click...
javascript jquery
[3, 5]
5,311,468
5,311,469
jQuery onclick change parent background
<p>I downloaded the script from emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html and made a few modifications, as the source wasn't working as required (When submitting the form, all of the values were being sent to the php handler, not just the checked ones). </p> <p>My working example is...
javascript jquery
[3, 5]
1,676,670
1,676,671
Build a multi-user collaboration android app
<p>Greetings to all SO developers!</p> <p>I was searching for a way to allow collaboration on one activity of an android app. My problem is as follows: Lets say I have a simple android application having a EditText field in it. All users who have this app installed, are stored in my database. One user opens the app o...
java android
[1, 4]
5,495,490
5,495,491
Adding new methods and values to an object while avoiding repetition
<p>I'm struggling to learn object oriented javascript. I have an object constructor that looks like this:</p> <pre><code>//generic object function myObject(value1, value2, value3){ this.value1 = value1; this.value2 = value2; this.value3 = value3; this.method1 =method1; } function method1(){ alert('hello'); } functio...
javascript jquery
[3, 5]
4,759,339
4,759,340
Keypress function in native javascript
<p>Below is my code:</p> <pre><code>$(document).keypress(function(e){ var s = String.fromCharCode(e.which); if ( s === "f"){ alert ("its f"); } else if ( s === "r"){ alert ("its r"); } }); </code></pre> <p>I wanna do this in JavaScript...........!!</p> <p>How can i do this ?</p>
javascript jquery
[3, 5]
5,733,053
5,733,054
add a textbox onclick dropdown value other in jquery?
<p>I am facing a problem with jquery.</p> <p>I have a div with 4 drop down list and I have an "add more" button.</p> <p>When I click on "add more" button, another instance of the same div is created just above the "add more" button. I did it via jQuery <code>append()</code> method and it is successfully working, but ...
php jquery
[2, 5]
284,690
284,691
Insert variables into $.post within a function
<p>i'm writing a function to send $.post show please how to correctly insert variables into object depending if they are set. here is what i'm trying to do:</p> <pre><code>function SendCommand(Command, QuestionId, Attr) { $.post('/survey/admin/command', { 'Command': Command, if (QuestionId) 'Questi...
javascript jquery
[3, 5]
2,865,867
2,865,868
Add external javascript to user control... but put the file reference at the bottom of the page
<p>I need to be able to add an external js file for a user control (using</p> <pre><code> this.Page.ClientScript.RegisterClientScriptInclude("SuggestionSearch", "~/Secure/Shared/SuggestionSearch.js"); </code></pre> <p>syntax)</p> <p>But it puts the javascript file on the page too early... is there a way to put t...
javascript asp.net
[3, 9]
1,758,307
1,758,308
Issue while enabling hyperlinks in master page from content page
<p>I had written code to Enable and disable hyperlinks on master page from the content page. Every thing is working fine and the hyperlinks are getting disabled also after calling the <code>DisableHyperlinkInMasterPage</code> Method. When i am calling the <code>EnableHyperlinkInMasterPage</code> method still the hyperl...
c# asp.net
[0, 9]
5,664,746
5,664,747
why does my usercontrol keep resetting it's visible property to false?
<p>Ok, I have a usercontrol on my page.</p> <p>On the page, the visible property is set to false.</p> <p>On the OnPreRender event, I set the visible property to true.</p> <p>It runs the line of code, but does not actually change anything. (so visible remains at false)</p> <p>This exact same method works across ever...
c# asp.net
[0, 9]
3,137,619
3,137,620
how do i use a class without instantiating it?
<p>I have class:</p> <pre><code>static class GetRole { public static string OfUser(string username) { string result="None"; foreach (string key in WebConfigurationManager.AppSettings) { if (WebConfigurationManager.AppSettings[key].Contains(usernam...
c# asp.net
[0, 9]
2,057,016
2,057,017
Something with callback
<p>Already for 15 minutes I can not understand</p> <pre><code>if(send == true){ $.getScript('index.php?get_names_from_ajax=true', function(data){ $('#firstnames').remove(); $('#lastnames').remove(); $('#content').prepand('&lt;div class="block" id="firstnames"&gt;'+firstnames+'&lt;/div&gt;'); $('#firstnames').after('&l...
javascript jquery
[3, 5]
3,973,235
3,973,236
highlight text in html with javascript jQuery
<p>I want to highlight all the keywords (case insensitive) within a p tag programatically</p> <p>if the keywords are</p> <pre><code>var keywords = "hello,thanks, goodbye" // this should be an array &lt;p&gt;hello world&lt;/p&gt; </code></pre> <p>hello should be highlighted in blue</p>
javascript jquery
[3, 5]
2,978,613
2,978,614
Android DefaultHttpClient connection reuse
<p>I am using DefaultHttpClient for connection. What I would like to do is "keep checking if it's alive" and when timeed out, reconnect. How can I do that ? I tried that entity is not null the consumeContent. Is it not working for me.</p>
java android
[1, 4]
5,553,935
5,553,936
How can I populate a message box when mouse cursor enters in a text box?
<p>I am using 3 text boxes. When I click on 2nd text box I want to show 1st text box value in message box (if 1st text box passed the validations). Same procedure when i click on 3rd textbox I want to show 1st text box value and 2nd text box value in message box(if 1st text box,2nd text box passed the validations).</p>...
javascript asp.net
[3, 9]
2,714,758
2,714,759
get selected option of $(this)
<p>if i am looping through some jquery objects that are <code>select</code> dropdowns, how can I get the class of the selected option using jquery's <code>$(this)</code>?</p> <pre><code>elems.each(function(idx, elem) { if ($(this).is('select')){ console.log($(this, "option:selected")) } }); </code></pr...
javascript jquery
[3, 5]
1,172,291
1,172,292
JS Replace fuction is not working as expected
<p>I have a backend CGI script that returns me below text in case of issues via an AJAX call:</p> <pre><code>&lt;p&gt;A problem occurred in a Python script. &lt;p&gt; /bin/cgi-bin/LOGS/tmpslM4pu.txt contains the description of this error. </code></pre> <p>I am trying to display it like below:</p> <pre><code>$.ajax({...
javascript jquery
[3, 5]
2,971,233
2,971,234
<option> tag, display:none and jquery
<p>I have a <code>div</code> that is being used as a dialog with jQuery's <code>.dialog()</code>. This div has a select box with options. The options the user has already selected are displayed on the main page. They can remove options from the main page and can open the dialog multiple times to add more options.</p> ...
javascript jquery
[3, 5]
5,836,839
5,836,840
How to convert Binary data from database to String(text)
<p>I have uploaded my MS word file in Database in binary format. I am able to retrive it back. But I am planning to open up the word file in read only mode. I have done much operations on the file which I have stored in databse like trackrevisions,protection etc. Now I just want only one thing to happen. I want to conv...
c# asp.net
[0, 9]
3,208,137
3,208,138
ASP.net web application data integrity issue
<p>Let say...</p> <p>If we ASP.net banking application. When user press a button then it will debit $100 from his account.</p> <p>Issue: What happened if user two or three times click on this button without waiting for first inform or it press F5/refresh page.</p> <p>How we can prevent or get data integrity.</p>
c# asp.net
[0, 9]
947,799
947,800
event for when dialog is fully loaded
<p>I am trying to add a jscrollpane to a dialog once the dialog is loaded. I tried using the <code>dialogopen</code> and <code>dialogfocus</code> events but it seems these trigger too early. Is there an event I can subscribe to that tells me the dialog is fully loaded and displayed and its safe to call jscrollpane? R...
javascript jquery
[3, 5]
3,801,228
3,801,229
Hide child in expandablelistview based on childposition
<p>I need to hide certain children of certain groups based on the groupPosition and the childPosition in an ExpandableListView. But on expanding the group multiple times (especially when the expanded group is not in focus), the value of childPosition that i get is not the same as before. So a different row gets hidden....
java android
[1, 4]
2,872,194
2,872,195
How does android run java applications if it doesnt have a JVM
<p>How does android run java programs if it doesnt have a JVM, i know theres a delvik vm but what does it do ? and how does it run java applications? </p>
java android
[1, 4]
4,120,393
4,120,394
jquery: can you do an ajax request in $(window).unload()?
<p>I am absolutely terrible at logging my hours.</p> <p>So my idea is to have a browser shortcut that i open when i am starting work.</p> <p>Then when i am finished close it.</p> <p>This will then to an ajax request to a php script that will update my hours for me.</p> <p>To do this.</p> <p>Can i do an ajax reques...
php jquery
[2, 5]
3,579,851
3,579,852
Building a :selection selector
<p>Can I query (in a jQuery sense) the DOM elements - <em>not</em> just text nodes - completely selected by the mouse?</p>
javascript jquery
[3, 5]
6,007,644
6,007,645
How to place scrollview inside the relative layout
<p>But am using many layouts like absolute layout and 6 relative layout.For each relative layout i need to use scrollview separately both horizontal and vertical when am adding many buttons inside the layout.</p>
java android
[1, 4]
3,076,254
3,076,255
Duplicated countdown timer after click event
<p>I have this function:</p> <pre><code>var secondsRemaining = 45; function countdown(secondsRemaining) { var seconds = secondsRemaining; if (secondsRemaining &gt; 0) { $('.timer &gt; div').html(seconds); secondsRemaining--; } else { if (secondsRemaining == 0) { // Times up .... } } setInterval(function() { c...
javascript jquery
[3, 5]
891,948
891,949
Create new div arround anchor link when clicked
<p>How can I achieve this behaviors onclick with jquery :</p> <p><strong>default state:</strong></p> <pre><code>&lt;a href="something.html"&gt;Anchor&lt;/a&gt; </code></pre> <p><strong>click state</strong></p> <pre><code>&lt;div class="highlight"&gt; &lt;a href="something.html"&gt;Anchor&lt;/a&gt; &lt;/div&gt; </co...
javascript jquery
[3, 5]
1,935,614
1,935,615
What's the benefit of inline function calls?
<p>I saw this code (explicly it's in jQuery, with modification)</p> <pre><code>(function(window,undefined){ var jQuery=(function(){ var jQuery=something; jQuery.xxx=xxx; //... return jQuery; })(); //... window.jQuery=window.$=jQuery; })(window); </code></pre> <p>While I...
javascript jquery
[3, 5]
2,185,186
2,185,187
Disabling a textbox when the other textbox have a value HTML
<p>im sorry for this question but how can i disable a textbox if another textbox have a value?? I already try this code but its not working,, sorry for the noob question T_T</p> <pre><code>function disable(downpayment,full_payment) { if ( downpayment.value.length &gt;= 1 ) document.getElementById(full_payment).disab...
javascript jquery
[3, 5]
559,279
559,280
Fastest Java-based Javascript Engine
<p>I'm currently using the javax.script package for interpreting and executing Javascript code on the fly. Incidentally, this is the same engine used by Mozilla's Rhino JS interpreter. </p> <p>Question: is there any Java-based Javascript Engine that is faster than Rhino?</p>
java javascript
[1, 3]
1,792,346
1,792,347
Hiding a div with esc key, and off click? In Jquery
<p>if I have a div I've shown thanks to a click event - what are some easy was to make it close if someone clicks anywhere outside the div, or hits the esc key?</p>
javascript jquery
[3, 5]
3,219,701
3,219,702
Asynchronous jQuery request timing issue
<p>As a learning exercise I've hacked together a script for an SO <a href="http://meta.stackoverflow.com/questions/13847/display-statistics-have-subject-badges-for-accepted-answers/16062#16062">feature request</a> (for the purposes of this question please ignore the merits or otherwise of that request). In the script I...
javascript jquery
[3, 5]
4,714,524
4,714,525
Filtering inputs by value
<p>I have HTML construction like this </p> <pre><code>&lt;div class="qn-block"&gt; &lt;a href="#" class="remove"&gt;&lt;/a&gt; &lt;input type="text" class="quantity-number" name="quantity-number" value="2" /&gt; &lt;a href="#" class="add"&gt;&lt;/a&gt; &lt;a href="#" class="refresh-q"&gt;Refresh&lt;/a&...
javascript jquery
[3, 5]
5,954,024
5,954,025
issue of race condition b/w direct code and jquery handlers in client side JS
<p>Is this code valid/correct</p> <pre><code>var items = $(".items"); // when would items be properly populated, at dom.ready()?? var itemsHrefs = []; // direct JS code prepareItemsList(); **// direct JS code** **// could be the case that items array is not populated yet ???** function prepareItemsList() { for...
javascript jquery
[3, 5]
493,115
493,116
How to open one single popup window for multiple onclick event of anchor tag?
<p>I have one aspx page with 1000 anchor tag. </p> <p>I want to open single popup onclick of anchor tag &amp; display data in popup window from database dynamically. </p> <p>I want to use only one popup in my page.</p> <p>For 1000 anchor tag inner data of popup will change with respect to anchor click change.</p> <...
c# asp.net
[0, 9]
5,530,104
5,530,105
JQuery Countdown timer inside Gridview that is placed inside Update Panel Issue
<p>I have A gridview inside an updatepanel that is showing deals info with expiry date. for the expiry date i am showing it using jquery Countdown timer.i am adding this timer inside RowDataBoundEvent. When page is first load and the jquery count down timer works fine. </p> <p>now i have a list of checkboxes that show...
jquery asp.net
[5, 9]
1,892,370
1,892,371
Sound Effects/Manipulation?
<p>I am creating an android app that basically records an applies an "Effect" on the audio track then plays it back. I got my app to record an play back but I am stuck an not sure where do go from here. I have been Googling for days now trying to find a open source audio library or some way to change the audio after ...
java android
[1, 4]
5,040,649
5,040,650
Dynamically change style of panels through javascript
<p>I am trying to display a new panel after the user clicks an add button, for some reason this is not working (it refreshes the page as well, even though my button has a return true) I have tried different ways, but nothing seems to work that well.</p> <pre><code>&lt;asp:Button ID="btnAdd" runat="server" Text="Add P...
c# javascript asp.net
[0, 3, 9]
5,289,899
5,289,900
Event on a click everywhere on the page outside of the specific div
<p>I'd like to hide a div when user click anywhere on the page outside of that div. How can I do that using raw javascript or jQuery?</p>
javascript jquery
[3, 5]
115,647
115,648
Jquery - Load an XML file based on drop-down menu selection
<p>I am a noob who is trying to create a q&amp;a application. At the moment, I have been experimenting with the apparent simplicity of Jquery. I need a Jquery or Javascript function that (1) allows the user to select a Q&amp;A category from a drop-down box and (2) tells the Jquery code which XML file to select based on...
javascript jquery
[3, 5]
1,244,098
1,244,099
Using url with parameters to download image from internet for Android?
<p>Using <strong>URL with parameters</strong> to download image from internet for Android???</p> <p>This code is work,but I don't want that,I want to use a URL with parameters to download image.(ex:<strong>URL=<a href="http://yahoo.com/record?ProductID=1" rel="nofollow">http://yahoo.com/record?ProductID=1</a></strong>...
java android
[1, 4]
3,749,163
3,749,164
Is there any MIT licenced jquery pagination plugin?
<p>The famous <a href="http://archive.plugins.jquery.com/project/pagination" rel="nofollow">jQuery pagination plugin</a> is of GPL licence. If I am not wrong to use a GPL licenced software in a product the product must be GPL licenced too. So I am looking for a pagination plugin which is MIT licenced. Any suggestions? ...
javascript jquery
[3, 5]
5,130,471
5,130,472
FindControl does not work in GridView
<p>void GridView1_RowCreated(Object sender, GridViewRowEventArgs e) {</p> <pre><code> if (e.Row.RowType == DataControlRowType.DataRow) { (e.Row.FindControl("linkDocs") as HyperLink).Visible = false; } } </code></pre> <p>I can't get that code sample to work. I need to access a hyperlink contr...
c# asp.net
[0, 9]
1,683,460
1,683,461
How to indent particular row in datagridview
<p>I have a gridview and and I am creating it dynamically, I get parent and child tables records and binding the data to a single data grid view. I need to indent the row which is from child table a bit to the right so that i can differentiate the record from parent record.</p> <pre><code>private void CreateDynamicGri...
c# asp.net
[0, 9]
3,688,919
3,688,920
find Absolute path of "Desktop" location using PHP
<p>How I get Absolute path of "Desktop" location using PHP? </p>
php javascript
[2, 3]
3,335,431
3,335,432
Submit Javascript variable PLUS form data to ASP.NET
<p>I have this code:</p> <pre><code>var myArray = new Array(); var counter = 0; function addElementToForm(value){ counter ++; if (counter &lt; 10) { $("#cheese").append(value + '&lt;input type="number" value="0"&gt;&lt;br /&gt;'); myArray.push(counter + value); } }; </code></pre> <p>I ...
c# javascript asp.net
[0, 3, 9]
1,571,134
1,571,135
if statement on images
<p>I have an image that is a tick. At the moment i know how to set visibilty using GONE/VISIBLE.</p> <pre><code> tick.setVisibility(View.VISIBLE); </code></pre> <p>I want to be able to detect whether an image is visible using an if statement.</p> <pre><code>if (tick is visible){ i++ } </code></pre> <p>Thanks</p>...
java android
[1, 4]
674,478
674,479
how to Read Javascript cookie with PHP
<p>I'm making a php script that would work like API on site that dosn't provide one. I'm using curl for it and the site is posting cookies with javascritpt, so i can't read them.</p> <p>Is there a php class or php module that would read javascript, store the cookie and let me resubmit it with curl to the mentioned pag...
php javascript
[2, 3]
107,784
107,785
using jquery when passing arguments to function
<p>I have a link which triggers js function. To the link I have attached data-attribute on html which I want to pass to the function.</p> <pre><code>$(".trigger").awesomeFunction({ oneArgument: "secretSauce", secondArgument: $(this).data("address") }); </code></pre> <p>Now that second argument ends up null instea...
javascript jquery
[3, 5]
1,659,398
1,659,399
Calling C# Method Using Javascript
<p>I am trying to access a method in my code behind called "Button1_Click" using Javascript, I think there is something wrong in my code below because currently I have to click twice in order for the method to trigger, one click doesn't trigger the method.</p> <p><strong>My Test Code:</strong></p> <pre><code>// Javas...
c# javascript
[0, 3]
2,374,226
2,374,227
How can I use jQuery to follow the cursor with a div?
<p>I have a div in the shape of a circle that follows your mouse using Javascript, but I want it to stop when it hits the edge of a container div. How would I do that? Here is the Javascript im using:</p> <pre><code>var mouseX = 0, mouseY = 0; $(document).mousemove(function(e){ mouseX = e.pageX; mouseY = e.pageY; }); ...
javascript jquery
[3, 5]
1,343,201
1,343,202
how to redirect to email login page based on email address domain
<p>i have a registration page there i am capturing user email address, once the registration is completed user has to activate an account.. this process is working fine.. now what i am looking here is</p> <p>i would like to give "Go to my Inbox" button when the user click on this button it should automatically redire...
javascript jquery asp.net
[3, 5, 9]
745,368
745,369
Javascript how to store predefined function (with arguments)
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1451009/javascript-infamous-loop-problem">Javascript infamous Loop problem?</a> </p> </blockquote> <p>I have the following:</p> <pre><code>function test(a,b,c){ console.log(a+b+c); } for (var i=0; i &lt; ar...
javascript jquery
[3, 5]
5,683,345
5,683,346
I get an undefine error in iframe
<p>I have an iframe below:</p> <pre><code>&lt;iframe class='upload_target' name='upload_target' src='#' style='width:0;height:0;border:0px;solid;#fff;'&gt;&lt;/iframe&gt; </code></pre> <p>I am trying to stop a command below but I keep getting an undefined error: </p> <pre><code>$('.upload_target').contentwindow is u...
javascript jquery
[3, 5]
2,010,302
2,010,303
How to specify TreeNodes ordering? Error using WebControls.TreeNodeCollection.AddAt()
<p>I'm trying to add nodes to a TreeView object and I've got the following code that's reading the data from a MySqlDataReader object:</p> <pre><code>while (no_child_rdr.Read()) { TreeNode parentNode; int position = no_child_rdr.GetInt16("position"); // See if the node for this category already exists ...
c# asp.net
[0, 9]
637,902
637,903
Set storage limit to a directory and delete file(s) on FIFO basis
<p>How to set storage limit to a folder and keep deleting file(s) on FIFO basis once it reaches the already set limit in android?</p> <p>Thanks, DK</p>
java android
[1, 4]
5,990,782
5,990,783
calling java methods in javascript code
<p>i created a java class content method return a String, my question is how to call this function in my javascript code to use the returned value from the java method. I want to call client-side Java code embedded in browser.</p> <p>here is an exemple of what im talking about:</p> <p>in my webpage i have a javascrip...
java javascript
[1, 3]
4,512,948
4,512,949
User based pop up?
<p>Basically, I'm looking to find out a way to create a pop up window that prompt a user a question, and in the window I'd like to have a checkbox saying "Don't display this message again". I'm not quite sure how to go about this, I've done a bit of research but I've found nothing, I'd love to be able to find out how s...
javascript jquery
[3, 5]
1,276,001
1,276,002
con.getInputStream() throw exception in Android project, how to fix?
<p><br> con.getInputStream() throw exception, when the code running on android, but when copy the code to regular java project it is working,<br> The thrown object e contain "detailMessage = Permission denied". my code::</p> <pre><code> public static HttpData get(String sUrl) { HttpData ret ...
java android
[1, 4]
5,551,204
5,551,205
Create subdomain for each registered user?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain">Is it possible to make an ASP.NET MVC route based on a subdomain?</a><br> <a href="http://stackoverflow.com/questions/1437277/how-to-create-...
c# asp.net
[0, 9]
3,683,740
3,683,741
how to take Value From java Scrpit File and send it to php File?:(
<p>Can U tell me how to take Value From java Scrpit File and send it to php File .</p> <p>code :</p> <pre><code>var year = (year != null) ? year : '".$this-&gt;arrToday["year"]."'; var month = (month != null) ? month : '".$this-&gt;ConvertToDecimal($this&gt;arrToday["mon"])."'; var day = (day != nu...
php javascript
[2, 3]
5,830,835
5,830,836
How to page refresh, if $_POST variable exists?
<p>I have some post form. On click submit button, turn to another page. I need refresh page once time, if some $_POST variable exists.</p>
php javascript jquery
[2, 3, 5]
416,650
416,651
Device Specific Javascript, preferably JQuery
<p>I have a pretty Jquery-heavy site in the rollout. However, since it uses fullscreen backgrounds ... which are pretty useless on mobile devices I would love to deactivate the Jquery plugin on mobile devices... </p> <p>I tried to research this problem but did not came up with a simple solutions... </p> <p>Media quer...
javascript jquery iphone
[3, 5, 8]
4,379,408
4,379,409
Instructions arent following the sequence jQuery
<p>Here is the code that i have been working on. Apparently the #layout call is executed first for some reason and it gives undefined as the value. </p> <pre><code>$(function() { $(".left").load("PartsList.php", function() { alert("success"); }); $(".right").load("Custom.php", function() { ...
php jquery
[2, 5]
3,914,262
3,914,263
empty jquery element
<p>Is there an elegant way to create an empty jquery element (versus null) ?</p> <pre><code>$myEmptyElement = $("#ThisIdDoesNotExist234343"); </code></pre> <p>The rational is not checking later on for null.</p> <p>Later we do :</p> <pre><code>$myEmptyElement.destroy(); </code></pre>
javascript jquery
[3, 5]
4,647,554
4,647,555
javascript / jquery : problem calling a function inside an object (function undefined)
<p>I'm getting an error of "buildXML is not defined" when I run this code:</p> <pre><code>var c = { updateConsumer:function (cid,aid,sid,survey){ var surveyXML = buildSurveyXML(survey); }, buildSurveyXML: function(survey) { var surveyResults = survey.split("|"); var surveyXML = ''; for (var i...
javascript jquery
[3, 5]
4,727,820
4,727,821
jQuery event binding with accessibility in mind - click and keypress
<p>Just a quick question, I seem to do this a lot:</p> <pre><code>$saveBtn.bind("click keypress", function(e) { if (e.type != "keypress" || e.keyCode == 13) { // Do something... return false; } }); </code></pre> <p>Is there a quicker way to bind an 'action' listener to a button? I want to...
javascript jquery
[3, 5]
490,133
490,134
Disable animate when condition is met jQuery
<p>This may be an easy question and perhaps I am missing something here. </p> <p>The desired effect would be when a user clicks on the <code>.left</code> or <code>.right</code> href tags, the <code>.tabs</code> scroller will scroll left or right by <code>105px</code> every time. This part is working.</p> <p>Where I ...
javascript jquery
[3, 5]
2,832,348
2,832,349
How can capture Click event if element is iframe?
<p>I have appended a iframe with youtube embed url in a div which id is div1. I want to do something when click happened on iframe.</p> <p>i am using this jquery code but it is not working.</p> <pre><code>$('#div1 iframe').bind('click', function(){ alert('clicked on iframe'); }); </code></pre>
javascript jquery
[3, 5]
4,521,709
4,521,710
Select All Elements that do not have a binding to a given function?
<p>If I assign a function to a variable <em>foo</em>, is there a way to select all elements that do not have a binding to <em>foo</em> given that they are assigned via a structure like <code>$('.elementsWithClass').click(foo)</code>?</p> <p>My motivation here is we have ajax requests replacing parts of the DOM, and I ...
javascript jquery
[3, 5]
511,310
511,311
View.OnClickListener, method or class?
<p>sorry if this question is stupid, but I can't wrap my head around Java syntax..I learnt C/C++<br/> I know View is a class which is good..but I don't understand if View.OnClickListener() is a method.<br/> I doubt it unless it returns an object? <br/> I think View is a class which has a static OnClickListener member o...
java android
[1, 4]
5,902,459
5,902,460
jquery.inArray() function not working
<p>I am having a array as follows</p> <pre><code> var nameIDHashMap = []; nameIDHashMap.push({ key: name, value: xmlLength }); startToEnd.push({ key: $(this).attr("startFrom"), value: $(this).attr("endTo") }); </code></pre> <p>I m trying to use ...
javascript jquery
[3, 5]
2,325,137
2,325,138
meta send vs. reload() | Server executed vs. client executed
<p>Progam control is at the server and I need to do a relaod. I can use a php command:</p> <pre><code>echo '&lt;meta http-equiv="refresh" content="0"&gt;' </code></pre> <p>or I can pass control back to the client with a reload flag set and use a javascript command</p> <pre><code>window.location.reload(); </code></p...
php javascript
[2, 3]
3,813,748
3,813,749
android: generate random number without repetition
<p>can anybody help me in making a method to generate random number without repetition in Android? The maximum number is: <code>prjcts.size();</code> it's my JSON Array. And the return value should be in integer. </p> <p>What I've already had is: <code>int i = (int)(prjcts.size() * Math.random());</code> I casted the ...
java android
[1, 4]
3,558,977
3,558,978
how to generalize a click function in jquery
<p>I have 13 small pictures and 13 big pictures,if any of the small pictures are clicked it'll show the related big picture, I was just wondering if it was possible to generalize the click function so I don't have to repeat the dame code 13 times, thanks</p> <pre><code>&lt;div id="press_images"&gt; &l...
javascript jquery
[3, 5]
2,316,852
2,316,853
jQuery: Check if an element is assigned to a var
<p>I'm trying to create a simple button manager to select and eventually unselect allready checked <code>img</code> elements which contains CSS class <code>.my_class</code>, why this doesn't work?</p> <pre><code>var last_selected; $("img.my_class").click ( function () { if (last_selected != null) alert ($(this) ==...
javascript jquery
[3, 5]
2,429,448
2,429,449
Release the memory
<p>This code loads two parameters from a PHP file and prints them on the screen every second, but does that not use too much cpu/memory power to run it? How can that be avoided? I want to free/release or autorelease the memory it's using, while it's updating, but I don't know how... Please help me out guys.</p> <pre><...
javascript jquery
[3, 5]
4,718,312
4,718,313
Don't get value when refreshing the page in jquery
<p>When I click on link the value displayed correctly.But when I refresh the page i don't get this value.</p> <p>I have written below code</p> <pre><code>$j("#add_to_cart_action").click(function(e) { $j.em.cart.addSelectedTitle(); }); $j.em.cart.addSelectedTitle = function() { var addcartitemindx = $j("b...
php jquery
[2, 5]
4,654,348
4,654,349
Sort Checkbox List on the basis of checked property
<p>I have a check-box-List which I bind to a master dataTable(DTA)... I have another dataTable (DTB) which has the values that needs to checked in the check-box-List... So I loop through all items in the check-box-list to see if it exists in the DTB and set checked = true for those items that exists.</p> <p>Now I want...
c# asp.net javascript
[0, 9, 3]
4,548,833
4,548,834
Do I require a from to submit input type=image for a jQuery type form submission
<p>I have two images, that I am using their value to insert into a db table. Do I Require a form or can I do without one.</p> <pre><code>&lt;form name="form1" id="form1" method="post" action="save.php"&gt;&lt;input type="image" src="images/test.png" border="0" id="star_image" value="&lt;? echo $some_value; ?&gt;" /&g...
php jquery
[2, 5]
2,806,483
2,806,484
jquery : dynamic events how to achieve
<p>What is the best way to do this dynamic events linking between divs in jquery.</p> <p>my HTML page:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div id="parent1"&gt;&lt;/div&gt; &lt;div id="parent2"&gt;&lt;/div&gt; &lt;div id="parent3"&gt;&lt;/div&gt; &lt;div id="child1"&gt;&lt;/div&gt; &lt;div id="child2"&gt;&lt;...
javascript jquery
[3, 5]
3,761,249
3,761,250
limiting of strings or numbers in text boxes Java android
<p>How to limit or restrict the words or numbers in the EditText boxes in android Java?</p>
java android
[1, 4]
3,866,378
3,866,379
How to get the actual code (not inside content) of an iframe element?
<p>Have a look at this code:</p> <p><a href="http://jsfiddle.net/NTYcA/1/" rel="nofollow">http://jsfiddle.net/NTYcA/1/</a></p> <pre><code>var foo = '&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/A175-KHvfy4" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;'; foo = $(foo); // turned into jqu...
javascript jquery
[3, 5]