Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
2,741,599 | 2,741,600 | How to Retrieve Particular ID Elements within a Web Page using jQuery | <p>Hoping someone can assist as I am unsure how to approach but for the web page that I am on (i.e. in my web app), using jQuery, I would like to be able to add to an array in order of appearance through the web page, all elements where the id matches the string "_AB_Q_"</p>
<p>For example, scattered through the web p... | javascript jquery | [3, 5] |
5,848,560 | 5,848,561 | Javascript object within object | <p>I'm having a few issues with creating an object within an object, it's syntax related but can't seem to remember how I can achieve this. </p>
<pre><code>ajaxRequest = {
that: null,
request: null,
multiRun: null,
multiRunTimer: null,
defaults={
ext: '',
url: '',
type: "POST",
dataType: "json",
... | javascript jquery | [3, 5] |
2,339,280 | 2,339,281 | Enabling/disabling asp.net checkboxes through javascript | <p>Enabling and disabling checkboxes through javascript for example when I check chk1 and then chk2, chk3 and chk4 will be enabled and if I uncheck chk1 then chk2, chk3 and chk4 will be disabled through javascript?</p>
<p>here's my code:</p>
<pre><code><script type="text/javascript">
$('chkTAR').clicked(functio... | c# javascript asp.net | [0, 3, 9] |
2,874,015 | 2,874,016 | Nested linq Select | <p>How, I am trying to bind my 2 of my dropdownlist based on a ProductID and it's available size and available color hence if a user selects say grey, only sizes available for grey will appear and vice versa for the size. I am trying the below linq statement below, apparently it throws a "LINQ to Entities does not reco... | c# asp.net | [0, 9] |
4,378,557 | 4,378,558 | Check the value of multiple element with the same class name | <p>I have 7 dropdown with the class name="dd". and i have 7 textbox with the class name ="tt". each text box corresponds to each dropdown.
now, i have to check </p>
<pre><code>if(dropdown value is equal to 1)
text box can not be empty.
</code></pre>
<p>so to do this what i am doing:</p>
<pre><code>function check... | javascript jquery asp.net | [3, 5, 9] |
703,828 | 703,829 | Shorthand way to append multiple dynamic key names to a javascript object | <p>I find myself making (potentially) more work for myself, by having to specify each dynamic key one line at a time.</p>
<p>What I am doing now to add additional keys to an existing object:</p>
<pre><code>create_request[('title_' + id)] = field_data[0];
create_request[('field_' + id)] = field_data[1];
</code></pre>
... | javascript jquery | [3, 5] |
540,493 | 540,494 | Structuring javascript / jQuery | <p>I work in a lot of ASP.NET webforms projects. Since im not a big fan of postbacks, i tend to write a lot of jquery ajax calls to handle the cilent -> server calls. </p>
<p>But keeping most of the logic in script tags / javascript files usually gets messy pretty fast, even though im trying to use a lot of functions ... | jquery asp.net | [5, 9] |
922,219 | 922,220 | In C#, how can I reference a specific product record based on a button that's clicked in a gridview row | <p>I have a page that displays a gridview of products. Inside this table is a column with a hyperlink called "Details." I want to make it so that if the user clicks the details cell for that specific product, a new page will open that gives more information on that product. I'm not sure how I would determine which <... | c# asp.net | [0, 9] |
150,564 | 150,565 | javascript, jQuery: how to save values instead of the references | <p>I'm using the following lines to store the location of an object.</p>
<pre><code>var lightboxTop = $('#lightbox').css('top');
var lightboxLeft = $('#lightbox').css('left');
</code></pre>
<p>I'm successively moving this object in my element, and I want to restore it previous position with the stored variables.</p>
... | javascript jquery | [3, 5] |
4,273,960 | 4,273,961 | How can I extract images from urls which are in a csv file? | <p>i have a csv file which has S.no and Url of the 1500 images : i need to save all the images at a time how can i do it in .net with C# ?</p>
| c# asp.net | [0, 9] |
4,729,446 | 4,729,447 | Need to save a high score for an Android game | <p>It's quite simple, all I need to do is save a high score (an integer) for the game. I'm assuming the easiest way to do this would be to store it in a text file but I really have no idea how to go about doing this.</p>
| java android | [1, 4] |
3,026,013 | 3,026,014 | php JQuery ajax implementation | <p>i am trying to use the Jquery ajax function to call a php page to run a query and return xm the only problem is i dont know how to read the Jquery API page</p>
<pre><code>http://api.jquery.com/jQuery.ajax/
</code></pre>
<p>it gives this example </p>
<pre><code>$.ajax({ url: "test.html", context: document.body, su... | php jquery | [2, 5] |
4,402,347 | 4,402,348 | What does this error mean "setDataSource: outside path in JNI is ?x@" | <p>Hi I am keep getting this <code>E/MediaPlayer-JNI(14285): setDataSource: outside path in JNI is ?x@</code> in my logcat. What this means?</p>
| java android | [1, 4] |
4,692,358 | 4,692,359 | How to check if an variable is an class or id(jQuery) | <p>I am building a jQuery plugin and i'm using a variable in it which can be an class or id. I dont want to use the . or # in the variable, so is there an way to check if an variable is a class or id.</p>
<p>Coudn't find anything on the web about this.</p>
<p>some of the code</p>
<pre><code>var defaults = {
trig... | javascript jquery | [3, 5] |
886,856 | 886,857 | Want to Not Show title if HoverOut | <p>I am creating a hover function in jquery that when you hover over an image, it shows its title in div box. suppose all images are together one after another with no space between them, if i start hover from 1st till last of line it shows me title of all. i set the delay of 1 sec</p>
<p>heres code</p>
<pre><code> ... | javascript jquery | [3, 5] |
4,741,271 | 4,741,272 | right click menu using both key board and mouse | <p>I am looking for some java script right click menu using both key board and mouse.</p>
<p>have any one seen a good plug in?</p>
| javascript jquery | [3, 5] |
3,445,917 | 3,445,918 | How can i differentiate items in list in c# | <p>I have one listitem and i am adding this listitem to a list multiple times with one property difference...
i.e listitem have DateOfService property..k...
then i am adding first item to list... it's fine
and i am changing DateOfService property and adding again...
but the previous added item DateOfService also change... | c# asp.net | [0, 9] |
5,873,897 | 5,873,898 | JQuery Dialog modal option not working | <p>This is the HTML code:</p>
<pre><code><div id="dialog" title="lala" style="display:none;">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
</code></pre>
<p>This is the JavaScri... | javascript jquery | [3, 5] |
5,817,652 | 5,817,653 | How to get highest row number using query? | <p>I have an sqlitedb, row _id auto increments. How do I form a query to get the highest number in row _id and put that into a variable? I know how to do it in sql but not using the query method.</p>
| java android | [1, 4] |
3,055,806 | 3,055,807 | How to generate a view id in code? | <p>I need to create some views in code and want to assign an id for the view. How can I generate a view id that is guaranteed to be unique among the rest of the view ids but do this at runtime? </p>
| java android | [1, 4] |
5,891,955 | 5,891,956 | How to Add Gridviews Dynamically to a page depending on variable count | <p>Good morning.</p>
<p><b>Situation:</b>
I have department table and in each department I have some parameter types.
lets say
Dept1 has param1,param2 and
Dept2 has param1,param2 and param3</p>
<p>This parameters count varies from department to department.</p>
<p>I have to design a page for each department
in that ... | c# asp.net | [0, 9] |
5,493,281 | 5,493,282 | How to get full file path in form upload field using jQuery? | <p>I need to get the full upload path in a file upload field. I attached a change lister to the upload field, when a file is selected I alert the file path and I get just the file name. Not the full file path as it appears in the form field. For example instead of this:</p>
<pre><code>C:\Users\Toshiba\Desktop\me.jpg
<... | javascript jquery | [3, 5] |
3,800,849 | 3,800,850 | Android ACTION_WEB_SEARCH | <p>I am not able to get the ACTION_WEB_SEARCH to work correctly, does this require any permissions on the AndriodManifest.xml?</p>
<p>This is my code:</p>
<pre><code> String q = edittext.getText().toString();
Intent myIntent = new Intent(Intent.ACTION_WEB_SEARCH, Uri.parse(q));
startActivity(myIntent);
</code></pre... | java android | [1, 4] |
4,461,843 | 4,461,844 | Storing methods and functions in an array | <p>I dont know if its posible but can I store methods or functions in an array? I know Multi dimensional array now and use it to store many arrays as i want. What i would like to do now is to store the methods or functions I create in a certain class. Because i want to store all of my functions to a certain class then ... | java android | [1, 4] |
3,448,724 | 3,448,725 | Jquery operation on DOM element with '.' in ID has no effect | <p>e.g. "Live" version here: <a href="http://jsfiddle.net/Ltmbd/5/" rel="nofollow">http://jsfiddle.net/Ltmbd/5/</a></p>
<pre>
<html>
<body>
<select id="some.list" >
<option value="1" >AAA</option>
<option value="2" >BBB</option>
</select>
</b... | javascript jquery | [3, 5] |
2,288,927 | 2,288,928 | Cant access class object variable of javascript in IE and Mozilla | <p>I am having a class in javascript , in which i have defined few properties and methods and i have created an array and created and instance values of the class and pushed into it. After that i have iterated the array and checked a property from a particular method, but in IE and mozilla it is showing as undefined. I... | javascript jquery | [3, 5] |
3,602,195 | 3,602,196 | onclick -> mysql query -> javascript; same page | <p>I need button to begin a mysql query to then insert the results into a javacript code block which is to be displayed on the same page that the button is on. mysql queries come from the values of drop-down menus. </p>
<p>Homepage.php contains </p>
<pre><code>two drop down menus
div id='one' to hold the results jav... | php javascript | [2, 3] |
3,502,847 | 3,502,848 | Can you mix ASP.Net and Unobtrusive JavaScript | <p>Is it possible to mix the concept of Unobtrusive JavaScript with the event model of ASP.Net?</p>
| javascript asp.net | [3, 9] |
3,758,816 | 3,758,817 | How to set a text of label in javascript by using the text of dynamically generated label's? | <pre><code>{
SqlDataReader reader = cmdAuthors.ExecuteReader();
RadioButton rb;
Label lb;
while(reader.Read()){
rb=new RadioButton();
lb=new Label();
lb.Text=reader[0].ToString();
rb.Attributes.Add("OnClick","getSelectedAuthor('"+lb.Text... | javascript asp.net | [3, 9] |
2,252,439 | 2,252,440 | Add button after script tag | <p>I have a javascript that I want my users to be able to put on their sites. In this javascript, I want to generate a simple button, that is located exactly where the javascript has been pasted into the site. How can I do this? It would be simple if I could give my <code><script></code> tag an id and then just g... | javascript jquery | [3, 5] |
5,807,514 | 5,807,515 | JQuery Changing form url after submitting form | <p>I have run into a strange problem, I am changing form url after form submission. I have changed form fields and they are changing perfectly but action url is not changing... Here is HTML code..</p>
<pre><code><form action="" method="post" id="payment-form">
<input type="hidden" id="email" name="email" ... | javascript jquery | [3, 5] |
1,919,383 | 1,919,384 | click row in gridview | <p>hiiiiiiiii
I am trying to do the following :
I have a gridview and I want to fire a function(C# function) when I click over the row (any where)
this my code :</p>
<pre><code>protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
string alertBox = "alert('";
if (e.Row.RowType == Data... | c# asp.net | [0, 9] |
2,203,382 | 2,203,383 | ASP.Net auto-generated Admin tool | <p>I need to create an administrative site for managing my web site's db. I don't want to build this myself, I simply want the framework in place so that I can add customization myself after it is in place.</p>
<p>Django has a great auto-generated admin. What's an equivalent auto-generated admin site built under asp.n... | c# asp.net | [0, 9] |
3,723,449 | 3,723,450 | Check and Uncheck Checkbox when Table Row is Clicked | <p>Right now I have my script setup so that when each checkbox inside a table row is checked it performs the functions required (addClass and some others). </p>
<p>I would also like the checkboxs to check/uncheck and perform the same functions when the individual table row is clicked.</p>
<p><strong>Here is my code f... | javascript jquery | [3, 5] |
5,989,444 | 5,989,445 | how to use try catch blocks in a value returning method? | <p>I am checking the uploaded image in a registration form , where i need to use try catch blocks. here is my code:</p>
<pre><code>public bool CheckFileType(string FileName)
{
string Ext = Path.GetExtension(FileName);
switch (Ext.ToLower())
{
case ".gif":
... | c# asp.net | [0, 9] |
3,327,681 | 3,327,682 | JSON to Javascript object literal notation? | <p>The methods of the dynamic Google Graph API want Javascript object literals as their argument, but I only have the data as JSON. What do I do? Is there any way that I could convert my JSON to an object literal?</p>
<p>The format they want is here:
<a href="http://code.google.com/intl/sv-SE/apis/chart/interactive/do... | php javascript jquery | [2, 3, 5] |
5,546,598 | 5,546,599 | Multiple click events on one element | <p><a href="http://jsfiddle.net/rHVcX/1/" rel="nofollow">http://jsfiddle.net/rHVcX/1/</a></p>
<p>Is it possible to have multiple click events on one elements, when using different selectors?</p>
<pre><code><button id="test" class="testclass">test</button>
<button id="test2" class="testclass2">test 2... | javascript jquery | [3, 5] |
5,915,927 | 5,915,928 | Javascript - how to set child drop down menu based on parent dropdown menu selection | <p>For example take a look at <a href="http://katz.cd/submit.php" rel="nofollow">http://katz.cd/submit.php</a>. Notice when you select a type, that type is carried through to all the other type dropdown menus.</p>
<p>How do I do this?</p>
| javascript jquery | [3, 5] |
2,096,447 | 2,096,448 | Non-Extended Classes in android | <p>I have a class Scores.java I need to know whats the correct way to create these. I get "The constructor Scores is not defined. Do I have to extend off everything in Android??</p>
<pre><code>package com.threeuglymen.android.stuff;
import android.app.Application;
import android.app.Service;
import android.content.Co... | java android | [1, 4] |
1,139,646 | 1,139,647 | Passing PHP variables to non-native JavaScript | <p>Basically, the problem is this: </p>
<pre><code><?php $test="foobar"; ?>
</code></pre>
<p>If within the html document I call</p>
<p><code><script type="text/javascript">alert("<?php echo $test; ?>")</script></code></p>
<p>, everything is fine.</p>
<p>However, if I do the same thing in an... | php javascript | [2, 3] |
4,909,720 | 4,909,721 | JQuery change Image dynamically loaded from aspx in DIV | <p>I have a DIV and loading a Image in that div at runtime from a aspx file as src. </p>
<p>I use JQUERY .Post(..) to post the aspx page and get the Image and load that Image in div by following code.</p>
<pre><code> function UpdateCapticha() {
$.post("../JqueryCapticha.aspx", {},
function (da... | jquery asp.net | [5, 9] |
3,441,611 | 3,441,612 | How do I convert several web pages into one pdf document? | <pre><code>public FileResult Download()
{
var doc = new EO.Pdf.PdfDocument();
EO.Pdf.HtmlToPdf.ConvertUrl("http://www.google.com/", doc);
var ms = new MemoryStream();
doc.Save(ms);
ms.Position = 0;
return new FileStreamResult(ms, "application/pdf")
{
... | c# asp.net | [0, 9] |
2,017,114 | 2,017,115 | Javascript multidimensioned isset() | <p>When running:</p>
<pre><code>if (data.custaccount.webaddress) {
alert('found it');
}
</code></pre>
<p>I get the error </p>
<pre><code>data.custaccount is undefined
</code></pre>
<p>The only way i can get around it seems to be with multiple IFs like so:</p>
<pre><code>if (undefined != data && undefine... | javascript jquery | [3, 5] |
3,881,373 | 3,881,374 | Get all folders and files in a directory | <p>i have this directory: </p>
<p>/mnt/sdcard/App/Downloads/Files/Documents/ as the root directory or folder of my app. the said directory contains other set of folder and files which i need to show the folder, subfolder and files exact paths in the Logcat.</p>
<p>how can i do that without needing to click anything i... | java android | [1, 4] |
3,891,441 | 3,891,442 | Frequent Layout activity : @489.28s - Event triggered 348 layouts taking 105ms | <p>hi i am making web application with complex javascript (jQuery) functions for adding and modifying data of clients. Profile of client has 8 modules (means 8 separated javascript files using jQuery library and some plugins, my own jQuery plugin and lot of javascript functions)</p>
<p>Problem is very simple. Sometime... | javascript jquery | [3, 5] |
5,292,586 | 5,292,587 | Media Gallery realisation in php | <p>need to provide an "add from existing" functionality for uploaded images. What is a basic approach to do that? Thought of displaying a modal window but thought that if there will be a lot of images it will definitely pull back the performance. Had anybody a similar task? Thanks.</p>
| php jquery | [2, 5] |
3,523,692 | 3,523,693 | How to download and display excel spread sheet within the browser | <p>Need to navigate to Excel spread sheet and display in the browser.
how could I do that ? </p>
| c# asp.net | [0, 9] |
4,502,745 | 4,502,746 | Passing javascript parameter from codebehind error | <p>I use this script to call a javascript from codebehind.</p>
<pre><code>ClientScript.RegisterStartupScript(this.GetType(), "Exist", "<script language='javascript'>ConfirmRedirect('" + url + "','" + msg + "');</script>", true);
</code></pre>
<p>and my javascript code is</p>
<pre><code>function ConfirmRe... | javascript asp.net | [3, 9] |
5,619,817 | 5,619,818 | opacity in jQuery | <p>I want to make the opacity black ( if possible )</p>
<p>My jQuery is:</p>
<pre><code>jQuery('#list a[rel^="myPhoto"]').my422PortfolioThumbsHover({
defaultOpacity: 1,
onMouseOverOpacity: 0.6,
speed: 300,
zoomImg: 'zoom.png'
});
</code></pre>
<p>I tried adding:</p>
<p>background-color: #000000, int... | javascript jquery | [3, 5] |
3,323,459 | 3,323,460 | Javascript function returns undefined on firebug | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/14220321/how-to-return-the-response-from-an-ajax-call-from-a-function">How to return the response from an AJAX call from a function?</a> </p>
</blockquote>
<p>on my App namespace i've just defined a function:</p... | javascript jquery | [3, 5] |
2,177,034 | 2,177,035 | Delete from Link Dynamically named form | <p>I want to pass the form name to the function and then confirm they are read to delete it after that I want to change the action then submit the form.</p>
<pre><code>function deletePhone(myForm){
var r=confirm('Are you sure you want to delete this phone?');
if(r==true){
$(myForm).attr("action","index.cf... | javascript jquery | [3, 5] |
3,579,314 | 3,579,315 | android call a timer run function from widget | <p>i have a timer in my widget that runs every 10 minutes, but i need to call the timers run function when I press a button. is any way of doing that?</p>
<pre><code>public class MyWidget extends AppWidgetProvider {
@Override
public void onReceive(Context context, Intent intent) {
final String action = intent.g... | java android | [1, 4] |
40,292 | 40,293 | change this to jquery | <p>How would I change the below to jquery? It works in IE but not Firefox so I am hoping if I change it to jquery it will work for both.</p>
<p>THIS</p>
<pre><code>function subform() {
if (parent.option_view.document.vform_.dispatchEvent('onsubmit') != false) {
parent.option_view.document.vform_.submit();
}
}
</c... | javascript jquery | [3, 5] |
2,875,413 | 2,875,414 | Showing a loading image when a function is being called | <p>Im trying to show a loading image whilst a javascript function runs. Its crunching a lot of numbers and on slower pc's it can take a few seconds to run.</p>
<p>I thought this would work</p>
<pre><code>function myFunction(){;
$('#loading').show();
// The bit that takes ages to run
$('#loading').hide();
... | javascript jquery | [3, 5] |
3,435,675 | 3,435,676 | How I can passing an array into getView method from GridView? | <p>I do something like this:</p>
<pre><code>grid = new GridView(this);
imagesPreviewH={1,2,3,4}
mAdapter = new HorizontalImageAdapter(this, imagesPreviewH);
grid.setAdapter(mAdapter);
grid2 = new GridView(this);
imagesPreviewH={5,6,7,8}
mAdapter = new HorizontalImageAdapter(this, imagesPreviewH);
grid2.setAd... | java android | [1, 4] |
3,894,327 | 3,894,328 | Passing optional arguments into javascript functions from jQuery | <p>I'm trying to pass an optional argument to a javascript function from jQuery. In the below example the function receiving the argument is 'foo'. It works fine with the second bit of jQuery which passes the argument. The first bit of jQuery doesn't have any arguments that I pass in, but jQuery still seems to pass an ... | javascript jquery | [3, 5] |
1,698,189 | 1,698,190 | Append/prepend not work with load? And some questions | <p>I have two problems with append/prepend on JQuery. My code:</p>
<pre><code>function toselect(f,d){
$('#workcont').remove('h2').load('pages/' + f + '.html #' + d).prepend('<h2>Some text</h2>');
calculate();
}
</code></pre>
<p>Div on default is clear <code><div id="workcont"></div></c... | javascript jquery | [3, 5] |
683,986 | 683,987 | why do I keep getting a "displaymessage is not defined" error message? | <p>Can anyone tell me why I keep getting a "displaymessage is not defined" error message with this code.. Thanks in advance :)</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/1999/xhtml">... | javascript jquery | [3, 5] |
3,108,634 | 3,108,635 | jQuery removeClass except on current id | <p>[ <a href="http://www.jsfiddle.net/brianrhea/5Hqs3/5/" rel="nofollow"><strong>Live Demo</strong></a> ]</p>
<p>I have a navigation menu that displays a certain state when hovered and also displays text in a different div.</p>
<p>In the event that the user does not interact with the menu, the divs auto cycle on thei... | javascript jquery | [3, 5] |
5,871,073 | 5,871,074 | Show popup when the browser closes | <p>popup when the browser closes</p>
<p>I am using onbeforeunload event</p>
<pre><code><script>
function showPopup()
{
urlstring = "http://www.mydomain.com/popup.php";
window.open(urlstring,'mywin',"height=400px,width=500px,status=no,toolbar=no");
}
</script>
<body onbeforeunload="... | php javascript | [2, 3] |
716,445 | 716,446 | how to access the functions defined in scripts of url loaded in iframe? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1952359/calling-iframe-function">calling iframe function</a> </p>
</blockquote>
<p>Hi All,
How to access the functions defined in scripts of URL loaded in iframe using jquery ? Following is the much more elabora... | javascript jquery | [3, 5] |
3,318,181 | 3,318,182 | Why does jQuery do this in its constructor function implementation? | <p>If we look at the latest jQuery source at <a href="http://code.jquery.com/jquery-latest.js" rel="nofollow">http://code.jquery.com/jquery-latest.js</a> we see the following:</p>
<pre><code>var jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
retur... | javascript jquery | [3, 5] |
3,309,082 | 3,309,083 | Android : Is there any way to change the default language of android to new language? | <p>I'm trying to know whether it is possible to change the default android OS language to other. For which the language is not in the settings for instance: how to set the device 's language to burmese programmatically.</p>
| java android | [1, 4] |
4,788,344 | 4,788,345 | How to write jQuery code | <p>I've been writing Javascript code and using extensively the jQuery library. My code is not very big although for me is a mesh right now. I would to know if there is a jQuery best practices related to the way you write the code and how to structure it, not only related to performance.</p>
<p>I am asking this because... | javascript jquery | [3, 5] |
3,328,580 | 3,328,581 | Mouse in-out events for Javascript | <p>question from a beginner..</p>
<p>I want to show/hide an inner div when the mouse enter/out from the parent div. I tried first with <code>onmouseover</code>, <code>onmouseout</code> events, but the problem is that <code>onmouseover</code> keep firing while the mouse over the div, and I want it to fire one time only... | javascript jquery asp.net | [3, 5, 9] |
1,806,799 | 1,806,800 | Errors in Jquery code | <p>This code doesn't work, anyone have any recommendations?</p>
<p>Perhaps I did something wrong? Anyone could check this code please? Is that because I used jquery?</p>
<pre><code>$(document).ready(function showCart(next) {
var ca = document.getElementById("cartArea");
var params = "";
for (i = 0; i <... | javascript jquery | [3, 5] |
5,248,123 | 5,248,124 | Jquery append input element and send data from that input element | <p>I have this simple HTML code:</p>
<pre><code><div id="new_gallery">
<p id="add_gallery">Add new gallery</p>
</div>
</code></pre>
<p>and jQuery code:</p>
<pre><code><script>
$("#add_gallery").click(function() {
$("#new_gallery").append('<input name"new_gallery" />... | javascript jquery | [3, 5] |
2,552,742 | 2,552,743 | the this in jquery plugin is giving back undefined | <p>Could someone explain why this.rel is giving back undefined and also what the regex is supposed to do.
If this.rel is undefined the regex will not work either and is causing some kind of error because the alert underneath will not fire? </p>
<pre><code>$.fn.facebox= function(settings) {
init(settings)
f... | javascript jquery | [3, 5] |
1,222,492 | 1,222,493 | What imports do I need to make a jQuery popup dialog work? | <p>I am very confused :)</p>
<p>I have these 2 jQuery imports:</p>
<pre><code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.16/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" />... | javascript jquery | [3, 5] |
1,752,338 | 1,752,339 | How to hide $0.00 Product price using jQuery | <p>I want to hide the price of products which have $0.00 price.</p>
<p>This is the code, I have to use for displaying price.</p>
<pre><code><span id="product-price-170" class="regular-price">
<span class="price">$0.00</span>
</span>
</code></pre>
<p>Can you please give me an idea, how to ... | php javascript jquery | [2, 3, 5] |
2,372,961 | 2,372,962 | How do I force a blur event to occur in JavaScript? | <p>Here's what I want to do. I want to trigger an event every time a select element changes. I have a multiline select and when I make changes (click on elements), it does not change until the select box loses focus. So I'm trying to force a blur every time the select box is clicked. That way if it changes, it will... | javascript jquery | [3, 5] |
70,574 | 70,575 | how to decide user's timezone withount depending on javascript | <p>I solved this problem using this method:</p>
<p>Set the php.ini timezone = UTC</p>
<p>and then using javascript new Date() convert that to get the clients equivalent time.</p>
<p>But a serious drawback of this method is that it changes if the client changes the timezone of his system or even the time of the syste... | php javascript | [2, 3] |
2,087,027 | 2,087,028 | Perform at same time javascript and asp.net rendering | <p>Suppose I have a <code>.gif</code>:</p>
<pre><code><img alt="" src="./wait.gif" />
</code></pre>
<p>And I have a Label:</p>
<pre><code><asp:Label ID="tbnotif" runat="server" ReadOnly="True" Text="" ></asp:Label>
</code></pre>
<p>And a button:</p>
<pre><code><asp:Button ID="Button1" runat="s... | javascript asp.net | [3, 9] |
3,732,363 | 3,732,364 | Max amount of elements to append | <p>What I'm trying should be easy, but I don't seem to be able to figure it out (ore google the problem)</p>
<p>I have elements that I find, after finding them I want to append them to a container. But I don't want to many items so I want to be able to limit the amount of items to be appended.</p>
<p>For example:</p>... | javascript jquery | [3, 5] |
2,659,169 | 2,659,170 | Custom fonts in android | <p>I am trying to use custom fonts in a textview:</p>
<pre><code>tv=(TextView)findViewById(res);
Typeface font = Typeface.createFromAsset(this.getAssets(), "fonts/font.ttf");
tv.setTypeface(font);
</code></pre>
<p>But when I run I get the following error:</p>
<pre><code>W/System.err( 542): java.lang.RuntimeExcept... | java android | [1, 4] |
2,465,107 | 2,465,108 | Only perform jquery effects/operations on certain pages | <p>Up until now i've been dropping all my jquery code right inside the document.ready function. I'm thinking that for certain situations this isnt the best way to go. </p>
<p>for example: If i want an animation to perform when a certain page loads what is the best way to go about that.</p>
<pre><code>$(document).read... | javascript jquery | [3, 5] |
5,344,178 | 5,344,179 | Can I use jQuery.extend to simulate method overloading? | <p>I'm quite familiar with jQuery. I'm trying to write common methods for my own purpose. Here is a sample below:</p>
<pre><code>$.extend({
add : function(a, b)
{
return a + b;
},
add : function(a, b, c)
{
return a + b + c;
}
});
</cod... | javascript jquery | [3, 5] |
5,970,772 | 5,970,773 | accessing speicific array elements with jquery | <p>If my PHP returns a array with 6 elements how would I access each of them specifically in jquery?</p>
<p>For example I want to create:</p>
<p>var itemOne = value of first array element;
var itemTwo = value of second array element;
...</p>
<pre><code>$.get('ajax/employee_menu.php', { job: $('#job').val() },
... | php jquery | [2, 5] |
43,674 | 43,675 | checkbox list -javascript | <p>In my aspx page i am having a checkbox list ..It has binded values from a table..
I need to validate the checkbox list ..I tried the following script </p>
<pre><code> var checkBoxCount = 0;
var elements = document.getElementById('<%=ChkBoxList.ClientID%>');
for(i=0; i<elements.length... | c# javascript asp.net | [0, 3, 9] |
5,277,078 | 5,277,079 | Best way to store a file temporarily untill the usage of file | <p>As we all know that we can not get the full path of the file using <code>File Upload</code> control, we will follow the process for saving the file in to our application by creating a folder and by getting that folder path as follows</p>
<p><code>Server.MapPath</code></p>
<p>But i am having a scenario to select <c... | c# asp.net | [0, 9] |
4,833,330 | 4,833,331 | How to call Button OnCLick eventhandler in code behind with a value? | <p>I am trying to create Anchors in code behind and delete buttons as well for each Anchor. I dont know if i can call an event handler for each one of the link with an ID so i can delete the row specified from the database. This is what i have done. I created an anchor and an ASp button but not sure how i can call it w... | c# asp.net | [0, 9] |
651,808 | 651,809 | Using a tab control, is it possible to dynamically load multiple tabs at runtime while maintaining state of each tab? | <p>The functionality I'm looking for is similar to a web browser with tabs. </p>
<p>The main site navigation would consist of typical links. When a link is clicked, a tab is dynamically loaded with that pages content. The user can add multiple tabs by clicking navigation links.</p>
<p>If they begin filling out a form... | c# jquery asp.net | [0, 5, 9] |
945,244 | 945,245 | jquery listening to events | <p>I have a function A that does something (calls a web service in ajax request) and I have another function that is plugged in a calendar and that triggers on different events (click on day changes date, click on month changes calendar month... pretty typical calendar stuff).</p>
<p>The calendar works with classes: w... | javascript jquery | [3, 5] |
4,002,574 | 4,002,575 | membership authentication on Facebook logged in users | <p>I just got my login with facebook functionality to work, but its only client side. and its placed on masterpage. </p>
<p>Problem i got is: </p>
<p>On website each user have their own user Profile page. but i need to be able to see if some one who enter mywebsite.com/User/UserName is actualy owner of a profile, or... | c# javascript asp.net | [0, 3, 9] |
3,471,865 | 3,471,866 | android compare 2 dates to find difference | <p>i have a booking form that requires a user to input their details alongside a date.
the user cannot submit a date that is within 24 hours.
a booking must be made after 24 hours.</p>
<p>how can i implement this?.
i have obtained the current date and time.</p>
<p>so if the current date and time is 19062012 1324 the... | java android | [1, 4] |
2,023,791 | 2,023,792 | How to append <script> that will be executed? | <p>Tried <a href="http://jsfiddle.net/kxALH/2/" rel="nofollow">this</a> :</p>
<pre><code><a href="#" id="showAlert">Click me</a>
<div id="pasteContent"></div>
var elemFunc = '<script>alert("myString");</script>';
$("#showAlert").click(function () {
$("#pasteContent").html(ele... | javascript jquery | [3, 5] |
4,808,901 | 4,808,902 | Tips to reduce app installed size using eclipse? | <p>I just built my first android app. A scientific calculator. Once installed I thought of checking it's size and comparing it with similar apps. My app is 650kb, the most popular currently on the play store is 500kb and the default one is 4kb.</p>
<p>My app has only one activity, with a class and layout which before ... | java android | [1, 4] |
2,360,561 | 2,360,562 | Converting Javascript object to jquery object? | <p>when iam trying to convert javascript object to jquery object like obj = $(obj). The object obj is loosing one of the property values and setting the value as true.if iam using obj[0].Validated its returning the exact values.Please suggest on this.</p>
<pre><code>obj = $(obj);
objValue = obj.attr("Validate");
</cod... | javascript jquery | [3, 5] |
2,165,678 | 2,165,679 | Jquery Show & ScrollTop (or ScrollTo) | <p>Just as the topic says I'm trying to get a link to open a hidden div then scroll to it. I have the first part taken care of. As for the scrollTop or ScrollTo function I've been trying to use the ScrollTo plugin and for an unknown reason it's not working.</p>
<p>First of all does this look correct?</p>
<pre><code>&... | javascript jquery | [3, 5] |
1,714,228 | 1,714,229 | check the file size using jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1601455/check-file-input-size-with-jquery">Check file input size with jQuery</a> </p>
</blockquote>
<p>i need to check the uploaded image size is less than 5mb</p>
<p>i using the following code</p>
<pre><code... | jquery asp.net | [5, 9] |
1,380,548 | 1,380,549 | Rowdeleting event doesn't fire | <p>I have a gridview and I have a button on it.I want, if the user click on a button on a row,this row will be delted.I did this steps but I have no success.could you please help me to solve my problem?</p>
<pre><code> protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
... | c# asp.net | [0, 9] |
4,650,102 | 4,650,103 | .aspx code errors "Element 'xxxx' is not supported." | <p>I'm getting a bunch of these errors for my image buttons, link buttons, text boxes, and labels. These errors are in my .aspx code. Why am I getting so many?</p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmSearchPersonnel.aspx.cs" Inherits="frmSearchPersonnel" %>
<!DOCTYPE html... | c# asp.net | [0, 9] |
5,732,207 | 5,732,208 | why the second event is not started? | <p>Please help me figure out why the second event is not started (<a href="http://jsfiddle.net/7tLnq/1/" rel="nofollow">full code</a>)</p>
<pre><code><input type="submit" value="disabled:false" />
$(function(){
$('input:submit').bind({
mouseover : function(){
$('input:submit').each(functi... | javascript jquery | [3, 5] |
2,838,273 | 2,838,274 | Making exported excel sheet as readonly | <p>In my application i'm exporting gridview data to excel and storing it to a particular folder now what i want is to make this excel file as read only so that no one should edit it.</p>
<p>i have written code like this:</p>
<p>protected void Button5_Click(object sender, EventArgs e)
{</p>
<pre><code> ... | c# asp.net | [0, 9] |
2,211,452 | 2,211,453 | insert into data base by javascript | <p>i have this code for get rss from other site </p>
<pre><code>gfeedfetcher.prototype._displayresult=function(feeds){
var rssoutput=(this.itemcontainer=="<li>")? "<ul>\n" : ""
gfeedfetcher._sortarray(feeds, this.sortstring)
for (var i=0; i<feeds.length; i++){
var itemtitle="<a hr... | php javascript | [2, 3] |
5,926,520 | 5,926,521 | jQuery prepending textarea | <p>HTML</p>
<pre><code><textarea id="photo-42-9" class="comment_box">Write a comment...</textarea>
</code></pre>
<p>jQuery code that doesn't work, what am I missing?</p>
<pre><code>$('#photo-42-9').prepend("<div>blah</div>");
</code></pre>
<p><strong>EDIT</strong>
Corrected the ids mismatch,... | javascript jquery | [3, 5] |
3,762,567 | 3,762,568 | jQuery.get(' not getting file | <p>Im trying </p>
<p><code>jQuery.get('similar_products_stack.php');</code> </p>
<p>and </p>
<p><code>jQuery.get('./similar_products_stack.php');</code> </p>
<p>Where similar_products_stack.php returns an html array and I am getting error 404 that the file is not found even though both files are in the same directo... | javascript jquery | [3, 5] |
3,278,518 | 3,278,519 | How to use jQuery to show a different page in ASP.NET | <p>I am trying to set up functionality similar to Netflix. Where if you mouseover a movie - you are presented with a window of movie details (all client-side). </p>
<p>At high level, can someone in this forum help by telling me how this should be implemented? I.E., one or more .aspx pages, what would go in code-behi... | asp.net jquery | [9, 5] |
4,521,900 | 4,521,901 | Inserting one element inside another in jQuery | <p><strong>EDIT:</strong> Apologies, this was caused by an unrelated error!</p>
<p><hr /></p>
<p>Hi,</p>
<p>I'm trying to figure out how to add one element inside another using jQuery.</p>
<p>For example, if I have a list:</p>
<pre><code><ul class="someList">
<li>One</li>
<li>Two<... | javascript jquery | [3, 5] |
2,745,009 | 2,745,010 | adding css to custom reusable function | <p>i created a function in jQuery which lets me create a lightbox as following:</p>
<pre><code>var lightbox = create_lightbox(params);
</code></pre>
<p>I would like to expand this function so i can add custom css to it and make it look like a feel in any given circumstance. I would prefer to be able to do the folowin... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.