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 |
|---|---|---|---|---|---|
1,065,811 | 1,065,812 | how to pass value from asp.net server control using jQuery? | <p>I UPDATED the code with code behind. I'm doing something dynamic with the label contrtol.</p>
<p>I have the following jQuery code working as it is (passing the value of 'test") but what I want to do is to pass the value of the label control (lblNames). I'm using the label control to collect the uploaded file names.... | asp.net jquery | [9, 5] |
649,106 | 649,107 | How to write a script when successful online Order made ,sends receipt to network printer?? | <p>Is there a script that when someone places a successful online order, it will send a command to a network printer to print of a receipt of the order?</p>
| php javascript | [2, 3] |
5,178,111 | 5,178,112 | Jquery increment numbers with a limit of 5 | <p>I'm adding text fields with a onclick. What I'm trying to do is limit the amount of boxes to about 5.</p>
<p>I also need to increment the number to use as an ID.</p>
<p>my code: </p>
<pre><code>jQuery('#add_slider_image').click(function() {
var i = 0
var plus = ++i;
jQuery('.form-table'... | javascript jquery | [3, 5] |
994,381 | 994,382 | How to capture android screen and stored it in GIF formate? | <p>i have one animated GIF file in my screen and it is animated perfectly in my screen and now i want to capture screen programatically of my application with the animated GIF so how can we do it?</p>
| java android | [1, 4] |
4,138,052 | 4,138,053 | Format number with locale specific settings | <p>I want that JS or jQuery formats my number by locale.</p>
<p>So for example number 999666555444333.22</p>
<p>might be as</p>
<pre><code>999'666'555'444'333.22
</code></pre>
<p>or </p>
<pre><code>999.666.555.444.333,22
</code></pre>
| javascript jquery | [3, 5] |
1,386,839 | 1,386,840 | How to use an array value as field in Java? a1.section[2] = 1; | <p>New to Java, and can't figure out what I hope to be a simple thing.</p>
<p>I keep "sections" in an array:</p>
<pre><code>//Section.java
public static final String[] TOP = {
"Top News",
"http://www.mysite.com/RSS/myfeed.csp",
"top"
};
</code></pre>
<p>I'd like to do something like this:</p>
<pre><code... | java android | [1, 4] |
491,270 | 491,271 | Similar to Pass in Python for C# | <p>In python we can .. </p>
<pre><code>a = 5
if a == 5:
pass #Do Nothing
else:
print "Hello World"
</code></pre>
<p>I wonder if it a similar way to do this in C#</p>
| c# python | [0, 7] |
290,575 | 290,576 | Can i put a background for any particular activity in emulator? | <p>I want to give a background image to my application. Please suggest me the solution.</p>
| java android | [1, 4] |
349,910 | 349,911 | save changes function returning element exists in the <ModificationFunctionMapping> element | <p>I have LINQ query where I am using a join and getting results in annonymous type like this:</p>
<pre><code> var DropShipEmailNotices =from c in context.WC_DropShipEmailNotices
join o in context.Nop_Order on c.orderid equals o.OrderID
select new { c, o };
</code></pre>
<p>Then I loop the r... | c# asp.net | [0, 9] |
3,499,001 | 3,499,002 | Calling a Javascript function after AJAX call | <p>I have a javascript function to which I am being passed a functionName that I need to call after making a ajax call. The ajax call is returning some html that contains a reference to a js file. The functionName being passed to my funtion is in the html but it is referencing an object in the js file. What I am notici... | javascript jquery | [3, 5] |
1,707,320 | 1,707,321 | C# Null reference when parsing a float | <p>I have the following code below. Which works great expect I want to allow MaxDemand to be a null value. But since i'm parsing a string it seems to error if I don't put in some value.</p>
<p>Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.</p>
<p>Whats the best... | c# asp.net | [0, 9] |
1,203,875 | 1,203,876 | How to handle image click under Button click event | <p>Hi all i am having 2 imagebuttons a gridview and a button. Now if i clicked on Image button i will show a grid. Now under button click i would like to capture which image button was clicked if 1st image button is clicked i would like to some values and if 2nd one is clicked i would like to show another</p>
| c# asp.net | [0, 9] |
701,020 | 701,021 | Extract an image from a video hosted on a web site | <p>I need to extract an image/thumbnail from a video hosted on some website. For exemple, the host could be youtube.com or whatever.com and i want to extract an image for a precise frame, i.e 2:12. </p>
<p>I have the direct URL for the video. I searched and found how to do it for youtube or vimeo, they provide xml or ... | c# asp.net | [0, 9] |
701,898 | 701,899 | disabling an input button | <p>I want to disable this button on document ready but I'm new to it so please help:</p>
<p>Here is my code: </p>
<pre><code> $(document).ready function {
setTimeout("check_user()", 250);
}
</code></pre>
<p>please help</p>
| javascript jquery | [3, 5] |
799,370 | 799,371 | Files accessed by aspx webforms and socket server. Lock file management issues | <p>I got a primitive website, where the aspx webform and socket server access flat files, which stores the data. The socket server writes the data to the file with File.Write calls and the aspx webform uses File.Readln calls to read the data from the file. Both the web form and socketserver will be accessing the same e... | c# asp.net | [0, 9] |
549,187 | 549,188 | How to expend ListView on whole screen on Android? | <p>I have ListView, but it takes up little space and contains scroll. But I need to disable scroll, that ListView take up whole screen. How can I do it? </p>
<p>I need to make list like this: <a href="https://market.android.com/details?id=com.cineplex.app" rel="nofollow">https://market.android.com/details?id=com.cin... | java android | [1, 4] |
4,767,555 | 4,767,556 | jQuery - Library or Framework? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7062775/is-jquery-a-javascript-library-or-framework">Is jquery a javascript library or framework?</a> </p>
</blockquote>
<p>jQuery: The Write Less, Do More, JavaScript <strong>Library</strong>.</p>
<p>Why do pe... | javascript jquery | [3, 5] |
2,658,668 | 2,658,669 | Add item in order to a list | <p>What is the best way to add an item to an ordered list?</p>
<p>I want that when an item changes the value the value of that control is placed on a list.</p>
<p>Example</p>
<p>-radiobutton value = radiobuttonvalue;<br>
-checkbox value = checkboxvalue;<br>
-textbox value = textboxvalue;<br></p>
<p>clicks: first on... | javascript jquery asp.net | [3, 5, 9] |
1,965,768 | 1,965,769 | QueryString Link | <p>I have the following code which works for a postbackurl on a button. What I need to do is do something similar, but with an:</p>
<pre><code><a href></a>
</code></pre>
<p>in asp.net. How can I do that? Thanks for your help!</p>
<pre><code><a href="negativestorydetail.aspx?tag=<%# Eval("Tag") %>... | c# asp.net | [0, 9] |
1,034,664 | 1,034,665 | jQuery Color Plugin - $.Color is not a function error | <p>I am trying to make the example from <a href="https://github.com/jquery/jquery-color" rel="nofollow">jquery-color</a> work, but it's giving me the <code>$.Color is not a function</code> error. What am I doing wrong?</p>
<p>Relevant code bit:</p>
<pre><code>$("#sat").click(function(){
$("#block").animate({
... | javascript jquery | [3, 5] |
3,198,859 | 3,198,860 | How to fade out text when it is about to move out of visual range? | <p>How to fade in and out text when it is about to move out of visual range? Maybe the question is a little bit vague, but what I mean is this:</p>
<p><img src="http://i.stack.imgur.com/0lQRR.png" alt="fade in or out when text is to be out of visual range"></p>
<p>How do I achieve that? Perhaps with jQuery or somethi... | javascript jquery | [3, 5] |
1,821,496 | 1,821,497 | modal close button | <p>I have a div which is in a class="modal", and I written a function in jQuery that closes this div when i press "esc" :</p>
<pre><code>$(document).keypress(function (e) {
if (e.keyCode == 27) {
if ($('.modal:visible > .icon32').length) $('.modal:visible > .icon32')[0].click();
}
});
</code></p... | javascript jquery asp.net | [3, 5, 9] |
370,997 | 370,998 | Android must have Expandableview whose id is | <blockquote>
<p>Your content must have a ExpandableView whose id is attribute is
'android.R.list'</p>
</blockquote>
<p>This is the error message I am getting from Logcat. Which is confusing me as my XML is this</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://sche... | java android | [1, 4] |
3,337,894 | 3,337,895 | Label in gridview changes but change does not postback | <p>I have a gridview with a label, along with some JavaScript and jQuery to make the label editable.</p>
<p>However, when I postback and debug in my code behind I do not see the change.</p>
<p>How can I make it so I can get the change on the server?</p>
<pre><code><asp:GridView ID="gvGroups" runat="server" AutoGe... | c# javascript asp.net | [0, 3, 9] |
3,504,612 | 3,504,613 | namespace conflict | <p>I got:</p>
<pre><code>using System.Diagnostics;
using System.Reflection;
namespace Site
{
public abstract class General
{
private static string _version;
public static string Version { get { return _version; } }
static General()
{
Assembly assembly = Assembly.... | c# asp.net | [0, 9] |
3,409,075 | 3,409,076 | jQuery Tree View and wp_list_pages | <p>I'm looking to use the <a href="http://www.dynamicdrive.com/dynamicindex1/treeview/index.htm" rel="nofollow">jQuery TreeView</a> script on wp_list_pages to get a nice collapsable-tree effect going. </p>
<p>The script requires that I add some classes to the list elements such as:</p>
<pre><code><ul id="red" clas... | jquery javascript | [5, 3] |
5,252,867 | 5,252,868 | jQuery querystring | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/901115/get-querystring-with-jquery">get querystring with jQuery</a> </p>
</blockquote>
<p>How do I get the value of a querystring into a textbox using jQuery?</p>
<p>Lets say the url is <a href="http://intranet... | javascript jquery | [3, 5] |
3,098,466 | 3,098,467 | jQuery 1.6.1 add a new node in XML | <p>jsFiddle URL : <a href="http://jsfiddle.net/rcrathore/Y8DpM/" rel="nofollow">http://jsfiddle.net/rcrathore/Y8DpM/</a></p>
<p>I am trying to add a new node in XML using jQuery. Following code works fine in Firefox, Safari and Chrome but giving error in IE8:</p>
<pre><code> <div id="result"> </div>
&l... | javascript jquery | [3, 5] |
3,960,396 | 3,960,397 | Android How to set String array into a single textview | <p>I'd like to try to set string array as text of the textview. How can I do that?</p>
<p>Below is what I've tried so far:</p>
<pre><code>String[] word = { "Pretty", "Cool", "Weird" };
tv.setText( word.length );
</code></pre>
<p>But it's throwing some errors. I'm new to Android/Java</p>
| java android | [1, 4] |
539,610 | 539,611 | Create new div arround anchor link when clicked | <p>How can I achieve this behaviors onclick with jquery :</p>
<p><strong>default state:</strong></p>
<pre><code><a href="something.html">Anchor</a>
</code></pre>
<p><strong>click state</strong></p>
<pre><code><div class="highlight">
<a href="something.html">Anchor</a>
</div>
</co... | javascript jquery | [3, 5] |
4,539,043 | 4,539,044 | jQuery Set Cursor In Home Key | <p>I want after type two number in filed append <code>/</code> and set cursor in home. </p>
<p>My mean of the home is, <code>Home</code> key on the keyboard :
<img src="http://www.barcodeman.com/altek/mule/kbemulator/keypics/key.home.up.png" alt="enter image description here"></p>
<p>I try as: (In my code instead run... | javascript jquery | [3, 5] |
994,104 | 994,105 | milliseconds to UNIX timestamp | <p>Anyone have any idea how I would go about converting a timestamp in milliseconds from 1970 (from android's System.currentTimeMillis();) to a UNIX timestamp? It need only be accurate to the day.</p>
<p>I figure I could divide by 1000 to get seconds, and then divide by 86 400 (number of seconds in a day) to get the #... | java android | [1, 4] |
636,232 | 636,233 | Call javascript function on page_load event | <p>In asp.net website, inside <strong>.aspx</strong> i have following code</p>
<pre><code><script type="text/javascript">
function callme(option) {
document.getElementById("t1").value = option;
}
</script>
<div id="content" runat="server"></div>
<input type="text" id="t1" /&... | javascript asp.net | [3, 9] |
1,190,488 | 1,190,489 | Drawing a line between 2 divs | <p>I need to draw a line between 2 divs. I currently use jQuery.</p>
<p>The following is my HTML code. I need to draw a line from the div with id <code>friend1</code> to the div with id <code>friend2</code>.</p>
<pre><code><div style="top:30px;left:95px" id="friend1" original-title="Rafael Rosenberg1">
<... | javascript jquery | [3, 5] |
5,778,770 | 5,778,771 | jQuery addClass Issue - trying to find an element by ID | <p>I have a menu which links to anchors on the page. There are a couple of additional pages that can also link back to the home page with these anchors on.</p>
<p>I have some jQuery which changes the color of a menu item when it clicked. So if I click on About on the homepage, it goes to the about anchor and highlight... | javascript jquery | [3, 5] |
2,823,031 | 2,823,032 | how apply Theme in dynamically master Page? | <p>is there override PreInit in Master Page? or Inheritance of PreInit Possible in MasterPage?</p>
| c# asp.net | [0, 9] |
2,047,802 | 2,047,803 | CMS Controlled Android Application? | <p>Is this possible? creating an application that a person can add details or announcement via CMS? </p>
| java android | [1, 4] |
1,640,169 | 1,640,170 | How to shorten URL's with YOURLS in Python | <p>I am using a Twitter Client called Polly (for Ubuntu 12.10) and it lacks one feature I like to have. The ability to shorten URL's with YOURLS.</p>
<p>I know of another Twitter Client (Hotot) that has this ability, but Hotot is written in Javascript, while Polly is written in Python.</p>
<p>I am a (beginner) Web De... | javascript python | [3, 7] |
4,960,334 | 4,960,335 | Unknown character / word | <pre><code>Sentences :
Test Your Skills 1, ... 2, ... 3, ....
Specify Your Skills 1, ..2, ...3, ....
Check Your Skills 1, ..2, ...3, ....
</code></pre>
<p>..</p>
<pre><code>restofsentence="Your Skills"+ ? ;
String test = "Test" + restofsentence
String specify = "Specify" + restofsentence
String check = "Check" + res... | java android | [1, 4] |
3,681,643 | 3,681,644 | efficiency of jquery toggler | <p>Here's the link to my code: <a href="http://jsbin.com/edago3/edit" rel="nofollow">http://jsbin.com/edago3/edit</a></p>
<p>I would love to find out what improvements could be made to make it smaller and more efficient.</p>
<p>Any help is appreciated.</p>
| javascript jquery | [3, 5] |
2,768,891 | 2,768,892 | Prevent function from running while user is scrolling | <p>How can I do something like this?</p>
<pre><code>myfunction () {
if (notscrolling) {
// do stuff
}
}
</code></pre>
<p><strong>This is the best solution that I could find:</strong></p>
<p>It gets the current scroll position, then gets it again 5 milliseconds later. If the numbers are the same, t... | javascript jquery | [3, 5] |
5,479,236 | 5,479,237 | How can I make a box hide when mouse hovers other element | <p>Im making a webpage and at the moment it has a full screen background image with an overlaying div containing all the page text content slightly off center an about 500px wide so the image is visible behind it. I'd like to be able to hover the mouse over the background image which would cause the text box to close c... | javascript jquery | [3, 5] |
138,454 | 138,455 | Can I call OnCommand programmatically? | <p>I have in the master page an overridden method for <code>OnCommand</code> method.</p>
<p>Can I call it programmatically through any page uses the master page?</p>
<p>I mean something like the following:</p>
<pre><code>CallOnCommand("CommandName", "CommandArg");
</code></pre>
| c# asp.net | [0, 9] |
5,945,062 | 5,945,063 | How to Skip ReadOnly and Disabled inputs while using .focus() | <p>how would this code be modified so it does not <code>.focus()</code> the first form object if it is <code>readonly</code> or <code>disabled</code> and to skip to the next form input for focus?</p>
<p>Currently it returns an error if the first input box is disabled, but i would also like to skip to the next input bo... | javascript jquery | [3, 5] |
4,829,624 | 4,829,625 | ASP.NET DropDown returning value of SelectedText instead of SelectedValue | <p>What am I missing?
I am constructing dropdowns, like this, from code-behind:</p>
<pre><code> ListItemCollection oL = new ListItemCollection();
foreach (var item in edata)
{
ListItem oListItem = new ListItem();
oListItem.Text = item.StatusName; //"StatusName"
oList... | c# asp.net | [0, 9] |
4,008,147 | 4,008,148 | How to go previous page of current page , while clicking browser back button | <p>There is three pages say step1.php, progress.php, step2.php</p>
<p>the flow is step1-> progress-> step2</p>
<p>So once we reach at step2 and press browser back button, it will go to <strong>progress</strong> page.</p>
<p>I wants it should go to step1, while clicking the back button of browser,on step2</p>
| php javascript jquery | [2, 3, 5] |
2,217,957 | 2,217,958 | OutputStream is not available when a custom TextWriter is used | <p>this is my function which converts pdf to png image, it's throwing an error on
this line--> stream.WriteTo(Response.OutputStream); Is there some thing wrong??</p>
<pre><code>protected void CreatePngFromPdf()
{
try
{
string PDFLocation = string.Format(@"\\XXXX\{0}\... | c# asp.net | [0, 9] |
218,576 | 218,577 | Why does php insert backslash while replacing double quotes | <p>I'm wondering why php adds a backslash when i remove double quotes.</p>
<pre><code><input type="text" name="number" id="number" />
<input type="button" name="button" id="button" value="Button" />
</code></pre>
<p>Say they user enters the value 5-1/2" and i'm passing it to a processing page via jquery's... | php javascript jquery | [2, 3, 5] |
3,940,791 | 3,940,792 | python receive data from android | <p>how to send stored data in a string format from android to python for example !!</p>
<pre><code>String s1=DoubletoString(loc.getLatitude());
String s2=DoubletoString(loc.getLongitude());
</code></pre>
<p>i want to send the s1 & s2 data to python how to send it !! any help ???</p>
| android python | [4, 7] |
3,848,034 | 3,848,035 | How to run automatic "jobs" in asp.net? | <p>I want to have my website do a number of calculations every 10 minutes and then update a database with the results. How exactly do I set such a timer, i am assuming it would be in global.asax?</p>
| c# asp.net | [0, 9] |
3,963,273 | 3,963,274 | Syntax to access variables in viewstate | <p>I want to retain a variable between postbacks, so I write an accessor to put it into viewstate. Which one of these is the best way to access it? Or is there a better option?</p>
<p>Option 1:</p>
<pre><code>private int Status
{
get
{
try
{
return (int)ViewState[@"__Status"];
}
catc... | c# asp.net | [0, 9] |
4,405,717 | 4,405,718 | Suitable technology for web portal | <p>We want to devlop a web portal which will contain
- Search Facility
- Add/Delete/Update Facility
- Discussion forums
- Articles
- Rating/Feedback etc.</p>
<p>Which is best suited for this JAVA OR PHP? Also which framework is bes</p>
| java php | [1, 2] |
1,283,620 | 1,283,621 | How does Wordpress handle HTML Tables interaction with jQuery | <p>I have javascript that gets the width of a table and reduces the css fontsize of text within the table until the table width is less then the width of its parent div.</p>
<p>The code bellow shows the principle ONLY.</p>
<p>This approach works out side Wordpress. Within Wordpress the fontsize is reduced to 0px and ... | jquery javascript | [5, 3] |
5,231,866 | 5,231,867 | CS0246: The type or namespace name 'sconnection' could not be found (are you missing a using directive or an assembly reference?) | <p>I am new i asp.net. i create website in asp.net with c# and database sql server 2005 . when i run in visual studio its working fine. But when i run on localhost the error is occurred. Please solve my problem. the error is
Compilation Error
Description: An error occurred during the compilation of a resource required... | c# asp.net | [0, 9] |
2,659,692 | 2,659,693 | jquery - struggle with javascript variables | <p>I am having a bit of difficulty with a Jquery function. As I am very unsure of the language, I wonder if anyone can help.</p>
<pre><code>$('.editableWC').editable('<?php echo base_url();?>ratesheet/editrowwendCall/<?=$editable['url'];?>/',
{
callback: function(value){
$(this... | php jquery | [2, 5] |
299,654 | 299,655 | javascript function does not work within jquery $(document).ready block | <p>I am trying to call a javascript function from an onclick trigger.</p>
<p>html section:</p>
<pre><code><div class="my_radio">
<input type="radio" name="my_radio" value="1" onclick="my_func()"/> first button
</div><!-- end of class my_radio -->
</code></pre>
<p>And the js/jquery section ... | javascript jquery | [3, 5] |
1,402,159 | 1,402,160 | reading content of .aspx using javascript | <p>i am using javascript to read the content of .aspx page. but i am not able to read it. i am using javascript as:</p>
<pre><code>function edit(headtext,totext, bodytext, footertext){
alert('lll');
//var xmlDoc=new ActiveXObject("MSXML.DOMDocument");
xmlDoc.async="false";
xmlDoc.loa... | javascript asp.net | [3, 9] |
3,623,890 | 3,623,891 | DateTime Model Binder, works for IE and Chrome but not for Firefox | <p>i have created a DefaultModelBinder to work with DateTime</p>
<p>the format is "dd-MM-yyyy"</p>
<p>this DefaultModelBinder works fine with IE and Chrome,</p>
<p>but it does not work in Firefox ??</p>
<p>any help regarding this.</p>
<p>Update : {As Requested}</p>
<pre><code>public class DateTimeBinder : Default... | c# asp.net | [0, 9] |
1,199,255 | 1,199,256 | Multi Lang., need to change text on radio button | <p>I need to change text on the radio button.</p>
<p>Currently there is the text in English and required it to change in Arabic language.</p>
<p>Any information is greatly appreciated.</p>
| c# asp.net | [0, 9] |
1,806,303 | 1,806,304 | external javascript file from asp.net C# page | <p>i have some javascript functions written in an external javascript file.
and i have included the file in my asp.net page head section.
however i m not able to understand how do i call the functions from the code behind file.
e.g, i want to call a certain function 'tacount' on onkeypress event of a textbox. how can i... | c# javascript asp.net | [0, 3, 9] |
4,559,501 | 4,559,502 | Array to retrieve information without database | <p>I want to write code on my application to declare an array that retrieve 20 people information without database just using object to each one of them.</p>
<p>How can I declare it and retrieve this information?</p>
<p>I want code or at least some websites that helps me.</p>
<p>Note: the 20 people fill the form of ... | java android | [1, 4] |
5,422,888 | 5,422,889 | How to sort a table consisting of multiple TBODY tags? | <p>Say there are 3 TBODY tags inside one single table containing 3,4 and 5 number of columns.
Is it possible for all the TBODIES to get sorted if any column header on say TBODY1 is clicked.
I want the whole table to get sorted , not just the columns in one particuular TBODY.
I had some reason for which I had to use mul... | javascript jquery asp.net | [3, 5, 9] |
260,241 | 260,242 | PHP / C++ space calculations for parcel packing | <p>I am working on a shopping cart project which requires a 'postage calculator' based on items that the person has in their cart.</p>
<p>Obviously I will be storing the item's dimensions incl. weight and padding in a database and will also store the parcel (box) size and weight that the items will go in to, incl. box... | php c++ | [2, 6] |
4,121,915 | 4,121,916 | Applying and changing the classname of selected radio with scripting | <p>I have a form that has a radio button set. When the page loads, I want use some simple scripting that immediately apply a classname to the label of the corresponding input and when the user click on another radio button in the set to remove that class and apply the classname to the newly selected radio button label... | javascript jquery | [3, 5] |
1,741,163 | 1,741,164 | Get browser URL with jQuery | <p>I have this code</p>
<pre><code>var pathname = window.location.pathname;
</code></pre>
<p>That take the current browser url</p>
<p>How can i paste the pathname into an html element like a p tag?</p>
| javascript jquery | [3, 5] |
61,703 | 61,704 | parse float with two decimals, | <p>this is the input</p>
<pre><code><input type="text" name="price" class="solo-numeros">
</code></pre>
<p>with this function</p>
<pre><code>$(".solo-numeros").blur(function() {
var numb = parseFloat($(this).val().replace(/\D/g,"")).toFixed(2);
$(this).val(numb);
});
</code></pre>
<p>i try to change t... | javascript jquery | [3, 5] |
2,594,666 | 2,594,667 | jquery - change a drop down menu to a list | <p>Is there a way to convert a drop down menu to be a list using jquery... so:</p>
<pre><code><select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</code></pre>
<p>to</p>
<pre><code><ul>
<li>1</li>
<li>2</li>
<li&... | javascript jquery | [3, 5] |
2,965,024 | 2,965,025 | Dynamically populate form field, based on two other fields | <p>Say we have a form field and want to populate it with a images based on two other fields. Say these are called COLOUR and STYLE. So if style is 'A' and colour is black, we want to display the unique image representing these choices. If style is 'B' and colour black, another image.</p>
<p>So what is missing from the... | php jquery | [2, 5] |
4,075,705 | 4,075,706 | How do I make C# talk to PHP session | <p>I have a C# web-app that I want to integrate with a PHP shopping cart, it this possible? </p>
| c# php | [0, 2] |
3,948,361 | 3,948,362 | Android: Set Default soft keyboard | <p>I have created a softkeyboard application. I would like to set it as my default soft keyboard while installing. Is it possible to add code in my softkeyboard application coding to set this keyboard as default keyboard while installing? </p>
| java android | [1, 4] |
3,975,458 | 3,975,459 | How does one add arrays of elements to the DOM in jQuery? | <p>Coming to jQuery from a functional background, I am fond (perhaps unreasonably so) of elegant chains of functions. I often find myself dealing with arrays of elements, such as those that may result from $.map, and my ability to manipulate these arrays in the DOM seems quite limited. Here's some sample code that runs... | javascript jquery | [3, 5] |
3,866,908 | 3,866,909 | Equivalent verbatim operator for java | <p>Does java have an equivalent operator or language construct as the verbatim operator(@) in C#?</p>
| c# java | [0, 1] |
3,344,936 | 3,344,937 | DataGrid - How to display the content of a hidden TemplateField on mouseover | <p>i'm using a DataGrid to display informations (e.g. names and addresses of bookstores), and i want to display the opening hours in a tooltip onmouseover. The information i want to show onmouseover is in a TemplateField which Visible porperty is set to false.</p>
<p>How can i achieve that? Must i use javascript and c... | c# asp.net | [0, 9] |
3,023,918 | 3,023,919 | Add a random number every 24 hours | <p>i need a script that automatically add a random number (between 1 and 5) every 24 hours and stores it in a text file, then after 24 hours creates a new random number and adds it to the previous result in the text file, i managed to do something close but still needs a refresh button to take effect, but i want it to ... | php javascript jquery | [2, 3, 5] |
5,723,735 | 5,723,736 | Difference between element.each and .each(element) in jquery | <p>What is the difference between </p>
<pre><code>$(element).each(function(){
});
</code></pre>
<p>And </p>
<pre><code>$.each("element",function(){
});
</code></pre>
| javascript jquery | [3, 5] |
3,459,318 | 3,459,319 | Change the title of ThickBox | <p>I would like to change the text that appears in the ThickBox in the top panel. Right now it looks like this (HTML from Firebug):</p>
<p><a href="http://test2.richardknop.com/thickbox.jpg" rel="nofollow">http://test2.richardknop.com/thickbox.jpg</a></p>
<p>So I would like to change this part of the HTML:</p>
<pre>... | javascript jquery | [3, 5] |
3,328,717 | 3,328,718 | Converting Jquery to Javascript | <p>Sorry, I am am very poor at JQuery.</p>
<p>I got one code for my requirement which is Jquery. Can any one please convert it into plain javascript</p>
<pre><code>$(window).scroll(function() {
var scrollTop = $(window).scrollTop();
$("#mybox").css("top", scrollTop + "px");
});
</code></pre>
<p>css part</p>
<pr... | javascript jquery | [3, 5] |
3,479,387 | 3,479,388 | Generating a JavaScript array from a PHP array | <p>Suppose that I have a string <code>$var</code>:</p>
<pre><code>//php code
$var = "hello,world,test";
$exp = explode(",",$var);
</code></pre>
<p>Now I get the array as <code>exp[0],exp[1],exp[1]</code> as <code>'hello'</code>, <code>'world'</code> and <code>'test'</code>, respectively.</p>
<p>I want to use this a... | php javascript | [2, 3] |
5,059,606 | 5,059,607 | How do webservers "ignore" URI components? | <p>For example loading the below link simply reloads the page and removes the extraneous extension:</p>
<p><br>http://stackoverflow.com/questions/6718602/how-does-stackoverflow-and-other-sites-remove-file-extensions-for-webpages.abc123</p>
| php asp.net | [2, 9] |
2,519,218 | 2,519,219 | check that a collection is not empty | <p>How do you check that <code>data.results</code> in the following is not empty before trying to perform actions on it?</p>
<pre><code>$.getJSON(myurl, function(data) {
// if data.results is not empty
// {
// console.log(data.results.size);
// }
});
</code></pre>
| javascript jquery | [3, 5] |
649,286 | 649,287 | How to define Global Arrays? | <p>Code example:</p>
<pre><code> <script>
var data = new Array();
data[0] = 'hi';
data[1] = 'bye';
</script>
<script>
alert(data[0]);
</script>
</code></pre>
<p>This gives the following error: <code>data is not defined</code></p>
<p>How do you make something like t... | javascript jquery | [3, 5] |
5,948,412 | 5,948,413 | Java - Encrypt part of the file(audio & image) instead of the whole file? | <p>I read something about this here
<a href="http://stackoverflow.com/questions/5003328/android-increase-speed-of-encryption">Android - Increase speed of encryption</a></p>
<p>I need to only encrypt part of the file(audio & image). Is this possible? Can somebody provide snippet of both encryption and decryption if... | java android | [1, 4] |
5,533,445 | 5,533,446 | get the src from img tag | <p>I am using ajax to grab a page.</p>
<p>withing a table lies an imagesrc i want to grab.. It is wrapped around an A tag with a class name</p>
<p>i use the following</p>
<pre><code>$response.find(".infobox tr").each(function(){
$a=$(this).find(".image").html();
}
</code></pre>
<p>but it returns the image tag <cod... | javascript jquery | [3, 5] |
820,977 | 820,978 | Too many jquery plugins? | <p>I'm developing a website, but I realized that, in addition to the link to my main javascript file, and the link to the jquery file, it's beginning to look like I'm going to have links to three or more plugins also.
I'm just wondering if this is good practice? The site I'm building is a web app, so I need a lot of fu... | javascript jquery | [3, 5] |
2,861,282 | 2,861,283 | Jquery ignore elements with "disabled" class | <p>I'm using jquery and creating event handlers like this:</p>
<pre><code>$('#some_selector a.add').live('click', function(){...});
</code></pre>
<p>However, I need to <strong>not execute</strong> handlers when an element has <code>disabled</code> class. Then I wrote the following to achieve this:</p>
<pre><code>$('... | javascript jquery | [3, 5] |
2,227,569 | 2,227,570 | Load an Image from the Gallery in Android | <p>I'm currently doing a Widget in Android. It is on the market and it's free.
I want to surprise the users by let them choose a picture they want to show in the widget.</p>
<p>Now...</p>
<p>If the widget is clicked, a PreferenceActivity appears. <-- Works!</p>
<p>In this Activity the user should be able to choo... | java android | [1, 4] |
3,685,356 | 3,685,357 | setImageResource from a string | <p>I would like to change the imageview src based on my string, I have something like this:</p>
<pre><code>ImageView imageView1 = (ImageView)findViewById(R.id.imageView1);
String correctAnswer = "poland";
String whatEver = R.drawable+correctAnswer;
imageView1.setImageResource(whatEver);
</code></pre>
<p>Of course it... | java android | [1, 4] |
2,645,738 | 2,645,739 | How can I duplicate this in jQuery? | <p>I have this code:</p>
<pre><code>/* Modify the footer row to match what we want */
var nCells = nRow.getElementsByTagName('th');
nCells[1].innerHTML = iPageCPSV;
nCells[2].innerHTML = iPageCGV;
nCells[3].innerHTML = iPagePPSV;
nCells[4].innerHTML = iPagePGV;
</code></pre>
<p>It works just fine as it is. However I... | javascript jquery | [3, 5] |
5,905,455 | 5,905,456 | Creating a board game with javascript | <p>I am trying to create a game like jeopardy where the user clicks on a button and gets a question they need to answer. The problem is I can't tell which square was clicked and I also can't hide the board from the user when they're answering a question. I am fairly unfamiliar with javascript and I wouldn't mind using ... | javascript jquery | [3, 5] |
5,682,151 | 5,682,152 | jQuery selector with variable, not updating when variable changes | <p>'I am trying to do something like the below that will run a function when clicking the "hit" class only when the parent "box" id is correct.</p>
<pre><code>var selected = 1;
$('#box-' + selected + ' .hit').click(function(){
selected = randomFromTo(1,5);
});
</code></pre>
<p>The <code>selected</code> var... | javascript jquery | [3, 5] |
2,901,860 | 2,901,861 | Control loading order of cross domain java scripts | <p>I'm working on a mobile web site wherein I pull in elements, using Xpath, from a parent site/domain and recreate them on a different domain. The trouble is that most of the elements that I pull in have inline styles attached by the Dojo JS framework. I tried removing these styles using this jQuery code</p>
<pre><co... | javascript jquery | [3, 5] |
2,671,535 | 2,671,536 | How to handle extra commas in csv file | <p>I am creating a csv file in Android. At some places content contains commas how can i handle those commas.</p>
| java android | [1, 4] |
262,517 | 262,518 | how to add 2 values of textbox in asp.net using javascript | <p>I have 2 textbox in my asp.net page and also have one hiddenfield in my asp.net page , my hiddenfield will always have numeric value like 123.00 , and in my one textbox also I will always have numeric value like 20.00 now I want to add this hiddenfield value and textbox value and display it into second textbox thru... | asp.net javascript | [9, 3] |
1,284,300 | 1,284,301 | Pass variable from one function of JS to another function of javascript | <p>I am calling Showmenu() javascript function from C# and passing one variable to this function. Now i want to use this variable in another function of javascript.</p>
<pre><code> <script type="text/javascript" >
var strmenu;
function ShowMenu(strmenu) {
alert(strmenu);
}
alert(strmenu);
ddsmoothmenu.... | c# javascript asp.net | [0, 3, 9] |
5,316,014 | 5,316,015 | Why 'keydown' event works like 'keypress' event? | <p>The next sample code outputs 'keydown' message many times while I hold a button down. The docs <a href="http://api.jquery.com/keydown/" rel="nofollow">says</a> that the keydown event happens once for one push of the button. So, the keydown event works like the keypress event in the next example.</p>
<pre><code><... | javascript jquery | [3, 5] |
1,285,286 | 1,285,287 | How to set time zone for calendar event programmatically? | <p>In android app, while inserting calendar event, how to set time zone for that inserting calendar event. Any help is really appreciated and thanks in advance...</p>
| java android | [1, 4] |
2,722,166 | 2,722,167 | Multiple MainActivities start on startActivityForResult() in Android | <p>guys,<br>
I've been working on a native Android application for some time and now I am at the end of it there is still a problem I need help with.<br>
<a href="https://github.com/mvelikov/sdiet-android" rel="nofollow">My project at github</a><br>
There is the following problem - when user starts the application for ... | java android | [1, 4] |
775,695 | 775,696 | How can I browse the local network from a web client using C#? | <p>Our web client needs a way to browse the local network and select location for file storage. This will then be returned to the webpage as a UNC name.</p>
<p>On a native client this easily accomplished by using Shell32 functions.</p>
<p>I've looked at ASP FileUpload, but that returns the file vs. a specific direct... | c# javascript | [0, 3] |
4,452,497 | 4,452,498 | how to incorporate a c# variable into parameters of javascript function | <p>I am trying to put a path kept in a string variable (named "ruta") into the parameters of the <code>swfobject.embedSWF</code>funtion but I don't know how to incorporate a c# code into javascript code. Can someone help me please?? thanks!!!!!</p>
<pre><code><%TarjetaPL tarjetaPl = null;
string ruta = null;
if (S... | c# javascript | [0, 3] |
5,553,516 | 5,553,517 | Convert Java code to C# | <p>Please help convert the following Java code to C# ?</p>
<pre><code>String[] titles = new String[] { "Alpha", "Beta", "Gamma", "Delta" };
List<double[]> x = new ArrayList<double[]>();
for (int i = 0; i < titles.length; i++) {
x.add(new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,13,14,15 });
}
... | c# java | [0, 1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.