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,621,619 | 2,621,620 | populate datagrid columns between two template fields | <p>I have a datagrid "dgData" <code>AutoGenereateColumns="true"</code></p>
<p>In this i have 2 templateFields.</p>
<p>Now i want to populate all the data between these 2 template fields.</p>
<p>How can i do this using C#</p>
| c# asp.net | [0, 9] |
329,632 | 329,633 | jQuery, PHP - How to make a 'Get started' popup box | <p>I'm trying to create one of those pop-up boxes you'll get the first time you log in to my website. I wan't this to have some 'Get started' articles, FAQ and so one. </p>
<p>But I can't figure out how I would make this happen? I would like to create it in jQuery and PHP. </p>
<p>But should I have a row['getStarted'... | php jquery | [2, 5] |
4,422,069 | 4,422,070 | to write and read in pdf file | <p>Is it possible to create or generate PDF files through c#.net in asp.net,</p>
<p>This PDF file mostly will be dynamic . here in generated PDF file the user Id who logs into the application has also be written, i.e, userid is 2 then it must be in the PDF file ,which the user is generating.</p>
<p>After generating t... | c# asp.net | [0, 9] |
4,486,240 | 4,486,241 | objectdatasource question | <p>For the moment, I'm binding my gridviews by calling a linq query that returns a list collection of objects MyObject. In my gridview, if I'm using a boundfield I set its Datafield property to the name of the property of MyObject and if I'm using an itemtemplate I work with Eval. In my code behind, I have</p>
<pre><c... | c# asp.net | [0, 9] |
1,223,912 | 1,223,913 | JQuery function to simple java script function | <p>Here is a simple question. I have this jQuery function that is called upon <code>onload</code> of page can I make it simple JavaScript function so that I would call it whenever I want to. </p>
<pre><code>(function ($){
//DO SOMETHING HERE
})(jQuery);
</code></pre>
<p>The above the jQuery function. I want so... | javascript jquery | [3, 5] |
1,899,676 | 1,899,677 | jQuery form and select box? | <p>I have built a form using 3 select boxes that are used dynamically together, when one is in use the other must be at the default setting this ensures that any of the dynamic events for that select box are turned off, I accomplish this so far by using this jquery:</p>
<pre><code>$('form select').click(function() {
... | javascript jquery | [3, 5] |
3,162,787 | 3,162,788 | alert with src attribute of any element i click with jQuery or Javascript | <pre><code><img src="pic1.jpg" class="mythumbs">
<img src="pic2.jpg" class="mythumbs">
<img src="pic3.jpg" class="mythumbs">
<img src="pic4.jpg" class="mythumbs">
<script>
/*
here is the code which makes me when i click on any image, it shows me its src attribute
(without using idTag 'pre... | javascript jquery | [3, 5] |
1,757,466 | 1,757,467 | android application can run in emulator but it can't run in devices using apk | <p>My app can run in emulator. Then I install my app in devices (Hp) but when I opened my app, my app is <em>force close</em> and say "application is not installed in your phone"</p>
<p>Can you help me how to fix my problem?</p>
| java android | [1, 4] |
3,228,434 | 3,228,435 | Javascript and JQuery conflict | <p>I'm not very expert in using javascript and jquery but I'm working with them for a client.<br>
I have encountered a problem using two script: the first one makes a top panel sliding, the second is in a form. This one is used in order to hide or show a particular field basing on the drop down list choice. </p>
<p>I'... | javascript jquery | [3, 5] |
4,458,339 | 4,458,340 | Check Whether Incoming Call to Web Service is over Https | <p>We want to make sure any calls that are coming into our .asmx are https. I'm not sure how/where to check that. In our asmx I assume I can check the HttpContext?</p>
| c# asp.net | [0, 9] |
766,046 | 766,047 | Break the string on Full Stop for (Chinese, Arabic, Japanese, Russian, Korean, Dutch, Hindi, Greek, Urdu) using javascript | <p>I am working on languge segmentation project. I applied language segmentation for English by using regular expression breaking the string at . ("Full Stop"). Now i want to provide the support for following languages (Chinese, Arabic, Japanese, Russian, Korean, Dutch, Hindi, Greek, Urdu). I want to break the above me... | php javascript | [2, 3] |
5,174,967 | 5,174,968 | Jquery: slideToggle() multiple divs independently using one function | <p>Markup:</p>
<pre><code><div>
<h3 class = "trigger">Heading 1</h3>
<ul class = "toggle">
<li>Line One</li>
<li>Line Two</li>
<li>Line Three</li>
</ul>
</div>
<div>
<h3 class = "trigger">Heading... | javascript jquery | [3, 5] |
531,290 | 531,291 | jQuery/javascript synchronously load an iframe | <p>We are trying to load an openx banner when a user exits our site. We don't want to preload the banner in a div because it will incorrectly record impressions, we only want it loading when window.onbeforeunload fires. </p>
<p>We add the iframe in onbeforeunload but the exit prompt is presented before the iframe lo... | javascript jquery | [3, 5] |
1,429,683 | 1,429,684 | jquery custom cycle plugin with prev and next | <p>I'm trying to create a custom jquery cycle plugin which basically displays the contents of an <code><li></code> element upon click. The html is as follows:-</p>
<pre><code><ul class="ticker">
<li>Boo1</li>
<li>More boo1</li>
<li>Even more boo</li>
<... | javascript jquery | [3, 5] |
3,872,779 | 3,872,780 | Using jQuery to replace each ' with &apos | <p>I can't seem to find the correct way to take some html being returned from the server, replace each ' with &apos and finally - append the new html to the DOM.</p>
<p>Before the modification, the below works just fine to append the html (not altered)</p>
<pre><code>$(xhtml).find("#inner").appendTo("#appendTD");... | javascript jquery | [3, 5] |
632,763 | 632,764 | PHP Syntax Error With jQuery | <p>I'm using DreamWeaver and I get this error from time to time and cannot figure out what is causing it.</p>
<p>When I add a little bit of jQuery from scripts I want into a php file, DW will tell me there is a syntax error. Here is where it says my error is(with a few lines before and after it):</p>
<pre><code> ec... | php jquery | [2, 5] |
5,291,751 | 5,291,752 | Image editing in Android | <p>In my application image editor I want to implement image brightness, contrast, sharpness, zooming, rotating, and save the image to my gallery. </p>
| java android | [1, 4] |
656,596 | 656,597 | Possible to make IE7 reload the DOM? Trying to update RSS href url in link tags | <p>I can use this jQuery code to dynamically change the RSS link in the DOM in Firefox & Chrome. <a href="http://path.com/feed" rel="nofollow">http://path.com/feed</a> is normally replaced by a variable, but not for this example.</p>
<pre><code>$('#rssfeed').remove();
$('head').append('<link id="rssfeed" rel="a... | javascript jquery | [3, 5] |
2,475,256 | 2,475,257 | Checking to make sure the same item can't be clicked twice in a row with jQuery / jScript | <p>So, I have a script I've been working on it can be seen here:
<a href="http://xeo.tryptamine.tv/lookbook2/" rel="nofollow">http://xeo.tryptamine.tv/lookbook2/</a>
Now if you play around with that script you will see if you click the image it's already on it still gets that fade effect. I need to know how to properly... | javascript jquery | [3, 5] |
3,055,470 | 3,055,471 | Android - open image from drawable in default gallery application | <p>I'm working on app that have number of imageviews,
when i click on the image i want it to open via android default gallery image picker.
i've tried in this way :</p>
<pre><code>String str = "android.resource://" + getPackageName() +"/"+R.drawable.wall1;
Uri path = Uri.parse(str);
Intent intent = new Intent();
inte... | java android | [1, 4] |
4,152,644 | 4,152,645 | Singleton function description | <p>I searched but didn't find any normal information for Java Singleton functions or classes , So can anybody explain why I need them? What is he difference from other functions? </p>
| java android | [1, 4] |
1,673,375 | 1,673,376 | jQuery click function using same classes | <p>I have a dropdown function that I need to work only on the div clicked, not all (I have 14+ of the same classes on the page that need to be displayed when a certain one is clicked) </p>
<p>At the moment my jQuery is as follows.</p>
<pre><code>$('.qacollapsed').hide();
$('.qa').click(function () {
$('.qacollaps... | javascript jquery | [3, 5] |
2,908,452 | 2,908,453 | jQuery: How to determine the index of <li> element in an unordered list when clicked? | <p>I want to know the index of the clicked li element in the unordered list. How to achieve this with jQuery?</p>
| javascript jquery | [3, 5] |
1,598,615 | 1,598,616 | Condition to check if value from gridview cell was edited or not? | <p>I would like to know if there's any condition to check if values from cells were edited or not .
I can do it in other way ( with If value == value ) bla bla..but I need to write a lot to compare the values ..and I need another way .</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
4,982,083 | 4,982,084 | Value in TextView doesn't update | <p>There is the following code from custom AsyncTask:</p>
<pre><code> @Override
public void onPreExecute() {
setTitle();
dialog.show();
}
private void setTitle() {
Activity activity=(Activity)context;
TextView title=(TextView)activity.findViewById(R.id.textViewToDoL... | java android | [1, 4] |
3,817,407 | 3,817,408 | Change text color in first row of spinner | <p>I have a spinner. When user clicks on it a dialog box appears with several rows and text inside that rows to choose from. The default text inside spinner is <code>Select facility</code>. And the first row text is the same i.e. <code>select facility</code>. Now what I want is to change the text color in first row in ... | java android | [1, 4] |
566,398 | 566,399 | pass the number of link | <p>I have a html.twig file with this</p>
<pre><code>{% set num= 1%}
{% for idea in ideas %}
<div class="add">
<a href="#"> Comentar </a>|<a href="#" rel="like{{num}}"> Tomado </a>|<a href="#">Valorar</a>
</div>
</div>
{% set num= num +1 %}
{% endfo... | javascript jquery | [3, 5] |
892,662 | 892,663 | Grab code behind property in Javascript? | <p>I would like to burn in a c# code behind property into the javascript alert(<%= someProperty%>); . For some reason it is not working. Is there a way you can burn the codebehind property into the javascript? thanks</p>
| c# asp.net javascript | [0, 9, 3] |
2,666,634 | 2,666,635 | Simple jQuery Count Up timer help please | <p>Trying to make a simple count up timer in jquery... this sort of works but is adding the numbers to the end of '0000' and I want it to go <code>'0001' '0002' '0003'</code> etc...<br> This is all happening in the jqury onReady scope.</p>
<pre><code>var i = '0000'
var timer = function doSomething ( )
{
i = i+= 1... | javascript jquery | [3, 5] |
134,328 | 134,329 | Object reference not set to an instance of an object when sending URL | <p>I have a password recovery controls in my web form.
Upon entering all the necessary particular, an email will be send to the user's email account. </p>
<p>It would be like -- if a user forgets his/her password, sending a password change link to the user's email account instead of a new password. </p>
<p>However,... | c# asp.net | [0, 9] |
1,023,881 | 1,023,882 | jquery background image rotating script doesn't work | <p>I'm writing this script to rotate a background Image every 3 seconds but it doesn't work at all and i'm stumped as to why not.</p>
<pre><code>$(document).ready(function() {
var inc = 0;
var bgImages = new Array();
bgImages.push("Images/backgroundDog-small.jpg");
bgImages.push("Image... | javascript jquery | [3, 5] |
1,206,301 | 1,206,302 | Remove draggable functionality when button is clicked | <p>In this fiddle - <a href="http://jsfiddle.net/adrianjsfiddlenetuser/zyUkd/35/" rel="nofollow">http://jsfiddle.net/adrianjsfiddlenetuser/zyUkd/35/</a> I'm attempting to remove the draggable functionality of all divs that are styled with .myDivs when the button 'Remove Draggable' is clicked.</p>
<p>The function call ... | javascript jquery | [3, 5] |
4,620,353 | 4,620,354 | SmtpMail.Send() doesn't work | <p>i have a problem with send mail in c#; it doesn't send any mail and also doesn't throw any exceptions with failure :</p>
<pre><code>using System.Web.Util;
public static void SendEmail(string _FromEmail, string _ToEmail, string _Subject, string _EmailBody)
{
// setup email header .
SmtpMail.Sm... | c# asp.net | [0, 9] |
2,976,823 | 2,976,824 | tablesorter - Don't want the Footer to sort | <p>I'm using an asp.net repeater control with tablesorter.
How can i disable sorting on the footer.I have a total on the footer but i don't want sorting to apply.
Thanks in Advance</p>
| jquery asp.net | [5, 9] |
1,387,759 | 1,387,760 | The operator || is undefined for the argument type(s) java.lang.String, java.lang.String in Android app | <p>I am trying to fetch database stored values and checking if ANY of the values exist then a method should be called.However, while checking I am getting this error--> The operator <code>||</code> is undefined for the argument type(s) <code>java.lang.String</code>, java.lang.String</p>
<pre><code>if ((DBAdapter.KEY_... | java android | [1, 4] |
1,274,532 | 1,274,533 | How to do user selectable background in own app in android? | <p>I have an android app which is a simple home screen. What I want is to create an option where users can select background by themselves. Currently I have made the option but it does not hold the background after I restart or press back button. It goes back to the background what I set in the xml file as android:back... | java android | [1, 4] |
5,359,477 | 5,359,478 | Overloaded constructor in Python from C++ perspective | <p>There is this code:</p>
<pre><code>#include <iostream>
class SomeClass
{
int someInteger;
float someFloat;
public:
SomeClass(int someInteger_)
{
// do something for int
std::cout << "Int constructor\n";
}
SomeClass(float someFloat_)
{
// do something for float
std::cout <... | c++ python | [6, 7] |
2,308,614 | 2,308,615 | Create an array variable for a class in Javascript | <p>The following is a Javascript class that I have created. </p>
<pre><code>(function(window){
function Project(name,description){
this.name = name;
this.description = description;
}
window.Project = Project;
}(window));
</code></pre>
<p>I know to create variables inside the class using the ... | javascript jquery | [3, 5] |
5,205,468 | 5,205,469 | Search element using div class | <p>I need to search elementid based on div class as my element id in html page keep on changing based on different navigation, but my div class seems to be same everytime.
I want to access the elementid and then i need to change the style.overflow ='visible' .
Also even my elementid are getting changed it has same pos... | javascript jquery | [3, 5] |
2,634,399 | 2,634,400 | jQuery hierarchy issue with next() | <p>Seems like <code>$("img").next().hide();</code> is not working when both the image and div tag are a child of a paragraph.</p>
<pre><code><p>
<img src="image.jpg" />
<div>text</div> // this div is set to 'display: none' by default in css
</p>
</code></pre>
<p>Yet, if I substitute <cod... | javascript jquery | [3, 5] |
5,782,721 | 5,782,722 | How to get element content by id from HTML object by JavaScript ( JQuery ) | <p>i write the following code to access page "JQueryPage.aspx" and get data from it using jQuery</p>
<pre><code><script type="text/javascript">
$.get
(
"JQueryPage.aspx",
function(data) {
alert("Data Loaded: " + data);
}
);
</script>
</code></pre>
<p>"J... | asp.net javascript jquery | [9, 3, 5] |
1,124,662 | 1,124,663 | ASP.NET Forms Authentication Expiry | <p>Can someone explain to me how ASP.NET Forms Authentication works because I don't seem to get it and I keep getting signed out.</p>
<p>As it stands, I have username, password and a "Keep me signed in" checkbox. From these values I'm creating a ticket and cookie, as follows:</p>
<pre><code> // Create ticket
F... | c# asp.net | [0, 9] |
3,420,543 | 3,420,544 | How does jQuery's .delay method work under-the-hood? | <p>I just saw this and think it's cool.</p>
<pre><code>console.log("Starting...");
$("#my_element")
.fadeIn()
.delay(3000)
.fadeOut();
console.log("Finishing...");
</code></pre>
<p>How does the .delay method work under-the-hood? I mean, how does it figure out how to wait 3 seconds but not interrupt the main co... | javascript jquery | [3, 5] |
5,608,076 | 5,608,077 | Use next and prev() in jquery | <pre><code><label for="a1">First:</label>
<input id="a1" class="first" type="text" name="a1" value="123">
<label for="b1">Second:</label>
<input id="b1" class="second" type="text" name="b1"> <br />
<label for="a2">First:</label>
<input id="a2" class="first" type=... | javascript jquery | [3, 5] |
1,913,207 | 1,913,208 | Fight theft of plugin by sending parameters with AJAX callback | <p>I have built a new jQuery plugin and I want to be able to demo this to the user before they can purchase this. But I also don't want anybody to be able to simple copy the code without paying for it. </p>
<p>For that reason I have encoded the plugin using <a href="http://www.vincentcheung.ca/jsencryption/" rel="nofo... | javascript jquery | [3, 5] |
3,965,927 | 3,965,928 | Sending "alert/notification" to cell phone from website | <p>I was wondering if there was a way for a website to send an alert/notification to a cell phone (smart phone, android, iphone... stuff like that) where the notification will ask the user a question and they have to answer the question and the response is sent back to the website and their answer is logged in the data... | php iphone android | [2, 8, 4] |
5,459,236 | 5,459,237 | Javascript issue inside of a Python Module | <p>I'm trying to have Python run some Javascript, and I am running into a few issues. Namely that when I am trying to inject some text into a textarea of a page, it doesn't seem to work if and only if there is a newline (\n) as part of the variable inserted for the Javascript.</p>
<p>Here's my line:</p>
<pre><code>br... | javascript python | [3, 7] |
851,942 | 851,943 | Moving Div by everyclick without JQuery | <p>I used this jquery to move a div by every click.</p>
<pre><code>$(document).ready(function(){
$('#hero').click(function(){
$(this).animate({
left: '+=50px'
},300);
})
})
</code></pre>
<p>I'd like to avoid jquery whenever it is possible to get deeper into pure JS.</p>
<p>Is there an... | javascript jquery | [3, 5] |
5,712,724 | 5,712,725 | Making a control visible on a seperate page, but not visible on the page which contains the control | <p>I have a masterpage (which we will call 'default'). This contains a second page (web user control) - 'second'. And finally a third 'print' page. The 'print' page is also a web user control, however, it merely has a placeholder that contains the 'second' page.</p>
<p>Is there a way I can add a control to the 'second... | c# asp.net | [0, 9] |
2,009,631 | 2,009,632 | Shortcut for adding one item to an array in javascript | <p>I want to add just one item to an array in Javascript and use that array as an argument for a method. How can I complete this <em>with an easy syntax</em>.</p>
<p>I tried this:</p>
<pre><code>[].push({ "value" : "test"});
</code></pre>
<p>But that only returns 1. I want the complete array as a return.
So any ides... | javascript jquery | [3, 5] |
2,168,159 | 2,168,160 | jQuery: Mouseover Timeout | <p>i have script like this</p>
<pre><code>$('.parent a').live('mouseover mouseout', function(event) {
if (event.type == 'mouseover'){
if ($(this).siblings('.child').css('width') == '0px' ){
$(this).siblings('.child').animate({'width': window.innerWidth}, 500);
}
}else{
if (... | javascript jquery | [3, 5] |
626,342 | 626,343 | problem using page.registerstartupscript | <p>I am using page.registerstartupscript in my code behind C#. Its like this:</p>
<p>string item1="category1";
string Script = "window.program = '" + item1 + "';";
Page.RegisterStartupScript("PopupScript", Script);</p>
<p>item1 gets generated dynamically from some value in code behind. But its not working. Any su... | asp.net javascript | [9, 3] |
5,201,273 | 5,201,274 | Android AnimationDrawable memory management | <p>I'm creating an android application & it has background animations for each activity.
I used <code>AnimationDrawable</code> <code>setBackgroundResource(anim.xml)</code> to run the animation xml files and works fine.
problem is, when I test on devices,some devices gives me an <code>FATAL EXEPTION</code> telling t... | java android | [1, 4] |
4,934,118 | 4,934,119 | I want to access the values of the keys of an object? | <p>I'm using an API and I'm getting the response of it on success function as a data.</p>
<p>I'm trying to use which only gives me the "keys" of all objects but not there values, so my question is: can I get the values using below approach?</p>
<p>I have got the "keys" of all objects using JavaScript's <code>object.k... | javascript jquery | [3, 5] |
4,593,100 | 4,593,101 | JS slideshow "nextPhoto"/"prevPhoto" not working | <p>I'm working on a JavaScript slideshow someone else originally built, and I seem to have busted it. The "previous" and "next" buttons don't work - they don't do anything, actually. </p>
<p>Using the HTML Validator plugin for Firefox when I load the page, I get an error message: "Undefined variable: random_photo in [... | php javascript | [2, 3] |
4,804,192 | 4,804,193 | How can I find the size of a table cell with javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5221831/how-can-i-find-out-the-size-of-a-cell-with-javascript">How can i find out the size of a cell with javascript</a> </p>
</blockquote>
<p>I want to find the width of a table header. when I do this <code>va... | javascript jquery | [3, 5] |
1,378,872 | 1,378,873 | Alarm manager In android SDK | <pre><code>private static final int HELLO_ID = 0;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Date dat = new Date();//initializes to now
Cale... | java android | [1, 4] |
181,597 | 181,598 | Get client machine's operating system name for both - tablet devices and PC | <p>I have a website created in asp.net 3.5, c# 2008 - hosted on IIS 7. I want to check from which operating system the client is accessing the site, whether from browser of computer or from browser of tablet devices like ipad, dell streak, samsung galaxy etc or from the smart phone. Is it possible to know. I have tried... | c# asp.net | [0, 9] |
417,617 | 417,618 | How to make page autoscroll to DIV onload | <p>I have a quicklaunch (<em>bookmark list</em> if you'd like) which will send the user to different pages with lots of text. So I want them to be sent to the specific paragraph.</p>
<p>Is it possible to make a page autoscroll to a specific DIV onload and how?<br>
I'll live without the animation. If it can just go to ... | javascript jquery | [3, 5] |
2,872,545 | 2,872,546 | ASP.NET ListView containing LinkButtons - catching events | <p>I have a ListView in which the ItemTemplates are a series of LinkButtons.</p>
<p>The LinkButtons' text is populated from a db, this is done by simply binding the text property to the column I want. This works well and fine, when ran the page displays the LinkButtons in a list with their correct names.</p>
<p>The ... | c# asp.net | [0, 9] |
3,791,060 | 3,791,061 | JQuery get Value of an Element: onfocus="inputInlineHint(self);" | <p>i have an input field which calls the function "inputInlineHint(self)" on blur and on focus.
It also passes self...</p>
<pre><code><input type="text" id="one" class="textbox" value="Your Name" onfocus="inputInlineHint(self);" onblur="inputInlineHint(self);" />
</code></pre>
<p>Now i'd like to retrieve the cu... | javascript jquery | [3, 5] |
1,037,167 | 1,037,168 | asp.net validator add class to input if validation is wrong | <p>Is it possible to add css class to validated input if value isnt valid ? Im using asp.net validators.</p>
<p>Maybe there is javascript event on taht validators which I can use ?</p>
<p>thanks for any advice</p>
| c# asp.net | [0, 9] |
553,312 | 553,313 | Problem with getting source code of page | <p>I'm new in Java and in programming on android. Have a look at this code:</p>
<pre><code>TextView tv = new TextView(this);
URI uri;
HttpResponse response = null;
String str = "dupa2";
try {
uri = new URI("http://google.com");
HttpGet get = new HttpGet(uri);
HttpClient client = new DefaultHttpClient();
... | java android | [1, 4] |
691,504 | 691,505 | Is this a bad practice for droppable? | <p>Whenever a user presses a div button I want to register a droppable. I'm setting a the closure<br>
<code>add.droppable({})</code> to the <code>var toDrop</code> and then invoking methods on <code>toDrop</code> as below, is this a bad practice ?</p>
<p>For example instead of <code>toDrop.addClass("newColors");</code... | javascript jquery | [3, 5] |
1,164,505 | 1,164,506 | Using Jquery for multiple values? | <p>I'm trying to display a reply form for each comment but I hide the form using Jquery and I was wondering how can I grab the comment id and add it to Jquery so it can hide each reply form and display the correct reply form correctly instead of displaying the wrong reply form?</p>
<p>For example, <code>form_show_hide... | php jquery | [2, 5] |
909,665 | 909,666 | Multiple random results in a for loop? | <p>I'm trying to create 64 squares and give each a unique background color. I'm pretty close, but I can only seem to get one random color.</p>
<pre><code>function randomCol() {
return Math.floor(Math.random()*16777215).toString(16);
}
$(function(){
for(i=0; i<64; i++) {
$('<div class="square">... | javascript jquery | [3, 5] |
1,879,472 | 1,879,473 | Calling a parameterized javascript function from php | <p>I need to call a javascript function from php, by passing a value in php variable. My code goes like this:</p>
<pre><code>echo '<tr class="trlight"><td onclick="callVehicle('.$qry_vehicleid.');"><label>Call Vehicle</label>&nbsp;</td></tr>';
</code></pre>
<p>And in javascript... | php javascript | [2, 3] |
2,427,612 | 2,427,613 | jQuery - Running a function to replace commonly used code | <p>I have the following code below. Id like to replace the highlighted section with a single line of code that will run all that code. The reason behind this is because i reuse this code a lot, and would save me a lot of time by being able to copy and paste a single line of code.</p>
<p>Any ideas on the best way to wr... | javascript jquery | [3, 5] |
4,256,660 | 4,256,661 | document.getElementById working for one form element but not another | <p>I have a web page that takes a 10 digit code which is split across two textboxes, 4-chars in the first textbox and 6 chars in the second.</p>
<p>I've been trying to implement some javascript so that when the user enters the fourth character in the first textbox the cursor jumps to the second textbox.</p>
<p>The pa... | javascript asp.net | [3, 9] |
1,232,710 | 1,232,711 | any way to catch a page-refresh and pause it? | <p>Is there any way to catch a page refresh and pause it for a certain time period using javascript, jquery or whatever?</p>
<p>This is necessary to prevent accidentally pressing the refresh key amid an important work which is one-time ,and needs to be processed and saved before the page gets refreshed.</p>
<p>In ... | php javascript jquery | [2, 3, 5] |
3,726,345 | 3,726,346 | RadioGroup.check(int) not working | <p>I'm having a little trouble with RadioGroups.
I created a blank radiogroup in layout.
And then filled it with equalizer presets in the code.
Then I tried to set one of the option using radiogroup.check(1).
But it threw a null pointer exception.</p>
<p>Below is the code:</p>
<pre><code>protected void onCreate(Bundl... | java android | [1, 4] |
4,693,524 | 4,693,525 | Why is $(this).val() giving me the value from this first method in this second method? | <p>The $(this).val() in the second method returns the same value that I get in the first method. I expected to get the first value of the fields with the secondGroup class. What am I doing wrong?</p>
<pre><code>$(document).ready(function(){
jQuery.validator.addMethod("method1", function(value, element, options) {... | javascript jquery | [3, 5] |
4,124,400 | 4,124,401 | Jquery add tr to last but one row in a table | <p>Sample Code </p>
<pre><code>`<table>
<tr>
<td> first column </td>
</tr>
<tr id ="addRow">
<td><input type="button" id="add_button" name="add" value="Add" /></td>
</tr>
</table>
`
</code></pre>
<p>Now when i click this Add ... | javascript jquery | [3, 5] |
5,859,911 | 5,859,912 | Is there a way to write iphone and android apps using visual studio and c#? | <p>Is there a way to write iphone and android apps using visual studio and c#? Also if I make a phone app can I easily write it for android, iphone, and windows without havong to write it in 3 different languages?</p>
| c# iphone android | [0, 8, 4] |
2,596,580 | 2,596,581 | JQuery addclass to another div (but not parent) if no data is found | <p>I have this to add a class to the main table that the report is in if there is no data returned. </p>
<p><code>$('#report-area table td:contains("Sorry, your search did not return any data")').parents('#report-area').addClass('no-report-data')</code></p>
<p>However, I have another div area <code>"#report-footer"</... | javascript jquery | [3, 5] |
4,766,715 | 4,766,716 | jQuery/JavaScript program breaks after completion number is changed | <p>In a spelling game I have created there is a grid that is populated with words. The aim of the game is to spell the words by clicking on the letters on the side, which animate into the empty spaces in the grid. Words are highlighted if they are to be spelt, so the user can see where to go next. The aim of the game i... | javascript jquery | [3, 5] |
1,675,361 | 1,675,362 | Confusing Javascript quotes | <p>In the jQuery docs mostly every string is "declared" using single quotes. Including the <a href="http://jqueryui.com/demos/datepicker/#option-dateFormat" rel="nofollow" title="documentation">documentation</a> for jQuery UI.</p>
<p>So why doesn't this</p>
<pre><code>$(".datepicker").datepicker({ dateFormat: 'dd.mm.... | javascript jquery | [3, 5] |
2,174,871 | 2,174,872 | jQuery events don't work when html is injected | <p>I have something like this:</p>
<pre><code>function SetTableBehavior() {
$(".displayData tr").hover(function(e) {
$(this).children().addClass('displayDataMouseOver');
}, function () {
$(this).children().removeClass('displayDataMouseOver');
});
$(".displayData tr td").click(function(e... | javascript jquery | [3, 5] |
2,020,084 | 2,020,085 | move cursor to the beginning of the input field? | <p>when you click on 'Ask question' here in Stackoverflow you see a text "What's your programming question? Be descriptive."</p>
<p>i want the same thing and all i need for that is to move my cursor to the beginning of the text field. how do i do that with jquery?</p>
| javascript jquery | [3, 5] |
2,455,648 | 2,455,649 | Combine more than 1 image into a gif | <p>I'm wondering if it's possible to combine more than 1 image into a gif?</p>
<p>So, essentially you import 2 photos and make a gif out of them. </p>
<p>Thanks.</p>
| java android | [1, 4] |
4,842,579 | 4,842,580 | CSS and animate() in jquery | <p>I'm trying to make navigation with some effects but my jquery code dosen't works like I expected.
Actually I want to pass this css statement background: #ccc url('image.jpg') no-repeat; to animate function.</p>
<p>How to do that ?</p>
<pre><code><ul>
<li><a href="#"></a></li>
... | javascript jquery | [3, 5] |
5,503,002 | 5,503,003 | How to access PHP variables in JavaScript or jQuery rather than <?php echo $variable ?> | <p>How do I access PHP variables in JavaScript or jQuery? Do I have to write </p>
<pre><code><?php echo $variable1 ?>
<?php echo $variable2 ?>
<?php echo $variable3 ?>
...
<?php echo $variablen ?>
</code></pre>
<p>I know I can store some variables in cookies, and access these values via cookie... | php javascript jquery | [2, 3, 5] |
774,166 | 774,167 | Reading parameters like signup[product][handle] in ASP.NET | <p>I need to read parameters from Context.Request that is written in a format like:</p>
<pre><code>url?event=open&signup[customer][first_name]=John&signup[customer][last_name]=Doe&signup[payment_profile][card_number]=xxxxxxxx
</code></pre>
<p>Is there an easy way to parse this into a c# object? Would it b... | c# asp.net | [0, 9] |
2,036,790 | 2,036,791 | How do i delete a file? And file questions about limits? Java Android | <pre><code>FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_WORLD_READABLE);
fos.write(string.getBytes()
fos.close();
</code></pre>
<p>Above is how i write my files. Now is there a limit to it? i'm asking this because i set some text to it that i get from my text view, then later, when i get the text from ... | java android | [1, 4] |
2,370,778 | 2,370,779 | Get image from external server | <p>We are storing our images at Amazon S3. Let's say the location is <a href="http://media.sitename.com/folder1/image1.jpg" rel="nofollow">http://media.sitename.com/folder1/image1.jpg</a>.</p>
<p>I want to copy this file and store it in our server. Is it possible to do this using C#. I am using asp.net 4.0.</p>
<p>Pl... | c# asp.net | [0, 9] |
4,918,028 | 4,918,029 | Making my mouseevent coded in jquery a lot more elegant | <p>I wrote this in order to fix the problem IE has with select drop down lists being truncated if their options were longer than the default value of the select. Now it works fine but I want to improve the code in order to learn how to write things in a much more useable fashion. </p>
<pre><code> $(document... | javascript jquery | [3, 5] |
3,594,990 | 3,594,991 | Question regarding execution of JS code | <p>I just encountered with this code:</p>
<pre><code>foo = (function() {
var div = document.createElement('div');
return function(html) {
div.innerHTML = html;
var item = div.firstChild;
div.removeChild(item);
return item;
};
})();
</code></pre>
<p>and it is being used like... | javascript jquery | [3, 5] |
5,172,358 | 5,172,359 | TextRenderer.DrawText() does not work on my Web application? | <p>I have to render text into GDI(not GDI+) and save as image in C#.NET web application not windows application, SO for that I have chosen <code>TextRenderer.DrawText()</code>, to render the text into GDI, But I am getting an red lined highlight below the <code>TextRenderer</code> with message if mouse over <strong>"T... | c# asp.net | [0, 9] |
5,331,738 | 5,331,739 | json encoding 2 dimension array | <p>I have the following in php:</p>
<pre><code>$query = mysql_query($sql);
$rows = mysql_num_rows($query);
$data['course_num']=$rows;
$data['course_data'] = array();
while ($fetch = mysql_fetch_assoc($query) )
{
$courseData = array(
'course_name'=>$fetch['course_name'],
'training_field'=>$fetch['tr... | php javascript jquery | [2, 3, 5] |
5,508,756 | 5,508,757 | Can I give a 'web address format' to my local host application | <p>I host a local application on my machine which i provide access on network by normally type "http://computername/app". Can I change it to a real web address format "www.myapplication.org" for my local hosting.</p>
<p>I would appriciate for every of your suggestion.</p>
<p>vic,</p>
| c# asp.net | [0, 9] |
2,435,847 | 2,435,848 | Jquery - Pseudo-recursive function with "this" element | <p>I'm trying to apply a cool animation effect on a list with Jquery using a pseudo-recursive function.</p>
<p>It works pretty well for the first item, but after the first loop, the <code>this</code> which was selecting <code>#column-left section</code> becomes the <code>li</code> so of course, the function does not ... | javascript jquery | [3, 5] |
3,382,410 | 3,382,411 | How can I enable sychronization with Google Calendar? | <p>Is it possible to enable synchronization of internal device's calendar with Google Calendar(which is used by user in his work room on Google) programatically? I know that I can do it in settings, but I need to do it programatically. </p>
| java android | [1, 4] |
5,422,684 | 5,422,685 | jQuery: using fadeIn() with .html() | <p>I have a piece of jQuery code that queries a page via POST and then that page returns some text that gets displayed on the page. This is the code I am using to successfully do this:</p>
<pre><code>$.post(
"query.php?module=vote",
{answer: ans, pid: pid, to: to, page: page},
function(responseText){
... | javascript jquery | [3, 5] |
1,987,180 | 1,987,181 | How to check that panel is visible or not in JavaScript? | <p>How do I check that panel is visible or not in JavaScript?. I am using ASP.NET 2.0.</p>
| javascript asp.net | [3, 9] |
885,725 | 885,726 | Interpolate or "tween" between two values (but not animating) | <p>I have a variable that is increasing let's say from 0 to 99.</p>
<p>Then I have a div that I want to move at the same rate of the increasing variable but I only want to define the two ends of the movement (for example moving from top to down, I only define the topmost position and the downmost position). The rest s... | javascript jquery | [3, 5] |
3,480,615 | 3,480,616 | how to keep track of accordion(in masterpage) open status after page navigation? | <p>i am using jquery accordion as a menu in asp.net Masterpage.</p>
<p>This is jquery</p>
<pre><code>$(document).ready(function() {
$(".header").click(function() {
$(this).toggleClass("display");
$(this).next("div .menu_body").slideToggle(500);
});
});
</code></pre>
<p>This is html.</p>
<pre... | javascript jquery asp.net | [3, 5, 9] |
5,934,016 | 5,934,017 | how to move auto generated columns to left side? | <p>i have gridview and i am adding rows at runtime using datatable as datasource.but i want to add delete command field to grid view.I add it and run it.But i got delete button at left position.I want to change that delete button to last of gridview.Means after autogenerated columns.Please help me.Thanks in advance</p... | c# asp.net | [0, 9] |
1,314,815 | 1,314,816 | How to store class hierarchy so I can generate a tree most efficiently? | <pre><code>List<myObject> objects = new List<myObject>
myObject
{
string a;
string b;
}
</code></pre>
<p><code>a</code> holds the name of the <code>objects[i]</code>, and <code>b</code> holds the name of the parent of <code>objects[i]</code>.</p>
<p>How can I serialize this list to a file so I ca... | c# javascript | [0, 3] |
4,190,715 | 4,190,716 | How to remove class which are created dynamically using jQuery | <pre><code>$("#my").click(function() {
$(this.title).remove();
});
</code></pre>
<p>I have work with jQuery dynamically add and remove html content,but how to remove which create dynamically added. </p>
| javascript jquery | [3, 5] |
2,951,092 | 2,951,093 | condition if two checkboxes are checked doesn't work in jquery | <p>I have two radio groups. I wish to put a condition where if pRange is checked (val=pRange) and periodType value is 'one', 'two' or 'three', it displays a div called message. but my js code below doesn't seem to work. Any help is much appreciated.</p>
<pre><code>$("input[name$='periodType']").change(function() {
... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.