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
1,751,176
1,751,177
menu item navigation
<p>I use load in jquery to insert a aspx file which consists of a menu into a asp file. it gets inserted correctly with this code:</p> <pre><code> &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"&gt; &lt;/script&gt; &lt;script type="tex...
javascript jquery asp.net
[3, 5, 9]
1,226,460
1,226,461
JavaScript execution order - run this(), then that() when this() has finished?
<p>If for example, I have some jQuery doing something simple like:</p> <pre><code>$("div").fadeIn('fast'); $("div").html('Foo'); </code></pre> <p>That would fade in the div, and set its html to "Foo" whilst it's still fading in, whereas:</p> <pre><code>$("div").fadeIn('fast',function(){ $("div").html('Foo'); }); ...
javascript jquery
[3, 5]
978,437
978,438
jQuery - setting the selected value of a select control via its text description
<p>I have a select control, and in a javascript variable I have a text string.</p> <p>Using jQuery I want to set the selected element of the select control to be the item with the text description I have (as opposed to the value, which I don't have).</p> <p>I know setting it by value is pretty trivial. e.g.</p> <pre...
javascript jquery
[3, 5]
1,368,617
1,368,618
ASP.Net Multi image upload .net compatible commercial control
<p>We are currently planning on trying to allow a user to be able to select multiple images to upload to an ASP.NET website. Can anyone give me some suggestions as to which commercial and free controls which we can use?</p> <p>Requirements would be that:</p> <ul> <li><p>is browser independent (works on IE, Firefox, C...
c# asp.net
[0, 9]
112,603
112,604
How to load contents in `window.showModalDialog()`?
<p>I want to show the contents, which i am loading form the server into a <code>div</code> using <code>jquery load()</code> </p> <p>function, in the javascripy <code>window.showModalDialog()</code>. My code :</p> <pre><code>$("#templatecontainer").load("/Temp/GetTemp", { temp: $("#temp").val(), function (response...
javascript jquery
[3, 5]
3,162,463
3,162,464
Get XML file with JQuery?
<p>I save following XML code as XML file.</p> <pre class="lang-xml prettyprint-override"><code>&lt;Z&gt; &lt;F&gt;{"attributes":{"type":"form"}}&lt;/F&gt; &lt;M&gt;&lt;%@ taglib prefix="zf" uri="http://www.zcore.org/tags/form" %&gt;&lt;/M&gt; &lt;/Z&gt; </code></pre> <p>now when I want to load with JQuery I get t...
javascript jquery
[3, 5]
1,710,235
1,710,236
How to clear a input array all elements using jQuery
<p>I have defined my form elements using the html array method like this:</p> <pre><code>&lt;input type="text" maxlength="45" name="Apikey[key]"&gt; &lt;select name="Apikey[developer]"&gt; </code></pre> <p>How can I clear all Apikey array using jQuery?</p> <p>The question is how to clear them? All possible forms fie...
javascript jquery
[3, 5]
1,405,028
1,405,029
Android - Listview search inner-text by ignoring Case
<p>I am trying to implement "Listview with search" functionality, in which i am successful to search with the word that we trying to enter in the edittext. But i want to implement to search with inner-text from a string. for that i have tried to implement:</p> <pre><code>string.contains(txtSearch.getText().toString())...
java android
[1, 4]
1,045,244
1,045,245
Event binding Ctrl-Shift-N
<p>I'm using to jQuery.hotkeys to bind keyboard events.</p> <p>I'm trying to bind <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd></p> <pre><code>$(document).bind('keydown', 'ctrl+shift+n', function(e) { e.preventDefault(); alert('Ctrl+Shift+N'); return false; }); </code></pre> <p>The above is not working. ...
javascript jquery
[3, 5]
4,413,629
4,413,630
Master/Detail filtering with a dropdownlist ASP.NET C#
<p>I have a gridview with selected value bound to a dropdownlist control. I was following <a href="http://www.asp.net/data-access/tutorials/master-detail-filtering-with-a-dropdownlist-vb" rel="nofollow">this</a> so far I could manage to show some data if a user select a value from the dropdownlist but what I want is to...
c# asp.net
[0, 9]
4,992,026
4,992,027
ASP.net or jQuery modal pop-up solution
<p>I am looking for a modal pop-up solution with the following requirements:</p> <p>1.) Usable with ASP.net. 2.) The modal pop-up's height is dynamic, for example: the modal pop-up's height would grow based on how much content was in it and if your content is going to make the pop-up taller than the browser's availabl...
jquery asp.net
[5, 9]
1,268,594
1,268,595
How to get a child control from a Tr?
<p>I have a hidden field in each <code>Tr</code> in my template:</p> <pre><code>&lt;ItemTemplate&gt; &lt;tr style="" class="ui-selectee trClass ui-widget-content"&gt; &lt;td style="width: 100px"&gt; &lt;asp:HiddenField ID="idField" runat="server" Value='&lt;%# Eval("Id") %&gt;' /&gt; ...
javascript jquery asp.net
[3, 5, 9]
1,743,294
1,743,295
Extract word from string using jquery or javascript
<p>I would like to extract word from tag like</p> <pre><code>&lt;li&gt;{firstname} {last name}&lt;/li&gt; </code></pre> <p>So, can I get extract strings "firstname" and "last name" using javascipt or jquery?</p> <hr> <p>Actually I think I have made some mistake to explain.</p> <p>my String looks like</p> <pre><co...
javascript jquery
[3, 5]
3,482,638
3,482,639
ASP.Net Web Application Choose Client Side Directory
<p>I have the requirement to allow a user to provide a local directory path via a UI in a web application so that we can save it to our database. Our other program (a winforms app) will then use this path to store files (actually recordings) that they have created via the app. </p> <p>Ideally I would like to remove as...
c# asp.net
[0, 9]
1,262,233
1,262,234
PHP to ASP.NET conversion
<p>Does anyone know how to convert the following PHP code to ASP.NET?</p> <pre><code>&lt;?php $myFile = "includes/status.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 1); $status= $theData; if ( $status == 0) { include('includes/bol_down.php'); } elseif ($status == 1){ include('includes/login_f...
php asp.net
[2, 9]
505,975
505,976
Code won't execute in $(document).ready but will in developer console
<p>I have some code wrapped in <code>$(document).ready(function(){ /*code*/ });</code>, and all of it works fine, except for one line. The code above it works fine, the code below it works fine, I'm not getting any errors in my console.</p> <pre><code>$('.main-right.category').height( $('.footer').height() + $('.main...
javascript jquery
[3, 5]
4,640,595
4,640,596
How to remove class with this JS function
<p>This function is set up so it simply finds the -a's- within the class of menu-option-set, and says, upon click, add the class "selected" and remove the class "selected" from all others within that list.</p> <p>What I want to do is simply have it so if you click the item that already has the class of "selected" then...
javascript jquery
[3, 5]
4,477,515
4,477,516
JQuery condition with blank input
<p>I need to do multiple checks in a jquery condition ...</p> <p>I am looking for something like this:</p> <p>IF checkbox_A is Checked then</p> <p>If input_A is empty then alert('input_A is Required')</p> <p>else Add a class="continue" to the div below.</p> <pre><code>&lt;button id="btn1"&gt;Continue&lt;/button&gt...
javascript jquery
[3, 5]
1,815,393
1,815,394
Unable read App.config values from Class Library
<p>This may be the simple question to answer, but I am struggling to resolve.</p> <p>I have <code>Web.config</code> with the following values in my Web Application.</p> <pre><code>&lt;appSettings&gt; &lt;add key ="FirstName" value ="Prasad"/&gt; &lt;add key ="LastName" value ="Kanaparthi"/&gt; &lt;/appSetting...
c# asp.net
[0, 9]
5,192,520
5,192,521
Trigger event automatically once per 24h / per user in ASP .NET Application
<p>What selection of solution do I have if I want to launch particular piece of code for logged in user, <strong>but not more often then once per day</strong> (it can change in the future to run once per 6 hours though). I though about setting a cookie that will store a date when code was launched the last time, but I ...
c# asp.net
[0, 9]
4,770,770
4,770,771
Get all folders and files in a directory
<p>i have this directory: </p> <p>/mnt/sdcard/App/Downloads/Files/Documents/ as the root directory or folder of my app. the said directory contains other set of folder and files which i need to show the folder, subfolder and files exact paths in the Logcat.</p> <p>how can i do that without needing to click anything i...
java android
[1, 4]
427,624
427,625
gridview updating a particular record after search
<p>1.I have one grid having 100 records and it is in updatepanel. 2.I have implimented search using jquery. 3. when i found that record after search then i when i go for for editing all the records are comming. 4. what i want is to have only that record to display for updating. here is my code</p> <pre><code>$(docume...
javascript jquery asp.net
[3, 5, 9]
5,341,741
5,341,742
Ventrilo Status on your website
<p>I'm looking for some examples of how you would show the status of a ventrilo server on your website. What I would like is the ability to show who is logged on and what channel they are logged into. I have found sites that you can purchase, but would like to either find a open source or free solution.</p> <p>If th...
c# php asp.net
[0, 2, 9]
582,387
582,388
Javascript not executing in iPhone
<p>I want to execute javascript code from my iPhone application using UIWebView.</p> <p>But only html part is executing while javascript part is not executing. It's also not showing an error.</p> <pre><code>NSMutableString *htmlCode = [NSMutableString stringWithString:@"&lt;!DOCTYPE HTML&gt;"]; [htmlCode appendStri...
javascript iphone
[3, 8]
3,795,402
3,795,403
Applying Jquery Accordion on a class
<p>How to apply jquery accordion function to a div with a particular class... i.e. div id='abc'we use $("#abc").accordion(); but how to accomplish if we have div class='abc'??</p>
javascript jquery
[3, 5]
3,245,270
3,245,271
How to poll a directory in ASP.NET?
<p>I want to poll a directory to check whether new file is added to the directory in ASP.NET web application (C#). If any new file is added I want to read that file.</p> <p>Can anybody give me an idea how to do that?</p> <p>Thanks.</p>
c# asp.net
[0, 9]
1,982,602
1,982,603
Getting the count of divs which are children of some divs
<p>I want to get the count of some divs. Here is my page structure as a picture. I want to get the count of cityUnderText divs.</p> <p><img src="http://i.stack.imgur.com/UPfvm.png" alt="enter image description here"></p> <p>I am using these script codes but I m getting <strong>0</strong> but I need just <strong>6</st...
javascript jquery
[3, 5]
2,747,773
2,747,774
jquery form change
<p>In jQuery, is there a simple way to test if ANY of a forms elements have changed?</p> <p><strong>EDIT:</strong> I should have added that I only need to check on a click() event.</p> <p><strong>EDIT:</strong> Sorry I really should have been more specific! Say I have a form. And I have a button with the following:</...
javascript jquery
[3, 5]
620,913
620,914
get element from function in Jquery Method
<p>I made a jquery function that needs to run a user function onclick of the element. The problem is that i need access to the element I am calling the function on. How would i go about accomplishing this. An example of the function is </p> <pre><code> $("#domelement").yesNoDialog({ tit...
javascript jquery
[3, 5]
4,898,860
4,898,861
Problem removing a dynamic form field in jquery
<p>I'm trying to remove a dynamic form field by click a button. It will also subtract whatever values it had from the total amount from my calculation. This is the code:</p> <pre><code>function removeFormField(id) { var id = $(id).attr("name"); $('#target1').text($("#total" + id).map(function() { var c...
javascript jquery
[3, 5]
2,678,163
2,678,164
How to check if enterkey is pressed in a TextBox in asp.net
<p>I have a asp.net Text Box which accepts date in the format MM/DD/YYYY. After entering the date i will hit enter key.if enter key i need to execute server side code.How can we achieve this ?</p> <p>The problem with Text box is it will fire the Text Changed event only if it looses the focus.</p>
c# javascript jquery asp.net
[0, 3, 5, 9]
4,680,189
4,680,190
How to change time zone for an asp.net application
<p>I need to set default timezone for my ASP.NET to Asia/Dhaka or GMT+6 timezone. But i cannot find a way to change it globally. There is a lot of reference on Stackoverflow and rest of the web for doing this by getting timezone info and calculating correct time for each time i need a DateTime object.</p> <p>But trust...
c# asp.net
[0, 9]
4,841,387
4,841,388
why print dialog is not opened in IE when printing a dive content using javascript?
<p>I want to print a dive content using javascript and jquery and using following code:</p> <pre><code> n = window.open('M80Print.aspx', '_blank', 'status=no,toolbar=no,menubar=yes,height=400px,width=640px'); n.document.write($('#&lt;%=Print.ClientID %&gt;').html()); n.print(); </code></pre> <p>It...
javascript jquery
[3, 5]
5,650,121
5,650,122
Loading multiple images using BitmapFactory [OutOfMemoryException]
<p>I'm trying to load 30 images into a Bitmap array using BitmapFactory but no matter what I do I keep getting OutOfMemoryException.. I tried resizing it and doing the scale way down.. people usually do 4-8 I tried 12,16,20, nothing works.. </p> <p>I have a loop where it loads in a string of URLs and opens a new httpu...
java android
[1, 4]
4,442,562
4,442,563
Handling client Creation failiers
<p>I am creating a android client app to connect to my server using the following code</p> <pre><code>Socket socket = new Socket(MYIP, PORT); </code></pre> <p>When the server is available it works well , but when the server is not available i want to tell <strong>No server found.</strong> But unfortunately no any ex...
java android
[1, 4]
923,339
923,340
how to target certain time using jquery Countdown - http://keith-wood.name/countdown.html
<p>I am using these jQuery countdown - <a href="http://keith-wood.name/countdown.html" rel="nofollow">http://keith-wood.name/countdown.html</a>.</p> <p>I'm trying to get it to countdown to 17:00 (5:00 PM) everyday but I cannot seem to set the time.</p> <p>Any help welcomed.</p> <p>The code I have is :-</p> <pre><co...
javascript jquery
[3, 5]
790,841
790,842
jquery toggle depending on value of textbox
<p>This must be very simple, but I just got stuck with this... I have a list of products with an input field for the quantity and next to it a column with the prices. The prices are displaying two values. One of them is hidden. If the value of the input field goes over a certain value, it should hide the other price. E...
javascript jquery
[3, 5]
3,811,134
3,811,135
How do I make a certain javascript function execute on page load for all its elements?
<p>I have a javascript function defined as follows (note that it does not use jquery):</p> <pre><code>function getCalculationFormsByType(selectObject, parentNode, countIndex) { var operationID = parseInt(selectObject.value, 10); var divs = parentNode.getElementsByTagName("DIV"); // the rest of the functi...
javascript jquery
[3, 5]
4,609,866
4,609,867
Combining 2 arrays in javascript
<p>I have 2 arrays in javascript. </p> <pre><code> var A = ['c++', 'java', 'c', 'c#', ...]; var B = [12, 3, 4, 25, ...]; </code></pre> <p>Now from these 2 arrays i want to create another array like :</p> <pre><code> [['c++',12], ['java',3], ['c',4], ['c#', 25] ...]; </code></pre> <p>Both <co...
javascript jquery
[3, 5]
3,321,354
3,321,355
Load javascript via jQuery ajax
<p>is it possible to use jQuery %Json function to load a javascriptfile.js asynchronously?</p>
javascript jquery
[3, 5]
4,115,786
4,115,787
Sharing an object between methods in same class (with postback)
<p>I have a user control with a number of methods. I also have a dataset object that I'm filling in one method, but I also need to access that same dataset (and the data in it) in another. </p> <p>I am filling the dataset from some xml that I get from a webservice when someone clicks on a button. The data from the dat...
c# asp.net
[0, 9]
4,773,951
4,773,952
Control of forward and backward button of browser
<p>I have a login page and once a person is logged in , he should not be allowed to move back to login page.<br> So , can someone tell me how to disable backward/forward button of browser ?</p>
c# asp.net
[0, 9]
2,627,103
2,627,104
jQuery Delaying Queue
<p>I want to delay things like the css from happening but this method wont work. Any ideas on how I can delay tasks.</p> <pre><code>$(function() { $('.btn').click(function() { $('.divOne').animate({"left": "+=400px"}, "fast").delay(800).css("background-color","yellow"); }); }); </code></pre>
javascript jquery
[3, 5]
4,056,236
4,056,237
background color shows up only when i touch the text
<p>Here is a code snippet</p> <pre><code>int bgColor = Integer.parseInt(summaryReportObj.backgroundColor, 16); lv0.setBackgroundColor(bgColor); </code></pre> <p>The bgColor is blue and shows up only when I touch the text. I want the color to show all the time. When I set background image it displays just great.</p> ...
java android
[1, 4]
3,334,304
3,334,305
Android/Java - Find text and replace in WebViewClient
<p>I have a WebViewClient that opens in a dialog which i can capture when the URL changes, but on certain URL's I would like to replace certain text but I cant seem to figure out how to get the text of the current webpage that has been loaded so I can search and replace that text.</p>
java android
[1, 4]
4,357,522
4,357,523
When clicking the button, the content doesn't change. - Android
<p>I want to change the content on a button change, but it never works.</p> <pre><code> button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { setContentView(R.layout.blahdyblah); } }); </code></pre> <p>So that's the...
java android
[1, 4]
1,704,689
1,704,690
jQuery lightbox plug-in bug
<p>If you visit here: <a href="http://www.egyptevakantie.nl/dahab" rel="nofollow">http://www.egyptevakantie.nl/dahab</a>, click on the "andere plaatsen" tab, and then click on an image it brings up a magnified image, courtesy of the jQuery lightbox plug-in.</p> <p>However, if you do the same here <a href="http://www.e...
javascript jquery
[3, 5]
2,734,390
2,734,391
Insert new line after two words
<p>I have a text area which is filled from database. In that textarea comma's are replaced by white space using this.</p> <pre><code> document.getElementById('&lt;%=fnl000Db000MESSAGE.ClientId %&gt;').value=document.getElementById('&lt;%=fnl000Db000MESSAGE.ClientId %&gt;').value.replace(/,/g,'\s'); </code></pre> <p>N...
javascript asp.net
[3, 9]
2,231,042
2,231,043
Watermark text in asp.net?
<p>in my web application i am using javascript for water mark text in textboxes it is working fine but for textbox if TextMode property set to Multiline then the water mark text is not displaying is there any particular reason. this is my code...</p> <pre><code>&lt;TextBox ID="txtone" runat="server" tooltip="Enter com...
javascript asp.net
[3, 9]
4,544,839
4,544,840
Convert multi-lined variable into a single lined variable using Javascript?
<p>I have a variable:</p> <pre><code> var remoteControlPage = ' &lt;table&gt; &lt;tr&gt; &lt;td class="stats"&gt;sadfsadf&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; '; </code></pre> <p>and I want to use it in a Jquery <code>.html</code> function like this:</p>...
javascript jquery
[3, 5]
4,156,106
4,156,107
Parse a Text File using Java
<p>could you point me to an example where I can find more information about how to parse a text file in Java and extracting a particular String or reg ex out of It.</p>
java android
[1, 4]
2,978,625
2,978,626
Enable/disable button depending on whether an input in a text box is in a select box
<p>I have nearly finished writing this code: <a href="http://jsfiddle.net/2Jkk9/11/" rel="nofollow">http://jsfiddle.net/2Jkk9/11/</a></p> <p>but I can't figure out how to search the select box for the value in my text box and enable/disabled the button accordingly.</p> <p>That's probably enough explanation.. the code...
javascript jquery
[3, 5]
3,728,094
3,728,095
How to pass a url to a JavaScript function as a parameter?
<p>I just want to pass the base url to a javaScript function. Function call is like as follows </p> <pre><code>&lt;img src="assets/images/c_arow_rite.jpg" onClick="nextMonth('.$bs_url.')"/&gt; </code></pre> <p>It showing an error in the Error Console like </p> <pre><code>Error: SyntaxError: identifier starts immedi...
php javascript
[2, 3]
520,416
520,417
extract value from href tag with jquery
<p>Url is generated like this</p> <pre><code>/Home/LoadData?page=2&amp;activeTab=House </code></pre> <p>How can I grab activeTab value?</p>
javascript jquery
[3, 5]
2,002,087
2,002,088
Python Interpreter on Android
<p>So I want to practice python on my Android. Is there a way I can get the interpreter or an interpreter emulator on my device?</p>
android python
[4, 7]
48,042
48,043
Handle/Grip bar convention
<p>Greetings,</p> <p>Because textarea elements do not resize with jquery.touch ( <a href="http://plugins.jquery.com/project/touch" rel="nofollow">http://plugins.jquery.com/project/touch</a> ), I've put an textarea in a table where the first row allows the user to drag the table around and resize it with the textarea g...
jquery iphone javascript
[5, 8, 3]
4,924,675
4,924,676
How to set time zone for calendar event programmatically?
<p>In android app, while inserting calendar event, how to set time zone for that inserting calendar event. Any help is really appreciated and thanks in advance...</p>
java android
[1, 4]
2,204,688
2,204,689
Delete row from Object
<p>I have an object containing an array:</p> <pre><code>&lt;script type="text/javascript"&gt; var statusData = { Status: [] }; var uniqueCounter = 1 function createJsonFmtData() { // Used as unique id at client side var uniqueCounter =uniqueCounter + 1; status...
javascript jquery
[3, 5]
4,913,340
4,913,341
Is it possible to create a html file using JQuery?
<p>Is it possible to create a html file and save it to a directory using JQuery?</p>
javascript jquery
[3, 5]
2,112,279
2,112,280
Jquery get text value of option on change
<p>I have code like this:</p> <pre><code>&lt;select name="caffe" id="caffe"&gt; &lt;option value="5"&gt;Red&lt;/option&gt; &lt;option value="6"&gt;nmfxnsdnx&lt;/option&gt; &lt;/select&gt; &lt;div id="gll_select"&gt; &lt;script&gt; var caffe = $("#caffe").val(); var cff_name = $("#caffe...
javascript jquery
[3, 5]
3,567,439
3,567,440
Setting members of object using function fails
<p>I'm trying to implement a kind of multiplayer extension to a game I'm creating. After a XMLHttpRequest, a game ID is returned, i.e. the ID of a multiplayer session.</p> <p>I'm using the following code, in which Multiplayer is a static class:</p> <pre><code>var Multiplayer = { baseURL: 'http://127.0.0.1:8888/m'...
javascript jquery
[3, 5]
5,456,870
5,456,871
Scriptlet is not working in head tag
<p>I want to add version number to CSS files for production environment not to force user every time press Ctrl+F5 to download new CSS files after new version is deployed in prod server as the old version is cached in browser.</p> <p>I'm adding build number as querystring param like this.</p> <pre><code>link href="St...
c# asp.net
[0, 9]
1,899,586
1,899,587
How do i validate a field based on the input of another field
<p>i have 2 fields and i need to make one of the fields a required fields only if the other field has content of "NO" value in it. So i have researched online and this is what i ended up having. The only question i have and need help with this is the first part of the code where it calls this: .getElementByID. How c...
c# asp.net
[0, 9]
2,565,480
2,565,481
Trying to think of a way to dynamically add text for each image
<p>I'm trying to think of a way to make this happen.</p> <p>I'm using a jQuery slideshow to display images, and a simple php script to pull the images from a folder based on which gallery the user selects:</p> <pre><code> $handle = opendir(dirname(realpath(__FILE__)).'/../images/gallery/'.$gallery); while($file = ...
php jquery
[2, 5]
4,036,777
4,036,778
Adding a parameter to callback function inside of callback function
<p>This might have been asked before, but I can't find any good examples on how to accomplish this.</p> <p>I have a callback which is fired. But inside this callback i need to add a new parameter to the ending callback function. How can I do this:</p> <pre><code>var form_to_submit = function() { var parameters...
javascript jquery
[3, 5]
3,893,442
3,893,443
Change class view using buttons
<p>I'm trying to have a program go from one class to another by the press of a button. I know this needs to be done with intent, but I'm not sure exactly what action to use for intent. Also, i would rather not try to use OnClickListener since it seems to me to be a bit excessive for what I need to do. Though I could be...
java android
[1, 4]
5,680,150
5,680,151
REQUEST_TIME in C#
<p>Is there a similar function in C# that is akin to the PHP functionality of <code>("$_SERVER['REQUEST_TIME']")</code>?</p>
c# asp.net
[0, 9]
5,395,933
5,395,934
Simple javascript document.write isn't working
<p><a href="http://www.jsfiddle.net/T6Jqx/13/" rel="nofollow">Here's the code in question</a></p> <p>I'm trying to create a simple application - each of the three men has a <code>rel="x"</code> attribute attached them. I'm using <code>var regionId = $('img.selected-region').attr('rel');</code> to make the <code>rel</c...
javascript jquery
[3, 5]
5,166,098
5,166,099
Android Game Dev: Draw menus with SurfaceView?
<p>I want to create a menu and level select screen for my Android game but I'm not sure how to go about doing so. I already have the game portion of my game which renders to a SurfaceView object so I was wondering should I also have the menus render to a SurfaceView? If so should it be rendering to the SAME surface vie...
java android
[1, 4]
2,096,676
2,096,677
Why are these nested triggers for jQuery not working?
<p>I am using the following code to load two underscore.js templates. Once the first link is clicked, the skeleton template is loaded. The first trigger executes the find bind, which executes the loadBookmarks function correctly, but the 'loaded' trigger never fires and the loadFriendBookmarks never executes. Why is...
javascript jquery
[3, 5]
2,090,105
2,090,106
How do you move html from one div to another with Jquery without breaking javascript
<p>I have two divs for different sections of my webpage, a working and a reference section. One is fixed size, the other is variable sized and they are vertically stacked. I am trying to design it so that if you want to work on something in the reference pane, you click a link and it swaps all the data between the tw...
javascript jquery
[3, 5]
1,962,812
1,962,813
Show/Hide a text box
<p>I have this code that Show/Hide a text box if I select a category from a dropdown list. It's working fine, but what I want is if someone selects a different category then the text box disappears or be replaced with another text box. EX: If I select food then a text box appear, and if I select a different category th...
php javascript
[2, 3]
5,293,109
5,293,110
Is it a good idea to put class parameters in a session object?
<p>I recently asked a question about storing the results of a database search in which I put a datatable with over 100,000 records into a session object and then would retrieve that session on another page and bind it to a gridview and display the results. This is obviously not very good, so instead of doing that, is...
c# asp.net
[0, 9]
3,594,971
3,594,972
Why is it allowed to make a non-static reference from static object?
<p>Here is an example: </p> <pre><code>public class Test extends Activity { Button button; public int i; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ...
java android
[1, 4]
2,430,158
2,430,159
Is it possible to use 2 versions of jQuery on the same page?
<p><em>NOTE: I know similar questions have already been asked <a href="http://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page">here</a> and <a href="http://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page">here</a>, but I'm looking ...
javascript jquery
[3, 5]
3,151,374
3,151,375
org.apache.commons.net.nntp crashing android
<p>Hay Guy, I'm using org.apache.commons.net.nntp to connect to a nntp server, however running a simple nntp.connect(host, port) crashes the android.</p> <p>Anyone got any ideas? Do java packages work with android straight out of the box? or do they need editing?</p> <p>Thanks</p> <pre><code>import org.apache.common...
java android
[1, 4]
784,458
784,459
namespace conflict
<p>I got:</p> <pre><code>using System.Diagnostics; using System.Reflection; namespace Site { public abstract class General { private static string _version; public static string Version { get { return _version; } } static General() { Assembly assembly = Assembly....
c# asp.net
[0, 9]
374,763
374,764
Constraint - Derived Class must have a default Constructor
<p>I want to Constraint that the Derived Class must have a Default Constructor. I am currently thinking it in a perverted way</p> <pre><code>template &lt;typename Derived&gt; class Base{ public: Base(){ } virtual ~Base(){ new Derived; } }; </code></pre> <p>Another idea comes to mind is to kee...
php c++
[2, 6]
4,187,768
4,187,769
jQuery - Many toggle sliders, only one visible at the time
<p>I have four jquery sliders in a page with these scripts:</p> <pre><code>$(document).ready(function(){ $("#information").click(function(){ $("#information_show").slideToggle("medium"); }); }); $(document).ready(function(){ $("#menu").click(function(){ $("#menu_slide").slideToggle("medium"); }); }); ...
javascript jquery
[3, 5]
452,294
452,295
In jQuery how can I parse out and execute JavaScript using getJSON
<p>In the following code:</p> <pre><code> function main() { jQuery(document).ready(function($) { /******* Load HTML *******/ var jsonp_url = "http://184.72.244.64/test.fwx?callback=?"; $.getJSON(jsonp_url, function(data) { $('#DivTagToInsertTheHT...
javascript jquery
[3, 5]
5,392,566
5,392,567
Make a hyper link on Html link with Jquery
<p>I have Html contents like</p> <pre><code>&lt;span&gt; http://j.mp/eUcRNK &lt;/span&gt; </code></pre> <p>I want to hyperlink on above html text like this</p> <pre><code>&lt;span&gt; &lt;a href="http://j.mp/eUcRNK" class="link" target="_blank"&gt; http://j.mp/eUcRNK &lt;/a&gt; &lt;/span&gt; </code></p...
javascript jquery
[3, 5]
4,834,343
4,834,344
Simple jquery ajax response on error
<p>A couple of questions, first with this var string below, the 1 one works but I need to get the second one working, there is a snytax error because I am not sure how to write it</p> <pre><code>var string = 'id='+ id ; var string = 'id='+ id 'USER=1'; </code></pre> <p>Second; This ajax call below, it post to delete....
php jquery
[2, 5]
3,172,430
3,172,431
Selected Spinner array into TextView
<p>I have my spinner pulling from an array,(that works).. What I want to happen is I have several textviews that will map to whatever is selected from the spinner array... e.g British Columbia. then the Texviews will all say british columbia. I figure i should be using a setText of some kind but have been on able to fi...
java android
[1, 4]
5,967,854
5,967,855
How to set an object param name with a string in JavaScript?
<p>I'm writing a plugin for jQuery where I need to send a little piece of data to the server, but I need to set the var name of the json object I send:</p> <pre><code>var params = {name:'var_name'} $.post('page.php', {params.name:'the value'}, function () { /* etc. */ }); </code></pre> <p>how can I do it?</p>
javascript jquery
[3, 5]
1,176,163
1,176,164
jQuery MaskMoney - set input to to beginning of field
<p>I made this <a href="http://jsfiddle.net/Qct6U/" rel="nofollow">jsfiddle</a> to demonstrate my problem. When I focus on the field the cursor goes to the end. You start typing cents before you dollars. I do not want this behavior. I want it to type dollars until the user presses '.'</p> <p>Some help would be greatly...
javascript jquery
[3, 5]
4,916,968
4,916,969
".resize" event don't work with "offset" together
<p>Can anyone tell me what is wrong with this code? it just crashes my browser and that's all...</p> <pre><code>$(window).resize(function() { var p = $("#outer_wrap"); var offset = p.offset(); alert("left: " + offset.left + ", top: " + offset.top); }); </code></pre>
javascript jquery
[3, 5]
3,207,359
3,207,360
Retrieving an element by array index in jQuery vs the each() function
<p>I was writing a "pluginable" function when I noticed the following behavior (tested in FF 3.5.9 with Firebug 1.5.3).</p> <pre><code>$.fn.computerMove = function () { var board = $(this); var emptySquares = board.find('div.clickable'); var randPosition = Math.floor(Math.random() * emptySquares.length); ...
javascript jquery
[3, 5]
373,998
373,999
If-statement dont get true, but it should
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java">How do I compare strings in Java?</a> </p> </blockquote> <p>I dont understand why the the first (same for other ones) <code>if</code> in sendMessage never gets true. The ...
java android
[1, 4]
4,987,438
4,987,439
Failed to save image to sdcard
<p>I try to download an image with this code and save it : in this line:</p> <pre><code>OutputStream os =new FileOutputStream(f); </code></pre> <p>i try it on the emulator.my app get exception that there is no permission to save to this path:</p> <pre><code>java.io.FileNotFoundException: /mnt/sdcard/InterFlora/12216...
java android
[1, 4]
1,172,522
1,172,523
Can PHP be more like python?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1266911/does-php-have-an-equivalent-to-pythons-list-comprehension-syntax">Does PHP have an equivalent to Python&#39;s list comprehension syntax?</a> </p> </blockquote> <p>Does PHP have any equivalent of the simp...
php python
[2, 7]
1,722,309
1,722,310
Repeater Paging
<p>I am using the following code for paging inside a repeater. I have the paging size set to 3. If there are exactly 3 speech bubbles - the next button is displayed and when I selected I'm redirected to an empty page. However, if there are 4 sepeech bubbles, everything is fine. Is there a way to make sure that if the p...
c# asp.net
[0, 9]
1,198,120
1,198,121
How to select a tag with a variable value in jQuery
<p>I am very new to jquery/javscript. I have a simple question.</p> <p>Lets say i have a tag like this:</p> <pre><code>&lt;Table id="mytable" &gt; &lt;Table&gt; </code></pre> <p>And i want to add some rows to this table.</p> <p>Then we do like:</p> <pre><code>$("#mytable").append("&lt;tr&gt;&lt;td&gt;value&lt;/td&...
javascript jquery
[3, 5]
2,132,339
2,132,340
I tried trial and error with jquery, but it doesn't work
<p>I have a form with many selects created with php. The form has 3 type of selects: the second select is conditioned on the choice of the first and the third is conditioned on the choice of the second. Every select has an id like this: type[00], type [01], type[02]; make[00], make[01], make[02]; model[00], model[01], ...
javascript jquery
[3, 5]
3,617,644
3,617,645
Scroll to a div within a div on certain action
<p>Is it possible to scroll to a particular div automatically when called upon in JavaScript/jQuery?</p> <p>I can use <code>$('div[compid="' + compid + '"]')</code> to get the correct div but I need to force the div with that particular compid to be scrolled to on the screen.</p> <pre><code>$(document).delegate(".h...
javascript jquery
[3, 5]
5,087,061
5,087,062
Repeat jQuery ajax request
<p>I make an ajax request to the server. And sometimes I receive 502 error. So, if that happened error() method is called.</p> <p>How can I repeat request if receive an error? The code should looks like this:</p> <pre><code>$.ajax({ url: 'http://server/test.php', type: 'GET', ...
javascript jquery
[3, 5]
1,951,854
1,951,855
Parameter is not valid exception when saving image in winform
<p>I am getting a parameter is not valid exception..While saving the image</p> <p>Here is my code to save the image</p> <pre><code>if (!File.Exists(pictureBox1.Tag.ToString())) { Image image = pictureBox1.Image; image.Save(pictureBox1.Tag.ToString(), ImageFormat.Jpeg); } else { string delStr = pictureBox1...
c# asp.net
[0, 9]
3,778,798
3,778,799
how to make system tray alert using php or jquery or java?
<p>I am writing a program which requires to alert the user when a particular event occurs, it can be a balloon tip, or system tray alert like skype, or antivirus alert? </p>
php javascript jquery
[2, 3, 5]
3,463,449
3,463,450
display content of a URL in a div
<p>I am opening a popup window in the following format :</p> <pre><code>window.open('http://URL', 'invitationwindow', 'height=250,width=500,scrollbars=yes,resizable=yes,status=yes') </code></pre> <p>How I do I Get the content of the popup in a div in the same page. I mean, I don't want the popup but the content of i...
javascript jquery
[3, 5]
1,665,109
1,665,110
What are the tools/frameworks used to build C# ASP.net applications?
<p>I am basically a java programmer who wants to move to .net. I haven't worked in .NET companies so I don't have any idea about the tools they use. In a Java company people use Maven, Hibernate and frameworks such as JSF or Tapestry.</p> <p>My questions are: </p> <p>What are the tools/frameworks that .NET/C# compani...
c# asp.net
[0, 9]
5,545,657
5,545,658
javascript get digits after last non-numeric charachter
<p>I have 3 input in form</p> <pre><code>&lt;input type="text" name="full" /&gt; &lt;input type="text" name="FilterLeft" /&gt; &lt;input type="text" name="FilterRight" /&gt; </code></pre> <p>When user typing in $(#full), function must be devide value into left side after last non-numeric symbol, and right side after ...
javascript jquery
[3, 5]