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,418,726 | 3,418,727 | place the text when we click the more button | <p>i write the following ,for displaying the text,when i click the more link,it has to show the remaining paragraph .i already tried,but i dont know why its not working,can any help to get of this .</p>
<p>this is my following code</p>
<pre><code> <style>
p span {
display:none;
}
</style&... | javascript jquery | [3, 5] |
1,736,158 | 1,736,159 | When I clean my solution then dll missing error comes in my asp.net app | <p>I am developing an app in asp.net in which I have added a .dll file. When I clean the project and then build the project the .dll is missing in the reference. What is the solution?</p>
| c# asp.net | [0, 9] |
4,353,085 | 4,353,086 | change background color of div with jquery that has an !important tag | <p>Using a plugin that calls a .jsp that uses its own stylesheet hosted externally (it's a yelp embed - trying to manipulate the look of it). The one element I'm trying to change has an !important tag on it, and I can't seem to change it...</p>
<p>I tried</p>
<pre><code><script type="text/javascript">
$('.el... | javascript jquery | [3, 5] |
4,952,158 | 4,952,159 | using c# variable in javascript | <p>I want to know how can I use a C# variable in javascript?</p>
| c# javascript | [0, 3] |
3,388,837 | 3,388,838 | How to know when an input has changed its class | <p>I have function which is removing and adding class into input tag, i want to when we add or remove class then one function should alert that you have made changes.</p>
<pre><code><head>
<script type="text/javascript">
$(function() {
$('a').click(function() {
$('in... | javascript jquery | [3, 5] |
1,740,178 | 1,740,179 | JQuery missing : after property ID | <p>So I am working with some jquery code to do a simple hide of a p and a show of a p. I am simple adding a class called showp and showing it while making sure the others are not shown by hiding them first. But I keep getting an error missing : after property ID. Any help would be greatly appreciated.</p>
<pre><code> ... | javascript jquery | [3, 5] |
5,472,110 | 5,472,111 | How to get the ID of a div when using bind() in jQuery? | <p>Let's say I have the following <code>div</code>.</p>
<pre><code><div id="123" class="abc">Foobar</div>
</code></pre>
<p>I know I can do this to trigger a function when this <code>div</code> is moused-over:</p>
<pre><code>$(".abc").bind({
mouseenter : SomeFunction(id)
});
</code></pre>
<p>With thi... | javascript jquery | [3, 5] |
505,979 | 505,980 | how to split image into multiple pices and join them as requested by user | <p>I am trying to load a large image <strong>( size > 80 MB)</strong> into web page. User doesn't really need to see the whole image at once and only need to see the requested portion. </p>
<p>The dimensions of the image are approx <strong>10k x 10k</strong>.</p>
<p>I looked around a little bit but couldn't found a r... | c# asp.net | [0, 9] |
607,896 | 607,897 | which file is the js error in and how to correct it? | <p><img src="http://i.stack.imgur.com/nR9et.jpg" alt="enter image description here"></p>
<pre><code>http://www.idcspy.com/asp-hosting.html
</code></pre>
<p>when loads over the page , at the bottom of the IE broswer window. it shows an alert(the page has an error), it's an javascript error.but i don't know which js f... | javascript jquery | [3, 5] |
1,152,447 | 1,152,448 | String equality returning false when strings are equal | <p>I have an anchor element :</p>
<pre><code><a id="buyBtn" href="#" alt="Purchase" title="Buy now" data-enabled="true">
</code></pre>
<p>When it is clicked, I'm doing this:</p>
<pre><code>enabled = $(this).data('enabled') == "true";
console.log(enabled);
</code></pre>
<p>However, the console shows <code>fals... | javascript jquery | [3, 5] |
5,932,176 | 5,932,177 | Is it possible to have the menu link color change on the table hover for an asp.net menu control? | <p>I'm using an ASP.net menu and when i hover inside my menu item's table, i change the background color on the table column, but unless i hover over the link text itself, the link text color will not change.</p>
<p>Is it possible to have the link text color changed on the table hover?</p>
<p>Example below shows what... | c# asp.net | [0, 9] |
3,542,609 | 3,542,610 | How to bind function on different butons? | <p>I tried to bind alert on my buttons:</p>
<pre><code>for(var i=1; i<=3; i++){
$('#' + i).live('click', function(){
alert(i);
});
};
</code></pre>
<p>It is my html code:</p>
<pre><code><input id="1" type="button" value="one">
<input id="2" type="button" value="two">
<input id="3" type... | javascript jquery | [3, 5] |
2,848,003 | 2,848,004 | Why does Repeater.ItemDataBound - Event not trigger anything? | <p>I do register a method for the <code>ItemDataBound</code> - Event like this:</p>
<pre><code>protected void Page_Init(object sender, System.EventArgs e)
{
MyRepeater.ItemDataBound += MyRepeater_ItemDataBound;
// ...
}
protected void MyRepeater_ItemDataBound(object sender,
System.Web.UI.WebControls.Repe... | c# asp.net | [0, 9] |
1,762,381 | 1,762,382 | What is the easiest way to display a table of data? | <p>Coming from PHP background. What would be the easiest (best?) way to display a table of data populated in C#? The format of the data could be modified as required, right now, I am thinking 2D list to store the data.</p>
<p>Gridview is nice and all but I haven't found a way to use a C# List as it's data source.</p... | c# asp.net | [0, 9] |
4,411,136 | 4,411,137 | User login to information on query string | <p>I have a list of clubs that when a user clicks on one of the clubs it loads a query string. This then pulls the data relating to that club.</p>
<p>I need to set up a users so they can login and edit the information under that account. At the moment i am unsure of how i would set this up for a user.</p>
<p>The url ... | c# asp.net | [0, 9] |
4,795,141 | 4,795,142 | Access gridview as property from usercontrol | <p>I have gridview bind in user control and want to access that gridview from user control in page and use export to excel.</p>
<p>I created property in usercontrol to access but I am not able to access it.</p>
<p>How can I access gridview from usercontrol in my page?</p>
| c# asp.net | [0, 9] |
4,828,733 | 4,828,734 | Output markup & controls dependent on result of Javascript function | <p>I have an ASP.NET page which includes markup and 3rd party controls (in this particular case Telerik controls) e.g. </p>
<pre><code><h1>Hello</h1>
<telerik:RadToolBar ID="toolbarCAD" runat="server" Skin="Web20" Height="30px" Width="300px" OnClientButtonClicked="OnClientButtonClicked">
<Ite... | javascript asp.net | [3, 9] |
225,001 | 225,002 | How to synchronize jQuery dialog box to act like alert() of Javascript | <p>I am currently working on developing custom dialog box to be used with my application using jQuery. The problem is that the call to create dialog is asynchronous i.e. the line of code after it is executed before it is displayed. Here is what I have done, I have created a function DisplayConfirm() which when called c... | javascript jquery | [3, 5] |
520,492 | 520,493 | Is it considered Bad Idea to Edit the orginal JQuery File? | <p>We have Tabs-Menu controls which rely on jQuery library and the dev-manager insist that i should get the functions that controls are using into a separate java-script file so we don't have to reference/rely on the whole jQuery, so it made me wonder.. is it a bad idea to edit the jQuery files ?</p>
| javascript jquery | [3, 5] |
64,796 | 64,797 | How to use more than one Operator in an If Statement using C# | <p>I want to use multiple operators like =, >, && in my if statement. I only want to send the email when this condition is true if (strAuthReqDate == null && strDate < strExpectedSubDate). So i think my "less than operator" is wrong pls let me know what i am doing wrong here. thanks</p>
<p>Here ... | c# asp.net | [0, 9] |
3,983,768 | 3,983,769 | Find grid control inside grid without its rowbound event | <p>I have a grid of list of companies & below its branches(subgrid within company grid). I have checkbox for each binding with their id's(Companyid & branchid).I have one button to add those selcted values from either company or branch & show all selected record in another grid.Add button is outside of grid... | c# asp.net | [0, 9] |
4,004,866 | 4,004,867 | clear all ASP label fields | <p>I am trying to clear all the fields in my .aspx page using javascript (<em>Should be cross-browser</em>). The below code is working fine for <code>TextBox</code> fields but not for <code>Label</code> fields.</p>
<pre><code>var elements = document.getElementsByTagName("input");
for (var i = 0; i < elements.length... | javascript asp.net | [3, 9] |
2,054,096 | 2,054,097 | jquery, c# and server side data validation | <p>Ive been using jquery to post data and was wondering how best to perform serverside validation on the data. I check the values clientside but know its good practice to also check serverside. Ive seached online but cant really find any examples.</p>
<p>Thanks in advance</p>
| c# asp.net jquery | [0, 9, 5] |
878,554 | 878,555 | About binding record to gridview from 2 tables in asp.net c# | <p>I have one gridview. I have one table(source) that contains fields like sourceid, name and another table(target) that contains fields like targetid, from, to,date.
In that target table from & to fields are ids refer to source table's sourceid's.
So i have to bind record of target table i.e to bind fields :
from ... | c# asp.net | [0, 9] |
1,332,968 | 1,332,969 | Android out of memory after first application run? | <p>I have an application that will run fine the first time it is ran. Now if I leave the application and force stop it in manage applications and come back in it will crash with OutOfMemory. Why would it work the first time and run out of memory on subsequent calls?</p>
| java android | [1, 4] |
1,452,901 | 1,452,902 | Fails to read InputStream | <p>I'm using the following code to read <code>InputStream</code> from <code>Runtime.Exec()</code>.</p>
<p><strong>CODE :</strong></p>
<pre><code>private String inputstreamReader(String[] shellinput) {
InputStream inputstream = null;
String isrval = null;
System.out.println("Entering inputstrea... | java android | [1, 4] |
3,917,479 | 3,917,480 | C# equivalent to Java resource | <p>Is there an online resource or database that allows looking up the C# equivalent to a Java class and vice versa?</p>
<p>I have been porting code and have been Googling individual classes one at a time; it gets a little tedious. 8^j</p>
<p>Cheers</p>
| c# java | [0, 1] |
2,537,746 | 2,537,747 | Ajax loads new button, do I need to load a new selector? | <p>Let's say that I'm coding a message system for example. Users can add messages (via AJAX) and next to their messages they've got some buttons. (Edit, Remove, ...)</p>
<p>By loading the page, a few messages are loaded.</p>
<pre><code><div class="message">
<p>blaat</p>
<a href="#" class=... | javascript jquery | [3, 5] |
5,240,887 | 5,240,888 | How come this jQuery script will not highlight the first child in my list? | <pre><code><html>
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<style>
.emphasis { font-weight: bold; }
</style>
<script>
$(function() {
$('li:first-child').addClass(... | javascript jquery | [3, 5] |
1,282,239 | 1,282,240 | Javascript IndexOf with integers in string not working | <p>Can anyone tell me why does this not work for integers but works for characters? I really hate reg expressions since they are cryptic but will if I have too. Also I want to include the "-()" as well in the valid characters.</p>
<pre><code>String.prototype.Contains = function (str) {
return this.indexOf(str) !... | javascript jquery | [3, 5] |
2,472,368 | 2,472,369 | How to select child from parent by class starting with $(this) | <p>I'm creating a custom jQuery plugin to add a few images above an input box. The highlight class are working perfectly, but I need help with the selectors on the .toggle() for showing and hiding the INPUTBANNER class. </p>
<pre><code>jQuery.fn.inputmenu = function() {
function createInputMenu(node) {
$... | javascript jquery | [3, 5] |
5,220,010 | 5,220,011 | ASP.Net How do I execute a dynamic JavaScript and prevent a postback | <p>I have and ASP button and 2 Labels.</p>
<pre><code><asp:Button runat="server" ID="btnHide" />
<asp:Label runat="server" ID="lblName"></asp:Label>
<asp:Label runat="server" ID="lblPosition"></asp:Label>
</code></pre>
<p>I have created a dynamic JS script.</p>
<pre><code>string jsbtnHi... | c# javascript asp.net | [0, 3, 9] |
3,755,066 | 3,755,067 | JavaScript Best Practices: where should I include my JavaScript? | <p>I am building a website using PHP and JavaScript, and I feel that I have a good grasp on where to include my JavaScript, but a more specific situation has come up that has me confused. I currently have all of my JavaScript in one external file, which is being included on every PHP page.</p>
<p>Let's say that I hav... | javascript jquery | [3, 5] |
3,532,878 | 3,532,879 | JQuery Order list by field and add to divider div | <p>I am trying to get listing organized by a field called letter.</p>
<p>So the fields are:</p>
<p>id, name, letter.</p>
<p>for example:</p>
<h2>id name letter</h2>
<p>1 list1 a
2 list2 a
3 list3 b</p>
<p>To list1 and list2 are added after id="a" and list3 is added after id="b"</p>
<p>Here is a j... | javascript jquery | [3, 5] |
5,378,199 | 5,378,200 | Where to store data in order to avoid database hitting? | <p>I am using webmethod which fetches data from database & storing it in a static variable so that next time it will not hit the database becoz the data is being accessed frequently. Creating static variable doesn't seem to be a proper solution what is an alernative to this scenario.</p>
<p>e.g</p>
<pre><code>pub... | c# asp.net | [0, 9] |
3,008,077 | 3,008,078 | How well can the android handle incoming UDP bursts? | <p>I hope this is alright for SO. It is programming related in the design and requirements spectrum. </p>
<p>I am designing an application but unsure how well the Android can handle the demands. I will require the device to accept a burst of small-ish UDP packets in rapid succession. Is that acceptable, or is it prefe... | java android | [1, 4] |
5,479,894 | 5,479,895 | How can I pass the value of an input in a href | <p>I'm trying to pass the LoadNumber into a php file to use in a query and result in a FPDF on a button click. the button works but the value its passing is $(' not the value I wanted. Where am I going wrong. Here is my code.</p>
<pre><code>$(location.href="dispatch.php? LoadNumber=$('#LoadNumber').val()")};
</code></... | javascript jquery | [3, 5] |
480,304 | 480,305 | Get link name in javascript | <p>Example</p>
<pre><code><a href="example.html">Example Name</a>
</code></pre>
<p>I would like to get "Example Name"</p>
<p>I know I can do this with regex, but I'm looking for a simpler, faster approach. The closest I came was with Jquery using the <code>.attr("href")</code> attribute. I tried putting ... | javascript jquery | [3, 5] |
3,525,932 | 3,525,933 | How to get the text of several td which have same id name? | <p>i have table in that
five td which contain same id. Id="divParent" but in that different text,
i want to access all the text in array which id ="divParent" in other page using java script.
how to get this
i tried to do this using this code;</p>
<pre><code>var divParent=new Array();
divParent=window.parent... | javascript asp.net | [3, 9] |
3,079,868 | 3,079,869 | Open My Documents | <p>Hi I have a link to a file in 'my documents' this is an internal web site. How can I open the users local MY Documents folder using JS or JQ </p>
<p>I used this code and thought the documents would appear in a web page but it didnt</p>
<pre><code>address = "G:\systems Projects" ;
window.open(address,"Detail ","... | javascript jquery | [3, 5] |
3,672,633 | 3,672,634 | Passed Variable not working with my function - Javascript | <p>I've got text entry box and a countdown on the same page. I want to take the time from the box and enter it into the counter. I've got a variable back from the text box "setTime". I wanted to put that directly into my timeSplit function (to convert the time into seconds) but when I do I get an error that "time.spli... | javascript jquery | [3, 5] |
1,709,651 | 1,709,652 | how to integrate aspx page with php? | <p>I have aspx page for reading and writing word document.But my project is in PHP.
Now i want to integrate that aspx page with my PHP project.
I also want to know how to get textbox value of aspx page in PHP.</p>
| php asp.net | [2, 9] |
758,860 | 758,861 | How to differentiate actual mouse clicks from script generated clicks? | <p>I have tabs.It has auto play.</p>
<p>Take a look for example : <a href="http://jsfiddle.net/w3father/YEcZc/" rel="nofollow">http://jsfiddle.net/w3father/YEcZc/</a></p>
<p>How do I get click detail which suggests if it is a click from script?</p>
| javascript jquery | [3, 5] |
2,893,800 | 2,893,801 | Select only drop-down menu that has changed | <p>I have a table that includes a column for the user to select from a drop-down menu to populate the next column. Problem is the table contains the same drop-down menu for each row and on change when I select using the following syntax JQuery selects all drop-downs instead of just the one in that has actually changed... | javascript jquery | [3, 5] |
4,809,865 | 4,809,866 | js 'function' structure | <p>I applogoize for this stupid question, please correct me, or reference if there is a duplicate for my question but, I want to know what are the advantages of using this function:</p>
<pre><code>var MyFun = (function(data){
alert(data)
});
</code></pre>
<p>rather than this:</p>
<pre><code>function MyFun(data){
ale... | javascript jquery | [3, 5] |
3,826,111 | 3,826,112 | How can i use Python and PHP together effectively | <p>I know PHP and i am currently learning django Python. </p>
<p>I am wondering the strengths and weaknesses of each language so that i can effectively use them together in order to program fater and more securly.</p>
<p>I know that PHP has much better(easier) string manipulation but python has better security. What ... | php python | [2, 7] |
2,838,056 | 2,838,057 | Cannot trigger next function when previous completed | <p>I'm trying to make a chain reaction by executing next function after executing previous one. Code looks like this:</p>
<pre><code>var med = {
imgLoadTime : 2000,
easingEffect : 'easeOutQuart',
scrollEase : 'easeInOutQuad',
effectDuration : 1000,
currentPage : '',
runAnimations : functi... | javascript jquery | [3, 5] |
4,112,498 | 4,112,499 | Is this a smart way to organize code in jQuery? | <p>for the longest time I was writing all my code inside like this ... </p>
<pre><code>$(document).ready(function(){
$('.show_module').click(function(){
});
...
});
</code></pre>
<p>putting all sorts of click handlers in there. But recently I was introduced to a new way of doing things and I wanted to ... | javascript jquery | [3, 5] |
3,646,173 | 3,646,174 | Jquery File Upload Plugin Progress Bar | <p><a href="https://github.com/blueimp/jQuery-File-Upload/wiki" rel="nofollow">This plugin</a> manages file uploads in a webpage and can add a lot of UI elements to the upload process. </p>
<p>You create an input file type element and then strap the js files, use the instantiating code and walla. There are options and... | javascript jquery | [3, 5] |
5,723,119 | 5,723,120 | jquert .post outputing dropdown list | <p>I have created a dropdown list, which is working well in separate page:
<img src="http://i.stack.imgur.com/e26Z3.jpg" alt="normal"></p>
<p>however, when I use jquery .post to output it in a table in a php page, the contents run out from the dropdown list:
<img src="http://i.stack.imgur.com/bEDOw.jpg" alt="abnormal"... | php javascript jquery | [2, 3, 5] |
4,152,280 | 4,152,281 | Ensure file size of uploaded file is lower than maxRequestLength before the upload occurs? | <p>I've got a form with a FileUpload control where users can upload images. Can I ensure that the file size of the uploaded image is lower than the configured maxRequestLength before the upload occurs, and by doing so prevent an exception from being thrown when file size is too large?</p>
<p>My initial attempt of look... | c# asp.net | [0, 9] |
5,667,422 | 5,667,423 | Copy Javascript Object into another Object, not creating new Properties | <p>Suppose there are two objects</p>
<pre><code>source = {
name: "A",
address: {
city: "B",
zipcode: "C"
},
car: {
make: "D",
model: "E"
}
};
target = {
name: "",
address: {
city: ""
}
};
</code></pre>
<p>Now I want to copy all data from source over to targ... | javascript jquery | [3, 5] |
1,591,252 | 1,591,253 | how to pick value in jquery | <p>i have build a small function whose work to get value in alert box but i want to pick only 5 character from starting. here is my function</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1... | javascript jquery | [3, 5] |
5,547,959 | 5,547,960 | Creating elements in JavaScript | <p>I have a lot of JavaScript code that creates HTML. For example:</p>
<pre><code>function Reply(postId) {
if (!document.getElementById("reply" + postId)) {
$("#root" + postId).after("<div id='reply" + postId + "'><textarea cols='70' rows='8' style='margin-bottom: 10px'></textarea><br/... | javascript jquery | [3, 5] |
4,252,938 | 4,252,939 | $_GET undefined index | <p>By passing a js variable to php code it displays a value at the end of the program.</p>
<p>But the problem is no mather what i try to initialise it with the score disapears at the end.</p>
<p>If i leave it alone everything displays as it should, but with the annoying undefined message until the last screen (where ... | php javascript | [2, 3] |
709,169 | 709,170 | Access to variabe in View class from main activity | <p>I have 2 classes, Main as main activity and DrawView (extends View) as a class where I have part of menu. I use class DrawView ONLY in main.xml file, what shows this menu part (kind of slider). In this DrawView is integer variable like 'currentSelection'.
How I can have access to this variable? I need later send thi... | java android | [1, 4] |
1,948,564 | 1,948,565 | Cannot call setContentView using runOnUiThread? | <p>Is there a reason I cannot do this inside of a thread? I'm still getting a "Cannot create a handler inside thread that has not called Looper.prepare()".</p>
<pre><code>_currentActivity.runOnUiThread(new Runnable()
{
public void run()
{
_currentActivity.setContentView(_nextScreen);
}
});
</code><... | java android | [1, 4] |
4,840,945 | 4,840,946 | How do I phonebook contact which also have group making facilities and image containing facilities | <p>I want to make address book application in android which can have Name,phone No, email id, also have images. it also have the group making facilities.
I am new to android please help.. Thanks in advance</p>
| java android | [1, 4] |
676,548 | 676,549 | asp.net website - Can I tell if it has been precompiled? | <p>I have a slightly odd situation.</p>
<p>One of my customers has an Asp.net (v2 of the framework) site on a dedicated server.</p>
<p>They have asked me to make some changes to the code as their developer has left. Apparently the latest version was on the server.</p>
<p>I downloaded that code, opened it in VS2010, ... | c# asp.net | [0, 9] |
4,552,128 | 4,552,129 | How to create dynamic checbox in asp.net | <p>I am creating an application where I require to add dynamic checkbox list. Please anyonr tell me how to add dynamic checkbox list using C#.</p>
| c# asp.net | [0, 9] |
1,023,064 | 1,023,065 | Help replacing last occurrence of char with new char | <p>I was able to replace the first occurrence of a <code>,</code> but now I want to remove the last occurrence.</p>
<pre><code> $(function() {
$(".defaultUL li").each(function() {
var text = $(this).html();
if(text.indexOf("...")<0) {
var s = text.lastIndexOf(",");
$(this).htm... | javascript jquery | [3, 5] |
477,375 | 477,376 | How to get back data from php variable to jquery variable using jquery $.POST method | <p>In the below code the $.POST method passes two variables to the php file empProfile.php which retrieves the employee profile from the database. Know I want to receive ID and Name from the php file to the jquery variables. Can someone help me.</p>
<pre><code>data = {
personnelNo: $('#personnelNo').val(),
... | php jquery | [2, 5] |
5,694,481 | 5,694,482 | Serializing a data object AND a form field for $.ajax | <p>If I do something like this</p>
<pre><code>$.getJSON('/server/validate_field', { what:'validate', email_address:field.serialize() }, function(data)
</code></pre>
<p>then the query string ends up like this</p>
<pre><code>validate_field?what=validate&email_address=email_address%3Dasdk%2540lal.com
</code></p... | javascript jquery | [3, 5] |
4,969,106 | 4,969,107 | How to edit image when saved in Edited folder | <p>I have spent the last day or so trying to do this on my own without any luck.</p>
<p>I am wondering if it is my specific device (galaxy nexus - the edited image is being saved in /mnt/sdcard/Edited) which causes the limited advice on this subject not to work as expected.</p>
<p>My problem is when i start an intent... | java android | [1, 4] |
471,934 | 471,935 | Download file in chunks | <p>I've got the problem as below:
There is some SOAP web service which allows to read stream files. I need to read the whole file divided to chunks and transmit to user. All actions should do not block UI main thread: user presses 'Save' button on save file dialog, and is able to move on to the next page or perform ano... | c# asp.net | [0, 9] |
2,434,621 | 2,434,622 | JQuery reverse each() with find() | <p>I know this kind of question has been asked before, but the general solution of </p>
<pre><code>$($("input").get().reverse()).each(function() { /* ... */ });
</code></pre>
<p>is not working for me. I have an xml document that contains a list of concerts that I'd like to display on a webpage. So, in JQuery:</p>
<p... | javascript jquery | [3, 5] |
294,736 | 294,737 | Dropdown list where options populate a second list js/php? | <p>I have a 2 dropdown lists side by side. When user selects from the first list, i need the second list's options to be displayed.</p>
<p>The sub-options will be retrieved from a database. I have a page that will return the necessary html given the specific parent. I just need the first list's selection to trigger an... | php javascript | [2, 3] |
2,134,300 | 2,134,301 | What's a good example for browser-specific code necessary when not using e.g. jQuery? | <p>I'm looking for a good example where a framework/lib like jQuery removes the need for browser-specific code. Please note that I'm not looking for an example where jQuery makes things just easier or nice but specifically something where the same code wouldn't work for all common browsers.</p>
<p>As it'll be used for... | javascript jquery | [3, 5] |
5,145,980 | 5,145,981 | More problems with Jquery src and load() | <p>I am pulling my hair out as to why one of these scripts works, while the other doesn't . Upon clicking the text, the image should change. And on a side note does the load() command look ok?</p>
<p>What is the difference between these two that's making the first work and the second malfunction?</p>
<p>The function... | javascript jquery | [3, 5] |
5,601,776 | 5,601,777 | jquery submit form on link click | <p>i have a big form that is split over 3 pages (each page is self contained i.e. only contain part of the form wrapped around form tags). I have page buttons so the user can navigate between pages e.g. page 1, page 2, page 3 and each page is loaded depending on a page variable in the url querystring i.e. <code>www.myu... | javascript jquery | [3, 5] |
3,364,233 | 3,364,234 | How do I get the previous HTML text prior to a node? | <p>UPDATE:<br>
Someone asked: <em>for what purpose would I want to do this?</em><br>
I'm trying to get the string index of a selected node server side, and since I have to account for repetition of small selections / nodes, I figure getting all html prior to the selected node on the client side would help in being the ... | javascript jquery | [3, 5] |
5,826,231 | 5,826,232 | How i can use the javascript value with php | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1917576/how-to-pass-javascript-variables-to-php">How to pass javascript variables to php</a> </p>
</blockquote>
<p>If i have this javascript code</p>
<pre><code><script type="text/javascript">document.wri... | php javascript | [2, 3] |
1,187,880 | 1,187,881 | function callback to reload a jquery plugin | <p>im new to jquery/javascript and im trying to make a function callback to reload a jquery plugin. what would be the appropriate way to do that?</p>
<pre><code>$(function() {
var newHash = "",
$mainContent = $("#main-content"),
$el;
$("nav").delegate("a", "click", function() {
window.lo... | javascript jquery | [3, 5] |
5,514,520 | 5,514,521 | Stack of activity from Activity stack | <p>There is a stack of activity i want to call the activity from that stack , My question is that is it possible to check from that stack and call that intent . When i press home button and again when i press the executable it should start the activity where i have left .
Is it possible ?
Any example related to the s... | java android | [1, 4] |
5,023,146 | 5,023,147 | Specifying Elements for jQuery | <p>I have a <code><ul></code> containing <code><h2></code> headings with text below each. I want to be able to display or hide the text below by clicking the each of the headings. How can I tell jquery to only display the text from within the same <code><li></code> when the heading is clicked without ... | javascript jquery | [3, 5] |
3,614,657 | 3,614,658 | jQuery: position element next to another and fix it there | <p>I want to position ElementA next to ElementB like specified here:
<a href="http://stackoverflow.com/questions/158070/jquery-how-to-position-one-element-relative-to-another">jQuery: How to position one element relative to another?</a></p>
<p>with the only difference being that I want ElementA to move around with Ele... | javascript jquery | [3, 5] |
1,411,803 | 1,411,804 | Increasing the performance | <p>I was implementing an android FFT guitar tuner. Here, I have 2 text views, 1 for displaying the frequency of the sound coming from the mic port and the other 1 for displaying the pitch notation. To match with the frequency, I wrote an if condition which is having about 35 if else if conditions consisting of 150 line... | java android | [1, 4] |
5,234,778 | 5,234,779 | jQuery reset validation on a form in a dialog | <p>I've been struggling to reset a form within a dialog window upon close. My form is using jQuery validate and I've tried to use the documented resetForm() function, but no luck.</p>
<p>Below are two attempts on how I am trying to achieve clearing the form upon the user hitting "Close". Neither are working.</p>
<p>H... | javascript jquery | [3, 5] |
5,926,070 | 5,926,071 | Why is the last case of my switch statement getting hit? | <p>The last case of my switch statement in my Java app is always getting hit. How can I make this work properly?</p>
<pre><code>public void onClick(View v) {
Random r = new Random();
int x=r.nextInt(4-1) + 1;
switch (x)
{
case 1:
setContentView(R.layout.image1);
case 2:
s... | java android | [1, 4] |
1,679,413 | 1,679,414 | put value in textarea using jquery | <p>I want to put the value in textarea using the jquery. I'm using the following code. It is not working.</p>
<pre><code> <link rel="stylesheet" href="css/jquery.wysiwyg.css" type="text/css" />
<script type="text/javascript" src="js/jquery.wysiwyg.js"></script>
<script type="text/javascri... | javascript jquery | [3, 5] |
2,060,376 | 2,060,377 | How do I call this function on blur(), using JQuery? RESOLVED! | <p>I have this function, see below:</p>
<pre><code>function checkStartPrice (){
if ($('#StartingPrice')[0].value.length == 0){
alert("The 'Starting Price' cannot be left empty!");
return false;
} else {
var BuyItNowPrice = parseFloat($('#BuyItNowPrice').val());
var StartingPric... | javascript jquery | [3, 5] |
4,429,328 | 4,429,329 | Problems simulating click of ASP.NET button | <p>I have some code like this</p>
<pre><code><asp:Button ID="cancelDummyButt" runat="server" CausesValidation="False"
Text="cancel" onclick="cancelDummyButt_Click" Enabled="True" />
</code></pre>
<p>(Javascript:)</p>
<pre><code>buttid = '<%=cancelDummyButt.ClientID.ToString%>';
eltoclick = document.... | asp.net javascript | [9, 3] |
4,283,045 | 4,283,046 | Works for google chrome but not for firefox and IE | <p>does anyone know why this works on chrome only. it is basically a code that snaps the nav-bar into the top when you scroll down by the nav-fixed class. and the function fix_top_bar is a way to center the bar that is created. </p>
<pre><code>function fix_top_bar(){
var barWidth = $('.nav-fixed').width();
$('... | javascript jquery | [3, 5] |
4,580,584 | 4,580,585 | Get DOM elements inside a rectangle area of a page | <p>Given two points on a webpage and a set of DOM elements, how to find out the subset of those DOM elements that sit inside the rectangle area defined by the two points?</p>
<p>I am working on a web-based gallery, in which every photo is wrapped in a <code>li</code> tag. When a user drag out a rectangle area with mou... | javascript jquery | [3, 5] |
5,164,983 | 5,164,984 | What should be the best approach to add a help file in my web application project? | <p>We have a Asp.Net Vb.Net application with around 35 webforms.There are some remote users who do not have the functional idea of the webforms.So i was thinking of adding a help file in my project.Is there any special component or javascript ? will it be a good option if i go with form by form or a single help file ?<... | asp.net javascript | [9, 3] |
4,391,658 | 4,391,659 | Dynamically created elements - How to make proper selector and access top objects | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1266604/jquery-selection-within-a-selection">Jquery: Selection within a selection</a> </p>
</blockquote>
<p>Consider this code:</p>
<pre><code>var $el = $('<div class="test"><div>Foor</div><... | javascript jquery | [3, 5] |
4,634,173 | 4,634,174 | save Iframe's source as an image on desktop | <p>I have an Iframe in a webpage whose source is filled when a submit button is clicked.I need the iframe source to be saved as an image on my desktop .How can this be done.
Heres the code:</p>
<pre><code><iframe id="IFAEventPerformance" name="IFAEventPerformance" scrolling="auto" runat="server"
width="100%" heigh... | javascript asp.net | [3, 9] |
5,058,206 | 5,058,207 | Function for increasing number after class up to max | <p>I would like to have a class change (with an increasing number) each time this function is called.</p>
<p>I currently have tried this:</p>
<pre><code>function(i) {
if(i < 16) {
$("#elm").removeClass("cls-" + (i));
i++;
$("#elm").addClass("cls-" + (i++));
} else {}
}
</code></pre... | javascript jquery | [3, 5] |
202,173 | 202,174 | JavaScript Photo Slider | <p>I'm working on making a JS script that will go in the header div and display a few pictures. I looked into JQuery Cycle, but it was out of my league. The code I wrote below freezes the browser, should I be using the for loop with the timer var?</p>
<pre><code><script type="text/JavaScript" language="JavaScript"&... | javascript jquery | [3, 5] |
5,508,347 | 5,508,348 | How can I use jQuery effects on Ajax loaded content? | <p>Hi and thanks for taking some time to look at my question. I have a part of the page where content is dynamicly loaded into from another file. Reason for this is it needs to be live updated. Now I want to be able to apply jquery effects that are usually used for show/hiding content (slide, fade etc) to animate the d... | php jquery | [2, 5] |
5,413,054 | 5,413,055 | How does one create a method to add things in a list in Python? | <p>My background is in Java and I was only recently learning how to do some object oriented programming in it. I am currently learning python as well and I wondering how this Java code translates into python.</p>
<p>Assuming I have a HockeyPlayer class that has a jerseyNumber instance variable:</p>
<pre><code>public ... | java python | [1, 7] |
3,695,636 | 3,695,637 | how to get dynamically created elements width and apply style to that? | <p>I am creating an <code>li</code> element dynamically like this:</p>
<pre><code>$(data).find('slide').each(function(numSlide){
var slideLink = $(this).attr('link');
var slideimage = $(this).children('slideimage').text();
var slidedesc = $(this).children('slidedesc').text();
$('.slider ul').append('<li>... | javascript jquery | [3, 5] |
4,851,790 | 4,851,791 | Moving an element back to its original position after animation, jQuery | <p>I'm struggling with trying to get this piece of code working properly. I'm moving an element with </p>
<pre><code>$("#element").hide("slide", { direction: "right" }, 200);
</code></pre>
<p>Which works just great, but I need to reset it back to the original position before the animation, once the animation is compl... | javascript jquery | [3, 5] |
5,271,746 | 5,271,747 | How to get the id value from check box? | <p>1 naga naga123</p>
<p>2 Tamil tamil123 </p>
<p>3 vinod vinod123 </p>
<p>4 naveen naveen123 </p>
<p>5 jakkir jakkir123 </p>
<pre><code>save edit delete
UserID:
UserName:
Password:
</code></pre>
<p>I have check box at the end of each row. When I click the check box and s... | javascript jquery | [3, 5] |
2,402,589 | 2,402,590 | jquery tipsy not firing onclick IE | <p>Hi I am using the jquery tipsy plugin to display colour names above colour swatch images.</p>
<p>I am trying to trigger a checkbox to be checked/unchecked when a user clicks on the image.</p>
<pre><code>$(document).ready(function(){
$('.label_check_colour').click(function(){
setupLabelColour();
}... | javascript jquery | [3, 5] |
3,374,105 | 3,374,106 | Upload image/Photo from Iphone to webserver(ASP.net) | <p>I am pretty new in Iphone Apps.
How do I upload Image/Photo from my Iphone to webserver. At web server I am using ASP.net c#.</p>
<p>On Iphone i have image displayed on UIImage Control and that image I am getting from database from BLOB datatype column.</p>
<p>how do I save that image bytes to application folder a... | asp.net iphone | [9, 8] |
4,987,120 | 4,987,121 | How to get the text-area content as exactly user entered | <p>In my webpage i am using textarea to get the details form the users and stored it in the database.</p>
<p><strong>1.This is how the user entered</strong></p>
<p><img src="http://i.stack.imgur.com/vkHrS.png" alt="enter image description here"> </p>
<p><strong>2. This is how it stored in the database</strong></p>
... | c# asp.net | [0, 9] |
874,448 | 874,449 | assign a value from a foreach loop to an asp:button CommandArgument | <p>The code behind file creates a list of employees and the asp.net page loops through list.
Now, How do I assign the employeedID to the commandArgument of an asp:button?</p>
<pre><code> <%foreach(var employee in employeesList){%>
<tr>
<td><%=employee.firstName%></td>
<t... | c# asp.net | [0, 9] |
5,215,351 | 5,215,352 | $('input[type=checkbox]').change(function() | <p>Currently Im have the following script which checks to see if a checkbox value has changed but its not working when I try to use it!</p>
<pre><code><script>
$('input[type=checkbox]').change(function () {
if ($(this).is(':checked')) {
if ($(this).prev().attr('checked') && $(this... | javascript jquery | [3, 5] |
2,220,270 | 2,220,271 | Re-usable dropdown list when clicking various elements, what's the technique? | <p>Say I have various parts of a page, that when clicked, should display a dropdown list below the link I just clicked on.</p>
<p>Since this drop down is the exact same, I noticed that some sites do this, where they have a single drop down list defined in the DOM, and when clicked, it somehow gets displayed below wher... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.