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,974,933
3,974,934
Invoke Javascript method from code-behind based on a condition.
<p>This is my javascript method in .aspx file. I want to invoke this method from code-behind based on a certain condition:</p> <pre><code>function confirmboxAndHideMessage() { //HideMessage(); var response = confirm("are you sure?."); if (response == true) { document.getElementById("&lt;%=chkValida...
c# javascript jquery asp.net
[0, 3, 5, 9]
846,513
846,514
Generate 8 digit uinque id in c#
<p>I need to generate 8 digit unique id in c#. On my site a user will register and I need to generate a unique id for him in c# code(I don't want this logic in DB), after inserting the id I need to save it in database.</p> <p>Edit: I need that numbers to be generated in random manner everytime.</p>
c# asp.net
[0, 9]
5,777,864
5,777,865
How to Register mouserover on elements from Ajax call
<p>I am trying to register the mouseover event on the elements that are generated AFTER user click the button.</p> <p>The elements are generated via ajax. The mouserover doesn't seem to work on the elements that ajax created. I was wondering if there are ways to work around this. Thanks a lot.</p> <pre><code>jQuery.a...
javascript jquery
[3, 5]
417,559
417,560
Save android value and retrieve it again
<p>I have the following void</p> <pre><code>protected void onPaymentSuccess(PaymentResponse response) { // Stuff... } </code></pre> <p>I want to save a string within a void for example</p> <pre><code>String key = "JHIJHFEIRUFHEURFGEU5"; </code></pre> <p>And i want to be able to retrieve it again (this string to b...
java android
[1, 4]
1,449,492
1,449,493
Passing data from intent to other using python server
<p>I have an application with an Android client and a Python server. The android package has three Activities, which access GPS and google maps. I send the GPS coordinates from the second activity to the (python) server using a socket. I want to receive the [changed] value back from the server and pass it to the third ...
android python
[4, 7]
3,761,506
3,761,507
How to add a TableRow/TableCell to an ASP.NET table from Javascript?
<p>What is the best way to dynamically add TableRows and TableCells to an ASP.NET table from Javascript?</p> <p>Thanks,</p> <p>Jeff</p>
asp.net javascript
[9, 3]
119,352
119,353
How to create a jquery function to set max-height on every div?
<p>I would like to do a jquery function that when window resize, it search div with css-class name "taskbox" and set the max-height to the parent div height - current offset for the taskbox to be able to be smaller than the available space but do not extend it.</p>
javascript jquery
[3, 5]
72,497
72,498
Convert data attrs to get/post data
<p>How do I convert data attributes to valid post (or get) data?</p> <pre><code>$('#nav').find('a').click(function(){ var params = $(this).data(); $.get({ type: "get", url: "/view/", data: params }); }) </code></pre> <p>I get this error:</p> <pre><code>POST http://127.0.0.1/Site1/...
javascript jquery
[3, 5]
3,162,769
3,162,770
Change ID on scroll -- weirdness happening
<p>I'm working on changing the ID of an element when the user has scrolled to a certain point on the page:</p> <p><a href="http://jsfiddle.net/QupNv/6/" rel="nofollow">http://jsfiddle.net/QupNv/6/</a></p> <p>The ID is supposed to change depending on where they are. Here's my code:</p> <pre><code>$(window).scroll(fu...
javascript jquery
[3, 5]
5,152,926
5,152,927
Gridview sorting and paging events are not firing in embedded .ascx controls
<p>I have a gridview that's inside a .ascx control that's dynamically embedded into another .ascx control, which is then called by a web form. The gridview will initially bind, but when any paging/sorting/command events are then triggered, I can't get any breakpoints inside the events to kick off. Additionally, when I...
c# asp.net
[0, 9]
5,019,142
5,019,143
How to show/hide menus using jQuery?
<p>I have a menu with menu items that are only being showed when they are clicked. To hide them again they have to be clicked again. That's all good, but I also need to hide other visible menu items when another menu item is clicked.</p> <p>Im currently using:</p> <pre><code>$(this).parent().find("element").toggle();...
javascript jquery
[3, 5]
25,544
25,545
Iteration in asp.net databinding
<p>Say I have an array like so in my code behind:</p> <p>public static string[] fields = new string[]{"field1", "field2", "field3", "field4"};</p> <p>I would like to use this array to retrieve fields in a gridview when it is databinding, like so:</p> <pre><code>&lt;%# Eval("Field1")%&gt; &lt;%# Eval("Field2")%&gt; &...
c# asp.net
[0, 9]
4,581,771
4,581,772
Pre check for data insertion
<p>I want to make a program for value prechecking .a user will give the single input (wbslement no) to UI .I want to insert that record into System . Before inserting into database I want to check It is present in Table or not . if it is present in table then It should not insert record into table if it is not present...
c# asp.net
[0, 9]
49,826
49,827
using repeater control to display an image from database C#
<p>I have a book database(2 books in total right now) where for each book i have a row called 'Image' that contains the name of the images. For example. cprog.jpeg and asm.jpeg</p> <p>Using the repeater i can display the book information like name, author, etc. But i dont know how to get the images to display. The ima...
c# asp.net
[0, 9]
2,580,913
2,580,914
javascript focus problem
<p>I have a form with 3 fields. Country, state and users</p> <p><img src="http://i.stack.imgur.com/beWVs.jpg" alt="none"></p> <p>I am trying to do the following. when United states is selected as a country, the state field will show. The problem is that when i use the tab key on the keyboard, it is skipping the state...
javascript jquery
[3, 5]
1,207,450
1,207,451
Intercepting HTTP event using JQuery
<p>I have this JQuery code working however I need to know whether how to actually get the URL executed from the tags selected. </p> <pre><code>$("link, script, style, a, img").each(function(){ $(this).load(function(){ // get the URL and log it console.log("Interc...
javascript jquery
[3, 5]
2,335,553
2,335,554
highlight selected tab
<p>I have searched but could not find answer to my satisfaction so I have a header file, which is being included on top of every page and part of the header is a menu with 3 tabs, when user click on tab browser take them to that page (working fine), what i want is, that what ever tab user clicks to be highlighted(diff ...
php jquery
[2, 5]
5,873,074
5,873,075
AlarmManager set up Android?
<p>I have Alarm Manager which needs to repeat every 12 hours.</p> <pre><code>AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE); Intent in = new Intent(this, myReceiver.class); myAlarmSender = PendingIntent.getBroadcast(getApplicationContext(), 0, in, 0); am.setRepeating(A...
java android
[1, 4]
3,039,589
3,039,590
Best way to Read/Write to a php object from Javascript
<p>I have a PHP class/object which acts as the primary data source for my webpage. I'm using jQuery/Javascript to provide a dynamic interactive experience for the user. Both parts work independently really well. </p> <p>I'm now trying to find an elegant and clean way for the javascript library I've written to access ...
php jquery
[2, 5]
3,944,540
3,944,541
display of image name on hovering it.. with jquery code
<p>this html code</p> <pre><code>&lt;div id="imgDisp"&gt; &lt;/div&gt; </code></pre> <p>This jquery</p> <pre><code>$(document).ready(function() { var imgSrc = "images/newIMG.png"; $("#imgDisp").css({ background: "url("+imgSrc+") repeat" }); var newImg = new Image(); newImg.src = imgSrc; newImg.onload = funct...
javascript jquery
[3, 5]
4,047,713
4,047,714
dropdownlist selected index option not working with javascript
<p>I am using an asp.net dropdownlist it contains 5 values the sample code is as follows </p> <pre><code>&lt;asp:DropDownList ID="ddlSampledropdown" runat="server" Width="250px"&gt; &lt;asp:ListItem Value="0" title="--Select--"&gt;--Select--&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="1" title="Alpha"&gt;Al...
javascript asp.net
[3, 9]
1,267,897
1,267,898
asp.net master property string, how to check in content page if string is empty
<p>if i have a master property string for example:</p> <pre><code>public String SharedInfo { get { return (String)Session["SharedInfo"]; } set { Session["SharedInfo"] = value; } } </code></pre> <p>and a label in an content page, i check if the string is empty by doing: if(Master.SharedInfo == null)</p> <p>no...
c# asp.net
[0, 9]
5,447,301
5,447,302
jQuery include form elements submit
<p>Working from the ground up on a Joomla Component re-config. I'm trying to incorporate an AJAX search function in my component. So far, I have this:</p> <pre><code>$(document).ready(function() { $('form').submit(function() { var results = $('form').serialize(); var url = 'index.php?option=com_...
php jquery
[2, 5]
5,172,658
5,172,659
Why doesn't JQuery consolidate its constants?
<p>All my constants are near the top of my javascript file like below.</p> <p>When I search the core JQuery file, nothing comes up for Constant and I can't see that they are pulling out constants? Do they not have any, do they have them spread out through the code, if so, why don't they consolidate them?</p> <p>I'm ...
javascript jquery
[3, 5]
3,763,419
3,763,420
Which constructor will called first in the below example
<p>Which constructor will called first in the below example? When i put break point and execute it first pointed to child constructor but executed the parent class constructor, why this?</p> <p>could any one please clarify me?</p> <pre><code>class Program { static void Main(string[] args) { ...
c# asp.net
[0, 9]
4,757,962
4,757,963
jquery unobtrusive validation attributes reference?
<p>Where i can find the reference for <strong>Unobtrusive jquery validation attributes</strong> like </p> <p><code>data-val-length</code> , <code>data-val-required</code> etc..I want the full list of these attributes. Is </p> <p>there any single place where i can find this?</p>
javascript jquery
[3, 5]
2,750,269
2,750,270
Extract data / parse from HTML in PHP / Python
<p>I need a library / logic to extract this data and display a simple graph out of it . Some please help to parse this html to meaningful data like Equity share capital -> array (30.36 , 17,17 .... etc) I would like to get a solution in PHP or Python .I am looking for a code to extract some meaninful data out of a html...
php python
[2, 7]
2,629,877
2,629,878
Make changes in UI work in background (with ProgressDialog)?
<p>I am working on an app where in one of the activity different views are added into a ViewGroup, this process takes a while starting up so I wanted to run a progress Dialog in foreground while the UI could setUp in background .</p> <p><strong>What I have Tried</strong></p> <p>I tried using </p> <p>1.<strong>AsyncT...
java android
[1, 4]
4,546,689
4,546,690
jQuery Multiclasses function
<p>I'm trying to create function that will do this same thing for 3 different classes. The only problem is that every time when I hove over any of the divs it affect all the others instead just one.</p> <p>Could anyone advice me please how can I make it work separately for each class on hover stage:</p> <pre><code>$(...
javascript jquery
[3, 5]
1,022,729
1,022,730
How to access attribute values from HTML to save in DB on button click
<p>i am writing some adding some link attribute like below. which render to HTML, but i want to knwo i can i acess those attributes value at button click event?</p> <p>My code is below</p> <pre><code>protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { ...
c# javascript asp.net
[0, 3, 9]
1,280,838
1,280,839
Unknown Sources Check over Web Site?
<p>The Android SDK has a way to check for "Unknown Sources using the following API: <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#INSTALL_NON_MARKET_APPS" rel="nofollow">http://developer.android.com/reference/android/provider/Settings.Secure.html#INSTALL_NON_MARKET_APPS</a>"</p> ...
javascript android
[3, 4]
1,883,626
1,883,627
Fill in a textbox when other textbox get filled
<p>I have a form with a few textboxes which are used for calculations. When I enter a value in one textbox, I want the other textboxes to get filled immediately when a value is entered. I want to use JavaScript for this. How can I do this when my textboxes are server-side?</p>
javascript asp.net
[3, 9]
3,976,031
3,976,032
How do you make a javascript popup like the ones on AllTop.com
<p>I need to make simple javascript popups like the ones on alltop.com (when you hover over the links). Is there a jQuery plugin for this?</p>
javascript jquery
[3, 5]
5,079,955
5,079,956
Javascript class scope
<p>I am unable to call this.RenderDeals() from inside my Post.success function. I assume this has something to do with scope? Could someone shed some light on the issue, and possibly suggest a workaround. I have tried using prototype and module pattern, both without any luck.</p> <p>FYI Post is an $.ajax wrapper that ...
javascript jquery
[3, 5]
1,750,711
1,750,712
specifiying directory of Python module when calling it from C++
<p>When trying to to import and execute a function within a Python module from a C++ executable, how can I pass in the directory where the module is located as a command line argument?</p>
c++ python
[6, 7]
4,432,292
4,432,293
Android vibration intensity and damage
<p>I realize this is not strictly a code question, but I guess it belongs here anyway. If not, my apologies in advance.</p> <p>Being as there's no inbuilt way to change the vibration intensity for the droid in code I'm using a kind of PWM control (switching the vibrator on and off at high frequency gives me a kind of...
java android
[1, 4]
630,337
630,338
Change default select behavior for entire document or window
<p>With this I'd like to change the default select behavior for a document. I do that for the document body with <code>getElmentsByTagName</code>. But the code doesn't actually have the desired effect, which is to prevent the user from clicking to select text in the document.</p> <pre><code>&lt;script&gt; $(docu...
javascript jquery
[3, 5]
3,440,219
3,440,220
jQuery .append() does not work from .js file
<p>I have the following line of code:</p> <pre><code>$('#text').append('&lt;h2 style="color:white"&gt;afdghadfg&lt;/h2&gt;'); </code></pre> <p>If I paste this code inside of a script tag in the html, it works fine. However, when placed inside a .js file it does nothing. </p> <p>Know that the .js file has plenty of o...
javascript jquery
[3, 5]
3,170,523
3,170,524
how to return the value back to the previous aspx file when 2 file is parallel running
<p>I have an scenario where I have two aspx pages. When I'm running the first one and I click on a button, that button calls the another one.</p> <p>So currently that are two aspx files running at the same time, how can I get the second aspx file value in order to fill a TextField on the first one? , my program pass v...
c# asp.net
[0, 9]
2,888,285
2,888,286
simulate click when parent div is clicked
<p>I'm trying to use jquery to trigger a click on an <code>&lt;a&gt;</code> tag when it's parent div is clicked</p> <p>for this structure </p> <pre><code>&lt;div id="menu_container"&gt; &lt;ul id="header_links_container"&gt; &lt;li class="header_link header_link_large border_box...
javascript jquery
[3, 5]
5,837,419
5,837,420
Can someone help me in jquery addition?
<p>I would like to give points to my users who submit articles based on their articles word count.</p> <p>But my page has many text area fields. Lets say message1,message2,message3 </p> <p>When the user fill textarea(message1,message2,message3) it will show like this in the bottom.</p> <pre><code>You have typed x wo...
javascript jquery
[3, 5]
3,018,393
3,018,394
focus on the user control in C#
<p>I have a user control(error control) in a master page. by default the user control is hidden(visible false)</p> <p>on click of a submit button i am showing the error control.Now on post back I want to bring focus to this control.I am writing the java script in register Startup script as following:</p> <pre><code>...
c# asp.net javascript
[0, 9, 3]
2,251,628
2,251,629
Is it better to learn the DOM or jQuery first?
<p>I have gotten very familiar with the core functionality of Javascript and now I am aiming at learning DOM manipulation. I have already thought of learning jQeury for this but I don't know if it is good idea to learning it before first getting familiar with the core functionality of the DOM.</p> <p>Should I first le...
javascript jquery
[3, 5]
3,102,817
3,102,818
How to get the index of an element without 'this'?
<p>I have a form that looks kind of like this:</p> <pre><code>&lt;div&gt; &lt;div class="contact"&gt; &lt;h1&gt;Person's name&lt;/h1&gt; &lt;!-- more stuff goes here --&gt; &lt;form method="post" action="myurl"&gt; &lt;input type="submit" value="go" /&gt; &lt;/form&gt; ...
javascript jquery
[3, 5]
5,354,385
5,354,386
Pushing to multidimensional object
<p>I'd like to end up with an object like:</p> <pre><code>{"Red 1":53,"Blue 2":26,"Green 3":25} </code></pre> <p>From the following example:</p> <p>Was trying to push the data from inside .each to the object, but it being multidimensional, i'm not sure how to accomplish this:</p> <pre><code>//html &lt;div class="te...
javascript jquery
[3, 5]
509,211
509,212
Get closest elments of corresponding list of elements in javascript/jquery
<p>I have a list of elements:</p> <pre><code>var checked_inputs = $('.select-feedback:checked'); </code></pre> <p>Now i want to get their closest division element whose class is 'MessageRow'. I have done this trick to get it:</p> <pre><code> $('.radiusRight').click(function(event) { event.preventDefault(); ...
javascript jquery
[3, 5]
3,707,204
3,707,205
What "terminating characters" will generally ensure that the subsequent javascript will be run?
<p>Is there a sequence of characters that can be used after malformed javascript code, to ensure the subsequent script will be executed?</p> <p>The idea being that we have separate divisions writing javascript code that will be placed on the same page. The "other" group are notorious for leaving bad code around. Sin...
javascript jquery
[3, 5]
4,811,154
4,811,155
How to make a super in javascript function
<p>Like in this example:</p> <pre><code>var teste = {name:'marcos'}; $(teste).each(function(){ var name = this.name; // i don't want to do that. // i want to have access to 'this' inside this function (sayName) var sayName = function(){ alert(name); // there is something like "super" in java? or ...
javascript jquery
[3, 5]
3,892,426
3,892,427
If Date has passed then execute statement
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/492994/compare-dates-with-javascript">Compare dates with JavaScript</a> </p> </blockquote> <p>I was wandering if anyone has a simple solution for executing a jquery statement if a supplied date has passed. </p> ...
javascript jquery
[3, 5]
162,585
162,586
Accessing properties of SelectedRow during SelectedIndexChanged event in dynamically generated GridView
<p>I have an empty GridView object on a page that I bind to a LINQ qry result at run time. The GridView has a 'Select" button that fires the SelectedIndexChanged event and it's inside of this event that I'd like to access the data of one of the fields in the selected row.</p> <p>So far, I can only find one way to do ...
c# asp.net
[0, 9]
2,042,972
2,042,973
Importing android library to JAVA project on Eclipse
<p>Can I import android library such as android 2.3.3 which is included android.jar on it into a JAVA project on Eclipse? How can I do it? Thanks</p>
java android
[1, 4]
3,062,348
3,062,349
Is there a security reason to validate a textbox input if you are limiting the max length of the input?
<p>Since I'm new to coding and I'm trying to understand why here is a little more detail on the question.</p> <p>If you have a text box and you are limiting the input to say 2 charactrs do you really need to validate the input further? </p> <p>What I have is a text box that has a max length of 2. Is there a security...
c# asp.net
[0, 9]
2,426,924
2,426,925
OnItemInstered, OnItemUpdated the same code behind
<p>I need to associate different methods of the control with exact same code. I'm doing it like this now: </p> <pre><code>protected void dgvProperty_ItemInserted(object sender, GridInsertedEventArgs e) { BindItems(); } protected void dgvProperty_ItemDeleted(object sender, GridDeletedEventArgs e) { Binditems(...
c# asp.net
[0, 9]
5,464,155
5,464,156
Simple code for android app for connecting to a remote server and sending some data
<p>I am trying to develop an android app which will connect to a remote HTTP sever and send some data to the server. Can someone please help on how to go about writing the code for the android app.</p>
java android
[1, 4]
1,649,900
1,649,901
Finding which elements in the page share the left and the right edges with any component
<p>How to find which elements share their right edge with the left edge of an component and which components share their left edge with the right edge of the component? So my function takes a single id say X and returns me a Java script object like </p> <pre><code>{ leftElements = [leftElement1,leftElement2,...], ri...
javascript jquery
[3, 5]
1,525,612
1,525,613
Simple Website (Apache/PHP/MySQL + JavaScript)
<p>I've been asked to create a fairly straightforward website for a friend. Essentially a user will log in, fill in a set of information, and submit it. This data will then need to written to a database (and read from/presented at a future point).</p> <p>I'm not really a web developer (I do mostly Java/C++), but about...
php javascript
[2, 3]
2,646,335
2,646,336
adding functions to injected elements
<p>Okay how can i add function to injected elements(which that element dosent exist on first browser load). Please read through my example carefully , i hope you can understand.</p> <p>For example: i go to www.website.com , when it loads it loads up "functions.js" and "other.js" , inside "functions.js" there's a code ...
javascript jquery
[3, 5]
3,577,515
3,577,516
copy div data that contains grid view
<p>I m implementing copy to clipboard functionality for div that contains asp.net gridview. my code is working on i.e only now how can i make it for all browsers</p> <pre><code>function CopyGridView() { var div = document.getElementById('div1'); div.contentEditable = true; var c...
javascript asp.net
[3, 9]
5,434,924
5,434,925
Is it OK to create multiple threadpools (ExecutorService)?
<p>I created multiple ExecutorService instances in my code, usually each UI page has one ExecutorService instance. Each ExecutorService instance will execute some http get request threads.</p> <pre><code>private ExecutorService m_threadPool = Executors.newCachedThreadPool(); </code></pre> <p>Is it OK to do that?</p> ...
java android
[1, 4]
1,372,162
1,372,163
How can I combine an image slider with scaling images?
<p>I have a bit of a dilemma in the sense that I can't seem to get a jquery image cycler working with scaling images.</p> <p>What I basically have is a website with a small navigation list at the top, and then full screen images which can be cycled using a control at the bottom of the page. Previously I've used <a hre...
javascript jquery
[3, 5]
4,946,924
4,946,925
Constructing a more efficient javascript user-based chat
<p>I am going to bed soon, so I will not be on until the morning, but I have been struggling with trying to find a javascript/jquery method that solves my problem. I am trying to make a chat box feature where once a post is submitting it is then echoed back out and users on both ends can see it. I know that I need to...
php javascript jquery
[2, 3, 5]
1,488,667
1,488,668
Multiple JavaScript Issue
<p>I include the following in my header</p> <pre><code>&lt;!-- scripts --&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="./js/script.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="./js/j...
javascript jquery
[3, 5]
3,014,496
3,014,497
ModelIt is Undefined [IE7!]
<p>Hello I'm having problems with a featured content area breaking the site in IE7 which is causing the splash to display above the content (as its also jquery).</p> <pre><code>&lt;script type="text/javascript" src="/site/3/design/js/featurebar.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; //&lt;!--...
javascript jquery
[3, 5]
4,379,358
4,379,359
jQuery fade effect on replacing divs
<p>I've been struggling to find a solution for a <code>fade</code> effect with this script. I'm still learning basic jQuery, but cant seem to figure it out. The script is working fine, the divs are replacing, but with no animation. I have tried fadeToggle, fadeIn and fadeOut.</p> <pre><code>function HideContent(d) { ...
javascript jquery
[3, 5]
3,371,719
3,371,720
How can I set the order of jQuery functions so that one triggers after the other finishes rendering content?
<p>I'm using <strong>Masonry</strong> and <strong>Embedly</strong> plugin to display embedded content, I've put together an example <a href="http://jsfiddle.net/anir/pBtbb/3/" rel="nofollow">here</a>.</p> <p>My jQuery is as follows</p> <pre><code>//embedly $('.box').find('a').embedly({ maxWidth: 260, ...
javascript jquery
[3, 5]
62,111
62,112
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]
5,283,151
5,283,152
JQuery modal popup on specific region
<p>I have a grid and when i change its sorting order i a loading message appear on grid region and block its content like other modal popup but only on grid region is there any available jquery modal popup meet my needs ? can I configure jqueryUI modal to do this ?</p>
javascript jquery
[3, 5]
374,570
374,571
Select a Multi-select DropDown by values with jquery
<p>I have asked a similar <a href="http://stackoverflow.com/questions/12584387/select-a-dropdown-by-values-with-jquery">question</a> this morning, how to select a dropdown by its value rather than sequence.</p> <p>The problem is now how to use a multi-select dropdown and select the options by their value rather than s...
javascript jquery
[3, 5]
117,693
117,694
How can i access children using parent id
<p>I have this structure of html. To present the list of two different sets. and i must handle the click event differently.</p> <pre><code>&lt;div id='nodelist1'&gt; &lt;ul&gt; &lt;li class='nodeelem'&gt;first node &lt;ul&gt; &lt;li class='nodeelem'&gt;second node &lt;ul&gt; &lt;li class...
javascript jquery
[3, 5]
473,871
473,872
How to get city and postal code from google maps API?
<p>How to get city and postal code from google maps API.My code look like this</p> <pre><code>if (place.address_components) { code = [place.address_components[0].types[0].postal_code]; alert(code); document.getElementById('cityField').value = code; } </code></pre> <p>but when i am trying this it a...
c# javascript asp.net
[0, 3, 9]
2,926,168
2,926,169
Why do Android callback methods' name start with 'on'?
<p>I'm just curious. (Maybe not only in Android)</p>
java android
[1, 4]
1,626,052
1,626,053
Creating tables and displaying textboxes in codebehind
<p>I have a Dataset from the database which i want to display. My aim is to display a month's data on an aspx page using VS 2005 with 5 days per each row. I have written the code like this but i am confused with the i and j. This code displays nothing. </p> <pre><code>if (ds != null &amp;&amp; ds.Tables[0].Rows.Count ...
c# asp.net
[0, 9]
3,904,499
3,904,500
Jcarousel change a divs text depending on first item shown
<p>I'm having a problem with Jcarousel where i need to have a divs text changing when the next button is pressed on the carousel. I have the carousel set up and working how i want, scrolling one item at a time:</p> <pre><code>jQuery(document).ready(function() { jQuery('.mycarousel').jcarousel({ scroll : 1 });}); <...
javascript jquery
[3, 5]
356,509
356,510
How to do Initial Caps With Javascript/jQuery
<p>I have a Dynamic Breadcrumb set up with JavaScript. All I want is to do Initial Caps for each word.</p> <p>Example: Home > Some > Page</p> <p>Currently I have them all converted to lowercase and have removed all - from the strings in pages that have multiple words. I just need to convert the string to Initial Caps...
javascript jquery
[3, 5]
430,306
430,307
Android Native API (getWidth etc) for determining attributes of images return wrong value
<p>In Android while trying to get/set the attributes of an Image I am getting Image attributes as zero which I guess is not a correct value. Please help me on this. here's the excerpt of the code:</p> <p><strong>CODE</strong></p> <pre><code>public class CumulativeGoalProgress extends Activity { public void onCreate(...
java android
[1, 4]
675,863
675,864
loading several forms in a div but every form disappears when i click submit
<p>I have an index page, i am loading several pages in a div in that page by clicking links , some of them are forms(pages). When i click submit, the information is processed correctly and it is stored in the database but the page disappears because of which i am unable to see some useful information like errors genera...
php javascript jquery
[2, 3, 5]
254,506
254,507
Get all selected items value
<p>I need to get all values from a set of input text in my page and I need to know if someone of these inputs has value <em>'some value'</em></p> <p>I'm using JQuery so I'm doing something like:</p> <pre><code>$('input.partValue').each(function(){ int count = 0; if($(this).val() == 'some value'){ coun...
javascript jquery
[3, 5]
2,172,404
2,172,405
Java bytecode to exe and combing c++ and java
<p>I have read many articles and posts but im still confused how to make/convert bytecode to exe so that it can be run on any standalone machine withour JRE,JVM or any other kind of thing.</p> <p>What does combining C++ and java Program means?</p> <p>And if it's possible to combine C++ and Java Program , how to do so...
java c++
[1, 6]
3,736,860
3,736,861
Unable to validate both textboxes and dropdown lists for empty check
<p>I have nearly 80 textboxes created dynamically and 10 dropdownlist created dynamically. On the click of additem button i want to make sure that none of these controls are empty.</p> <p>I am tring the below code</p> <pre><code> function validateinput() { var arrTextBox = document.getElementsByTagName("input")...
javascript asp.net
[3, 9]
4,865,942
4,865,943
how to detect javascript features on Android 1.5
<p>I'm trying to write a code that can run on Android 1.5 and 2.0.1, but I have issues with the javascript engine used on Android 1.5.</p> <p><code>alert(localStorage);</code> just hang on v1.5 while on v2.0.1 it alerts correctly.</p> <p>is there an unblocking way to do it or to detect the version of Android with jav...
javascript android
[3, 4]
3,829,743
3,829,744
Automatic Timeout Web Client Use
<p>One of the problems I have come accross having complext tasks on the browser is with automatic timeouts. Currently our site has a sliding expiration of 30 minutes. Normally this isn't a problem because we use asp.net and most of the time the users update one or two fields and then submit the form. This obviously ...
c# asp.net
[0, 9]
976,752
976,753
find ID of previous button
<p>I'm looking to find the id of the previous button. It is pretty far away - lots of table rows, tables, divs, etc. between the target and the button but I thought this would still work:</p> <pre><code>alert( $(this).prevAll("input[type=button]").attr('id') ); </code></pre> <p>Unfortunately this returns alerts 'unde...
javascript jquery
[3, 5]
560,435
560,436
DataGrid - Preventing Concurrent Access To Rows
<p>I need to write a simple datagrid form which allows users to edit cells - The problem is that different people can edit this at EXACTLY the same time so concurrency becoames an issue</p> <p>I am using data backed by a database</p> <p>I seem to have two options here:</p> <p>1) Continually poll the database and ref...
c# java
[0, 1]
5,850,159
5,850,160
facebook iframe application ,with master page, doesn't firing OnSelectedIndexChanged event
<p>this is my radio button list:</p> <pre><code> &lt;asp:RadioButtonList runat="server" ID="rdlTest" OnSelectedIndexChanged="rdlTst_selectedChange"&gt; &lt;asp:ListItem&gt;1&lt;/asp:ListItem&gt; &lt;asp:ListItem&gt;2&lt;/asp:ListItem&gt; &lt;/asp:RadioButtonList </code></pre> <p>this...
c# asp.net
[0, 9]
30,173
30,174
jQuery event keycode standardisation
<p>I read that the <code>which</code> parameter in all jQuery events are normalized ( <a href="http://api.jquery.com/event.which/" rel="nofollow">specified here</a> ). However, I was trying to figure out where in the source ( of jQuery ), this normalization is achieved. I'm interested in figuring out how it is done. An...
javascript jquery
[3, 5]
5,553,818
5,553,819
Can i use this coding in looping statement
<p>I have a code like this</p> <pre><code>&lt;div id="div1"&gt;&lt;/div&gt; &lt;hr id="line1" color="#0f0" size="2" width="50px"&gt; &lt;div id="div2" &gt;&lt;/div&gt;&lt;br&gt; &lt;hr id="line2" color="#0f0" size="2" width="50px" style="display:none;" &gt; &lt;div id="div3" &gt;&lt;/div&gt;&lt;br&gt; &lt;hr id="line3...
javascript jquery
[3, 5]
4,033,282
4,033,283
Is there a better way to redirect and pass parameter
<p>I have this table</p> <pre><code>&lt;table id="tableDg" border=1&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td &gt;&lt;input type="hidden" id="path" readonly="true" value="{path}"&gt;{path}&lt;/input&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="checkbox" class = "chkbCsm" &gt;&lt;/input&gt;&lt;/td&gt; &lt;td &gt;&lt;input ...
javascript jquery
[3, 5]
4,662,601
4,662,602
showing content on selecting radio buttion
<p>I am trying to create a scenario where I am showing different content on switching the radio button. it is working fine in chrome but not working in IE. Cant figure out what is going wrong. Any suggestion? </p> <pre><code>&lt;div id="Q6"&gt; &lt;input type="radio" id="Q6A" value="yes" name="Q6"/&gt;Same as cu...
javascript jquery
[3, 5]
3,791,362
3,791,363
Jquery - Dynamic button, can I clean this up?
<p>I created a button that will randomly appear on the screen (per my boss's request) that when clicked will open an email in order to provide feedback.</p> <p>My goal is to make this script do everything, mainly so I don't have to access the ASP markup or CSS files for each website. Just throw the script in the heade...
javascript jquery
[3, 5]
4,528,207
4,528,208
jQuery: I see append, prepend, appendTo, what about take-out-the-content-of?
<p>I see all sorts of jQuery options such as append, prepend, appedTo etc. but I just want to take out the content of a div and append it to the inside of the body. The whole contents, so not by using .html() but being loads of other divs. These divs may have events attached as well so I don't want to mess them all up...
javascript jquery
[3, 5]
1,826,784
1,826,785
Closing a tab after server side script has executed
<p>I need a little assistance. I want to close a firefox tab after a classic asp script has executed which is run at specific times of the day automatically.</p> <p>I have tried the following code without success:</p> <pre><code>&lt;% ASP SCRIPT %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
javascript jquery
[3, 5]
2,193,095
2,193,096
Automatically send an email from an app
<p>My app is really progressing now, much of it due to you guys and your willingness to help out so thanks alot. As to my problem, I want my app to email a user each day as a kind of reminder additional to notifications. However I can't find a way to do this without user intervention, I am aware I can use a send inten...
java android
[1, 4]
1,919,420
1,919,421
can i take value of selected radio button in scriplet after clicking a button
<p>I have a jsp page where i have placed several radio buttons.</p> <p>After selecting radio button and clicking a submit button it will call a javascript function, which needs the selected value of the radio button to perform some operations into the scriplet.</p> <p>Can anyone solve this ?</p> <pre><code>&lt;td al...
java javascript
[1, 3]
3,216,827
3,216,828
How to execute Javascript from Python on Windows?
<p>how can I execute Javascript from Python on Windows?</p> <p>I want to get python-spidermonkey functionality. Just like this:</p> <pre><code>&gt;&gt;&gt; class Foo: ... def hello(self): ... print "Hello, Javascript world!" &gt;&gt;&gt; cx.bind_class(Foo, bind_constructor=True) &gt;&gt;&gt; cx.eval_script("var...
javascript python
[3, 7]
1,771,568
1,771,569
return value javascript UIWebView
<p>i'm trying to get the return value of a javascript function(for example: <code>return "hello"</code>) with iPhone SDK.</p> <p>On OS X the WebView method <code>-stringByEvaluatingJavaScriptFromString</code> returns a NSString containing the js function return value, but on the iPhone no value is returned.</p> <p>Ho...
javascript iphone
[3, 8]
3,794,837
3,794,838
Is it possible to disable the mouse events on showing some progress is going on
<p>Hi all i am doing an application in <code>asp.net</code> where when i click on a button i will show an <code>image(loading image)</code> saying that <code>progress</code> is going on. At that time i would like to disable the mouse events completely, so that the user should not perform any operations with mouse. Is i...
c# asp.net
[0, 9]
3,025,551
3,025,552
how can I access my public method from aspx code behind to a public class?
<p>I have a public method in my aspx code behind called PhotoDatabinding, what it does is to bind the database to List view control.</p> <pre><code>public void PhotoDatabinding() { lnqPhotoDataContext dbCon = new lnqPhotoDataContext(); var res = from p in dbCon.Photos orderby p.PhotoID descending select new { ...
c# asp.net
[0, 9]
973,287
973,288
File Upload in database using fileupload control
<p>I have a FileUpload Control and a image control on asp.net page as follows :</p> <pre><code>&lt;tr&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;td align="left"&gt; &lt;asp:Image ID="profileimage" runat="server" ImageUrl="~/Images /images2.jpg" Wi...
c# asp.net
[0, 9]
2,495,573
2,495,574
onclientclick validation not working
<p>The submit button should validate all the txtboxes, so i have written this code,<br> but it is not working and <strong>I also want that if textboxes aren't empty, then it should postback and onclick should call, otherwise not</strong> </p> <pre><code> function submit() { for( var i = 0, t = document.getElem...
javascript asp.net
[3, 9]
1,137,037
1,137,038
Best website or book to learn PHP (Basis already known)
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/871331/what-is-the-best-way-to-get-up-to-speed-with-php-javascript">What is the best way to get up to speed with PHP/Javascript?</a> </p> </blockquote> <p>Hi there, i just want to know if someone know WHERE (we...
php javascript
[2, 3]