Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
1,889,778 | 1,889,779 | move event handler with jQuery | <p>I have an issue which is driving me crazy and as a last resort I am placing a question here.</p>
<p>I want to move the onclick event from an element to the onfocus event of the same element and I am using the following code:</p>
<pre><code>$("#theElement").bind("focus", {}, $("#theElement").data("events").click);
... | javascript jquery | [3, 5] |
3,105,577 | 3,105,578 | $.post() jQuery and PHP | <p>Here is a piece of code : </p>
<pre><code>$username="anant";
$name="ana";
echo $username;
echo $name;
</code></pre>
<p>Now if using jquery $.post() i want to retrieve $username and $name ,how would I do it ?</p>
<p>Thanks!</p>
| php jquery | [2, 5] |
2,094,130 | 2,094,131 | execute javascript when a usercontrol become visible | <p>I have a usercontrol wich is visible=false when the page is loaded.
Then, it becomes visible=true.
I want some javascript to be executed when this usercontrol is set to visible=true in the code-behind.
the only solution i found is to use ScriptManager.RegisterStartupScript in the </p>
<p>usercontrol's code behind.
... | asp.net jquery | [9, 5] |
4,235,752 | 4,235,753 | how to stop form submit in when in a ajax call | <p>i can only modify the code in the ajax call
a ajax call made when i click the submit in form named $('#form1')</p>
<pre><code>$('#form1').submit(function(){
$.ajax({
url:'some.php',
type:'POST',
data:somedata,
success:function(msg){
if(!msg){
//i wanna to stop form1 submit here,how to do that? yo... | javascript jquery | [3, 5] |
4,516,019 | 4,516,020 | I need to have 2 symbols after dot | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-money-in-javascript">How can I format numbers as money in JavaScript?</a><br>
<a href="http://stackoverflow.com/questions/6134039/format-number-to-always-show-2-decimal-places">F... | php javascript | [2, 3] |
3,449,868 | 3,449,869 | How to get duration of audio file in java script? | <p>Is there is any way to get duration of audio file in java script ?</p>
| javascript asp.net | [3, 9] |
3,679,308 | 3,679,309 | filtering on gridview control VS-2008 | <p>This is what I am working with to get back to the web dev world</p>
<p>ASP.Net with VS2008</p>
<p>Subsonic as Data Access Layer</p>
<p>SqlServer DB</p>
<p>Home Project description:
I have a student registration system. I have a web page which should display the student records. </p>
<p>At present I have a grid... | c# asp.net | [0, 9] |
2,751,509 | 2,751,510 | How to navigate to another screen using a TextView link - Android | <p>I followed the instructions in the following post to make active links in a textview:</p>
<p><a href="http://stackoverflow.com/questions/2734270/how-do-i-make-links-in-a-textview-clickable">How do I make links in a TextView clickable?</a></p>
<p>What I'd like to figure it out is if there's a way to alter the "a hr... | java android | [1, 4] |
5,896,783 | 5,896,784 | How to add name value pair to existing query string | <p>i need to add new name ,value pair to existing query string when the user click on some button.</p>
<p>i'm using jquery for client side operations.</p>
<p>any idea..?</p>
<p>thank in advance!</p>
| javascript jquery | [3, 5] |
5,722,762 | 5,722,763 | scope in javascript (why at the scope of $.post() method array is local?) | <pre><code>externalCSSContents = [];
function getExternalCSSContents(){
href = document.styleSheets[0].href;
$.post(href, function(result){
externalCSSContents.push(result);
alert(externalCSSContents.length); // 1
});
}
getExternalCSSContents();
alert(externalCSSContent... | javascript jquery | [3, 5] |
5,286,300 | 5,286,301 | want to create a loop in jquery based on a value | <pre><code> var cnt = document.getElementById('counter');
//row1 is incremental and based on some value from
// database this value will increase. want to create a loop Here
$(".row1").mouseenter(function(){
$(this).addClass("answer_hover_row");
document.getElementById('row1').style.visibility = "visible";
... | javascript jquery | [3, 5] |
1,710,566 | 1,710,567 | Inheritance in Jquery Plugin | <p>I'm trying to create a jQuery plugin and having problems with selecting the DOM.</p>
<p>for example, when I initialize the plugin (ex. $('#test').customplugin();</p>
<pre><code>this.each(function() {
// Var
var $this = $(this);
$this.hide();
var thisOpts = $( this + ' option');
</code></pre>
<p>$this.hide(); work... | javascript jquery | [3, 5] |
2,994,492 | 2,994,493 | How to disable asp.net after click? | <p>I want to disable a server side asp.net button control after click for some seconds & then fire a server side event. I am trying to use setTimeout but if I use setTimeout the server side event is never fired. Can anybody help?</p>
<pre><code> <script type="text/javascript">
function disableBtn(btnId... | javascript asp.net | [3, 9] |
4,339,724 | 4,339,725 | logging into a website using java? | <p>I am working on an Android application. I just started on android development and wanted to know if some how it is possible to log into a website using java. Is there is library or API for achieving something like that?</p>
<p>thanks</p>
| java android | [1, 4] |
3,676,282 | 3,676,283 | How to check whether the jQuery file is loaded on the page or not? | <p>How do I check whether jQuery is loaded in the page or not? I have to run a jQuery script which has a jQuery library link, but when I use the code I want to make sure to load that file only if the page does not have any jQuery file, otherwise use that file. Any suggestions?</p>
| javascript jquery | [3, 5] |
1,931,917 | 1,931,918 | check for file existence on the web using url passed | <p>Friends:</p>
<p>I found these 2 pieces of code to test for file existence over the web.
The JQuery version is very popular all over and the second one is simple javascript.
I just grabbed a file from yahoo.com --
<a href="http://l.yimg.com/cv/mntl/tra/11q2/img_48880236.jpg" rel="nofollow">http://l.yimg... | javascript jquery | [3, 5] |
2,420,054 | 2,420,055 | onfocus="this.blur();" problem | <pre><code>// I am trying to apply an "onfocus="this.blur();"" so as to remove the dotted border lines around pics that are being clicked-on
// the effect should be applied to all thumb-nail links/a-tags within a div..
// sudo code (where I am):
$(".box a").focus( // so as to effect only a tags within divs of c... | asp.net javascript jquery | [9, 3, 5] |
2,751,201 | 2,751,202 | how to get a data from a DB using MYSQL and store it in javascript Array | <p>Is there any possible way to get a data from a DB using MYSQL and store it in javascript Array.</p>
<p>Thanks in Advance</p>
| php javascript | [2, 3] |
3,368,996 | 3,368,997 | Looping through DOM and show hide elements | <p>I have a group of records which are split into segements of 5 each wrapped around a div with an id and class.</p>
<p>e.g.</p>
<pre><code><div id="myid" class="myclass">
<p>record1</p>
<p>record2</p>
</div>
</code></pre>
<p>The first set of 5 records are displayed and the re... | javascript jquery | [3, 5] |
5,326,935 | 5,326,936 | Focus Does not move on Enter Key in asp.net | <p>Hi Experts
I have a web Page i want to move Focus on Enter key on Next Control But it does not work
TextBox1 to Text2 focus move Properly But not in Text3 and Text4 and Further.
follow in my aspx Code</p>
<pre><code><asp:TextBox ID="TextBox1" runat="server" />
<asp:TextBox ID="TextBox2" runat="server" />... | jquery asp.net | [5, 9] |
4,975,053 | 4,975,054 | problem while encoding string to XML | <p>i am gettting problem while encoding string R.F.< 1 into Xml</p>
<p>i am using <code>node.innerxml=string;</code></p>
<p>it shows exeption name cannot start with 1 or hexadecimal value 0x33.....</p>
<p>pls help me to solve this</p>
| c# asp.net | [0, 9] |
4,121,677 | 4,121,678 | JQuery: Iterating through table rows for 2 specific cells | <p>I am a total JQuery newbie and I have been researching this for the past 2 days but my brain is now fried.</p>
<p>Here is what I have:</p>
<p>A table that has a certain amount of rows (like an online store's cart)</p>
<p>I do not want the last row (since that contains cart total) and I do not want the first row (... | javascript jquery | [3, 5] |
757,895 | 757,896 | Importing an external Application to run in Visual Studio | <p>I'm trying to run this application my asp.net site in visual studio:</p>
<p><a href="http://www.ezreserve.com/Appt.aspx?action=overview#" rel="nofollow">http://www.ezreserve.com/Appt.aspx?action=overview#</a></p>
<p>but I'm not quite sure how to do it. Is this even possible? I'd also like to modify some of the ASP... | c# asp.net | [0, 9] |
378,430 | 378,431 | Dynamically add/remove function while calling one single function using parameters | <p>I have a function called f0 having some parameters. When i call it, it calls some other functions with some parameters(for example the same parameters).
The problem is, can i add somehow these functions dynamically?</p>
<p>A simple solution would be something like this:</p>
<pre><code>var callf1=true;
var callf2=t... | javascript jquery | [3, 5] |
5,473,817 | 5,473,818 | How to modify/recreate Html.fromHtml()? | <p>I am not that good to understand all the possibility of Java, especially if it's not my code.</p>
<p>So, <a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/text/Html.java#Html.fromHtml%28java.lang.String%29" rel="nofollow">http://grepcode.com/file/reposito... | java android | [1, 4] |
3,962,738 | 3,962,739 | How do I extract a background= value from a string containing HTML in JavaScript? | <p>I have a string containing HTML loaded from another page, how do I extract the background property from it's body tag using Javascript?</p>
<p>The body tag in the string looks like this:</p>
<pre><code><body onload='init();' background='storage/images/jsb_background.jpg' link='#000000' vlink='#000000' alink='#0... | javascript jquery | [3, 5] |
5,528,984 | 5,528,985 | jQuery ScrollTo Skips and is Notchy | <p>I have an issue with jQuery ScrollTo.<br>
It skips and there is a lag when applied to my page.</p>
<p><a href="http://jsfiddle.net/UyH56/8/" rel="nofollow">Here's a link</a> to the jsFiddle example that works and <a href="http://tinyurl.com/d5smxls" rel="nofollow">here</a> is the same code applied to my page that d... | javascript jquery | [3, 5] |
5,718,472 | 5,718,473 | JQuery/JavaScript plugin for highlight text | <p>I am looking for a jquery plugin for multiple highlighting text in a element. I found very popular plugin for that: <a href="http://bartaz.github.com/sandbox.js/jquery.highlight.html">http://bartaz.github.com/sandbox.js/jquery.highlight.html</a> and also many others. </p>
<p>They work fine, but in the case when I ... | javascript jquery | [3, 5] |
76,546 | 76,547 | echo javascript funtion with php variables as arguments | <p>In test.php:</p>
<pre><code><?php
$result = "test";
echo '<script type="text/javascript">parent.showThanksDiv(\"<?php echo $result;?>\");</script>';
?>
</code></pre>
<p>and in test.html</p>
<pre><code> <script type="text/javascript">
function showThanksDiv(text){
document.get... | php javascript | [2, 3] |
1,035,755 | 1,035,756 | Trying to write a jQuery function that shows content and hides the rest | <p>Im trying to write a complicated (for me) function on my website. I had 3 rows, each containing an image. On hover I want this image background position to change, thats it. When the user then clicks this image, I want the parent div to expand in height, and the image to expand in height as well as change the backgr... | javascript jquery | [3, 5] |
84,991 | 84,992 | php gets stringified object as null | <p>I'm trying to pass a some information to a php page with jquery ajax. I really can't understand why the php page keeps echoing back that the strinified JSON i'm sending is null</p>
<pre><code>//php
if ($type == "new" || $type == "update"){
$new_address = json_decode($_REQUEST['address'], true);
echo json_en... | php javascript jquery | [2, 3, 5] |
2,531,724 | 2,531,725 | Jquery help repeated ajax call | <p>When I submit my form, a repeated ajax call is made it never stop.</p>
<p>Here is my Jquery for the ajax call on form submit:</p>
<pre><code>$('form#formgo').submit(function(e) {
e.preventDefault();
$('#comparecontent').empty().html(
'<p style="text-align:center;">' +
'<img src=".... | javascript jquery | [3, 5] |
5,243,215 | 5,243,216 | Javascript RegExp Object | <p>I use this function below to quickly find an item in a table<br>
My problem is that this function only searches for text that contains the search string in the given table<br>
I have been trying my best to modify it to match only the text that begins with the search string but not working.</p>
<pre><code>function s... | javascript jquery | [3, 5] |
918,042 | 918,043 | Writing in files ASP.NET C# and NOT locking them afterwards | <p>I am getting this error: The process cannot access the file (...) because it is being used by another process.
I have tried to use
<code>File.WriteAllText</code>; </p>
<pre><code>StreamWriter sw = new StreamWriter(myfilepath);
sw.Write(mystring);
sw.Close();
sw.Dispo... | c# asp.net | [0, 9] |
2,686,236 | 2,686,237 | Just a simple thing about windowsTitle change background in Java | <p>i wan't to do a simple thing, my background's windowTitle must change in my application. But how i can access to my background's windowTitle ? </p>
<p>My style.xml :</p>
<pre><code><resources>
<style name="CustomWindowTitleBackground">
<item name="android:background">@drawable/fond</item&g... | java android | [1, 4] |
1,022,601 | 1,022,602 | UI design suggestions for Display and Switching between Multiple Layouts | <p>I'm trying to create an app that offers the user 3 different kinds of layouts.
The only common portion for all 3 would be the TextView (located at the top) that would display information specific to the currently displayed layout and 3 buttons to select the required layouts.</p>
<p>Is there some way we can create t... | java android | [1, 4] |
4,008,283 | 4,008,284 | how to declare variable in javascript | <pre><code>$("#btnsub").click(function () {
var add = $("#txtname").val();
var obj;
var geo = new google.maps.Geocoder;
geo.geocode({ 'address': add }, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
obj = results[0].geometry.location;
obj = c... | javascript jquery | [3, 5] |
5,209,365 | 5,209,366 | Why use Async HTTP post Android | <p>I currently have this running in my app. The use of this is for users to send me simple messages. A dialog is opened where they can type then when they click send button I want another dialog opened saying processing and finally one opened saying thanks if successful.</p>
<p>Is the only / best way to do this by usi... | java android | [1, 4] |
3,908,109 | 3,908,110 | do not refresh page upon form submit | <p>I am trying to submit this form without refreshing the page. I'm using jquery; upon submit the page still refreshes.</p>
<pre><code>$(function(){
$('#submit').click(function(){
$('#container').append('loading');
var sthis = $('#sthis').val();
$.ajax({
url: 'f.php' ,
type: 'POST'... | php jquery | [2, 5] |
5,387,121 | 5,387,122 | Click object by classname | <p>I am trying <code>document.getElementsByClassName('classname').click();</code>, but it doesn't fire the click on the class. Why is that?</p>
| javascript jquery | [3, 5] |
333,385 | 333,386 | jQuery DataTable - few questions | <p>I have few questions about jQuery DataTables:</p>
<ol>
<li><p>How can i do that arrow next and arrow previus in pagination will be active all time?</p></li>
<li><p>I use Ajax, and i pass only 10 results, but all results is more for example 300, so how can i set this value to all results?</p></li>
<li><p>When I choo... | javascript jquery | [3, 5] |
1,187,866 | 1,187,867 | handing data returned from jquery get request | <p>I have a simple jquery script as follows:</p>
<pre><code>$('a').click(function()
{
//get the id of the song we want to play
var song_id = $(this).attr("id");
//do a get request to get the information about the song
$.get("http://www.site.com/v4/ajax/get_song_info.php", { id: so... | php jquery | [2, 5] |
2,679,764 | 2,679,765 | How to know if a node intersects another node? | <p>I want to know if a node intersects another node like this schema:
<img src="http://i.stack.imgur.com/iAECO.png" alt="schema"></p>
| javascript jquery | [3, 5] |
2,692,803 | 2,692,804 | Javascript: fake a touchdown event? | <p>If I have a x,y coordinate onscreen is there a way to 'fake' a touchdown event?</p>
| javascript iphone | [3, 8] |
2,878,307 | 2,878,308 | Php echo in javascript - not working | <p>I try to use PHP code in Javascript. Unfortunatelly something wrong. </p>
<p>Try on localhost, wampserver.</p>
<p>This is a part of the jquery validation:</p>
<pre><code> "onlyNumber":{
"regex":"/^[0-9\ ]+$/",
"alertText":"<?php echo 'This is the message' ?>"},
</code></pre>
<p>Any idea why this ... | php javascript jquery | [2, 3, 5] |
464,205 | 464,206 | .fadein not working on server (working locally) | <p>FadeIn is not working when I upload it to my server, yet it is working on my local machine?</p>
<pre><code><script>
$("qfade").click(function () {
$("h2").fadeIn(1000);
})
</script>
</code></pre>
<p>called here</p>
<pre><code><li class="sup">
<qfade><a href="#stuff">things<... | javascript jquery | [3, 5] |
2,066,587 | 2,066,588 | "Request.Cookies ("iduser"). Value" equivalent in C# | <p>I have an application in VB.net and I'm doing a new one in C# (ASP.NET 4). Users has just one username to login in both app.</p>
<p>The point is... how can I get the cookie's value in C#???</p>
<p>This is how I get it in VB...</p>
<pre><code>IdUser = Request.Cookies("iduser").value
</code></pre>
<p>Thks</p>
| c# asp.net | [0, 9] |
5,728,309 | 5,728,310 | How do you generate a preview of html code in other window fetched from a table | <p>I have a page which generates a html code in a text box. </p>
<p>When code generation happens parallel I am inserting the same code in a table. </p>
<p>All this is in between asp controllers.</p>
<p>Under that text box I have button called preview. </p>
<p>All I need is when I click on the button it should ... | c# asp.net | [0, 9] |
4,091,098 | 4,091,099 | Select multiple contacts Android | <p>I need to select multiple contacts from my cell phone for my android application. I have searched at many websites but there nobody has proposed a built in solution. The URI allows me to select a single contact but I want to open a view of contacts with check boxes. Any help would be highly appreciated in this regar... | java android | [1, 4] |
2,834,883 | 2,834,884 | Global variable not set value in $.getJSON properly | <p>I have declared global variable named counter=0 on my index.html page inside head section </p>
<pre><code><script>
var counter=0;
</script>
</code></pre>
<p>now in my one of function i am setting its value as</p>
<pre><code> function getCounter(param)
{
$.getJSON("somewebserviceURL&... | javascript jquery | [3, 5] |
1,426,145 | 1,426,146 | Using ThreadPoolExecutor and AsyncTask | <p>When using ThreadPoolExecutor can I use AsyncTask as the Runnable in my queue? Or does this defeat the purpose?</p>
<pre><code>//A holder for various tasks
private final LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>(5);
//Thread Pool Executor
private final ThreadPoolExecutor ... | java android | [1, 4] |
5,234,375 | 5,234,376 | How to invoke browser without losing browsing state? | <p>I have written an activity that has 2 image buttons (1 for messaging and another for browser). On click on each will start messaging and browser android activities respectively.</p>
<p>My question is: whenever I start my app and click on any of the buttons say browser button for example, and after it starts the and... | java android | [1, 4] |
5,979,242 | 5,979,243 | jQuery toggle element style but pausing briefly inbetween | <p>I have an element which I am toggling the style of (like an on/off button). If it's currently 'on', change the style to 'off' and vice versa.</p>
<p>However, in some scenarios, I want to perform the above, but then revert to it's original state (cancelling out the toggle), but I want this to be reflected to the use... | javascript jquery | [3, 5] |
1,442,580 | 1,442,581 | How can i make a disabled control back to enable using Javascript | <p>I have done a code to disable a control when user clicks on a control. On my form i am having a <code>TextBox</code> and a <code>DropDown</code>. When user clicks on a <code>TextBox</code> i will <code>disable</code> the <code>DropDown</code> like that when click on <code>DropDown</code> i will disable the <code>Tex... | c# javascript asp.net | [0, 3, 9] |
4,517,941 | 4,517,942 | Get closest element by traversing DOM backwards | <p>I want to get a DOM element with jQuery but i want to only look backwards in the DOM.</p>
<p>So suppose i have the following HTML structure:</p>
<pre><code><div id="content">
<div id="first-module" class="module">
<h3>Some Module</h3>
<p>Lorem ipsum... </p>
... | javascript jquery | [3, 5] |
2,291,862 | 2,291,863 | how to read character behind some text | <p>this one a code for read two character behind text "KD-R411ED"</p>
<pre><code>var code = data[0].substr(data[0].length - 2);
</code></pre>
<p>how to read ED character if text like KD-R411H2EDT? i want a new code can combine with code above..please help!!</p>
<p>look this:</p>
<pre><code> <script type="text... | javascript jquery | [3, 5] |
3,568,582 | 3,568,583 | POST array through PHP and get in Python | <p>I am posting a array </p>
<pre><code>$name[0] = "anurag";
$name[1] = "abhishek";
$ch = curl_init('http://localhost:8000/v0/url-generator');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "name=$name");
curl_exec ($ch);
curl_close ($ch);
</code></pre>
<p>In python I got name = array .</p... | php python | [2, 7] |
1,405,566 | 1,405,567 | No value is still true in javascript | <p>I need to check some data given by a dataset attribute, it can happen that the dataset is empty, if so I still need to skip with a if statement, but an empty dataset is still true, I have tried...null, undefined and they dont work.</p>
<p>So if there's no value present it should be false.</p>
<pre><code>// false
&... | javascript jquery | [3, 5] |
3,766,705 | 3,766,706 | what is the difference between .last() and :last? | <p>Can someone explain the difference between .last() and :last ? I can't seem to find a definitive explanation.</p>
<p>Why Exactly does this <code>$('td.cellsOfSpecificClass:last', '.table tr')</code> return the last td in each tr instead of the last td in the whole table?</p>
| javascript jquery | [3, 5] |
4,976,981 | 4,976,982 | How to convert JavaScript date object into ticks | <p>How should i convert JavaScript date object into ticks? as i want to use this ticks to get the exact date for my c# application after synchronization of data.</p>
| c# javascript | [0, 3] |
3,981,655 | 3,981,656 | Download .EXE file via JQuery | <p>How can I do a function, that allow do the download of a file in C: ?</p>
<p>For example, when the link is clicked, trigger a javascript function that will open the file or made download.</p>
<p>I'm trying this, </p>
<p>But it execute the program, I need that execute a download! </p>
<pre><code> if (url == "S... | javascript jquery | [3, 5] |
5,696,480 | 5,696,481 | Android: Odd behaviour when screen is turned off? | <p>I'm working on a game and use a WakeLock to keep the screen from going to sleep while the user is playing. However, I'm encountering some weird behavior when the screen is manually put to sleep..</p>
<p>My current approach is to store away the game info in OnPause() and load them back up when OnCreate() is called. ... | java android | [1, 4] |
5,559,047 | 5,559,048 | select multiple items in asp.net listbox from code | <p>I have two databound listboxes. The first only shows items that have been assigned to my product. The second listbox shows all available items. What I want to do is select all of the items in listbox 2 that list box one contains.</p>
<p>For example:<br />
ListBox1-<br />
Item 1<br />
Item 3<br/><br />
ListBox2-<br ... | c# asp.net | [0, 9] |
5,831,602 | 5,831,603 | Making Subids And Postback Tracking Work | <p>I am coding a Bounty Script in Php. (Reward Script),using open source code from Prosper202.Trying to track leads with Subids and Postbacks.I am not able to get this stuff to work.
Example.</p>
<p>I would like to append Unique id at end of url.
Like <code>http://google.com/c3={unique_id}</code></p>
<p>Here Unique i... | php javascript jquery | [2, 3, 5] |
2,551,460 | 2,551,461 | How do I unbind "hover" in jQuery? | <p>How do I unbind "hover" in jQuery?</p>
<p>This does not work:</p>
<pre><code>$(this).unbind('hover');
</code></pre>
| javascript jquery | [3, 5] |
4,633,536 | 4,633,537 | Understanding a factorial function in python | <p>I'm trying to understand if the following Python function:</p>
<pre><code>def factorial(i):
if not hasattr(factorial, 'lstFactorial'):
factorial.lstFactorial = [None] * 1000
if factorial.lstFactorial[i] is None:
iProduct = 1
for iFactor in xrange(1, i+1):
iProduct *= iFac... | c# python | [0, 7] |
2,031,786 | 2,031,787 | Which quotation marks to use and when? | <p>for example here in documentation <a href="http://api.jquery.com/attribute-contains-selector/" rel="nofollow">http://api.jquery.com/attribute-contains-selector/</a> it says</p>
<pre><code>$('input[name*="man"]')
</code></pre>
<p>I would write instead</p>
<pre><code>$("input[name*='man']")
</code></pre>
<p>is the... | javascript jquery | [3, 5] |
96,075 | 96,076 | How would I write this split with php instead of javascript | <p>I was manipulating a string with javascript to split numbers that i need in a pattern like this :</p>
<pre><code>150952-0535
</code></pre>
<p>generated from a number like this :</p>
<pre><code>15095205350008
</code></pre>
<p>The javascript is like this and it does the trick :</p>
<pre><code>var s7img = '150952... | php javascript | [2, 3] |
1,596,390 | 1,596,391 | jquery fire event when element is shown | <p>I need to fire an event on the following conditions for an image:</p>
<p>1) The image has been loaded (the following function takes care of that)
2) The image is shown. (if the image has not been shown yet, height() and width() return zero, meaning I cannot resize the image.</p>
<p>The main problem here is that my... | javascript jquery | [3, 5] |
4,641,300 | 4,641,301 | Jquery scroller causing horizontal scrolling issue on all browsers | <p>I'm having horizontal scrolling issues and i'm thinking my jquery for the slider is causing the issue. Go to and you'll see the issue. It is difficult to show the code since I have no idea what to fix. Thanks :)</p>
| c# jquery | [0, 5] |
4,263,475 | 4,263,476 | Is it possible to reveal the contents of a div from right to left | <p>I created a fiddle</p>
<p><a href="http://jsfiddle.net/gifcy/bJJ5s/5/" rel="nofollow">http://jsfiddle.net/gifcy/bJJ5s/5/</a></p>
<p>On DOM ready I hide the image. </p>
<p>I could successfully reveal the image from left to right using animate function.</p>
<p>Can someone show how to reveal from right to left. Wha... | javascript jquery | [3, 5] |
4,818,328 | 4,818,329 | Need help comparing an array against a var | <p>Hi I can't seem to get this right. Basically if the value of a select list is either "USA", "CAN", or "MEX" it should return true. any other value should return false. This only returns true if the value is "USA"</p>
<pre><code>$.validator.addMethod(
"ReutersNA",
function(value, element) {
var selectedCountry =... | javascript jquery | [3, 5] |
5,182,995 | 5,182,996 | find the height of a div and change the current div height to match | <p>I'm trying to make a div the same height as the parent (if the parent is larger) or make the parent the same height as the current div (if the current div is larger)</p>
<p>Here's what i've got so far</p>
<pre><code>$(this).parents().find('.address').slideToggle(function() {
$(this).parent().height($(this).par... | javascript jquery | [3, 5] |
2,958,810 | 2,958,811 | Tutorial for porting php app to Android? | <p>Does anyone know a tutorial or book that gives a good step-by-step for porting a web browser based PHP application to an Android app? I've seen some stuff for the various steps that are required but nothing that ties it all together. Basically, I have a PHP app that works fine in my browser on my PC, but I want to c... | php android | [2, 4] |
180,533 | 180,534 | Why this very simple javascript/jquery code won't work correctly | <p>I have a very simple JavaScript/jquery code which won't just work correctly.
The problem seems to be that positioning of the div with id 'circle' does not seem to get calculated when the loop is run.
Just need to know why the problem is occurring and if any fixes available.</p>
<p>Here is the link <a href="http://j... | javascript jquery | [3, 5] |
2,540,329 | 2,540,330 | How to only show input fields if checkbox is checked? | <p>Basically, I want to only show these fields if checkbox is selected, if it becomes unselected, disappear.</p>
<pre><code><input type="checkbox" name="supplied" value="supplied" class="aboveage2" />
<ul id="date">
<li><input id="start" name="start" size="5" type="text" class="small" value="... | javascript jquery | [3, 5] |
2,792,588 | 2,792,589 | Resume timer with jQuery | <p>I am using the plugin from <a href="http://www.erichynds.com/jquery/a-new-and-improved-jquery-idle-timeout-plugin/" rel="nofollow">http://www.erichynds.com/jquery/a-new-and-improved-jquery-idle-timeout-plugin/</a></p>
<p>I want to Resume the timer. I wrote this, as I also want to get the data from server. But <stro... | javascript jquery | [3, 5] |
2,575,577 | 2,575,578 | System.UnauthorizedAccessException on a simple ASP.Net File.IO operations | <p>In ASP.NET (hosted) I need a simple file IO operation to read data out of a file and then force a download. Its really that simple.</p>
<p>I keep getting a <code>System.UnauthorizedAccessException</code> when executing the following code:</p>
<pre><code>System.IO.FileStream fs =
new System.IO.FileStream(pat... | c# asp.net | [0, 9] |
992,192 | 992,193 | Jquery - More than 1 "$(document).ready" = dirty code? | <p>is it OK to use the </p>
<pre><code>$(document).ready(function ()
{
// some code
});
</code></pre>
<p>more than 1 time in the javascript code?</p>
<p>Thanks in advance!
Peter</p>
| javascript jquery | [3, 5] |
5,582,310 | 5,582,311 | 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] |
510,175 | 510,176 | Argument not getting passed into function | <p>I am trying to simply pass a variable from a click event to an outside function. I keep getting my console.log string when testing for undefined.</p>
<p>Here is my click event.</p>
<pre><code> $("#previous, #next").click(function() {
if ((this).id == 'next') {
slideID++
} else {
... | javascript jquery | [3, 5] |
4,549,170 | 4,549,171 | Why can't change the value from inside Jquery $.post function (JavaScript) | <p>I am trying to get the response from ajax call and save it in another value but wont work
this is my code</p>
<pre><code>x='go'
$.post("someurl",function(data){
x=data;
})
alert(x)//go
</code></pre>
<p>or this
<a href="http://jsfiddle.net/8vF3K/1/" rel="nofollow">jsFiddle</a></p>
<p>I am looking for a soluti... | javascript jquery | [3, 5] |
1,726,070 | 1,726,071 | Rewrite URL to a more meaningful URL - C# | <p>I am pulling in some URLs from following SQL table with following columns:</p>
<ul>
<li>Name - Contains the Name of site</li>
<li>URL - Contains the URL of site</li>
</ul>
<p>I am then generating dynamic HyperLinks and attaching them to a gridview column:</p>
<pre><code>protected void grdReport_Bnd(object sender,... | c# asp.net | [0, 9] |
4,233,358 | 4,233,359 | android-java: check boolean value checking for null | <p>I am trying for null check like below </p>
<pre><code>if (isTrue == null)
</code></pre>
<p>compile error says : "The operator == is undefined for the argument type(s) boolean"</p>
<p>Please help, how to do null check.</p>
<p>Thanks </p>
| java android | [1, 4] |
2,694,728 | 2,694,729 | how to get checkbox bulk value in javascript | <p>i want to get all the details of youtube,so if the user tick the checkbox i want to get the full details of video in javascript,i have done but only i can get first word from the you tube name,
you tube name,example $name="Geet - Episode 456 - Clip 1 [24th November 2011] <em>HQ</em>"
so alert(name) ... | php javascript | [2, 3] |
495,892 | 495,893 | Dialog box inside tab group not firing | <p>I am having a great difficulty on these part. I cannot call my dialog when I put my class inside Tab Group. Is there anyway I could do this?</p>
<p>This is my dialog creator
@Override
protected Dialog onCreateDialog(int id) {</p>
<pre><code> switch (id) {
case 1:
return... | java android | [1, 4] |
3,552,945 | 3,552,946 | Call a function after a bunch of other functions are complete | <p>So I've got these functions:</p>
<pre><code>function UrlExists(url){
$.ajax({
url: url,
success: function(data){
alert('exists');
},
error: function(data){
alert('fail');
}
});
}
function addScript(filepath, callback){
if (filepath) {
var fileref = ... | javascript jquery | [3, 5] |
4,301,797 | 4,301,798 | GetAsynchKeyState for Ctrl+B? How? | <p>I am using</p>
<pre><code>public static bool IsKeyPushedDown(Keys vKey)
{
return 0 != (GetAsyncKeyState((int)vKey) & 0x8000);
}
</code></pre>
<p>but I don't know how to combine 2 keys.</p>
| c# c++ | [0, 6] |
5,008,580 | 5,008,581 | Using javascript to insert id into list elements | <p>I am messing around with a deck of cards that I made.I have it set up so that there is a method that spits out cards by suit into a list, so if I want spades I get a <code><ol></code> of all of the spades cards. I am now trying to give each <code><li></code> element an id depending on what card it is. ac... | javascript jquery | [3, 5] |
167,508 | 167,509 | Detect total time the user is logged-in asp.net | <p>I have asp.net web site in which user can login and also do logout
Now i need to capture the total time duration for which user was logged-in to the site.
So to do this i need to know two things
1. Login time
2. Logout time</p>
<p>At the time of login i can get the first thing which is "Login time", thats fairly ea... | javascript asp.net | [3, 9] |
898,545 | 898,546 | What is the best and easiest-to-use 5 star rating script for JQuery? | <p>5 star rating plugin? AJAX.</p>
| javascript jquery | [3, 5] |
2,174,644 | 2,174,645 | asp.net web application goes to login page after about 15 minutes | <p>I have a web application, and for some reason which I cannot figure out, It goes to the login page every 15 minutes (I believe the session is idle). I have no where web config file that specify a timeout even close to that. Has anyone ever had an issue like this or know where I could look to try and fix the problem?... | c# asp.net | [0, 9] |
456,372 | 456,373 | Variable cannot be resolved | <p>I am trying to create an item list, diffrent for each i and j variable. My code is:</p>
<pre><code>if (i == 0) {
if (j == 0) {
final CharSequence[] items = {"4:45", "5:00"}
} else if (j == 1) {
final CharSequence[] items = {"4:43", "4:58"}
} els... | java android | [1, 4] |
3,459,063 | 3,459,064 | Access value of listbox assigned through jquery | <p>I am assgining values to the listbox through jquery. After assgining the values on button click event, i am not able to get the items in the list box. It shows empty item list. I am able to get the values through hidden field, but is there any better way around? </p>
<p>Thanks</p>
<p><strong>Update</strong></p>
<... | jquery asp.net | [5, 9] |
5,881,133 | 5,881,134 | Internet request works the first time, but not on subsequent requests | <p>On the first request it goes to the internet and retrieves the data. When I try it again, it just gives me the data that is already in the inputstream. How do I clear the cached data, so that it does a new request each time?</p>
<p>This is my code:</p>
<pre><code>InputStreamReader in = null;
in = new InputStreamRe... | java android | [1, 4] |
4,493,509 | 4,493,510 | form data email | <p>How would I send e-mail to any specified e-mail address in asp.net C#.</p>
| c# asp.net | [0, 9] |
3,024,886 | 3,024,887 | jQuery.data('itemname') not working but jQuery.attr('data-itemname') is working | <p>This is weird behavior but when I am trying to access some data attribute using jQuery data() function, it is returning me undefined but attr() is returning me the actual value. I know data works differently as it caches for the first time and then it retrieves from cache. I am using jQuery 1.4.2 and then tried look... | javascript jquery | [3, 5] |
2,000,758 | 2,000,759 | jquery permanently alter html | <p>How would I go about permanently add a class to a html element using jQuery.</p>
<p>I am planning on building a image gallery that is sorted into types/categories using the <a href="http://www.jscodes.com/jquery-sorting-product-pictures/" rel="nofollow">jQuery sorting plugin</a>. I want to add a dropdown box below ... | php jquery | [2, 5] |
3,354,887 | 3,354,888 | capture outgoing packet sent by google chat in my application | <p>I am familiar in using xmpp library,for android i'm using asmack library.In Google chat also asmack is used.i can write an application to send/receive messages using xmpp.But now i want to track google chat messages in my application.what ever the user do in google chat the same sholud be happening in my application... | java android | [1, 4] |
5,660,992 | 5,660,993 | How to notify user of progress | <p>I am currently planning a web based application, which needs to do long calculations on the server upon request. Now I would like to display a notification to the user, that the calculation is in progress, and then redirect that page as soon as the calculation is done.</p>
<p>There is no need to notify the user of ... | php javascript | [2, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.