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,903,021
2,903,022
How do I get the onclick variable into a dialog function
<p>I have a onclick event that has a value in it that I want to post to a backend php script. Just not sure how to get it in the dialog function. </p> <pre><code>function reorder(job_index)//&lt;--------this fella { $('#dialog').dialog('open'); } $(document).ready(function(){ $(function() { $("#dialog").dialog({ ...
javascript jquery
[3, 5]
5,741,311
5,741,312
compress video files
<p>i want compress video files and send it from Transmitter and receive it and decompress it and show</p> <p>is sdk for it? (for c++ or c#)</p> <p>and if is possible Introduction to me some video library.</p> <p>thanks.</p>
c# c++
[0, 6]
4,265,405
4,265,406
JavaScript For Checking Date
<pre><code>function checkDate(sender, args) { var toDate = new Date(); toDate.setMinutes(0); toDate.setSeconds(0); toDate.setHours(0); toDate.setMilliseconds(0); if (sender._selectedDate &gt; toDate) { al...
javascript asp.net
[3, 9]
584,518
584,519
Difference of Enum between java and C++?
<p>Hi I am learning Enums in java I like to know what are the major differences of Enum in java and C++. Thanks</p>
java c++
[1, 6]
1,031,495
1,031,496
only one radio buttons
<p>I have read in an example that if you use more than one radio button you should use <code>RadioGroup</code> like this:</p> <pre><code>&lt;RadioGroup android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;RadioButton ...
java android
[1, 4]
5,769,625
5,769,626
Can you check if a web application is already running on another browser tab?
<p>I have a web application written in ASP.NEt/C# and javascript. It uses session variables.</p> <p>When I open the application, is there a way to check if the application is running in another tab?</p> <p>Or do you have any ideas on making session variables unique for each tab?</p> <p>Any help would be great!</p> ...
c# javascript asp.net
[0, 3, 9]
1,663,356
1,663,357
how do i avoid including jquery twice?
<p>i have a service i'm building, which will be included as JS on client web pages. optimally, i want to build the service using jquery.</p> <p>the case may arise, where the page already has JQ included.</p> <p>how do i avoid including JQ twice in the page? how do i make sure i still have the desired JQ functionality...
javascript jquery
[3, 5]
5,242,787
5,242,788
My javascript to jQuery translation has a bug
<p>My guess is that this javascript just finds the div called <code>divid</code> and then uses it with the <code>sendit</code> function.</p> <pre><code>var somevalue = 19; if (navigator.appName.indexOf("Microsoft") != -1) { thediv = window["divid"]; } else { thediv = document["divid"]; } thediv.sendit(somev...
javascript jquery
[3, 5]
2,210,507
2,210,508
sorting a json list?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1129216/sorting-objects-in-an-array-by-a-field-value-in-javascript">Sorting objects in an array by a field value in JavaScript</a> </p> </blockquote> <pre><code> var myData = [ {"Identifier":1,...
javascript jquery
[3, 5]
3,870,929
3,870,930
Onload click the link
<p>At the moment the following code will load only when the users clicks the link.</p> <p>I want on load of the page this to happen without the user having to click.</p> <pre><code>&lt;script&gt; $(document).ready(function() { // Support for AJAX loaded modal window $(document).on('click', '.btn-modal', funct...
javascript jquery
[3, 5]
4,800,105
4,800,106
How to play external video with java android jdk?
<p><a href="http://www.androidpeople.com/android-mediaplayer-example/" rel="nofollow">Here</a>'s an example on how to play video,</p> <p>but it embeds the video as resource of the apk,</p> <p>how to play an external video ,e.g. the <code>test.mp4</code> under the <code>/download</code> directory of sdcard?</p>
java android
[1, 4]
3,186,560
3,186,561
jQuery - "Trigger a click" vs "Function call"?
<p>Say I have some actions binded to a link ( with .click or .live), and I want to do the same thing later, but I don't want duplicated code. Which is the correct way and why?</p> <p>This:</p> <pre><code>$('#link').click(function(){ //do stuff }); //called later $('#link').trigger('click'); </code></pre> <p>OR:</p...
javascript jquery
[3, 5]
1,030,487
1,030,488
Best Javascript tutorial so i can get started on JQuery?
<p>Sorry if this is in the wrong stack exchange, wasn't sure if I should post it here, or overflow.</p> <p>Just wanted to know of a few good online tutorials or a book I can do to get me started with Javascript (I know the small basics, alerts, css styles) and then maybe it branches to JQuery, or at least will give me...
javascript jquery
[3, 5]
5,912,658
5,912,659
The status code returned from the server was: 500
<p>I have a feature in my site that is sending emails. I want to save the email details including the message that users typed in the database for historical purposes. Page uses validation for the fields and as such it throws an error: </p> <p><code>"Sys.WebForms.PageRequestManagerServerErrorException: An unknown erro...
c# asp.net
[0, 9]
3,689,862
3,689,863
regex search using string
<p>I have a string of text that has the value of the selected text. Id like to do a replace() of this text in a given div of text.</p> <p>so I know I can do that with the following:</p> <p><code>myelement.replace(/foo/g, 'bar');</code></p> <p>However I need to do it with my string ie:</p> <p><code>myelement.replace...
javascript jquery
[3, 5]
2,452,378
2,452,379
how to make a "Tr" visiable and invisable based on radio buttonlist click
<p>i have an <strong>2 "tr"</strong> under </p> <ol> <li>tr one have an file upload control</li> <li><p>tr two have an textbox control.</p> <p>so i have an radio button list woth three values 1:image 2:video 3:Audio by default i need to show file upload control visiable that is the <strong>1"tr".</...
asp.net javascript jquery
[9, 3, 5]
2,823,344
2,823,345
Having a TableRow with TextView's underneath each other
<p>I'm currently having the following problem:</p> <p>I've got a TableView that is given TableRow's to be added to it with data. I want each TableRow to contain 2 TextView's having a width of the parent and are underneath each other, for example:</p> <pre><code>| TextView1.............. | | TextView2.............. | ...
java android
[1, 4]
2,677,601
2,677,602
Want to rotate element in jquery
<p>I am trying to <em>rotate an element</em> (any element div,p..) with the <em>handle</em> (handle=>div) which I placed on the element's <em>top-left</em> corner, now my problem is that the element does not fully rotate to 360 degree, can anyone please help out :</p> <pre><code>$("#elementid").live('mouseover', funct...
javascript jquery
[3, 5]
5,147,505
5,147,506
php + javascript open a link in new weindow (tab) automatically
<p>I have 100 links for example, in a file. The idea is to loading to a php page, it loads the links file, it reads the first line and gets the first link. Then it opens it in a new window of browser, after 5 seconds the page refreshes itself and it gets the second link from the file and opens it in a new window again....
php javascript
[2, 3]
3,508,892
3,508,893
Disabling LinkButton doesn't disable the click event in javascript
<p>I want to disable a <code>LinkButton</code> clink on the client site.</p> <pre><code>objLinkButton.disabled = true; // or objLinkButton.disabled = -1; </code></pre> <p>This disables the link but I am still able to click on the link and do PostBack.</p> <p>Is there any way I can disable the link.</p> <p>Code:</p...
c# asp.net javascript
[0, 9, 3]
4,473,161
4,473,162
How to get inner tr tag using JQuery?
<p>I am trying to grab documentnumber attribute from the tr tags inside tbody, and save it in an array.</p> <p>Below is the html , I am working on</p> <pre><code>&lt;tbody class="line-item-grid-body"&gt; &lt;tr data-group-sequence-number-field-index="" data-sequence-number-field-index="1" documentnumber="80" docu...
javascript jquery
[3, 5]
4,646,511
4,646,512
Object doesn't support this property or method IE8 Jquery
<p>I am getting the error "Object doesn't support this property or method" in Explorer 8, this is the piece of code, I can't see the problem.</p> <pre><code>jQuery('.block_right h3').click(function(){ jQuery(this).parent().find(".respuesta").slideToggle('slow').find(".block_right h3 span").toogle(); }); </code><...
javascript jquery
[3, 5]
1,674,841
1,674,842
How to display cash value in words using jQuery?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7257575/number-to-word-jquery">Number to Word - jquery</a> </p> </blockquote> <p>I want to show the total billed amount in receipt in words also. How to achieve it using jQuery?</p> <p>Ex.</p> <pre><code>Item ...
javascript jquery
[3, 5]
5,310,129
5,310,130
Android set ringtone failure
<p>I try the following code and it doesn't set the ringtone. The logcat entry for "ff" says null so I guess the URI isnt being concatenated properly?, I cant seem to figure out where in my code I am going wrong.</p> <pre><code>String filepath =Environment.getExternalStorageDirectory().toString()+"//media//audio//ringt...
java android
[1, 4]
2,610,796
2,610,797
jQuery change text in link
<p>I have a simple question for jQuery...</p> <p>I have a table with a link like this</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td class="views-field"&gt; &lt;a href="ciao"&gt;201105&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>Now I would change the link's text from 201105 t...
javascript jquery
[3, 5]
2,361,074
2,361,075
if focus function
<p>im trying to hide a bee while its movement is not done yet if it is focused</p> <p>here is the bee, that is originally hidden beyond the cloud and not seen, and in first 4 seconds it goes up out of the cloud, then goes to the right also in 4 seconds, then it goes down in 0.3sec, like its hiding, then goes to its or...
javascript jquery
[3, 5]
3,287,102
3,287,103
Issue with jQuery when fetching data using .load()
<p>I have a table that when a row is clicked it sends the first 6 characters of that row (an ID) to a PHP page and loads the subsequent data into a div further down the page. The issue it seems is that once I click a row to load the div, The majority of the jQuery events stop working (.hover, .sortElements) these are a...
php javascript jquery
[2, 3, 5]
345,662
345,663
mouseenter mouseleave not working the way I think it should
<p>I am relatively new to jQuery, and I seem to be stuck with this mouseenter/mouseleave problem. I would like to setup a menu that "hides" when the page isn't at the top, which seems to be working fine, when it's hidden I would like to make it so when a user hovers over it the class switches and the menu comes back ou...
javascript jquery
[3, 5]
2,449,613
2,449,614
Change div to form on click
<p>I have a div with text inside:</p> <pre><code>&lt;div id="test"&gt;Some text here to edit&lt;/div&gt; </code></pre> <p>When the users clicks on this it needs to change to:</p> <pre><code>&lt;form name="input" action="html_form_action.asp" method="get"&gt; Edit: &lt;input type="text" name="tex" value="Some text he...
javascript jquery
[3, 5]
3,681,645
3,681,646
Special characters in Android
<p>In EditText field I set values in Cyrillic alphabet, such as АБГ .. all shows fine. When I try to set some Greek or any other letter similar to that, such as <strong>'ʎ'</strong> (lambda), <strong>'ƃ'</strong> (not sure where this comes) or <strong>'ɟ'</strong> .. it shows squares like "□ □ □" this.</p> <p>The char...
java android
[1, 4]
4,222,910
4,222,911
I need help with these two functions
<p>The first one displays the div, the second one hides the dive up on clicking anywhere else in the document. the problem i have is, when i click the button to show the div, it also counts as a document click so it hides the div. how can i it make not hide the div when i click to show the div</p> <pre><code>&lt;scrip...
javascript jquery
[3, 5]
3,487,519
3,487,520
Java & Android: Accessing a function using Classname vs this
<p>I'm not sure if this is a Java related question or an Android related question, please let me know which one it is. Obviously I am trying to develop for the Android, and I am using Eclipse.</p> <p>Within a java class MainThread I have declared a constant. </p> <p>This declaration works: private static final St...
java android
[1, 4]
4,532,140
4,532,141
How to display an image that we received through Ajax call?
<p>Web server generates images and sends them to client directly. There are no URLs to the images, for security reasons. For example, if I enter <code>/images/25</code> URL in the browser server will send it and browser will download it. </p> <p>Now I want to get this image from Ajax call and then display it on existi...
javascript jquery
[3, 5]
591,382
591,383
Scrolling in a view containing a ListView (Android)
<p>In one of my activities I am showing certain information and at the end I have a <code>ListView</code>. So my layout looks a bit like:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="30...
java android
[1, 4]
1,448,876
1,448,877
Delayed document.write
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1536970/javascript-controlling-the-insertion-point-for-document-write">JavaScript - controlling the insertion point for document.write</a> </p> </blockquote> <p>I want to delay <code>document.write</code> if blo...
javascript jquery
[3, 5]
3,429,922
3,429,923
Updating on-screen element several times in one function
<p>This has got to be easy, but has got me stumped.</p> <p>How do I change an element on screen several times in one function?</p> <p>I want to change a label to read something like "starting..." at the beginning of my function, then go away and do some stuff and then change the label to "finished" at the end.</p> <...
c# asp.net
[0, 9]
3,088,632
3,088,633
What problems would you expect when switching from JS to C++?
<p>What problems would you expect when switching from JS to C++ ?</p>
javascript c++
[3, 6]
1,984,243
1,984,244
Efficient and Accurate way to add items into a TList
<p>I have 2 lists and the entities of the those lists have some IDs for instance</p> <p><code>Client.ID,</code> where ID is a property of Client anf then I have <code>PopulationClient.ID</code>, where ID is a property of the class PopulationClient. So I have two Lists</p> <pre><code>TList&lt;Client&gt; clients = clie...
c# asp.net
[0, 9]
5,186,947
5,186,948
Objects in arrays, can it be done?
<p>I am new to OOP, and I'm trying to make a simple game to help me learn Java. My idea was to make an enemy class, but I want the amount of enemies to be dynamic. I tried making a new object as an array rather than manually typing attker1 attker2 and so on ...</p> <pre><code>Mole attacker[3]; attacker[0] = new Mole()...
java android
[1, 4]
2,330,942
2,330,943
FormsView data bind goes wrong
<p>I got a fromview defined as following:</p> <pre><code> &lt;asp:TableCell&gt; &lt;asp:UpdatePanel runat="server" id="UpdatePanel2" updatemode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;asp:FormView ID="LavenderRegion" AutoGenerateColumns="true" AutoGenerateEditButton="true" AutoGenerateSel...
c# asp.net
[0, 9]
571,522
571,523
What is the PHP equivalent of this C# encoding code?
<p>I want to turn the following C# code into PHP.</p> <p>The C# is:</p> <pre><code>byte[] operation = UTF8Encoding.UTF8.GetBytes("getfaqs"); byte[] secret = UTF8Encoding.UTF8.GetBytes("Password"); var hmac = newHMACSHA256(secret); byte[] hash = hmac.ComputeHash(operation); </code></pre> <p>Which I've turned into th...
c# php
[0, 2]
160,627
160,628
Break on space (Textbox)
<p>In C# I know this</p> <pre><code> if (textBox1.Text.Length &gt; x) { textBox1.AppendText(Environment.NewLine); } </code></pre> <p>(x is some random number) But what if I want to break on first space before x?</p>
c# asp.net
[0, 9]
281,027
281,028
execute javascript dynamically
<pre><code>&lt;html&gt; &lt;body&gt; &lt;div id="div1"&gt; &lt;/div&gt; &lt;div id="div2"&gt; &lt;input type="button" value="Go!" onclick="go()" /&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; window.onload=function(){ var news...
javascript jquery
[3, 5]
4,400,449
4,400,450
problem in Labels with asterisk!
<p>I have the following ASP.NET markup:</p> <pre><code>&lt;td align="right" valign="top" style="width: 130px"&gt; Answer: &lt;asp:Label ID="lblanswer" runat="server" CssClass="errorMessage" ForeColor="Red" Text="*"&gt; ...
c# asp.net
[0, 9]
1,925,168
1,925,169
PHP Jquery - kill php script that was launch using an ajax call in jquery
<p>I have a button on my page. When clicked it triggers an ajax call using the ajax method of jquery. The php script runs loops that insert data into my db. My problem that I want to kill that script from running but I don't know how to do. Hope someone can help. Thank you in advance. Cheers. Marc</p>
php jquery
[2, 5]
5,633,594
5,633,595
Javascript and PHP export data to file
<p>I have a button. By clicking the button, I want to export some data shown on the webpage to a file for downloading. </p> <p>I am doing this in this way: I have a <code>export.php</code>. I send the data as the parameter to PHP file (another parameter is filename), and PHP server create a file and write the data, an...
php javascript
[2, 3]
3,682,403
3,682,404
Viewing additional GridView columns on click with javascript?
<p>I'm trying to figure out how to select and view row details in my gridview. Basically I have a gridview with 9 columns, but 6 are hidden. When I click on a row, I want it to load those additional column values into my javascript so I can put them in a seperate table below. I feel like it's relatively simple but I'm ...
c# javascript jquery asp.net
[0, 3, 5, 9]
2,563,247
2,563,248
Click event when not clicking on an element
<p>Maybe I'm, just tired but I have a right click menu that I want to close when the user clicks anywhere else than the menu. But I cant figure out how to make it disappear when the user clicks on something else.</p> <p>Here is the code for showing the menu:</p> <pre><code>// If mouse click on was pressed $('#content...
javascript jquery
[3, 5]
5,097,185
5,097,186
include flash file in asp.net
<p>i have to include flash file in asp.net page with c#. coding please</p>
c# asp.net
[0, 9]
3,570,584
3,570,585
jquery content editable indent
<p>I've been looking for a few hours now, and still can't work it out.</p> <p>So I am working on a text editor and I want it so when they press the '<strong>tab</strong>' key it indents the text, that either I have selected or the text in front of my cursor text selector. I have been looking in to design mode and I've...
javascript jquery
[3, 5]
743,645
743,646
Why is Post back not triggered when user navigates away from page, but triggered on close?
<p>I have the following code to detect user navigation or close. The post back is triggered on close but not when navigated away. If i place a alert message it is triggered at all times.</p> <p>Oh and there is a timer on the page which is actually disabled after first tick. but there is always a post back triggers whe...
javascript asp.net
[3, 9]
3,773,000
3,773,001
How to remove selected special character from list
<p>I have C# list where lot of values like this </p> <p><code>&lt;b&gt;Moon&lt;/b&gt;</code></p> <p>and i want to remove <code>&lt;b&gt;</code> and <code>&lt;/b&gt;</code>.</p> <p>I want result like this <code>Moon</code>.</p> <p>How can i remove this type of characters from list.</p>
c# asp.net
[0, 9]
2,013,015
2,013,016
Compressing parameters in the URL
<p>The urls on my site can become very long, and its my understanding that urls are transmisted with the http requests. So the idea came to compress the string in the url.</p> <p>From my searching on the internet, i found suggestions on using short urls and then link that one to the long url. Id prefere to not use thi...
c# asp.net
[0, 9]
1,881,859
1,881,860
How to know whether checkbox is checked or not, jquery?
<p>Is there any better way to do this :</p> <pre><code>var IsC = $('input[type=checkbox]').attr("checked") == "checked" ? true : false; </code></pre> <p>?</p>
javascript jquery
[3, 5]
4,837,945
4,837,946
Firefox PostBacks
<p>Does anyone have an idea why these buttons work in IE and Chrome, but not in Firefox? Also, my dropdowns which I use to filter databound controls aren't working either...must be something to do with postbacks. How can I fix this? Many thanks for your help!</p> <pre><code>&lt;asp:Button CssClass="button_style" ID="L...
c# asp.net
[0, 9]
3,976,108
3,976,109
What's the opposite of jQuery `.get()`?
<p><code>.get()</code> converts a jQuery object to a DOM element that Javascript can use without jQuery.</p> <p>If I have a DOM element, how can I convert it to a jQuery object?</p>
javascript jquery
[3, 5]
4,685,183
4,685,184
Sleep() in java (Android)
<p>I am following this tutorial to have a loading screen in my program. The tutorial says my activity should Sleep() using the Sleep() command, however it does not recognise Sleep() as a function and provides me with an error, asking if I would like to create a method called Sleep().</p> <p>Here is a link to the tutor...
java android
[1, 4]
5,198,929
5,198,930
Jquery Javascript checkbox selection/deselection
<p>I have a HTML form and inside it I have a bunch of checkboxes.</p> <p>What I am trying to do is this. - If any one checkbox is selected, I want to set a variavle in javascript. - if nothing is selected, I want to set that variable to blank. - I am toggling the class of the checkbox as well.</p> <p>This is how I am...
javascript jquery
[3, 5]
5,727,644
5,727,645
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]
612,579
612,580
what is wrong with this jquery?
<p>I cant seem to figure this out. Something within this jquery code is breaking my site:</p> <pre><code> $('.menu li').click(function() { nextslide = $(this).attr('id').replace('m_', ''); if ($('#m_till').hasClass('active')) currentslide = 'till'; else if ($('#m_receipts').hasC...
javascript jquery
[3, 5]
5,547,834
5,547,835
Why does changing the minSdkVersion of my application change the color of the text in my tabs?
<p>Why does changing the minSdkVersion of my application change the color of the text in my tabs? Am I doing something wrong?</p> <p>I recreated the problem using the <a href="http://developer.android.com/resources/tutorials/views/hello-tabwidget.html" rel="nofollow">Hello Tab Widget</a>. By adding <code>&lt;uses-sdk ...
java android
[1, 4]
2,213,308
2,213,309
Using jQuery in a JavaScript function
<pre><code>function divlightbox(val) { if(val) { val=val.replace( /^\s+/g, "" ); var count_js=0; var big_string=''; document.getElementById("video_lightbox").innerHTML=""; document.getElementById("divlightbox").style.display = "block"; $("#video_lightbox").css({"h...
javascript jquery
[3, 5]
5,287,358
5,287,359
Problem with jquery :not selector
<p>I'm having an issue trying to NOT select a tablerow with the function:</p> <pre><code>$("tr").click(function(e) { var row = jQuery(this) //rest of code left off }); </code></pre> <p>Basically it finds all tablerows and adds click functionality that will open a edit modal that has a row with textboxes that are po...
javascript jquery
[3, 5]
2,420,028
2,420,029
Assigning DOM element to variable dosen't work with .click
<p>So, my problem is very simple. Using</p> <pre><code>$('.tree li.parent &gt; a').click(function(){ var target = $(this); target.parent().toggleClass('active'); target.parent().children('ul').slideToggle('fast'); }); </code></pre> <p>works, it finds the clicked element and does the magic ...
javascript jquery
[3, 5]
1,990,066
1,990,067
Useful undocumented methods and properties of jQuery
<p>I would like to gather all <em>useful</em> undocumented methods and properties of <a href="http://jquery.com/" rel="nofollow"><strong>jQuery</strong></a> (at least for the <a href="http://code.jquery.com/jquery.js" rel="nofollow">current version 1.9.0</a>).</p> <p>Some of them look quite promising either for solvin...
javascript jquery
[3, 5]
5,509,189
5,509,190
Execute jquery animate only one time
<p>I've the following function:</p> <pre><code>$('.link1').click(function(){ $("#div2").slideUp(function(){$("#div1").slideToggle();}); $('html, body').animate({scrollTop: '600px'}, 800); }); </code></pre> <p>It toggles a div and scroll the page down. The problem is that everytime the user toggles the page sc...
javascript jquery
[3, 5]
3,014,880
3,014,881
Setting IFrame size from within the IFrame
<p>I've been trying a few things like the following trying to get the iframe to be reset from within the iframe but I am not sure what I am doing wrong. Ideas?</p> <pre><code> window.top.$("#ID").width(324); window.top.$("#ID").height(369); </code></pre> <p>Has not worked.</p>
javascript jquery
[3, 5]
2,082,870
2,082,871
setting value of textbox using javascript in asp.net
<p>i am using .aspx page where i used html textarea to get the teat from user. i am also have a asp:textbox say "txtbox1" control where i want to have the value of that textarea in txtbox1. but it is not setting the value.. i am using javascript as:</p> <pre><code> document.getElementById('txtareahead').readOnly=...
javascript asp.net
[3, 9]
3,380,973
3,380,974
jQuery $ is not a function in Firefox, works in Chrome and works with $(document).ready()
<p>I'm implementing jQuery in a site and am getting the "$ is not a function" in Firefox when I try to use a selector, but $(document).ready() works perfectly right before it. My code looks like this</p> <pre><code>&lt;script&gt; $(document).ready(function(){ alert("hi") }); // Works fine func...
javascript jquery
[3, 5]
4,741,641
4,741,642
issue with SharedPreferences
<p>i want to store string in memory through sharepreferance but there are some problem raise that could not store in memory can you please let me know how can i solve this? any permission needed? </p> <p><strong>Code::</strong></p> <pre><code>SavePreferences("MEM1", LanguageSelcted); LoadPreferences(); </code></pre>...
java android
[1, 4]
5,082,434
5,082,435
How can I write this jQuery statement shorter?
<p>I have this code. This works perfect but I just wanna know if it's possible to write it shorter or not? I looked at jQuery <a href="http://api.jquery.com/hasClass/" rel="nofollow">hasClass()</a> docs but didn't find anything useful.</p> <pre><code>$(this).hasClass('nw') ?'nw' :$(this).hasClass('ne') ...
javascript jquery
[3, 5]
2,693,375
2,693,376
JQuery: get current selector
<p>I have a form with multiple <code>select</code> dropdown menus that start with the id: package which are added dynamically by the user. My goal is to put all the selected values from these <code>select</code> dropdowns into an array. Here is the code I have so far. </p> <pre><code>$(document).ready(function() { ...
javascript jquery
[3, 5]
3,635,220
3,635,221
PageRedirect to previous Page?
<p>I have a page(A) that has a popup. When the link in the popup is clicked, it takes you to page B. Page B has a Submit and cancel button. Cancel button should get me back to Page A. How is it possible with javascript or Asp.net?? </p> <p>Thank you in advance!!</p>
c# javascript asp.net
[0, 3, 9]
4,955,595
4,955,596
Problem with Scrolling a list
<p>I've one application which is containing some item in List. I've successfully installed this into my device (Samsung Galaxy SII). In my emulator i can view the items by scrolling that. But, in my device it seems black shaded on the item. How can i reduce that? Is it possible? Thanks in advance.</p>
java android
[1, 4]
1,810,488
1,810,489
jquery.validate is disallowing new lines in text areas
<p>I have an ASP.NET application, I inherited from an old development team. They are having an issue where if you type the enter key into an <code>asp:textbox</code>, it is ignored instead of the newline being shown. A standard <code>multiline textbox</code> is being used here. If I comment out the script declaration f...
jquery asp.net
[5, 9]
2,412,195
2,412,196
Using PlotKit (javascript) through C#
<p>I'm relatively new to Javascript, and although I know how to use it, I don't really understand the mechanics behind it. Bear with me here.</p> <p>I need to write a small app that creates a chart (in SVG) based on data I take in as an XML file. I found <a href="http://www.liquidx.net/plotkit/" rel="nofollow">PlotKi...
c# javascript
[0, 3]
5,451,719
5,451,720
How do I make a Generic Data Access Class?
<p>ASP.net C# 3.5 Framework, working in Visual Studio 2008 currently.</p> <p>What I want is a Generic Data Access Class. I have seen several of them but what I want is to see one that I pass the Connection String and the SQL statement and it will return a List of Objects or when only one item an Object or when no res...
c# asp.net
[0, 9]
3,114,981
3,114,982
System.Web.UI.DataVisualization.Charting missing error in .net 4.0?
<p>I'm trying to use the Chart control in asp.net 4.0. While I know it required a separate install as part of 3.5, it's included by default with 4.0.</p> <p>I can see the Chart control in my toolbox, and I can drag it to my designer and see a preview of the chart. However, when I try to compile my website, I get an ...
c# asp.net
[0, 9]
3,011,309
3,011,310
Fixed character limit text box with running feedback - javascript
<p>Is there a simple javascript pattern for showing how many characters left you can use in a fixed character text box?</p> <p>Say you have a text box and you want them only to use 500 characters, twitter and stack-overflow show how many you have left as you type. I presume you can use jquery and a type event to produ...
javascript jquery
[3, 5]
3,294,770
3,294,771
configuring IIS to cache based on content-type?
<p>We had a weird issue on our site last week that seemed to be a caching issue. A version of our page was cached with <code>Content-Type: text/vnd.wap.wml; charset=utf-8</code> set in the header.</p> <p>After some research, I found out that asp .net uses .browser files in the <code>%SystemRoot%\Microsoft.NET\Framewor...
c# asp.net
[0, 9]
464,259
464,260
'Permission Denied' when trying to make Jquery $.ajax request
<pre><code>function populateGroups(){ var p =1; var groupNames = new Array(); $.ajax({ type: "GET", url: "http://okcmonprd103/iMon/findgroups.pl", dataType: "text/xml", success: function parseGroupNames(xml){ $(xml).find('group').each(function(){ groupNames[p] = $(th...
javascript jquery
[3, 5]
634,498
634,499
Construction of a while, import high volume of data
<p>I am creating a test application whose purpose is to import a large amount of text messages into the sms inbox. I have a few thousand messages in two columns "address" and "body". I can have them in a csv, sqlite, or string array format. I'm unsure how to approach this problem so as to make this while loop efficient...
java android
[1, 4]
5,167,522
5,167,523
Accessing Jquery object [] and get error
<p>I'm new in Jquery, I can't access the elements within the Jquery object. </p> <pre><code>var iconNumber=$('#tblFeedControlBar').find('td').length; // 8 var iconNumber=$('#tblFeedControlBar').find('td')[0].width(); // error $('#tblFeedControlBar').find('td').get(0).after(iconArrow); // error </code></pre>
javascript jquery
[3, 5]
4,835,456
4,835,457
Jquery detect id/class by overlapping
<p>I've searched a lot for this on google, but without luck...</p> <p>Basically I need some js, that can find the id/class of the element, that I'm hovering (So I can use "this"-property).</p> <p>Because I have a lot of divs (Some have to be auto generated, with random names [Or maybe not, if I can use the "this"-pro...
javascript jquery
[3, 5]
1,859,254
1,859,255
Can an app send an email without opening the email interface in Android?
<p>Can an app send an email without opening the email interface? How?</p>
java android
[1, 4]
4,814,400
4,814,401
ASP.NET Server Tags
<p>When I use:</p> <pre><code>&lt;asp:Label id="lbCatId" runat="server" Text='&lt;%# Eval("VideoId") %&gt;' Visible="true" /&gt; </code></pre> <p>I get:</p> <pre><code>&lt;span id="ctl00_mainContent_ucCoverFlow_rptVideos_ctl00_lbCatId"&gt;5&lt;/span&gt; </code></pre> <p><br /></p> <p>However when I use:</p> <pre>...
c# asp.net
[0, 9]
4,891,863
4,891,864
Using oncontextmenu command is there any possibility to identify which menu has been selected on right click?
<p>Is there any possibility to identify which menu has been selected on right click in an IE7 using the command oncontextmenu.</p> <p>If yes can you please share the code? </p>
javascript jquery
[3, 5]
1,583,756
1,583,757
Use jQuery.post() result in javascript function
<p>I've got no clue how to do the following, so I wasn't sure what to search for either.</p> <p>For validating my registration form I've a javascript function that checkes the existence of the inserted username in the database onblur of the username textfield. </p> <pre><code>function checkUsername(username){ $.post(...
javascript jquery
[3, 5]
656,278
656,279
navigate away alert without saving modifications
<p>I'm developing a website in php.</p> <p>I want to show a message something like javascript alert, when a user tries to edit or add something in a form and tries to navigate to some other section without saving the modification, i want to show a message to them,</p> <p>that you are about to navigate about from thi...
php javascript
[2, 3]
3,536,126
3,536,127
insert echo into the specific html element like div which has an id or class
<p>I have this code.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style type="text/css"&gt; body{background:#666666;} div{border:1px solid red;} &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("...
php javascript jquery
[2, 3, 5]
4,461,267
4,461,268
How to read the contents of an entire disk bit by bit
<p>I've got a flash card that I need to compute a checksum on the entire contents of the drive.</p> <p>If I could acquire a stream to the entire drive I could just read it in bit by bit.</p> <p>Does anyone know if there is an API for doing this?</p> <p>Everything I see so far requires me to open a file.</p> <p>Is t...
c# c++
[0, 6]
670,117
670,118
Run JavaScript function on element defined with jQuery
<p>Not sure I titled this well.. show's that I'm in unfamiliar territory. How can I run a JavaScript function based off of the element called in a jQuery function?</p> <p>Theory:</p> <pre><code>&lt;script type="text/javascript"&gt; $.fillit('video'); &lt;/script&gt; </code></pre> <p>(run fillit on video tag presen...
javascript jquery
[3, 5]
2,366,834
2,366,835
Access parent property in jQuery callback
<p>Unsure if I've phrased this correctly, but in the callback how do I reference the controls property of the base class?</p> <p>This has been bugging me for some time and I usually work around it, but I'd be grateful if anybody can enlighten me on how I should do this properly.</p> <pre><code>var base = function() {...
javascript jquery
[3, 5]
1,061,017
1,061,018
Question about @Override annotation
<p>Im new to android development. I would like to know why do we have to precede every overriden method with @Override annotation in android ?. In regular java this is not a requirement.</p> <p>Please Help Thanks </p>
java android
[1, 4]
5,364,781
5,364,782
jquery.localize doesnt work
<p>i have followed instructions found on <a href="https://github.com/coderifous/jquery-localize" rel="nofollow">https://github.com/coderifous/jquery-localize</a>, and for testing purpose i have created this test file:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xh...
javascript jquery
[3, 5]
4,589,487
4,589,488
jquery javascript equivalent
<p>I use too much jquery</p> <p>I want to do this with out jquery:</p> <pre><code>&lt;a onclick="javascript:$(this).next().css('display', 'none')"&gt; </code></pre> <p>I thought it was this:</p> <pre><code>&lt;a onclick="javascript:this.nextSibling.style.display = 'none'"&gt; </code></pre> <p>But its not. Style r...
javascript jquery
[3, 5]
4,580,787
4,580,788
Javascript decodeURIComponent() with PHP
<p>I'm encoding URL's using javascript's <a href="http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp" rel="nofollow">encodeURIComponent()</a> function when a form is submitted:</p> <pre><code> &lt;form name="form" action="actions.php" method="post"&gt; &lt;input type="text" name="url" id="url" value="...
php javascript
[2, 3]
1,361,311
1,361,312
writing an "if" statement in Android
<p>I'm new to Android. I'm trying to write a method that has an if statement in it.What I'm trying to get happen is "if the text in the Textview is equal to a certain value, change the background image in the layout." I know the setting background bit works, I've narrowed the problem to the If statement. in the below c...
java android
[1, 4]
3,027,874
3,027,875
What does "Uncaught TypeError: Object [object Object] has no method "
<p>So this is a more general question. There are hundred of questions on why this and that returns this error but I want to get a deeper understanding to quicker solve these kind of issues. Or just learn something new. If someone can find a reference to an explanation I will be happy to close the question but I just co...
javascript jquery
[3, 5]
1,249,732
1,249,733
dynamic selector for onClick not working
<p>I want to make simple onClick event</p> <pre><code>$('._1').click(function(){ window.open('abc.html?parameter=1'); }); </code></pre> <p>in above case , i have _1 as a class, now there are multiple such elements, and 1 here also acts as parameter to window.open request</p> <p>but there are multiple cli...
javascript jquery
[3, 5]