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
6,025,300
6,025,301
Jquery selected tab
<p>I wanna get selected id from my tabs. I tried anything but but I am very weak in javascript. This my tabs. </p> <pre><code>&lt;li&gt;&lt;a href="#tab" class="days" id="day_1"&gt;Pondelok&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#tab" class="days" id="day_2"&gt;Utorok&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#ta...
javascript jquery
[3, 5]
4,122,373
4,122,374
Modify JavaScript to use ASCII character or image instead of text
<p>I have a DIV that expands or collapses when clicked. There is a + sign to indicates it expands, which changes to a - sign to indicate you can collapse it. Instead of the + and - sign, I want to use up and down arrows.</p> <p>jsfiddle here: <a href="http://jsfiddle.net/9PzRr/" rel="nofollow">http://jsfiddle.net/9Pz...
javascript jquery
[3, 5]
2,151,279
2,151,280
multiple dropdown lists validation using javascript/jquery
<p>I have five (5) individual dropdown lists on my web page.</p> <ol> <li>cities</li> <li>iptypes </li> <li>purposes</li> <li>billings</li> <li>protocols</li> </ol> <p>I want to validate that user must have at-least to select any one [ drop down list ] of them [ from 5 dropdowns ] to proceed next </p>
javascript jquery
[3, 5]
3,219,844
3,219,845
How to determine who uploaded file
<p>I have a system that allows users to upload .doc files..I'm using PHP and renaming these files the memberid.doc so that I can determine which user uploaded that file and give him the option to delete that file. I would like to keep the file name the same though. Is there any way I can do this and still track which ...
php javascript
[2, 3]
2,193,248
2,193,249
Serious Problem with special characters and multi-languages
<p>I created a simple comment wall that submits using ajax.</p> <p>Using javascript i collect user input:</p> <pre><code>var sharetxt = encodeURIComponent(document.getElementById("cw_share_txt").value); </code></pre> <p>then pass it to a php page, on the php page, i collect the passed data:</p> <pre><code>$text=nl...
php javascript
[2, 3]
807,522
807,523
How to create loading popup which stay 5 seconds
<p>Can somebody help me how to create on function <code>loading()</code> ( I have<code>&lt;div id="l" onclick="loading"&gt;&lt;/div&gt;</code>) to show popup with loading gif for 5 seconds (like <a href="http://www.queness.com/resources/html/modal/jquery-modal-window.html" rel="nofollow">http://www.queness.com/resource...
javascript jquery
[3, 5]
1,058,206
1,058,207
Is JavaScript allowed to call a remote web page during a click event?
<p>When viewing the click in firebug, the call turns red (i.e. error) but I can't see the error because the page redirects.</p> <p><strong>So is it allowed to call a remote website (in my case, its a 1x1 image using a standard url like <a href="http://www.example.com/becon" rel="nofollow">http://www.example.com/becon<...
asp.net javascript jquery
[9, 3, 5]
1,048,832
1,048,833
Show once popup
<p>Say I wanted to create a popup for my website that only showed once (if the user either filled it out or clicked the "do not display again" button), how would I do so. I am creating the popup and form using javascript and html, passing it in php to a database.</p>
php javascript
[2, 3]
4,471,064
4,471,065
Testing function that creates a list of DOM components
<p>I have a function which creates an Array of components. Each component is an outer div with a few inner divs.</p> <pre><code>function createDivs(quizQuestions) { var returnElements = new Array(); $.each(quizQuestions.questions, function(i, val){ // create the div. quizDiv = $('&lt;div class="quest...
javascript jquery
[3, 5]
4,637,118
4,637,119
how to pick up string inside a <li> tag using jquery
<p>I've a simple list and a form text-field:</p> <pre><code>&lt;ul&gt; &lt;li class="item"&gt;one&lt;/li&gt; &lt;li class="item"&gt;two&lt;/li&gt; &lt;li class="item"&gt;three&lt;/li&gt; &lt;li class="item"&gt;four&lt;/li&gt; &lt;/ul&gt; &lt;input id="field" type="text" /&gt; </code></pre> <p>When the user cl...
javascript jquery
[3, 5]
5,297,931
5,297,932
how to make iphone app in c#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8126248/is-there-a-way-to-make-applications-in-c-sharp-for-iphone">Is there a way to make applications in C# for iphone</a> </p> </blockquote> <p>Are there ways to create iPhone apps in C#? If so, what are they?...
c# iphone
[0, 8]
1,360,110
1,360,111
How can I populate a javascript array with values from a database using PHP?
<p>I have to create a javascript array whose elements are fetched by php from a database. Is it possible? If so, how?</p> <p><em>(I dont want to use ajax to do that)</em></p>
php javascript
[2, 3]
4,340,484
4,340,485
Selected text event trigger in Javascript
<p>It may sound a newbie question but I wanted to know how I can trigger a custom JavaScript function when someone selects a given text fragment on a page using mouse. Also is there any way to find the position of selected text on the webpage?</p> <p>Update: To be more clear, text fragment can be part of a sentence ...
javascript jquery
[3, 5]
3,419,856
3,419,857
Javascript ASP>NET get siblings/neighbours
<p>I have a gridview and i have text boxes and uneditable text fields in each row. For the textbox that I have ...I have an onblur function... I generate these textboxes from the server as follows </p> <pre><code> "&lt;input type=text name=\"txtPrice\" id=\"txtPrice_{0}\" value=\"{1}\" maxlength=\"10 \" runat=\"ser...
javascript asp.net
[3, 9]
4,055,073
4,055,074
trying to get focus to end of textarea after creating a dynamic value with jquery
<p>Here is my javascript:</p> <pre><code>$(document).ready(function(){ $(".reply").click(function(){ var replyId = $(this).attr("id"); $("textarea[name='comment']").val("&lt;reply:"+replyId+"&gt;"); $("textarea[name='comment']").ready(function(){ moveCursorToEnd($(this)); ...
javascript jquery
[3, 5]
1,881,246
1,881,247
Still confused about $'s before variables in javascript / jquery
<p>In my previous <a href="http://stackoverflow.com/questions/10443463/do-i-need-to-put-a-dollar-before-variable-names-with-javascript">question</a> a poster suggested the following:</p> <pre><code>var formSubmitHandler = function (link, form) { var $form = $(form); var val = $form.valid(); var action = $f...
javascript jquery
[3, 5]
794,666
794,667
MultiViewControl issues
<p>I'm presently in the process of reworking a MultiViewControl based wizard process for our web application. I am having an rough time trying to make sense of the order that events are happening (Page_Load, Init, prerender, etc). Does anyone out there on the interwebs have details on dealing with one of these contro...
c# asp.net
[0, 9]
3,590,336
3,590,337
Is it possible to read data from a local port using Javascript or ASP.NET?
<p><strong>I written the following to broadcast a data in a Windows Application using C#</strong> </p> <pre><code> UdpClient server = new UdpClient("127.0.0.1", 9050); string welcome = "Hello, are you there?"; data = Encoding.ASCII.GetBytes(welcome); server.Send(data, data.Length);...
javascript asp.net
[3, 9]
144,243
144,244
jQuery .contains(+number+)
<p>it's been a long day and I think I just have code blindness but..</p> <p>Trying to figure out if an element contains a number, do something to another element.</p> <pre><code>result_val = 9; $(".result").contains("+result_val+") (function() { $(".parag").css("color", "#eee"); }); </code></pre> <p>Maybe I'm t...
javascript jquery
[3, 5]
2,783,787
2,783,788
Easy question on a jQuery script
<p>I have the following think.</p> <p>When a user types a number bigger than 10 then there is a message appeared. How to remove this message let's say after 2 seconds ?</p> <p>Also if you type a number let's say 8 and hit the backspace, there is a 0 appeared. How to have number 1 appeared in the textbox from the begi...
javascript jquery
[3, 5]
3,197,785
3,197,786
How to create rotating tag cloud in jQuery
<p>I cannot explain the functionality actually. I want to rotate the links in spheric form. Visit this <a href="http://www.chemicalformula.org/" rel="nofollow">http://www.chemicalformula.org/</a>. On this site, see the region "Chemical formulas" in middle-left of the page, where links are rotating in spheric, circular ...
jquery asp.net
[5, 9]
4,916,673
4,916,674
IOException: Broken pipe when running Android application
<p>When trying to run my Android app from Eclipse I get this error in the console:</p> <pre><code> [2013-03-04 14:19:05 - ddmlib] Broken pipe java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcherImpl.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ...
java android
[1, 4]
2,787,601
2,787,602
Creating a .NET page to embed other .NET pages
<p>I have created certain functionalities for an application. These functionalities include - 1.)ADD USER 2.)EDIT USER 3.)DELETE USER and so on</p> <p>Now I have written all these in seperate pages. So when i have to delete a user i go to USER_DELETE.aspx page to do that. My new requirement is that there should be a ...
c# asp.net
[0, 9]
3,206,361
3,206,362
TopDesk overview
<p>I'm creating a overview of TopDesk. I've wanted to ask some of you what the best way would be to get this done.</p> <p>At the end the application will be set on a big screen so everyone could see how many topdesk calls we have.</p> <p>I've thought of the following options:</p> <ul> <li>Web based. (PHP or ASP/.NET...
java php asp.net
[1, 2, 9]
3,200,937
3,200,938
JavaScript: How do I debug in chrome to find out why this code doesn't work?
<p>How do I use the JavaScript console to see why this code:</p> <pre><code>// Empty info if ($('.perma-info').text() == '') { $('.perma-info').remove(); } </code></pre> <p>Doesn't work in this page: <a href="http://dev-indiehaz.tumblr.com/post/22897976111/vans-vw" rel="nofollow">http://dev-indiehaz.tumblr.com/po...
javascript jquery
[3, 5]
1,669,579
1,669,580
jquery: fire a function when a specific div loads?
<p>I want to fire a function when a specific div is load.<br> by searching I found that <code>onload</code> is not functioning on div . </p> <p>so I tried it by an image that work perfect But problem is that it fire the function only one time . for example when I refresh the page it fire the function but if I again r...
javascript jquery
[3, 5]
2,327,509
2,327,510
How can I access the value after a # in a URL?
<blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/1032242/how-to-obtain-anchor-part-of-url-after-in-php">How to obtain anchor part of URL after # in php</a><br> <a href="http://stackoverflow.com/questions/484113/is-it-possible-to-access-anchors-in-a-querystring-...
php javascript jquery
[2, 3, 5]
746,395
746,396
Basics of inertia in JavaScript
<p>I am looking to produce a draggable element with inertia when you move it. I am pretty new to JavaScript, looking for the basics of doing it. I would like to use a library like jquery ui for the drag n drop functionality then add inertia, I have done some as3 inertia but am wondering where to begin with JavaScript.<...
javascript jquery
[3, 5]
4,751,380
4,751,381
How do i delete a file? And file questions about limits? Java Android
<pre><code>FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_WORLD_READABLE); fos.write(string.getBytes() fos.close(); </code></pre> <p>Above is how i write my files. Now is there a limit to it? i'm asking this because i set some text to it that i get from my text view, then later, when i get the text from ...
java android
[1, 4]
2,304,458
2,304,459
Error with adding JQuery
<p>I added JQuery to my HTML file:</p> <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"&gt;&lt;/script&gt; </code></pre> <p>Then I add a link to my JavaScript file:</p> <pre><code>&lt;script src="public/javascripts/new_javascript.js" type="text/javascript"&gt;&lt;/script&...
javascript jquery
[3, 5]
529,430
529,431
Create a cookie with a non url encoded value using JQuery and the Cookie plugin
<p>I am creating a cookie on the client side and adding 3 string values in it separated by commas. The string have special characters. The problem is when I am fetching the value of the cookie in my code behind, the cookie has value as follows:-</p> <pre><code>4%2CHealth%20Related%2C%2Fmysite%2FYourKB%2FHealth-Related...
c# javascript jquery asp.net
[0, 3, 5, 9]
1,953,425
1,953,426
changing the index positioning in InputStream
<p>I have a binary file which contains keys and after every key there is an image associated with it. I want to jump off different keys but could not find any method which changes the index positioning in input stream. I have seen the <code>mark()</code> method but it does not jump on different places.</p> <p>Does any...
java android
[1, 4]
1,715,120
1,715,121
Dropdownmenu SELECTED value as per value return fromDB
<p>All i am trying to do is to set the selected value of drop down menu according to the particular value returned from the database</p> <p>like if person saved his gender as 'Male' and he wants to update his profile then the selected option shown on the Gender's dropdown llist should be shown as Male cause if this d...
php javascript
[2, 3]
2,996,415
2,996,416
Understanding the Google specification for crawlable ajax
<p>Im using dotnet c#, and jQuery plus webservices for ajax calls. My paginations works like twitter and facebook paginations. In the onload event, a ajax call fill a content area with 10 rows, and a click or a roll the page down event call the same ajax call, with a page parameter, that brings more 10 rows, and so on....
c# asp.net
[0, 9]
5,220,140
5,220,141
How to encapsulate definitions into a class? (Use const and then scope it)
<p>All my PHP files conform to class.className.php as a naming conventoin. So I put all my definitions in a class called class.Configure.php like below. Is there a best practice way to put this in an acutal class. Consistency makes it easier for me to manage my code. </p> <p>This is the only "loose" code I have in ...
php c++
[2, 6]
1,324,701
1,324,702
jQuery fixed content that scrolls if larger than view
<p>This is hard to explain but if you go here: <a href="https://developers.facebook.com/docs/reference/api/" rel="nofollow">https://developers.facebook.com/docs/reference/api/</a></p> <p>You will see that BOTH the sidebar and header are fixed but because the height of the sidebar may be larger than the viewport it scr...
javascript jquery
[3, 5]
3,943,254
3,943,255
Evaluate in Jquery
<p>Just wondering if its possible to convert the following to an IF statement in Javascript:</p> <pre><code>$('.Nav table tr:has(table.navheader) + tr:has(table.navitem)').addClass('linksbelow'); </code></pre> <p>Example:</p> <pre><code>IF $('.Nav table tr:has(table.navheader) + tr:has(table.navitem)').addClass('lin...
javascript jquery
[3, 5]
4,054,035
4,054,036
Use jQuery to load a url on change of table with many input fields
<p>I have tabled data in which most of the cells are text inputs or text areas.</p> <p>Each cell is named with the row, then the column such as </p> <pre><code>&lt;input type=text name=4_16&gt; </code></pre> <p>where 4 is the row, underscore the divider, and 16 the column number</p> <p>I have this javascript (using...
javascript jquery
[3, 5]
3,624,525
3,624,526
jQuery date picker to have date format as default value
<p>I'm using this plugin for a date picker. </p> <p><a href="http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePicker.html" rel="nofollow">http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePicker.html</a></p> <p>I need to have the default value of the text box be mm/dd/yyyy (kinda like value...
javascript jquery
[3, 5]
666,147
666,148
What is the purpose of "self.each(callback, array)" in the jQuery source code?
<p>jQuery's <code>.each</code> function takes exactly one argument- a function. And yet, In this piece of jQuery code, we see the following:</p> <pre><code>if ( callback ) { self.each( callback, [ responseText, status, jqXHR ] ); } </code></pre> <p>Two args are being passed to <code>.each</code>. I'm assuming the...
javascript jquery
[3, 5]
782,492
782,493
pass a js variable to a php variable
<p>I have a javascript value given by google maps and i need i to save it in a mysql database.</p> <p>Actually i have the variable </p> <pre><code>&lt;script&gt; ... var lugar = results[0].geometry.location;// this gives me a latitud, longitud value, like: -34.397, 150.644 ... &lt;/script&gt; </code></pre> <p>and i ...
php javascript
[2, 3]
3,177,681
3,177,682
Is this a good use for a static class?
<p>I have a read only list that is shared across all instances of the application and won't change very often. Is it good practice to make a property on a static class to access this list? the list is filled from the database in the static constructor. Setting the app pool to recycle every night would guarantee the ...
c# asp.net
[0, 9]
5,467,815
5,467,816
change order of object in row of listview programmaticaly
<p>currently i have:</p> <pre><code> &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="15:22:33 \nApr 13 1999" android:textColor="#FFFFFFFF" android:textAppearance="?androi...
java android
[1, 4]
92,507
92,508
Adding functionality to an imageButton in a gridview
<p>I have an ImageButton control as part of a GridView control that is displayed as an ItemTemplate and in the same GridView. I have a regular Button control to which I added some code like this</p> <pre><code>if (e.CommandName == "addToSession") { int index = Convert.ToInt32(e.CommandArgument); GridViewRow s...
c# asp.net
[0, 9]
374,209
374,210
Jquery collapse and expand server side control
<p>i am using asp.net 3.5 and c#.</p> <p>I have a server-side div (runat="server") and , what I want is this that when I click on the link, div1 will collapse. I have to do this in JQuery.</p> <p>I already achieve the target to use the following example. It collapse and expand the client side div.. now i want to do t...
c# jquery asp.net
[0, 5, 9]
2,407,385
2,407,386
Does logging slow down a production Android app?
<p>Before releasing my Android app to the marketplace, should I comment out all logs?</p> <pre><code>Log.d(tag, "example of a log") </code></pre> <p>If I leave them there, will the app run slower?</p>
java android
[1, 4]
5,794,223
5,794,224
How to make a Jquery event on the change of an object?
<p>I'm sure there is some really easy solution to this problem, at least it seems like there should be. But I haven't been able to find it...</p> <p>I have an object (it's not part of the DOM) and its properties are periodically getting updated:</p> <pre><code>var myobject; //wait 10 seconds myobject.property1 = "ab...
javascript jquery
[3, 5]
3,815,415
3,815,416
Does jQuery dialog display as hidden by default?
<p>I am using jQuery dialog in a simple, typical use case:</p> <p>In the Javascript:</p> <pre><code>$('myDialog').dialog({ modal: true; }); </code></pre> <p>In HTML:</p> <pre><code>&lt;div id="myDialog" title="Dialog Title"&gt; Dialog contents here &lt;/div&gt; </code></pre> <p>However, the CSS I'm using t...
javascript jquery
[3, 5]
1,063,909
1,063,910
Constructing HTML after getJSON works in Safari but not in Chrome or Firefox
<p>Hi i'm actually a newbie using javascript and html/css.</p> <p>I can't understand why my script works on safari, but not on chrome and firefox... any ideas?</p> <p>EDIT: Both in chrome anda firefox the ul and li elements do not show... Also the previous alerts don't work. I'll check errors in the console and edit ...
javascript jquery
[3, 5]
2,295,469
2,295,470
How to use activity to request data from service?
<p>Now, my program have an activity and a service. The service runs in the background and sometimes vibrates to ask users give some selection. I meet a problem here. I know broadcast could pass data from service to activity. But if the activity is not working, then it cannot receive the broadcast information, so if use...
java android
[1, 4]
3,748,280
3,748,281
Accesing contents of res/raw programatically (Android)
<p>I'm working on an app for Android with a few other people, and the primary content is specified by our designers as text files in a certain file format, which we then parse, process, and serve in the app. We're currently storing them in <code>res/raw</code>.</p> <p>This makes things great for the designers because...
java android
[1, 4]
1,519,719
1,519,720
DOM element position based on view
<p>How can I get position of an element based on view? So as viewer scroll I get different values.</p> <p>jQuery is prefered.</p>
javascript jquery
[3, 5]
35,155
35,156
how to create a multi dimensional array out of dynamically created fields and variables
<p>here is my url: <a href="http://iadprint.com/products?product=business%20card" rel="nofollow">http://iadprint.com/products?product=business%20card</a></p> <p>the fields that you see on this page are all dynamically created on the backend. i decided to use the fieldnames created as variables to display the price as ...
php javascript jquery
[2, 3, 5]
1,818,836
1,818,837
Confirm function in codebehind
<p>I my application i am using ajax(Updatepanel).I am using the following code to show confirmation dialog box after finishing some update process in database. but it is not working for me.</p> <p>Problem:</p> <p>Confirmation box is not displaying.</p> <p>code:</p> <pre><code> protected void imbtnUpdate_Click(objec...
c# asp.net javascript
[0, 9, 3]
5,893,293
5,893,294
Using SharedPreferences inside MyXMLHandlerTemp
<p>I have a class named <strong>MyXMLHandlerTemp</strong> which <strong>extends DefaultHandler</strong>. The class is used for parsing data. </p> <p>I want to use <strong>SharedPreferences</strong> inside MyXMLHandlerTemp class but it gives me error saying </p> <blockquote> <p>getSharedPreferences(String,int) is u...
java android
[1, 4]
4,765,405
4,765,406
Tools for searching string literals in an application
<p>Are there any tools for locating all the strings that I've to Internationalize? My app is already "partially" designed for Internationalization support. However I want to make sure that there arent' any hardcoded string within my app.</p> <p>Regular expression search didn't help a lot as trying to find "***" return...
c# asp.net
[0, 9]
1,505,827
1,505,828
Change background based on text in TextView in Android
<p>I'm trying to get the backgound of the layout to change based on what's in a textview. I know how to set the background in Java:</p> <pre><code>mainbg.setBackgroundResource(R.drawable.erburrows); </code></pre> <p>but if I wrap that call in an if statement, nothing happens. There are no error flags or anything, it ...
java android
[1, 4]
5,091,650
5,091,651
Asp.net static object behaviour
<p>I have the following class as part of an asp.net application.</p> <pre><code>public sealed class SomeClass { private static string appId = Guid.NewGuid().ToString(); public static ReadSomethingFromDb(){} public static WriteSomethingToDb(){} } </code></pre> <p>There are more than one application...
c# asp.net
[0, 9]
2,861,023
2,861,024
How to detect whether an image exists in the server using Javascript or Jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3646914/how-do-i-check-if-file-exists-in-jquery-or-javascript">How do I check if file exists in jQuery or Javascript?</a> </p> </blockquote> <p>I need to find out image exists at specific path on server using ja...
php javascript jquery
[2, 3, 5]
21,391
21,392
Does technology exist that could allow devices to access and use data without having to download or stream it?
<p>Say the data never has to be copied to the client device, but always remains locked in the server. Say all the requesting device does is "hack in" to the server using a special code and only downloads some kind of tiny-size alias that gives it access to the entire file(s) on the server? Does this technology alread...
php javascript asp.net
[2, 3, 9]
2,306,809
2,306,810
Android:converting int to string and passing to methods
<p>Hi I am using the android wheel and getting the values of the time as below</p> <pre><code> //get values of the wheel hourvalue = hours.getCurrentItem(); Log.d(TAG, "hour value" +hourvalue ); minutevalue = mins.getCurrentItem(); Log.d(TAG...
java android
[1, 4]
2,621
2,622
Returning through multiple functions
<p>Alright, this might be kinda simple, but I cannot figure out how to do this. How can I change this function to return the <code>String class_name</code>? I know that I need to change the function from <code>void</code> to <code>String</code>, but what else do I need to do?</p> <p>Much appreciated!</p> <pre><code>p...
java android
[1, 4]
4,246,983
4,246,984
C++ for C# Developers
<p>I know C# pretty well (self-taught, sadly) and need to do some C++ programming for a Windows application. I have been able to find a ton of information for C++ developers learning C# but haven't been able to find much on learning C++ when you already know C#. Has anyone come across a good rundown of the basics? <...
c# c++
[0, 6]
866,658
866,659
Prevent Refresh 'Jump' with Javascript
<p>I've noticed that if you are on a page and you have scrolled down a good bit, if you refresh the page, most browsers will jump you back down to your position. Is there any way to prevent this? </p> <p>I have looked at two options and neither are consistent across Webkit / Firefox.</p> <pre><code> window.scrollT...
javascript jquery
[3, 5]
5,494,834
5,494,835
access values of controls dynamically created on postback
<p>My problem is: I've got a table, dynamically created, fill with a lot of dropdownlists witches IDs are dynamically created.</p> <p>When a button is pressed, I need to scan all controls in the table and save their value.</p> <p>But after the postback I can't no longer access to the table, and I've no idea how can I...
c# asp.net
[0, 9]
5,349,231
5,349,232
jQuery $.submit and files not working in IE and FF
<pre><code>&lt;?php if (!empty($_FILES)){ echo "&lt;pre&gt;"; echo $_FILES['file']['type']; echo "&lt;/pre&gt;"; return; } ?&gt; &lt;script type="text/javascript"&gt; function autoUpLoad(){ $("#txtHint").html("&lt;center&gt;&lt;img src='include/images/loader.gif' /&gt...
php jquery
[2, 5]
5,068,866
5,068,867
How to use jQuery's delay() as a sleep()?
<p>Can jQuery be used as a sleep() or wait() function? Suspending the execution of the statements after the wait. I tried $().delay(5000) but there was no 5 second wait. Is delay() only used in effects?</p> <p>I am not looking for solutions which involve setTimeout delayed execution of another function or a CPU hoggin...
javascript jquery
[3, 5]
2,205,354
2,205,355
Updating value of input field onclick - code have to reflect in source code
<p>I have issues updating input fields values on clicking "Save", it's basicaly not saving the newly typed stuff into the value (value stays old, if you right-click and check source)...</p> <pre><code>function editCartInfo(){ $('#CheckEdit').html('edited'); $("#FullName").prop('disabled', false); $("#Addr...
php jquery
[2, 5]
4,155,014
4,155,015
Jquery Evolution from simple plain javascript
<p><br/> i have been using jquery for a while now but only thing i know about jquery is probably a dozen of functions that get my job done. but i want to understand how jquery evolved from simpl plain javascript i.e how</p> <pre><code>$("#xyz").val(); </code></pre> <p>is converted to </p> <pre><code>document.getElem...
javascript jquery
[3, 5]
1,252,758
1,252,759
How to pass a variable into a dialog function?
<p>How do i pass my rating variable from updateRating() function into my window.location.replace(url + rating) which in the "proceed" function in my dialog? </p> <p>Here are my codes:</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function(){ $(".hireraccept").cl...
javascript jquery
[3, 5]
78,307
78,308
How to capture on browres open new tab the target url
<p>Is it possible to catch the attribute of hyperlink with JavaScript or Jquery on browsers open new tab event? </p> <p>lets say I have a hyperlink <code>&lt;a href="http://example.com/something"&gt;MyLink&lt;/a&gt;</code> and using right click on link and opening new tab should alert first "<code>http://example.com<...
javascript jquery
[3, 5]
226,882
226,883
Passing JavaScript Variable to PHP Session variable
<p>I am trying to update/create session variable when I change the option thru a drop-down box. TThe value is stored in a javascript function. Can any1 tell me how I can pass this variable to my PHP session variable without using a AJAX request. Thanks</p>
php javascript
[2, 3]
23,005
23,006
When removing a class with jQuery, is it better to include the class in the selector?
<p>Probably this will not result in any noticable performance difference, but I was just interested. If I am removing a class on a list of elements using jQuery, is it better practice or performance to include the class in the selector?</p> <p>So either include it:</p> <pre><code>$('#myList li.classToRemove').removeC...
javascript jquery
[3, 5]
2,921,410
2,921,411
Math function to round up the values to .0 or .5
<p>How can I round numbers up to the nearest whole <em>or</em> to the nearest half?</p> <p>For Example:</p> <pre><code>&gt; 23.15 --&gt; 23.5 &gt; 23.56 --&gt; 24.0 </code></pre> <p>The rounding functions I know about are <code>floor</code> and <code>ceil</code>, but those only round to the nearest integer.</p>
c# asp.net
[0, 9]
5,007,172
5,007,173
Parent-Child Gridview in ASP.net
<p>I have two GridView in ASP.net 3.5 page. I have HyperLink field as one of the fields in the First GridView.</p> <p>On click of this hyperlink I need to call display the 2nd grid by passing some values to a method showAllRecords(value from hyperlink)</p> <p>How do I do this?</p> <p>Thanks</p>
c# asp.net
[0, 9]
3,926,182
3,926,183
Adding feedback buttons
<p>I've a static html file that is generated from docbook5 sources. Now I need to add feedback buttons, at the end of each section, so I'm appending (using jQuery) a link after each title:</p> <pre><code>$(document).ready(function() { $("div[title]").append('&lt;a href="mailto:me@host?subject=XXX"&gt;feedback&lt;...
javascript jquery
[3, 5]
1,796,297
1,796,298
How is my session variable defined on a remote page? Just curious for background knowledge
<p>Hey guys, one more quick question for any experts out there. I have a form that is submitted via jquery ajax, works perfectly (I tested), and uses a form token (I set a session variable and pass through form and check that the token is equal to the posted token to prevent csrf attacks, see below...). My question is ...
php jquery
[2, 5]
3,792,548
3,792,549
Is it possible to use jQuery to grab the HTML of another web page into a div?
<p>I am trying to integrate with the FireShot API to given a URL, grab HTML of another web page into a div then take a screenshot of it. </p> <p>Some things I will need to do after getting the HTML </p> <ul> <li>grab <code>&lt;link&gt;</code> &amp; <code>&lt;script&gt;</code> from <code>&lt;head&gt;</code> </li> <li>...
javascript jquery
[3, 5]
3,050,734
3,050,735
Restarting countdown clock
<p>This is how it looks currently:</p> <pre><code>final CountDownTimer countdown = new CountDownTimer(5000, 1000) { public void onTick(long millisUntilFinished) { clock.setText("Seconds Remaining: " + millisUntilFinished / 1000); } public void onFinish() { qcount++; if (qcou...
java android
[1, 4]
1,502,410
1,502,411
How to refresh CursorAdapter on spinner selection?
<p>I have a SpinnerListner class that is nested in ListActivity inherited class. My aim is to update the CursorAdapter that is implemented by the ListActivity class.</p> <p>Here is my code:</p> <pre><code>public class test extends ListActivity { private testAdapter adapter; protected SQLiteDatabase ...
java android
[1, 4]
4,451,377
4,451,378
Add new class and attributes to div if it exists on the page
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/11618822/how-to-add-new-class-and-attributes-to-div-if-it-exists-on-the-page">How to add new class and attributes to div if it exists on the page</a> </p> </blockquote> <p>I need JavaScript code on my master pag...
c# javascript jquery
[0, 3, 5]
4,313,534
4,313,535
Shutdown XML-RPC server from client/test-harness
<p>My problem context is as below:-</p> <ol> <li>I have an Apache XMLRPC server implemented on Java using Webserver</li> <li>A client implemented in Android running on the device/emulator, connecting against the XML-RPC in step 1.</li> <li>Test cases running on the Android emulator which pass data to the client, which...
java android
[1, 4]
249,461
249,462
How to show a label message, then hide it after some seconds?
<p>I would like to show a message on my ASP.Net page like "Record saved" on save button click. After 5 seconds, I would like to hide it.<br> How can I do in JavaScript? Can I avoid to add jQuery (I'm not using it)?</p>
javascript asp.net
[3, 9]
804,426
804,427
is(':first') returns different (wrong?) results for what should be the same element. jsFiddle inside
<p><a href="http://jsfiddle.net/garnwraly/sfrwU/2/">http://jsfiddle.net/garnwraly/sfrwU/2/</a></p> <p>given HTML of only</p> <pre><code>&lt;li&gt; &lt;button id="bam"&gt;click&lt;/button&gt; &lt;/li&gt; </code></pre> <p>and this script</p> <pre><code>$('body').on('click', 'button', function (e) { //console....
javascript jquery
[3, 5]
3,106,278
3,106,279
DropdownList with Multi select option?
<p>I have a DropDownList as following</p> <pre><code>&lt;asp:DropDownList ID="ddlRoles" runat="server" AutoPostBack="True" Width="150px"&gt; &lt;asp:ListItem Value="9" Text=""&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="0"&gt;None&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="1"&gt;Ranu&lt;/asp:ListItem&gt; &lt;as...
c# asp.net
[0, 9]
1,379,316
1,379,317
Get changes to multiselect listbox selected items
<p>I have a listbox databound if not postback and items selected from a database (if applicable). If i select new items in the listbox and postback, my foreach logic always sees only the original selection, not the changes. Been banging my head trolling google for the answer. Here's the code behind:</p> <pre><code>...
c# asp.net
[0, 9]
3,656,023
3,656,024
Get the id of an option chosen in a select by a user
<p>I'm tryin to get the id of an option chosen in a select by a user.</p> <pre><code>$(document).ready(function(){ $(".my_select_class").change(function(){ var d = $(this).find('option:selected').attr('id'); alert(d); return false; }); }); </code></pre> <p>The id exist...
javascript jquery
[3, 5]
3,042,784
3,042,785
how to paint link that i visit and link that i dont visit with green ? (asp.net)
<p>i have link in my webform </p> <p>how to do that even i visit or not visit the color will be green ?</p> <p>thanks in advance</p>
c# asp.net
[0, 9]
2,501,351
2,501,352
How to Set Layout Background in Android UI
<p>I'm new to Android programming. I have a UI with some <code>TextView</code> and <code>Button</code> controls. How do I set a background behind those components? Lets call it <code>background.png</code>. </p>
java android
[1, 4]
3,794,865
3,794,866
How would I toggle the state of a setInterval function in jQuery?
<p>I want to be able to click a an element with an id of pause to start a count of the elements in a time object and if I re click the pause it will stop it and reclick start it exactly like the toggle feature in JQuery but with a setInteval function how would I go about doing this?</p> <pre><code>$("#pause").click(fu...
javascript jquery
[3, 5]
1,653,595
1,653,596
translating php array into asp.net arraylist
<p>i'm trying translate some php code into asp.net code </p> <p>php code:</p> <pre><code> function setOption ($result) { foreach ($result as $value) { $parentid[$value['id']] = $value['parentid']; $subid[$value['parentid']][] = $value['id']; $...
c# php asp.net
[0, 2, 9]
2,086,010
2,086,011
jquery Arrays, how to use each
<p>I current have the following which works well:</p> <pre><code>channel.bind('pusher:subscription_succeeded', function(members) { members.each(set_status_online); }) function set_status_online(member) { var user_temp; user_temp = findWallUser(member.info.uid); if (user_temp) { user_temp.stat...
javascript jquery
[3, 5]
3,305,533
3,305,534
append to file android
<p>hey there, i need to append to my file but it is not working, it keeps overwriting the file, can anyone please tell me what is wrong:</p> <pre><code> public void generateNoteOnSD(String sBody){ try { File root = new File(Environment.getExternalStorageDirectory(), "AdidasParticipants")...
java android
[1, 4]
5,409,999
5,410,000
What does this java line do?
<pre><code>response1 = CustomHttpClient.executeHttpPost("http://gamesdsxd.com/appfiles/login.php", postParameters); String res = response1.toString(); res = res.replaceAll("\\s+", ""); </code></pre> <p>I'm wondering what \s+ does and what this replaceAll does and why it is needed.</p>
java android
[1, 4]
5,474,213
5,474,214
C++ to Java code translation
<p>I have following code in C++:</p> <pre><code>struct Foo { }; std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const Foo&amp; f) { return os &lt;&lt; "Foo"; } Foo foo; std::cout &lt;&lt; print("Ha! %1%, x=%2% %1% %3%") % "Hej" % 1 % foo; </code></pre> <p>Because I don't think I understand that C++ code....
java c++
[1, 6]
5,579,270
5,579,271
Asp.net need Simultaneous display in Second Text Box
<p>I have two text boxes I need a functionality like If I am typing in 1st text box The text should be getting displayed in 2nd text Box with some other font. This is a web Application. And so Text Box doesn't have OnKeyDown event? Do you suggest any way to implement this?</p> <p><strong>Note:</strong> I don't want to...
c# asp.net
[0, 9]
3,745,258
3,745,259
How to achieve JavaScript Object inheritance?
<p>I want create a new JavaScript object based on an existing JavaScript object.<br> Till now my research led me to jQuery extend function.<br> <br>example:</p> <pre><code>var object1 = { name:'same name', age:'1', occupation:'programmer' } var object2 = { name:'same new name' } </code></pre> <p>Now, ...
javascript jquery
[3, 5]
1,629,450
1,629,451
How to call a parent class's method from child class in c#?
<p>I have a master page with a method I use a lot from content page code behinds. In those code behinds, I have a method that gets duplicated a lot, so I thought I'll put it in something I can inherit from. Unfortunately, I now can't call the method in my master page code behind from the base class. I think I should kn...
c# asp.net
[0, 9]
766,579
766,580
How to create one javascript/jquery function-handler for many items?
<p>I have the html like below: </p> <pre><code>&lt;table class="table" id="subscriptions"&gt; &lt;tbody id="subscriptions-tbody"&gt; &lt;tr&gt; &lt;td&gt;Item 1&lt;/td&gt; &lt;td&gt;&lt;a href="#"&gt;delete&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Item 2&lt;/td&gt; &l...
javascript jquery
[3, 5]
752,518
752,519
PHP + jQuery change background based on server time
<p>I have an Apache based server, which currently hosts my PHP + HTML5 app. I wrote a jquery script, which should change background image of specific div, if some conditions regarding server time are met. Problem is - the script is not working :)</p> <p>I've already red some issues here, and tried to fix script, but t...
php jquery
[2, 5]