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 |
|---|---|---|---|---|---|
767,906 | 767,907 | How to clear the text when clicked on any other controls | <p>the below js script works fine but there is small problem and the problem is that:</p>
<p>i have a textbox with multiline and when the user clicks on it and it does clear the textbox but the problem is; when the user click on Save button (asp.net control button) to save the textbox value and i want that to ignore o... | javascript asp.net | [3, 9] |
1,847,307 | 1,847,308 | How to collect data from table cells | <p>How to collect data from inputs (inputs are in table which has id=tbl_bbmd and unknown number of rows , like on picture)
<img src="http://i.stack.imgur.com/SxI9O.jpg" alt="enter image description here"></p>
<p>I need to collect data from inputs cells and concaneta them. How to iterate through this table and collec... | javascript jquery | [3, 5] |
4,544,474 | 4,544,475 | Check value fields that if the same empty value in last field? | <p>I have several field that just get number, I want if user typed be identical value in two or more field empty value the last field that is identical by jQuery.keyup?</p>
<p>For Example:</p>
<pre><code><input name="num[]" value="11111">
<input name="num[]" value="33333">
<input name="num[]" value="11... | javascript jquery | [3, 5] |
345,399 | 345,400 | How can I use javascript to capture a click and send the page to a link? | <p>I have the following code:</p>
<pre><code><li><a id="logout"
class="access button red"
href="/MyAccount/Access/Logout"
data-href="/MyAccount/Access/Logout"
title="Logout"><span class="smaller">LOGOUT</span></a></li>
</code></pre>
... | javascript jquery | [3, 5] |
5,142,002 | 5,142,003 | Assign JavaScript values to C# Variable | <p>I have a Javascript function that pulls down variables, like so:</p>
<pre><code> function OnClientCloseSecure(oWnd, args) {
var arg = args.get_argument();
if (arg) {
var ResultCode = arg.ResultCode;
var PONumber = arg.PONumber;
}
}
</code></pre>
<p>I need to assign ... | c# asp.net | [0, 9] |
3,212,121 | 3,212,122 | Android 4.0 WebView.loadURL oddity | <p>I have an Android app which includes an activity called <a href="https://github.com/ldo/ti5x_android/blob/master/src/Help.java" rel="nofollow">Help</a> This uses a WebView to display the help content in HTML format. Thie activity can be invoked two ways: either passing a URL, or direct text content. The only URL tha... | java android | [1, 4] |
143,307 | 143,308 | What BroadcastReceiver should I use when the device is shutting down? | <p>I have been developing some Android application and I need to catch some events: when the device is rebooting and when device is shutting down. I know which BroadcastReceiver I should use for the first task but I don't know anything the second one. Please, tell me about it. Thank you.</p>
| java android | [1, 4] |
3,438,850 | 3,438,851 | How to trigger a button as clicked using jquery or jscript? | <p>Is there a way to trigger a hidden button on an html markup page using jquery or jscript?</p>
<p>How would I do that if possible?</p>
<p>Thank you,</p>
<p>James</p>
| asp.net javascript jquery | [9, 3, 5] |
3,036,856 | 3,036,857 | javascript/jQuery: Clicking anywhere to trigger a function but on a particular button | <p>I want to trigger a function by clicking anywhere except an asp.net button.</p>
<pre><code><script>
$(document).ready(function () {
$(document).click(function () {
Test();
});
});
</code></pre>
<p>and</p>
<pre><code><asp:Button ID="btnSave" runat="server" Text="SaveCha... | javascript jquery asp.net | [3, 5, 9] |
5,052,706 | 5,052,707 | jQuery find li with class until | <p>This might be tricky.</p>
<p>Php will generate:</p>
<pre><code><li>element</li>
<li>element</li>
<li class="alt">element</li>
<li class="alt">element</li>
<li class="alt">element</li>
<li>element</li>
<li>element</li>
<li class=... | php jquery | [2, 5] |
302,815 | 302,816 | Use title in fancybox to open up another link in a separate window | <p>All,
I've got the following code to display a group of instagram photos and then I open them on my site with fancybox:</p>
<pre><code>$output .= '<script type="text/javascript">
jQuery(document).ready(function($) {
$(".fancybox").fancybox();
});
</script>';
$output .= '<div id="bd-instagram">... | php jquery | [2, 5] |
2,222,291 | 2,222,292 | jquery jrating plugin extra url parameter | <p>Hey I'm using a jquery plugin called jRating, it's pretty cool you can check it out here: </p>
<p><a href="http://www.myjqueryplugins.com/jRating" rel="nofollow">http://www.myjqueryplugins.com/jRating</a></p>
<p>The issue I'm having is... I have multiple ratings on 1 page and thought it would be super convenient t... | javascript jquery | [3, 5] |
434,973 | 434,974 | How do I check when nested $.getJSON requests have finished running? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3709597/wait-until-all-jquery-ajax-request-are-done">Wait until all jquery ajax request are done?</a><br>
<a href="http://stackoverflow.com/questions/8726046/multiple-ajax-calls-inside-a-each-function-then-do-some... | javascript jquery | [3, 5] |
4,628,800 | 4,628,801 | disable paste (control V) in IE for an input text box | <p>Is there a way to disable the paste (control V) into a text box using javascript/jquery for IE? </p>
<p>I do not have access to the markup unfortunately or I would use onPaste="return false". Can it be attached with Jquery? </p>
<p>If it cannot be disabled at least is there a way to detect it so that when the past... | javascript jquery | [3, 5] |
4,426,594 | 4,426,595 | can I call a PHP method to run asynchronously? | <p>When a user views a certain profile page I need to send the end user an email but would like to do this asynchronously if at all possible. Can this be done with PHP? I really don't want to wait for the PHP function to complete before rendering the rest of the page. It should be seamless to the user.</p>
<p>Or is ... | php jquery | [2, 5] |
1,064,521 | 1,064,522 | Data in string format sorting as per duration using javascript | <p>I have certain data in the form of number of lines containing string. Each line contains date. I want to sort the data for certain duration. e.g. from 12th DEC 2012 to 23rd March 2013. This is supposed to done using javascript and jquery.
I have done following code.</p>
<pre><code>for (TempDate = strFrom; TempDate... | javascript jquery | [3, 5] |
3,215,210 | 3,215,211 | stop a jquery animation loop (function and nested) | <p>How would i stop a jquery animation from loading upon user interaction?</p>
<pre><code> $('#jqNav li a').click(function(){
if($(this).parent().is(".nav1")){ $('.landing .main .nav ul').css({ "background-position" : "0 -50px" });}
else if($(this).parent().is(".nav2")) { $('.landing .main .nav ul').css({... | javascript jquery | [3, 5] |
4,056,411 | 4,056,412 | I want to change background color after clicking using javascript | <p>Following is my code:</p>
<pre><code><table border="0" align="center" cellpadding="0" cellspacing="0" class="grid_table">
<tr class="grid_caption"><td class="grid_caption">Customer Name</td></tr>
<? if(count($arrResult) > 0) { ?>
<? foreach($arrResult as $ro... | php javascript jquery | [2, 3, 5] |
1,534,573 | 1,534,574 | Legal use of creating a new object on a global namespace | <p>Would this be a legal use of creating an object on a global namespace? My goal is to create 1 global namespace for this application. Also how would I alias MYNYTE.app? Could I do something like this with out polluting the Global namespace: <strong>var b = MYNYTE.app;</strong></p>
<pre><code>if( ! MYNYTE ) MYNYTE =... | javascript jquery | [3, 5] |
2,090,881 | 2,090,882 | save js files as php | <p>Let's say I've to include the following line with my website header:</p>
<pre><code><script type="text/javascript" language="javascript" src="file.js"></script>
</code></pre>
<p>Now anyone easily can visit <code>my--web--site/file.js</code> and view its source.
So, I wonder if there any idea I can rena... | php javascript | [2, 3] |
1,331,275 | 1,331,276 | applying a var to an if statement jquery | <p>Need to apply a var to a statement if its conditions are met, this syntax isn't throwing errors but its not working.</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
var action_is_post = false;
//stuff here
$(this).ready(function () {
if ($("#stepDesc0").is(".cu... | javascript jquery | [3, 5] |
5,407,108 | 5,407,109 | Click events on overlapping items | <p>I have </p>
<ul>
<li>table row with click event</li>
<li>button with click event, that button is on table row</li>
</ul>
<p>and I have problem. When I hit button, row click event execute too, but I don't want this behavior. I want only button click execute, without row click.</p>
| javascript jquery | [3, 5] |
410,860 | 410,861 | Multiple jQuery .ready() - appending to existing event handler instead of creating another one | <p>Say that I have a HTML that links to two scripts:</p>
<pre><code>...
<script type="text/javascript" src="general.js"></script>
<script type="text/javascript" src="[pagename]_specific.js"></script>
...
</code></pre>
<p>Each of the two scripts has it's own jQuery's <code>.ready()</code> defin... | javascript jquery | [3, 5] |
5,555,153 | 5,555,154 | Can't find the bug in this jQuery code | <p>I have the following code, which, upon the press of a certain button, should validate for an email address (this functionality works already), and then should try to post my form, and if it gets back "Error", it should show an error. I think I'm mixing up PHP and JS somewhere.</p>
<pre><code>$('#recoverSub').live('... | php jquery | [2, 5] |
4,962,296 | 4,962,297 | How is the "jQuery" var a function and an object? | <p>For example, when you use <code>jQuery('someDiv');</code>, it's a function, but you can also use <code>jQuery.ajax(...);</code>.</p>
<p>How is it possible?</p>
| javascript jquery | [3, 5] |
3,783,583 | 3,783,584 | Highlight selected list item only on long click? | <p>I'm using this to make a list item visible selected:</p>
<pre><code><item android:state_activated="true" android:drawable="@android:color/holo_blue_light" />
</code></pre>
<p>But I want the item only to be highlighted if a longclick is performed (so to say: only during the context menu bar is displayed above... | java android | [1, 4] |
524,918 | 524,919 | how to insert text on image dynamically using java script or jquery | <p>using jquery or javascript , how to insert textbox data display on image,</p>
<p>Thank you</p>
| javascript jquery | [3, 5] |
2,846,537 | 2,846,538 | jQuery .trigger('click') | <p>I am having trouble getting this to work. I would like to trigger the second link. If anyone can help that would be much appreciated.</p>
<pre><code> $(".links").click(function () {
alert($(this));
})
function someFunction(){
$(".links").trigger('click');
}
someFunction();
... | javascript jquery | [3, 5] |
1,148,943 | 1,148,944 | iPhone coords and onclick with JavaScript | <p>I have a couple of js queries.</p>
<p>Onclick isn't working on iPhones although its fine elsewhere.</p>
<p>JavaScript:</p>
<pre><code>document.onclick = function(){newTarg(speedS)};
</code></pre>
<p>Any ideas on way round this, thinking maybe onchange but not sure how best to implement?</p>
<p>Also I am trying ... | javascript iphone | [3, 8] |
3,083,508 | 3,083,509 | How to avoid Logged User change after refreshing page? | <p>I am using FormsAuthentication.SetAuthCookie Method in my application.after Client login i am setting <strong>FormsAuthentication.SetAuthCookie(txtUserNo.Text.Trim(), false);</strong></p>
<p>and in web.config file i set </p>
<pre><code> <authentication mode="Forms">
<forms loginUrl="PasswordEn... | c# asp.net | [0, 9] |
3,701,763 | 3,701,764 | How to download jQuery js plugin? | <p>I am confused about js file of jQuery which one i have downloaded just now.</p>
<p>downloaded a zipped folder contains a lot of folder and files inside it. How can i know which one js file exactly is for particular plugin?</p>
<p>Lets say, i have to downloaded for <strong><em>Dialog</em></strong> and i <a href="ht... | javascript jquery | [3, 5] |
1,936,925 | 1,936,926 | Easy way to bind dynamic elements without having to recall functions jquery | <p>I currently have a page in which users can drag content around, resize it, etc. </p>
<p>The basic structure looks like the following:</p>
<pre><code>$('.element').on().resizable().draggable();
</code></pre>
<p>When called at the beginning of the document load it adds bind events, resizable and draggable. Now the ... | javascript jquery | [3, 5] |
3,000,304 | 3,000,305 | jquery/javascript - parsing url to see if you're on a certain page | <p>So say you have some navigation, and you don't/can't use server side code to choose which link is "current". How can you use the first part of the url (as in after the first slash but before any next slash) i.e. (example.com/dashboard/view/16) would return dashboard. Of course there's not always a second slash, it c... | javascript jquery | [3, 5] |
79,400 | 79,401 | How to get the object of Iframe at clientside(javascript) which placed inside Table in asp.net | <p>I have iframe inside the column of <code><asp:table></code>. I want to get the object of an iframe in javascript. I tried like this in <code><body></code> section:</p>
<pre><code><script type="text/javascript">
function resizeIframe()
{
var height = document.documentElement.clientH... | javascript asp.net | [3, 9] |
4,436,703 | 4,436,704 | How can i get accelerometer values from onSensorChanged to class ThreatForLoopA? | <p>For example. I´m working with accelerometer and i want values x,y,z in another class ThreatForLoopA.</p>
<pre><code>@Override
public void onSensorChanged(int sensor, float[] values) {
// TODO Auto-generated method stub
x = values[0];
y = values[1];
z = values[2];
ThreadForLoopA threadA = new T... | java android | [1, 4] |
4,734,100 | 4,734,101 | Why click event is not propagating? | <p>Attached a Header with a (kinda) close button (in red) moc-up. When I click on the close button (the area that overlaps with a header) - nothing happens. Can you please advice on the correct solution regarding the subject?</p>
<p><strong>HTML:</strong></p>
<pre><code><div id="my_body" style="background:rgba(0, ... | javascript jquery | [3, 5] |
5,713,935 | 5,713,936 | Convert date format in javascript | <p>I have an input field that on page load looks like this:</p>
<pre><code><input type="input" id="start_date" name="start_date" value="May 12, 2012"/>
</code></pre>
<p>I want the following to happen:</p>
<ul>
<li>When a user clicks on the field to enter a date, the format changes to YYYY-MM-DD. (2012-05-12)</... | javascript jquery | [3, 5] |
2,702,537 | 2,702,538 | Can't field be assigned memory? | <p>I am new to Java. I have runtime error at the line containing <code>myImageViews[0].v1 = new ImageView(context)</code>. Is something wrong there?</p>
<pre><code>class MyImageViews
{
ImageView v1;
ImageView v2;
}
MyImageViews[] myImageViews;
protected class MyLayout extends RelativeLayout {
public MyLa... | java android | [1, 4] |
1,486,650 | 1,486,651 | Accessing html controls within an #include html file, from server side c# | <p>Following code is an example, I just want to know if this can be done.</p>
<p>I have an test.aspx file with this server side include tag;</p>
<pre><code><!--#include file="listOfCountries.htm" -->
</code></pre>
<p>Within listOfCountries.htm, I have:</p>
<pre><code><html>
<div>
<select id="co... | c# asp.net | [0, 9] |
2,976,939 | 2,976,940 | Images will not upload on web server but ok on local | <p>I have some images on server i want to upload it on another server i make code to upload all images on server but it is OK to upload on local but i didn't know what is wrong in that it can't be upload on server </p>
<pre><code> try
{
byte[] content;
HttpWebRequest request = (Htt... | c# asp.net | [0, 9] |
5,588,690 | 5,588,691 | get the value from one master to another | <p>iam using a dropdownlist in one master page. i want to get the dropdownlist value in session and i want to use it in another master page.</p>
<p>how to do this.</p>
| c# asp.net | [0, 9] |
1,970,690 | 1,970,691 | randomly replace a substring in a block of text in javascript or jquery | <p>how would i randomly replace a string in a text using javascript or jquery?</p>
<p>given: <code><p>foo bar foo baz foo</p></code></p>
<p>I want to just randomly replace 1 occurrence of 'foo' with 'buz', so possible results would be:</p>
<pre><code><p>buz bar foo baz foo</p>
<p>foo ba... | javascript jquery | [3, 5] |
3,761,503 | 3,761,504 | NullRefrenceException was unhandled by user code | <p>Code below is placed in page_Load. How I should handle this to bypass UrlReferrer when you enter page directly first time and there is no referrer?
What I am missing here?</p>
<pre><code> if (HttpContext.Current.Request.UrlReferrer.AbsoluteUri != null)
{
urlReferer = HttpContext.Current.Request.UrlR... | c# asp.net | [0, 9] |
1,737,678 | 1,737,679 | Advice on jquery resize plugins | <p>I am using jquery sliding tabs. The tab container will ajust to the height of the inactive content but the only problem is that the autoHeight jquery function does not adjust to active expanding content. I tried <a href="http://benalman.com/projects/jquery-resize-plugin/" rel="nofollow">THIS</a> plugin but no luck. ... | javascript jquery | [3, 5] |
2,894,580 | 2,894,581 | Performing click event on a disabled element? Javascript jQuery | <p>I would like to perform the click event of a element:</p>
<pre><code>jQuery('input#submit').click(function() {
if ( jQuery('input#submit').attr("disabled") ) {
alert('SUP');
}
});
</code></pre>
<p>However this will not work as the element is required to be enabled for the click even to be executed.</p>
... | javascript jquery | [3, 5] |
928,732 | 928,733 | Filling Up DropDown in Page Load | <p>I'm trying to fill up my dropdown menu by a series of queries that I make, automatically whenever the page loads. Whenever I choose a value in the dropdown and I press a button, it goes back to the first index, so I'd like to know if there is anyway to prevent this problem:</p>
<pre><code>protected void Page_Load(o... | c# asp.net | [0, 9] |
5,572,635 | 5,572,636 | Refresh page when directory content changes | <p>I am working on an online jQuery slideshow for showing the latest scores for a local sport community. The slides are images, made from a Powerpoint presentation, which are automatically synced with a directory on my Centos6 server using the Windows program Autover.</p>
<p>For a good user experience it would be grea... | php javascript | [2, 3] |
4,448,137 | 4,448,138 | Do I need to learn Javascript before learning JQuery? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/668642/is-it-a-good-idea-to-learn-javascript-before-learning-jquery">Is it a good idea to learn JavaScript before learning jQuery?</a> </p>
</blockquote>
<p>I want to learn html5 in order to write some games. I ... | javascript jquery | [3, 5] |
5,997,552 | 5,997,553 | Best way to block on a socket for data | <p>What is the efficient way of blocking on the socket for data after opening it.The method i used is to call read on input stream (this is a blocking call that waits till some data written to this socket).</p>
<pre><code>//Socket creation
SocketForCommunication = new Socket();
InetSocketAddress sAddr = new InetSocket... | java android | [1, 4] |
4,100,838 | 4,100,839 | Help me convert this 2d array code from PHP to C# | <p>Please help me re-write this code sample in PHP to C#:</p>
<pre><code>$stringArray = array();
$stringArray['field1'] = 'value1';
$stringArray['field2'] = 'value2';
$stringArray['field3'] = 'value3';
foreach ($stringArray as $key => $value)
{
echo $key . ': ' . $value;
echo "\r\n";
}
</code></pre>
| c# php | [0, 2] |
4,554,644 | 4,554,645 | ASP.Net global error handler for all... but a few | <p>i want to implement a global error handler for my asp.net website.</p>
<p>I usually implement this in the global.asax by logging the error and redirecting to an error page.</p>
<p>So far so good, but in this case we have calls to asmx webservices from Jquery, and, sorry to say, Errors thrown in the asmx webservice... | c# asp.net | [0, 9] |
2,505,951 | 2,505,952 | Impossible to hide a DIV in ASP.NET MVC | <p>I have some trouble to hide some div in my application, this code is used in jQuery UI tabs.</p>
<p>In the controller :</p>
<pre><code>public ActionResult MyAction()
{
return View("MyView", model);
}
</code></pre>
<p>In the view "MyView", I have this :</p>
<pre><code><script type="text/javascript">
$(d... | jquery asp.net | [5, 9] |
4,832,391 | 4,832,392 | Re-running JQuery's selectors and actions after a programmatic insertion of new content | <p>Fellow JQuery hackers, hello :-)</p>
<p>Suppose you have the following code:</p>
<pre><code>$('.links').click(function(){
//Do something
}
</code></pre>
<p>And I then insert dynamic content into a DIV's HTML content (Say, for example, after clicking a button, the new content gets inserted). This content has t... | javascript jquery | [3, 5] |
4,938,467 | 4,938,468 | check the horizontal scroll bar reached at end of webview | <p>i am working with a webview that is inside 2d scroll view so whenever i tried to get computescrollrange() ,computescrolloffset() etc so these methods are not returning any value so i want to use the javascript to detect that horizontal scroll bar reached at the end of webview
so please suggest me the way how to... | javascript jquery | [3, 5] |
4,756,427 | 4,756,428 | How to get a server-side variable into JavaScript | <p>I want to pass a value to this JavaScript from the database (using datareader in asp.net(C#)).</p>
<p>The script is from <a href="http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm</a></p>
<p>I need to set a pass value in the ... | asp.net javascript | [9, 3] |
1,396,265 | 1,396,266 | .load() is not pulling in content from html file | <p>I have been using the jQuery Docs and I am trying to set up a situation where the content of a modal is filled from a separate html file. All files are on the same domain, same folder. So far, the modal will launch on click, but no content is being pulled in from the html file. I'm using Zurb reveal for modal.</p>
... | javascript jquery | [3, 5] |
2,349,014 | 2,349,015 | Internal page refresh with JavaScript | <p>I have a form and everytime some performs a onchange()-event, the page should run my javascript code again (but a refresh of the page using a new url request is not an option).</p>
<p>Any idea? I know this must be very simple.</p>
<p>my javascript-code:</p>
<pre><code> $(document).ready(function(){
formObjec... | javascript jquery | [3, 5] |
3,754,596 | 3,754,597 | Which C# practices should be avoided in C++? | <p>I'm currently teaching myself C++. I'm very proficient at C#, and was wondering which common practices in C# can lead to difficulties in C++, and what a C++ programmer should do instead.</p>
| c# c++ | [0, 6] |
5,715,262 | 5,715,263 | Getting value of p tag with jquery | <p>Im using jquery to try to take the value text in a p tag. </p>
<p>I set up an alert for testing to give me the value and it says "current stack is [object Object]" </p>
<p>My html for this is</p>
<pre><code><div id="player9">
<div class="player_stats">
<p class="player_name"></p>... | javascript jquery | [3, 5] |
1,969,340 | 1,969,341 | How to prevent HREF (which calls JS function) from being triggered when "Enter" key is pressed? | <p>I am facing a problem.</p>
<p>I have a href which calls a javascript function "delete_element_on_page" when i click on it.</p>
<p>So when i click the HREF with my mouse, everything is fine and the function gets called.</p>
<p>However, because the HREF has focus, if keep hitting my enter key, the function gets cal... | javascript jquery | [3, 5] |
1,863,087 | 1,863,088 | Errors attempting to publish a project from Visual Studio Express 2008 | <p>I am attempting to publish an application to a local intranet site, and am getting the following errors:-</p>
<pre><code>Unable to add 'ControlPanel.aspx' to the Web site. 550 ControlPanel.aspx: Access is denied.
Unable to add 'Default.aspx' to the Web site. 550 Default.aspx: Access is denied.
.
.
.
Unable to a... | c# asp.net | [0, 9] |
1,644,294 | 1,644,295 | Can't seem to get RequiredFieldValidator in nested user control to fire | <p>I have a user control (form) inside a user control (grid) with a Validator in the form. A snippet from the code is below</p>
<pre><code><asp:tablerow>
<asp:tablecell HorizontalAlign="center" columnspan="2" >
<asp:ValidationSummary runat="server" id="ValidationSummary1" />
</asp... | c# asp.net | [0, 9] |
1,109,186 | 1,109,187 | JQuery: Append/After difficulties | <p>I have a simple input line and want to append whatever has been entered each time somebody pushes the OK button. Sounds simple so far, still I am unable to get it working
HTML:</p>
<pre><code><p>
<input name="todo" id="todo" type="text" value="Set Me To Value" size="32" maxlength="30" />
<p id="stat... | javascript jquery | [3, 5] |
3,400,918 | 3,400,919 | Python and executing php files? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2931061/start-local-php-script-w-local-python-script">Start local PHP script w/ local Python script</a> </p>
</blockquote>
<p>How do you execute a php file and then view the output of it?</p>
<pre><code>os.syst... | php python | [2, 7] |
1,035,183 | 1,035,184 | Using variable to add and remove a form input field with jQuery | <p>I am trying to add a hidden input field to a form when a span with class="checkbox" is clicked, and remove that same field when span with checkmark is clicked.</p>
<p>I am able to add the input, but <strong>I cannot remove it</strong>. </p>
<p>My HTML:</p>
<pre><code><span title="Here's My Title" class="wishli... | javascript jquery | [3, 5] |
194,471 | 194,472 | Execute jquery animate only one time | <p>I've the following function:</p>
<pre><code>$('.link1').click(function(){
$("#div2").slideUp(function(){$("#div1").slideToggle();});
$('html, body').animate({scrollTop: '600px'}, 800);
});
</code></pre>
<p>It toggles a div and scroll the page down. The problem is that everytime the user toggles the page sc... | javascript jquery | [3, 5] |
5,340,234 | 5,340,235 | Add .live or .on to jquery function | <p>I have some JavaScript that pulls how many items I have in my cart and places it in span.cartTotal for better styling. I need the code to work so it pulls the information instantly and I don't have to refresh my page to see the update. I assume the code would require either jquery .live or .on to be added. Any help... | javascript jquery | [3, 5] |
3,102,328 | 3,102,329 | Android java code to change displayed spinner | <p>Is there a way in android java to change the displayed spinner item to another item in the spinner list?</p>
<p>If I have a spinner that has three items in its arrary can I change the value displayed to the second or third item in the arrary? I want to create a button that will change all my spinner displayed valu... | java android | [1, 4] |
4,890,819 | 4,890,820 | load an event on a finished redirected page after an AJAX call | <p>How do I load an event after a redirected page has finished loading, following an ajax call?</p>
<p>For the sake of simplicity, here is some sample code:</p>
<pre><code>$.ajax({
type: "POST",
url: "some_page.php",
success: function() {
window.location.href="new_page.php"; // redirect to this page
... | php javascript jquery | [2, 3, 5] |
33,499 | 33,500 | Why can't JQuery load my resource? | <p>I have the following script in an page called ajax.aspx page:</p>
<pre><code> <script type="text/javascript">
$(document).ready(function () {
var nameFoundMessage = $('#nameFoundMessage');
var nameInput = $('#name');
nameFoundMessage.hide();
nameInput.blur(function () {
... | c# jquery asp.net | [0, 5, 9] |
4,509,370 | 4,509,371 | Error when trying to connect to webservice using kSOAP | <p>i encounter this error sentence in the DDMS:</p>
<p><strong>10-18 06:25:46.181: ERROR/Error(password)(246): expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG @2:7 in java.io.InputStreamReader@43d370e0)</strong></p>
<p>i am trying to access a function in the webservice that... | android python | [4, 7] |
4,308,556 | 4,308,557 | WebView and Cookies on Android | <p>I have an application on appspot that works fine through regular browser, however when used through Android WebView, it cannot set and read cookies. I am not trying to get cookies "outside" this web application BTW, once the URL is visited by WebView, all processing, ids, etc. can stay there, all I need is session m... | java android | [1, 4] |
4,245,890 | 4,245,891 | Best free book/tutorial for learning ASP.net | <p>I am an experienced C++ programmer and also have experience with C#. I am interested in web-designing/development. I want a book which teaches ASP.net without teaching C# first. In other words, it dives directly into ASP.net using C# (not VB.net). What is the best free book of that sort? </p>
| c# asp.net | [0, 9] |
848,648 | 848,649 | Server side reload vs. Client Side reload? ( Very similar - Server Side does not send content ) | <p>Progam control is at the server and I need to do a relaod. I can use a php command:</p>
<pre><code>echo '<meta http-equiv="refresh" content="0">'
</code></pre>
<p>or I can pass control back to the client with a reload flag set and use a javascript command</p>
<pre><code>window.location.reload();
</code></p... | php javascript | [2, 3] |
4,560,670 | 4,560,671 | Scriptlet is not working in head tag | <p>I want to add version number to CSS files for production environment not to force user every time press Ctrl+F5 to download new CSS files after new version is deployed in prod server as the old version is cached in browser.</p>
<p>I'm adding build number as querystring param like this.</p>
<pre><code>link href="St... | c# asp.net | [0, 9] |
5,313,649 | 5,313,650 | a small corrrection needed in jquery code snippet. . along with a small query | <p>there is this fiddle which is giving me not the desired output</p>
<p><a href="http://jsfiddle.net/8FXFE/1/" rel="nofollow">http://jsfiddle.net/8FXFE/1/</a></p>
<p>The jquery code</p>
<pre><code>$(document).ready(function () {
console.log("parsed");
$("input[name='txtNumber']").change(function () {
console.lo... | javascript jquery | [3, 5] |
1,858,595 | 1,858,596 | Submit value of dynamically created checkboxes, with ajax | <p>I've got about twenty checkboxes that are dynamically created with the following pattern:</p>
<pre><code><input type="checkbox" id="cb01" name="vehicle" />
</code></pre>
<p>I give it an ID of cb + index and a name attribute that corresponds to a database entry.</p>
<p>So over to my question: </p>
<p>Whats ... | javascript jquery | [3, 5] |
5,668,367 | 5,668,368 | Popup form using asp.net and javascript | <p>Hi I am new for web development. I have an application which consists of a button. On clicking the button a popup window should appear which consists of 2 fields and a button. On clicking button in Popup window 2 fields in popup has to be saved in to database. How to implement this using <strong>ASP.NET and javascri... | javascript asp.net | [3, 9] |
4,488,077 | 4,488,078 | contains is object has no method? | <p>Im trying to find weather there is some character in my string in JS </p>
<p>like that :</p>
<pre><code>$('.upld_btn').bind("click", function () {
changeApiFormat($('#embbed').val());
});
if ($('#embbed.contains("?vid=")')) {
....
....
}
</code></pre>
<p>I've got an error in my google chrome console :</p>... | javascript jquery | [3, 5] |
4,689,746 | 4,689,747 | Event binding issue in jquery | <pre><code> <div id="parent">
<div id="children">
</div>
</div>
</code></pre>
<p>And if we bind both parent and children with same events like :</p>
<pre><code> $("#parent").live({ mouseenter : Infocus , mouseleave : Outfocus });
$("#children").live({ mouseenter : Infocus ,... | javascript jquery | [3, 5] |
2,189,646 | 2,189,647 | how to dynamically assign numbers to several ids? | <p>This seem like long way of doing things, is it possible to dynamically assign numbers to ids?</p>
<pre><code> $(function () {
$('#Button1').click(function(){
$('#RegularExpressionValidator1, #RegularExpressionValidator2, #RequiredFieldValidator1, #RequiredFieldValidator2, #RequiredFieldVali... | javascript jquery | [3, 5] |
4,351,850 | 4,351,851 | Mouse in-out events for Javascript | <p>question from a beginner..</p>
<p>I want to show/hide an inner div when the mouse enter/out from the parent div. I tried first with <code>onmouseover</code>, <code>onmouseout</code> events, but the problem is that <code>onmouseover</code> keep firing while the mouse over the div, and I want it to fire one time only... | javascript jquery asp.net | [3, 5, 9] |
2,394,678 | 2,394,679 | It keeps displaying undefined for file name | <p>I trying to display the name of the file after the user has uploaded it. The file uploads successfully but in the javascript it keeps displaying the message below:</p>
<blockquote>
<p>The file (undefined) was uploaded successfully!</p>
</blockquote>
<p>It keeps displaying undefined when it should display the fil... | javascript jquery | [3, 5] |
2,169,326 | 2,169,327 | Toggling of radio button only works once (refresh)? | <p>I am trying to toggle a radio box selection included in cells table.</p>
<p>The toggling works only once per radio button. </p>
<p>After, all radio buttons are disabled but my HTML code seems to be correct; the attribute <code>checked="checked"</code> is present.</p>
<p>Why is this not working?</p>
<p>Here is th... | javascript jquery | [3, 5] |
4,100,930 | 4,100,931 | Identify the a tag | <p>Need to identify each of these 'a' tag in div and bind an onclick event.I have binded the same.I need to append some text below the clicked 'a' tag.But when i tried with my code it binds to all the 'a' tag in the div.How can i specify the 'a' tag which i have clicked.I can make changes to the content in div using jq... | javascript jquery | [3, 5] |
5,303,411 | 5,303,412 | Is this possible to convert a million digit number to 1000 digit number by a certain mathematical operation in C++ or C#? | <p>I am working on project and ran into an issue.
Now I want to know is there anyway to reduce digits of a big number? For example convert a million digit number to 1000 digit number.</p>
| c# c++ | [0, 6] |
5,912,500 | 5,912,501 | treeview with more than one parent | <p>im using treeview in asp.net</p>
<p>treeview like</p>
<pre><code>*parent
@child1
.child2
*parent
.child
</code></pre>
<p>if i click child2 after postback the alignment which is in above should not change</p>
<p>but parent1 should be collapsed</p>
<p>if i click child then parent node should be collap... | c# asp.net | [0, 9] |
4,287,221 | 4,287,222 | C# Hashtable vs c++ hash_map | <p>I'm comparing the following code in C++ and C# and C# (Mono 2.4) seems to be faster. Is there anything wrong with the C++ code?</p>
<pre><code> #include <map>
#include <string>
#include <iostream>
#include <ext/hash_map>
#include <boost/any.hpp>
int main()
{
//std::map<lo... | c# c++ | [0, 6] |
4,057,661 | 4,057,662 | Why isn't jQuery handling id and selector passed? | <p>I have an id <code>"#post0"</code></p>
<p>and a class <code>"reply"</code></p>
<p>When I do:</p>
<pre><code> var rep = ".reply";
$(rep).toggle(400);
</code></pre>
<p>All components with class "reply" toggle. </p>
<p>However when I do:</p>
<pre><code>var rep = "#post0.reply";
$(rep).toggle(400);
</code></pre>
... | javascript jquery | [3, 5] |
1,656,717 | 1,656,718 | automatic link creation using php without breaking the html tags | <p>i want to convert text links in my content page into active links using php. i tried every possible script out there, they all fine but the problem that they convert links in img src tag. they convert links everywhere and break the html code.</p>
<p>i find a good script that do what i want exactly but it is in java... | php javascript | [2, 3] |
5,363,008 | 5,363,009 | Video View does not show video in Android 4.0 | <p>I tried to show a .3gp format video using Video View. It works well in Android 2.3, however, when I tested it in Android 4.0, i can only hear the audio, but the video does not appear. </p>
<p>This is my java code:</p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIn... | java android | [1, 4] |
5,768,195 | 5,768,196 | Java include snippet in different class files? | <p>I wrote a listener that does some actions onKeyDown basically I need to include it in all my activities but I'm new to Java and don't know the best way to do it, I can of course just copy paste the code on every class but it would be a pain to keep every one updated.</p>
<pre><code>@Override
public boolean onKeyDow... | java android | [1, 4] |
84,655 | 84,656 | How to get IP Address of User using .net? | <p>In my web application i have registration form, when user register i want to get his ip address of his system, how can i get using asp.net. help me please.</p>
| c# asp.net | [0, 9] |
2,333,816 | 2,333,817 | Converting/formatting date object | <p>I am working on a jquery calendar script.
In the script, selecting a row gives a date object as callback.</p>
<pre><code>select: function(start, end, allDay) {
$("#datepicker_add").val(start);
$("#datepicker_add_end").val(end);
calendar.fullCalendar... | javascript jquery | [3, 5] |
5,326,940 | 5,326,941 | button can not be resolved | <p>This is my starting activity. I'm trying to get this button to work but it's been giving me this error.</p>
<p>Line 15 button can not be resolved.</p>
<pre><code> package com.synamegames.giveaway;
import android.view.View.OnClickListener;
import android.app.Activity;
import android.os.Bundle;
import android.vi... | java android | [1, 4] |
820,694 | 820,695 | How can I rewrite this JavaScript to PHP? | <p>Following are some individual JavaScript statements from a block of java-script code. I want to convert this JavaScript code in PHP so that I can execute it server-side. In the following snippet, there are some operators used, such as <code>>></code>, <code>>>></code>, <code>~</code>, <code>^</code>, ... | php javascript | [2, 3] |
5,272,372 | 5,272,373 | How to print div inner html | <p>I have aspx page and some html in div control. I am trying to print the html, after print the page i got url in the page bottom and title of the page on the uppaer side. but I want to print only div inner html. please help.</p>
| javascript asp.net | [3, 9] |
2,184,537 | 2,184,538 | Default parameters from Python in a C++ defined function? | <p>I've embedded Python in my C++ application, and I've created several C functions which can be called from Python.</p>
<p>To get the arguments, I'm currently doing:</p>
<pre><code>if (!PyArg_ParseTuple(args, "zk", &param1, &param2))
return NULL;
</code></pre>
<p>However, I want <code>param2</code> to be ... | c++ python | [6, 7] |
691,859 | 691,860 | Sorting Arrays alphabeticly | <p>How can I sort an array in Java/Android alphabetically?
After that I want to provide the ordered array to a <code>ListView</code>.</p>
| java android | [1, 4] |
84,327 | 84,328 | How to better store arrays of data for use in a JavaScript app | <p>I have an interactive JavaScript app that runs through arrays of data. I don't want users to be able to easily view the array content, so I have stored the arrays in PHP and pass them to the JavaScript app with AJAX and JSON. I had thought about using a database, but since these files only have to read (not written)... | php javascript | [2, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.