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 |
|---|---|---|---|---|---|
4,503,043 | 4,503,044 | Taking action for all controls with an 'ImageUrl' property | <p>I've got the below piece of code, which iterates through the controls on a webpage and where it is an imagebutton, it modifies the imageUrl property. What I'd <em>like</em> it to do, is go through each control and, if that control happens to <em>have</em> an imageUrl property, then do the change. Eg normal images e... | c# asp.net | [0, 9] |
4,921,473 | 4,921,474 | Pass test score results to mysql query | <p>I have been putting a quiz together with jQuiz: <a href="http://www.fatihacet.com/lab/jQuiz/" rel="nofollow">http://www.fatihacet.com/lab/jQuiz/</a></p>
<p>If you take the test you will see it shows your score at the end in the format of 90/100 (it only has four questions).</p>
<p>How would you pass the score the ... | php javascript jquery | [2, 3, 5] |
4,081,525 | 4,081,526 | Send data from my C# application to browser | <p>My question is.. how am I able to send 2 data parameters to the browser within my C# application? I have a command line application which is a server for my game and on a certain message from the client I have to activate JavaScript on the webpage the client is playing on. What do I use to achieve this?</p>
| c# javascript | [0, 3] |
916,503 | 916,504 | Pass Code To Function Be Executed | <p>I am wondering is this possible with Javascript or Jquery?</p>
<p>I would like to pass in the parameters to a function some code which it will then execute once other conditions are met.</p>
| javascript jquery | [3, 5] |
4,417,690 | 4,417,691 | jsDatePick - Using a Selected Date | <p>Using the jsDatePick Full JQuery example i am unable to get the calender to load with a specified date selected, i recieve either undifined message or syntax errors</p>
<p>The full code can be downloaded from <a href="http://javascriptcalendar.org/" rel="nofollow">JsDatePick</a></p>
<p>The Code they supply</p>
<p... | javascript jquery | [3, 5] |
947,883 | 947,884 | jquery how to make sure that the user has selected a value for all select menus on a form | <p>i have a form with multiple select menus i want to make sure on submit that a user selected a value for each select menu how can i do that with jquery ? i tried something like </p>
<pre><code>var form = $('myform');
if($(form ).find('select').length != $(form).find('select:option[selected="selected"]').length ) {
... | javascript jquery | [3, 5] |
2,972,532 | 2,972,533 | jQuery datetime formatter | <p>Is there a working jQuery plugin (or a javascript 'library') for formatting datetimes? I found some, but they were:</p>
<ul>
<li>not working with hours and minutes (the one from datapicker)</li>
<li>not fully functional - can't give you names of months, leading zeroes, etc.</li>
<li>are just a piece of code written... | javascript jquery | [3, 5] |
4,237,340 | 4,237,341 | Why won't my span do a JQuery event click when I click it? | <pre><code>.tablePlayButton {
display: block;
width: 16px;
background: transparent;
margin-top:2px;
margin-right: -10px;
margin-left: 2px;
height:17px;
}
tr:hover .tablePlayButton {
background: url(ton.png) top left no-repeat;
}
tr:hover .tablePlayButton:active {
background-position: bottom left;
}
tr:hover .tablePl... | javascript jquery | [3, 5] |
384,017 | 384,018 | How can I bind events to the appended element? | <p>I tried to show an error message using the jquery effect <code>fadeTo</code> and tried to hide the message by appending a button and using fadeout but doesn't seem to work.</p>
<p>What I did was:</p>
<pre><code>$("#sub_error")
.fadeTo(200, 0.1, function()
{
$("#sub_error")
.html(error.join("<br/&g... | javascript jquery | [3, 5] |
3,151,566 | 3,151,567 | how to change the value in the html tag using jquery | <p>I want to change the param value of the applet tag based on the value from the dropdown.
I am new to jquery .can someone tell me how can i do it using jquery . </p>
<p>My applet code :</p>
<pre><code><applet id="decisiontree" code="com.vaannila.utility.dynamicTreeApplet.class" archive="./appletjars/dynamictree.... | javascript jquery | [3, 5] |
5,016,502 | 5,016,503 | What context is the jQuery.post callback function invoked in? | <p>Lets say for example:</p>
<pre><code>$(".button").click(function() {
$.post("commandrunner.php",
{
param1: 'value',
param2: 'value2',
param3: 'value3'
},
function(data, textStatus) {
$(this).parent().after('<p>button clicked</p>... | javascript jquery | [3, 5] |
3,613,835 | 3,613,836 | Jquery Focus on input field | <p>I have this code working on a page that literally just has 20 input fields each named and id'ed 1 through 20.</p>
<p>If I set the variable id to the next id. E.g current fields id +1 then it will focus on that field. But at the moment when you click out of the current input it will not focus back onto the one you w... | javascript jquery | [3, 5] |
2,612,508 | 2,612,509 | Add dynamic charts using ASP.NET CHART CONTROL, c# | <p>I wanted to add dynamic charts in the webpage. It goes like this...</p>
<p>I get the start and end date from user and draw separate charts for each date bewteen the start and end date.</p>
<p>I get the data from sql database and bind it with the chart like this:</p>
<pre><code> SqlConnection UsageLogConn = new ... | c# asp.net | [0, 9] |
2,221,276 | 2,221,277 | Assorted jQuery questions | <p>1.) What's the difference between these two queries, exactly?</p>
<pre><code>$( "#orderedlist li" )
$( "#orderedlist>li" )
</code></pre>
<p>2.) In the jQuery file itself there is a function that returns the following:</p>
<pre><code>function now(){
return +new Date;
}
</code></pre>
<p>What does that mean?... | javascript jquery | [3, 5] |
106,552 | 106,553 | jquery populating wrong input on back button | <p>I am seeing a bit of a strange issue on webkit browsers where when I click the back button, my search input gets populated with the values which are meant for another input below generate by jQuery slider.</p>
<p>script in the doc ready</p>
<pre><code> $(function() {
$( "#slider-amount" ).slider({
... | javascript jquery | [3, 5] |
621,757 | 621,758 | which solution will be faster on Android? | <p>Which solution will be faster on Android 2.1?</p>
<p>1.</p>
<pre><code>public void foo(String a, String b)
{
String msg = a + ": " + b;
print(msg);
}
</code></pre>
<p>2.</p>
<pre><code>public void foo(String a, String b)
{
StringBuilder sb = new StringBuilder(a.length() + b.length() + 2);
sb.append(a);
sb.a... | java android | [1, 4] |
3,743,996 | 3,743,997 | asynchronous triggers | <p>I have gridview and detailsview controls. The detailsview will be displayed only for the edits of the gridview. My detailsview is in an update panel and it will be displayed on the same page.</p>
<p>I have a button inside the detailsview. When the button is clicked the itemcommand doesn't trigger and moreover, it c... | c# asp.net | [0, 9] |
261,401 | 261,402 | How to call a php function from Javascript | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/3761448/how-to-call-php-function-in-js">how to call php function in JS?</a><br>
<a href="http://stackoverflow.com/questions/221396/javascript-and-php-functions">Javascript and PHP functions</a> </p>
</blockquote... | php javascript | [2, 3] |
812,789 | 812,790 | jquery scroll to an element that has been created on the fly via ajax | <p>I'm current using the solution provided in this answer <a href="http://stackoverflow.com/questions/6677035/jquery-scroll-to-element">jQuery scroll To Element</a> however, the problem I have is that the element I want to scroll to has been inserted into the dom via ajax so the function does not actually work. I'm ass... | javascript jquery | [3, 5] |
246,026 | 246,027 | problem in Labels with asterisk! | <p>I have the following ASP.NET markup:</p>
<pre><code><td align="right" valign="top" style="width: 130px">
Answer: <asp:Label
ID="lblanswer"
runat="server"
CssClass="errorMessage"
ForeColor="Red"
Text="*">
... | c# asp.net | [0, 9] |
2,525,229 | 2,525,230 | Echo PHP variable in Javascript in PHP | <p>This may seem like an odd question, and it may have been answered elsewhere...but frankly I'm not quite sure how to phrase a search any better.</p>
<p>Essentially, I am trying to write an entire HTML and Javascript page in PHP (this way I can easily call and manipulate SQL queries...I know it doesn't make a lot of ... | php javascript | [2, 3] |
151,960 | 151,961 | How to add a pop up using jquery? | <p>My html code:</p>
<pre><code><form id="room-from" method="post">
<input id="room" type="text" name="room" />
<input type="submit" id="save" name="save" />
</form>
</code></pre>
<p>when i press the save button if the room text field is empty a pop up should appear at the center of the screen... | javascript jquery | [3, 5] |
3,662,603 | 3,662,604 | Get css properties from string | <p>I am creating a plugin that allows the user to define the notification by typing something like this.</p>
<pre><code>growl-top-left-300px;
</code></pre>
<p>I was using a split to get rid the width, but this still required me to have quite a few if statements because I user had the following choices</p>
<p>for exa... | javascript jquery | [3, 5] |
3,001,322 | 3,001,323 | Hovering over <a> and displaying images based on value | <p>I am currently displaying pictures when an tag is hover over. I have been able to workout the main problem of displaying the picture. The problem is that it has a glitch when hovering occurs quickly. Is there away to avoid that? Also how can i set a default image to display when page is loaded? <a href="http://jsfi... | javascript jquery | [3, 5] |
2,554,748 | 2,554,749 | How to check value in a string? | <p>I have a value here:</p>
<pre><code>itemList[i].ul.li.div[1].div[2].p
</code></pre>
<p>Which is</p>
<p>Updated <code>n</code> minutes ago, where <code>n</code> can be any number.</p>
<p>How do I check what <code>n</code> is in that string?</p>
<p>So I can add it to an if statement, i.e.</p>
<pre><code>if( n &l... | javascript jquery | [3, 5] |
2,482,081 | 2,482,082 | Cannot make unique javascript object. What's wrong with this code? | <p>I'm trying to make a simple in in-page popup called like this:</p>
<pre><code>var test = new popObject({}); //JSON options
</code></pre>
<p>and I'm having trouble because when I create two in a row, and call show() on the first one, the second one always shows. Both are created, but they aren't separate somehow, d... | javascript jquery | [3, 5] |
5,553,012 | 5,553,013 | passing values to nest activity from diff lists | <p>i have a problem of passing two values in different <code>ArrayList</code>s.</p>
<p>I made a listView and fetched to it list2 elements. when click on the listView item want to pass the selected item and the element in the list1 at the same position. The problem in next code that its pass only the selected item from... | java android | [1, 4] |
4,491,620 | 4,491,621 | jQuery addClass after / Before | <pre><code><div id="box"></div>
<div class="text"></div>?
$(document).ready(function () {
$('#box').click(function () {
$('.text').slideToggle('slow');
});
});
#box{
height:40px;
width:100px;
background:red;
}
#box:hover{background:blue;}
#box:after{
content: "";
height: 10px;
... | javascript jquery | [3, 5] |
5,621,728 | 5,621,729 | Adding Jquery to an new Window "window.open" | <p>what about adding jquery to a page.
Like this:</p>
<ol>
<li>Clicking on a bookmark (which loads the same url into a new window)</li>
<li>Adding Jquery.js</li>
<li>Run some jquery..</li>
</ol>
| javascript jquery | [3, 5] |
5,478,835 | 5,478,836 | How to use jQuery to download zip file which directly ouput from server? | <p>I have a php script that will generate zip file.</p>
<pre><code>header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=random_name.zip");
echo $zipfile->file();
</code></pre>
<p>The filename is random and the server script doesn't even come with a return-file-uri fun... | php javascript jquery | [2, 3, 5] |
3,206,624 | 3,206,625 | what is the operator be overloading here : String8::operator const char*() const | <p>I know it is used to get the containing c string ,similar to <code>std::string.c_str().</code> But how should I use the operator? </p>
<pre><code>//android/frameworks/base/include/utils/String8.h
458 inline String8::operator const char*() const
459 {
460 return mString;
461 }
</code></pre>
| c++ android | [6, 4] |
3,107,180 | 3,107,181 | How to implement unobtrusive javascript with dynamic content generation? | <p>I write a lot of dynamically generated content ( developing under PHP ) and I use jQuery to add extra flexibility and functionality to my projects.</p>
<p>Thing is that it's rather hard to add JavaScript in an unobtrusive manner. Here's an example:</p>
<p>You have to generate a random number of DIV elements each w... | javascript jquery | [3, 5] |
205,436 | 205,437 | Basic Crud Application Using Php , Prototype.js and Scriptaculous.js | <p>I want to develop a web application using php and javascript.</p>
<p>There should be functionality of validations, data searching (from tables), sorting and pagination.</p>
<p>But my application should be built upon php, prototype.js and scriptaculos.js . I don't want to use jquery and similar tools due to virus i... | php javascript | [2, 3] |
1,293,907 | 1,293,908 | Problem with $.getJSON in jquery | <p>My Jquery code</p>
<pre><code>function nalozi() {
var id_skupine = $('#skupina option:selected').val();
$('#artikel option').remove();
//$('#artikel').append('<option value="'+id_skupine+'">'+id_skupine+'</option>');
$.getJSON('artikli.php', {id_skupine:$('#skupina').val()}, function(data) {
... | php jquery | [2, 5] |
2,433,153 | 2,433,154 | javascript one letter function names in jQuery | <p>I noticed that the production version of jquery has one-letter function and variable name and was wondering how they achieve that. are there tools to create a production level javascript file from the one use during development? I am having a hard time figuring out how they make sure there are no mistakes, especiall... | javascript jquery | [3, 5] |
5,524,362 | 5,524,363 | How can i get the Reaction time and Maximum Continuous Frame Drop for an android application usign java or android? | <p>I want to Caulate the reaction ttime and frames per second of a device using an application or java code in the homescreen launcher.</p>
| java android | [1, 4] |
81,474 | 81,475 | Best method to repeat JS function | <p>Sometimes this function can be called too quickly and multiple elements are created but since it uses an ID that's not unique to each instance it the part to fade out and remove the div only applies to the top level element, not all of them. So I end up with a static div tag that isn't fading/removing.</p>
<p>The ... | javascript jquery | [3, 5] |
3,330,087 | 3,330,088 | Connecting to a PHP web server with android | <p>Hi! I'm developing an internet based app in android. What i want to do is send a user id and password to a php web server and return a response from the server. The response could be a text, like "valid" or "invalid", and if the response is "valid" then a new activity should be launched. I don't know how to send dat... | php android | [2, 4] |
196,610 | 196,611 | Retaining select box based values on page refresh | <p>I have one form where in select box in which I have two options "oui" and "non":</p>
<ul>
<li>When "oui" is selected "hello" is displayed</li>
<li>When "non" is selected "not valid" is displayed</li>
</ul>
<p>My problem is when I refresh page after submitting form, "oui" or "non" is properly selected but not the v... | php jquery | [2, 5] |
1,121,605 | 1,121,606 | class magic methods in asp.net c# like php | <p>im know a lot in php, but im newbie in asp.net.</p>
<p>In asp.net exists magic methods in classes like php?(__construct(), __isset() __get() __set() __destruct(), etc)
for example, how i can do this in asp.net c#:</p>
<pre><code>class foo
{
public $name;
public function __contruct($name){
$this-&g... | c# asp.net | [0, 9] |
3,401,320 | 3,401,321 | Google places query limit | <p>I have developed an android app using Google Map API.
When I am using my home Internet from a local provider, the app is running.</p>
<p>But, when I changed my internet to AT&T , I am getting following error:</p>
<blockquote>
<p>Places error-Sorry query limit to google places is reached.</p>
</blockquote>
... | java android | [1, 4] |
1,449,818 | 1,449,819 | datepicker issue with jquery on textbox | <p>I am using "jquery-ui-1.8.12.custom.min.js" file in my project.
I have the following code in aspx page</p>
<p><strong>script</strong></p>
<pre><code><script type="text/javascript" >
$(function() {
$('#<%=txtDate.ClientID%>').datepicker();
});
</script>
</code></pre>
<p><stro... | c# jquery asp.net | [0, 5, 9] |
1,080,863 | 1,080,864 | Python and C++ code comparison | <p>I have the following <code>python</code> code</p>
<pre><code>for m,n in [(-1,1),(-1,0),(-1,-1)] if 0<=i+m<b and 0<=j+n<l and image[i+m][j+n] == '0']
</code></pre>
<p><code>image</code> is array defined and <code>i</code> and <code>j</code> is also defined.</p>
<p>Following is how I have converted this... | c++ python | [6, 7] |
2,442,863 | 2,442,864 | Audio trigger in Javascript | <p>I've coded up a quiz using javascript, I want to add sound effects when a user answers a question either correctly or incorrectly. Sounds will be different for correct and incorrect answers. Im just starting javascript and need this for a class project so any help would be greatly appreciated. I can upload the html ... | javascript jquery | [3, 5] |
4,868,575 | 4,868,576 | Create popup box success message with jquery and PHP | <p>How to create a popup box success message with jquery and PHP after submitted without ajax?
I usually using only javascript,</p>
<pre><code><?php
$query = //my query insert query
if($query){
echo "<script>alert('success submitted');</script>"; // my popup box success message
}
?>
</... | php jquery | [2, 5] |
3,798,309 | 3,798,310 | Auto click when user scrolls to the end of the page | <p>I'm trying to create an infinite scroll feature on my site but it isn't working.
My code:</p>
<pre><code>var post = {}
post.load_moreBtn = $('#home_load_more');
if($(window).scrollTop() + $(window).height() == $(document).height()) {
post.load_moreBtn.trigger('click');
}
post.load_moreBtn.on('click', function ... | javascript jquery | [3, 5] |
1,664,668 | 1,664,669 | Jquery / Javascript form help? | <p>I have implemented this solution..</p>
<p><a href="http://tutorialzine.com/2010/10/ajaxed-coming-soon-page/" rel="nofollow">http://tutorialzine.com/2010/10/ajaxed-coming-soon-page/</a></p>
<p>However, on submit, I would like the form to disappear and the "thank you" text displayed. Currently, the form remains and ... | javascript jquery | [3, 5] |
479,327 | 479,328 | jQuery: Foreach element href? | <p>The title sounds confusing.. but im sure this is possible!</p>
<p>I have one button, <code>(id='downloadAll')</code> and many <code><a href="..." class="link"></a></code> on my page. What i want to do, for the purpose of finding out how to do this.. is to do something logic like this.</p>
<pre><code>va... | javascript jquery | [3, 5] |
2,352,497 | 2,352,498 | How can I parse this home-made string-based data format? | <p>I need to iterate through a dataset of IDs and labels. I got some part of the code right, but I need some assistance. </p>
<pre><code>// 1. String
var string = '1:answer1,2:answer2,3:answer3,4:answer4,5:answer5,'
// 2. Split to array
var string = string.split(",");
// 3. EACH
$.each(string, function(key, val) {... | javascript jquery | [3, 5] |
4,121,226 | 4,121,227 | How to detect javascript file download complete in the client machine by simple javascript | <p>i hard that it is always better to move all script at the bottom of the page and as a result page load very fast. so today i did that and found a problem that when javascript files and my javascript function was loading then i click on a button which was attached with jquery function. the result i got page reload. w... | javascript jquery | [3, 5] |
30,766 | 30,767 | Run function on specific key press | <p>I have tried to program a jquery script that does a fadeIn() on an element identified as myDiv when I press the x key. </p>
<pre><code>function showKeyCode(e) {
//alert( "keyCode for the key pressed: " + e.keyCode + "\n" );
$if(e.keycode == 88){$("#myDiv").fadeIn();
}
</code></pre>
<p>Points to take note of.... | javascript jquery | [3, 5] |
1,062,970 | 1,062,971 | ASP.NET & JQuery | Show jQuery LightBox on Submit | <p>Currently I have a small form that uses a <code>asp:linkbutton</code> to submit and send out an email.</p>
<p>I want to instead display a lightbox saying "Thank you for your submission" when the user clicks the form rather than a full post back.</p>
<p>What is the best solution?</p>
| asp.net jquery | [9, 5] |
2,749,968 | 2,749,969 | HtmlEncode List<string> values | <p>I have cell values saved in List like this</p>
<pre><code>public List<string> Cell { get; set; }
</code></pre>
<p>I want do htmlEncode to each value of this list.
can anyone help me with this??</p>
| c# asp.net | [0, 9] |
39,240 | 39,241 | toggle the title of a button | <p>I have an HTML button and it shows another div instead of another div.</p>
<p>All I need is to toggle the text for the button: </p>
<pre><code><input id="blueButton" type="button" value="+ Add a new Team" onclick="
$('#blueButton').prop('value', 'Hide');
$('#teams').toggle('slow');
$('#add_block').toggle('s... | javascript jquery | [3, 5] |
5,048,517 | 5,048,518 | Randomize setInterval ( How to rewrite same random after random interval) | <p>I'd like to know how to achieve:
generate a random number after a random number of time. And reuse it.</p>
<pre><code>function doSomething(){
// ... do something.....
}
var rand = 300; // initial rand time
i = setinterval(function(){
doSomething();
rand = Math.round(Math.random()*(3000-500))+500; ... | javascript jquery | [3, 5] |
4,125,774 | 4,125,775 | Required textbox in javascript | <p>I have this code </p>
<pre><code>$(document).ready(function () {
$("#<%= chkSpecialIntegration.ClientID %>").click(function () {
if (this.checked) {
document.getElementById('<%=ddlTypeSpecialIntegration.ClientID %>').style.visibility = 'visible'; }
});
});
</co... | c# javascript jquery | [0, 3, 5] |
1,764,637 | 1,764,638 | What is jQuery(document) vs. $(document) | <p>I don't get what jQuery(document) is here. I thought you always used $(document)</p>
<p>see here in his examples: <a href="http://sorgalla.com/projects/jcarousel/" rel="nofollow">http://sorgalla.com/projects/jcarousel/</a></p>
| javascript jquery | [3, 5] |
2,828,889 | 2,828,890 | PHP extension library accessing PHP superglobals | <p>I have written a PHP extension library in C++. I am writing the extension for PHP 5.x ad above.</p>
<p>I need to access PHP superglobals in my C++ code. Does anyone know how to do this?. A code snippet or pointer (no pun inteded) to a similar resource (no pun ...) would be greatly appreciated.</p>
| php c++ | [2, 6] |
507,717 | 507,718 | How can I detect when a file download has completed in ASP.NET? | <p>I have a popup window that displays "Please wait while your file is being downloaded". This popup also executes the code below to start the file download. How can I close the popup window once the file download has completed? I need some way to detect that the file download has completed so I can call self.close(... | c# javascript asp.net | [0, 3, 9] |
2,900,605 | 2,900,606 | How to remember that the item is purchased or not in android app billing service? | <p>In my app I have done the below code in the dungeons sample project to check whether the item is purchased or not and changing my text of a list item :</p>
<pre><code>@Override
public void onPurchaseStateChange(PurchaseState purchaseState,
String itemId, int quantity, long purchaseTime,
... | java android | [1, 4] |
5,973,259 | 5,973,260 | I have a C#/ASP solution that uses datatables to output to gridviews. Links are not working | <p>I have a C#/ASP solution that uses datatables to output to gridviews. I am using VS2010. All works well when I run it on my local machine. I can sort, and choose rows. But I have pushed it out to the server and it does nothing when it gets to the page with the gridview on it. The sorts and rows are blue and clickabl... | c# asp.net | [0, 9] |
3,967,331 | 3,967,332 | how to include javascript into web app projet in visual studio? | <p>Anyone knows how to include javascript file as project's resource for aspx.cs files under different folders to use?thanks very much</p>
| asp.net javascript | [9, 3] |
3,452,467 | 3,452,468 | How do I handle screen orientation changes when a dialog is open? | <p>I have an android app which is already handling changes for orientation, i.e. there is a <code>android:configChanges="orientation"</code> in the manifest and an <code>onConfigurationChange()</code> handler in the activity that switches to the appropriate layout and preps it. I have a landscape / portrait version of ... | java android | [1, 4] |
2,414,200 | 2,414,201 | How to access resource strings from enum's ToString in Android? | <p>In my app, I have a Spinner being filled from an enum:</p>
<pre><code>ArrayAdapter<myEnum> enumAdapter = new ArrayAdapter<Stroke> (parentActivity.getApplicationContext(), R.layout.simple_spinner_item, myEnum.values());
enumAdapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item);
enumSpinn... | java android | [1, 4] |
2,214,003 | 2,214,004 | Popup window issue | <p>I have a question regarding the popup window.</p>
<p>I have</p>
<pre><code> ajax callback funtion....
var popup = window.open("popup.html", "popup","width=1000, height=600, scrollbars=yes");
if (window.focus) {popup.focus()}
popup.document.write("<table id='popupData'><tr><td>... | javascript jquery | [3, 5] |
5,838,997 | 5,838,998 | Get Specific Time in Specific TIme Zone | <p>I am trying to get a calendar object with the a specific time tomorrow in a specific time zone (not the time zone the device is in). In the example below I want to get 12:15am in Central time zone tomorrow not matter where in the world the device is located.</p>
<p>First question, is this the best way to do this?<... | java android | [1, 4] |
5,786,236 | 5,786,237 | jquery event is not working properly | <p>i have a Invoice form and a jquery function.
In Invoice if i enter the quantity greater then the available quantity then i have to alert the user.</p>
<p>My problem is: Let the max quantity is 5, if i input data as 7 (single digit>max avail quantity) then my code is working fine. But if i enter two digigist number ... | javascript jquery | [3, 5] |
3,487,546 | 3,487,547 | How to set :hover on a li(A) when hover an other li(B) | <p>I am daily an iOS developer, but i'm trying to give a help for a friend in php and jquery, since I didn't do Jquery for a lonnng time, im asking you guys a little help :)</p>
<p>So let's say I got this, for a unique ID</p>
<blockquote>
<p>< li class="listname" value="'.$id.'"></p>
</blockquote>
<p>When I go ... | php javascript jquery | [2, 3, 5] |
933,501 | 933,502 | Accessing a JSON var wthout using item.item = string | <p>Here is the array</p>
<pre><code>var weekdayColor = {
sunday : 'red', // sunday
monday : 'blue', // monday
tuesday: 'white', // tuesday
wednesday: 'black',
thursday: 'green',
friday: 'yellow',
saturday: 'orange'
}
</code></pr... | javascript jquery | [3, 5] |
5,611,617 | 5,611,618 | Re-create activity when service is started again | <p>In my MainActivity i have boolean method which checks if Airplane mode is ON. Example below:</p>
<pre><code>public static boolean isAirplaneModeOn(Context context) {
return android.provider.Settings.System.getInt
(context.getContentResolver(), android.provider.Settings.System.AIRPLANE_MODE_ON, 0) !... | java android | [1, 4] |
4,373,027 | 4,373,028 | In a javascript case statement should I be putting multiple breaks or just one break when there's an if else? | <p>I have two questions related to the code:</p>
<p>For my code should I have a break statement after each part of the if - else or just one at the end? Also when I define my object. Is it standard practice to be using uppercase for the fields such as Pk, Param, Table, Success?</p>
<pre><code> case "Exam":
... | javascript jquery | [3, 5] |
4,065,625 | 4,065,626 | How to know when a user has left the page and refreshed the page | <p>I want to make an AJAX call before the user leaves the page (so basically before leaving the page and before refreshing the page)?</p>
<p>How can this be done. I was trying to search something with jQuery but didnt get anything. </p>
<p>I tried to use the following code -</p>
<pre><code>window.onbeforeunload(func... | javascript jquery | [3, 5] |
694,818 | 694,819 | Principle of getting new letters from my Google Account on device | <p>I need information about getting new letters from my gmail mailbox: i turn on synchronization on my device, and when my mailbox get a new letter gmail client on my device will respond to it and show me notification. How does it work? Gmail client sends requests every second/minute or there is mean to respond to this... | java android | [1, 4] |
3,442,841 | 3,442,842 | jquery - write a function to allow for a callback? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3888488/javascript-callback-programming">Javascript callback programming?</a> </p>
</blockquote>
<p>A lot of jquery functions allow for a callback. Most are in a syntax like:</p>
<pre><code>$('.selector').slide... | javascript jquery | [3, 5] |
5,450,565 | 5,450,566 | How can I select an element's parent row in a table? | <p>I have the following function:</p>
<pre><code>$("#example tbody").click(function(event) {
$(oTable.fnSettings().aoData).each(function (){
$(this.nTr).removeClass('row_selected');
});
$(event.target.parentNode).addClass('row_selected');
});
</code></pre>
<p>When a user clicks... | javascript jquery | [3, 5] |
4,338,012 | 4,338,013 | how to integrate javascript in iPhone application? | <p>i am new in iphone application and i want to integrate the javascript so would you please give some information about how to implement javascript? </p>
| javascript iphone | [3, 8] |
1,683,772 | 1,683,773 | Call Web control's JavaScript Function From Button Click | <p>I've got a Web control called Fou.ascx and it has a java script function called DoFou(message).
In my web Page I want to click a button, which is on the page and not part of the web control, and have it execute DoFou and pass in the message parameter.
The web page has an instance of the web control Fou.</p>
<p>How ... | javascript asp.net | [3, 9] |
3,039,671 | 3,039,672 | The left-hand side of an assignment must be a variable error in eclipse | <pre><code>public class CustomBlockFactory
{
private static final Logger logger =
Logger.getLogger(TableListControllerFactory.class.getName());
public static AndroidTourController getController(TourControllerParameters
paramTourControllerParameters, TourSequencer paramTourSequencer)
{
((CustomBlock)paramTourControll... | java android | [1, 4] |
701,403 | 701,404 | assign columns value on rowdatabound in gridview | <p>I am facing a problem in grid view, basically what i am trying to achieve is below:
I have a grid view in which my first column is a link button, i have to put a condition where value from my 2nd column is taken and is input to a c# method for poulating a value which i need to assign into my first column.</p>
<p>I ... | c# asp.net | [0, 9] |
3,489,276 | 3,489,277 | Javascript: Arrays | <p>For some reason my values are not being stored in the array:</p>
<pre><code>var req = new Array();
$.get('./ajax/get_cat_info.php?cid=' +cid, function(data, textStatus) {
var count = 0;
$.each(data, function(key, val) {
$('#' + key).show();
if(val == 1) {
req[count] = key;
... | javascript jquery | [3, 5] |
1,955,270 | 1,955,271 | Streamlining code | <p>I have a question about streamlining my jquery code. I have a list of images and each has a unique id and the click event displays the larger image and its info. Is there a way to do this with a loop similar to php's foreach loop?</p>
<pre><code>$(function() {
$('img#cl_1').click(function() {
$('div#left').... | javascript jquery | [3, 5] |
455,345 | 455,346 | Javascript disable container, but enable inputs in it | <p>I have the following HTML:</p>
<pre><code><div class="section_rows">
<div class="body-row crew">
<input type="text" class="col1" name="cast_person" value="{{cast.person }}"/>
<input type="text" class="col2" name="cast_character" value="{{ cast.character }}"/>
<... | javascript jquery | [3, 5] |
347,268 | 347,269 | Understanding "this" keyword | <p><a href="https://github.com/jquery/jquery/commit/6e066a4db72ff6b0d12dd8a43faec0a80e4a1fed#L0L31">In this commit</a> there is a change I cannot explain</p>
<pre><code>deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
</code></pre>
<p>becomes</p>
<pre><code>deferred.done( arguments ).fai... | javascript jquery | [3, 5] |
809,472 | 809,473 | How to assign the javascript variable value to php variable | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1917576/how-to-pass-javascript-variables-to-php">How to pass JavaScript variables to PHP?</a> </p>
</blockquote>
<p>I want to assign the javascript variable to php variable </p>
<pre><code>$msg = "<script>... | php javascript | [2, 3] |
5,497,194 | 5,497,195 | global variables in a loaded page | <p>I have my index page which uses a script to load another page into a div </p>
<pre><code> $('#TransportPlanning').click(function() {
mainpage = $('#FloatMain')
mainpage.load('create_diary.php')
});
</code></pre>
<p>The page loads ok into my div, but I want to share php variables from one page to... | php jquery | [2, 5] |
2,970,152 | 2,970,153 | Get all multiple listbox values | <p>I have a multiple selection listbox in which I insert items using javascript. At a certain point I need to get the values of all entries (both selected and unselected).
I'm currently using this code:</p>
<pre><code><form method="post" action="?page=test" name="something">
<select name="thelist[]" id="selOr... | php javascript | [2, 3] |
3,025,252 | 3,025,253 | Registration in app right way | <p>I am want to do registration in my app. So i have made all requests to my web service.
I now when user is registered. </p>
<p>Now i need to save somewhere that he is registered that don't give him registration form again. </p>
<p>How to do this ? </p>
<p>Do i need to save somewhere in my sqlite database and ev... | java android | [1, 4] |
101,387 | 101,388 | How do I store a jquery object on a HTML element property? | <p>I have a <code><select></code> form element where I create multiple <code><option></code> children based on looping through a jQuery array of objects.</p>
<p>I want to store each jQuery associated with an <code><option></code> on the <code><option></code> itself, I guess as a property. So th... | javascript jquery | [3, 5] |
1,465,689 | 1,465,690 | Chnage asp.net button text permanently using Javascript | <p>Hi hope this is an easy one. So help me.
i have asp.net button. based upon the input values given to javascript function I want to change the asp.net button value permanently. Even if the page post backs, it should not affect.</p>
| javascript asp.net | [3, 9] |
2,010,838 | 2,010,839 | Hyperlink inside aspx.cs page | <p>Instead of the following code coming up with messages -</p>
<p><code>public partial class mylogin1 : System.Web.UI.Page</code>
{
<code>protected void Page_Load(object sender, EventArgs e)</code>
{
<code>if (User.Identity.IsAuthenticated)</code>
{
<code>if (User.IsInRole("Principal... | c# asp.net | [0, 9] |
5,059,404 | 5,059,405 | Show more/less without stripping Html tags in JavaScript/jQuery | <p>I want to implement readmore/less feature. i.e I will be having html content and I am going to show first few characters from that content and there will be a read more link in front of it. I am currently using this code :</p>
<pre><code> var txtToHide= input.substring(length);
var textToShow= input.substrin... | c# php javascript asp.net jquery | [0, 2, 3, 9, 5] |
1,044,664 | 1,044,665 | ArrayList<String> Object assignment | <p>I have two separate objects <code>ArrayList<String></code> in two separate packages Top and top10. I assign the value of top10 to Top in my activity. And now if I remove an element from Top it also gets removed from top10. I don't know why is this happening? I feel totally dumbfounded. Is there something I don... | java android | [1, 4] |
4,738,715 | 4,738,716 | How to get content from a drop down menu to text field? | <p>I am a new person in this PHP and Javascript. I have a drop down menu as follows. Want to get the content or value to a text field and retain the value after the page refreshs? How will do this?</p>
<pre><code><select name="animal" style="width: 350px;">
<option value="">Please Select</option>
... | php javascript | [2, 3] |
3,267,149 | 3,267,150 | Select a value from dropdown depending on the value from the Sql table | <p>In the add page i have a dropdown which has got two listitems M and F.I have also got a table which store the value of the dropdown . In the edit page i have got the same dropdown with the same listitems,and i would like to have that value of the dropdown (listitem)selected depending on the value stored in the sql ... | c# asp.net | [0, 9] |
65,353 | 65,354 | J-query J-player is not auto playing | <p>I have used jPlayer in my music site .The actual songs data in dynamic.It is been adding on user checks from 10 listed songs on every page.jPlayer is getting added with the playlist but not autoplaying.when i'm clicking manually only it is getting palyed.
I tried with playItem= 0,playItem= 1,playItem= 2...etc.,</p>
... | php javascript jquery | [2, 3, 5] |
252,824 | 252,825 | Put current time date in hidden field | <p>I would like to put the current time/date into a hidden text field with the format 19:19:09 Sep 27, 2011</p>
<pre><code> <input type="hidden" name="current_date" value="" readonly="readonly">
</code></pre>
<p>Thank you</p>
| php javascript | [2, 3] |
2,366,918 | 2,366,919 | Android display an image based on a calculation | <p>I have an EditText box where the user inputs a number and 3 TextViews that display the result of some calculations. Instead of showing "2" as the result, I would like to show a specific picture based on the result. i.e. "1"=pic1 "2"=pic2.... </p>
| java android | [1, 4] |
2,128,336 | 2,128,337 | jquery insertion method | <p>Have a look on this code:</p>
<pre><code> $('li').add('<p id="new">new paragraph</p>')
.css('background-color', 'red');
</code></pre>
<p>Although the new paragraph has been created and its background color changed, it still does not appear on the page. To place it on the page, we could add one of the ... | javascript jquery | [3, 5] |
4,631,559 | 4,631,560 | Is learning C# a better solution for me than learning extensive python frameworks? | <p>I've learned (atleast the basics) of python but it seems frustrating to have to learn every framework in the world to be able to do anything reasonable. Looking at C#, now it could be my ignorance but it seems alot of the tools are included in the whole package (GUI, Networking).</p>
<p>This makes me want to switch... | c# python | [0, 7] |
5,910,390 | 5,910,391 | jQuery - get the index of a element with a certain class | <p>I have a list like this one:</p>
<pre><code><li> .... </li>
<li> .... </li>
<li> .... </li>
<li class="active"> .... </li>
<li> .... </li>
</code></pre>
<p>I want to find out the index (number in the list) of the item with the "active" class element.
in t... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.