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 |
|---|---|---|---|---|---|
5,265,811 | 5,265,812 | C++ & Java - overloading operator | <p>I have a difficult to understand the subject of overloading operator in C++ and Java.</p>
<p>For example, I define a new class Fraction:</p>
<pre><code>class Fraction {
public:
Fraction (int top, int bottom) { t = top; b = bottom; }
int numerator() { return t; }
int denominator() { return b; }
pri... | java c++ | [1, 6] |
1,465,054 | 1,465,055 | Receive data from PostBack in JavaScript | <p>I'm using jQuery to make postback then in my <code>.ascx</code> file I have code like this:</p>
<pre><code>Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args) {
if (args.get_error() == undefined) {
var dataItems = args.get_dataItems()... | c# javascript asp.net | [0, 3, 9] |
1,764,896 | 1,764,897 | write code to multiline | <pre><code>foreach (var item in products)
{
contantProduct += "<br/> <div class='linkProduct' id=\"link" + item.IdProduct + "\" onclick=\"$('.linkFlashIco').css('background-image','url(icon/Pointer.png)');$(this).find('>:first-child').css('background-image','url(icon/Activepointe... | c# javascript jquery asp.net | [0, 3, 5, 9] |
2,172,439 | 2,172,440 | Replace setInterval call with some other algorithm placed inside called function | <p>I have a <a href="http://jsfiddle.net/qEupm/7/" rel="nofollow">script</a>, that changes pictures with transparency effect on same place, but I don't like, that it is called with setInterval. Is there some way to have same result, but maybe with some loop from inside function and make a delay there.</p>
<p>Thanks ev... | javascript jquery | [3, 5] |
5,169,404 | 5,169,405 | How can i show a jquery popup on PageLoad?? | <p>I am trying to use jquery to open a popup on Pageload. I guess this is what i should use to show the popup after a button click in an Asp.Net application. How do i get the popup on Pageload. </p>
<pre><code>$(document).ready(function(){
$("#button").click(function(){
centerPopup();
loadPopup();
});
}... | jquery asp.net | [5, 9] |
2,411,814 | 2,411,815 | Possible to programmatically format text appended via stringBuffer.append()? | <p>A lot of text is to be appended to a StringBuffer object. Later this text will be displayed on the page. </p>
<pre><code>stringBuffer.append("A lot of text part 1");
stringBuffer.append("A lot of text part 2");
...
</code></pre>
<p>The text contains paragraph titles. Is it possible to format these titles before/af... | java android | [1, 4] |
1,987,553 | 1,987,554 | Javascript not reloading DIV's contents correctly | <p>I have been looking online for a tutorial on how to create a Checkbox form which would cause a DIV where I show my items from a MYSQL table to reload based on the filter selected in the Checkbox.</p>
<p>This is my code so far, but it doesn't seem to work...</p>
<p>Any suggestions?</p>
<p>Thanks!</p>
<pre><code>&... | php javascript jquery | [2, 3, 5] |
4,200,862 | 4,200,863 | how to split a query with 'AND' and/or 'OR' arguments in it in jquery? | <p>how to split a query with 'AND' and/or 'OR' arguments in it in jquery?
Suppose iam having </p>
<pre><code>A=( 1=1,FirstName='aaa' or FirstName='bbb' and FirstName='ccc' or FirstName='ddd' and FirstName='eee')
</code></pre>
<p>Now i want to split 'A' with 'and' & 'or' and get the result as below</p>
<pre><cod... | javascript jquery | [3, 5] |
4,872,199 | 4,872,200 | looking for a jquery $.resolve() sample that makes sense | <p>I was trying to use a line of code:</p>
<pre><code>$.when(FUNCT1()).done(FUNCT2());
</code></pre>
<p>The issue is that done doesnt quite work, and i was trying to do</p>
<pre><code>$.when(FUNCT1(args, successCallback, failCallback)).then(FUNCT2());
</code></pre>
<p>but there is an issue that FUNCT1 is async so i... | javascript jquery | [3, 5] |
2,427,924 | 2,427,925 | How to trigger a jquery event if a given value is selected from a calendar | <p>I am using the ui date picker widget here: <a href="http://jqueryui.com/demos/datepicker/" rel="nofollow">http://jqueryui.com/demos/datepicker/</a></p>
<p>to populate this:</p>
<pre><code><input id="date" value="" type="textbox" />
</code></pre>
<p>I would like to trigger a jquery event after a date is sele... | javascript jquery | [3, 5] |
6,014,102 | 6,014,103 | Checking for bunch of whitespaces in javascript to prevent blank data being sent and trimming the intermediate spaces | <p>I'm a bit confused as to how to solve this problem. Seems standard and commonly occurring but couldn't find anything worthwhile. I have an HTML textarea and a textbox for input. I want to validate the following:</p>
<ol>
<li>The user shouldn't be allowed to enter a bunch of white spaces in the textarea - so if 15 c... | javascript jquery | [3, 5] |
2,269,984 | 2,269,985 | Jquery variabile change | <p>How I can show the second alert from the following code after the first showed?!</p>
<pre><code>var s = 1;
$(document).ready(function(){
if(s == 1 )
{
alert("SIMULATED");
s = 0;
}
else alert (" ok ");
});
</code></pre>
<p>I need to change the s variable to 0 and to show a... | javascript jquery | [3, 5] |
4,127,937 | 4,127,938 | Should my page check the x509certificate? If so how? | <p>I must admit that I am floundering a bit with certificates. I can't find much that's very clear with web searches. I have a 3rd party posting a file to my web page using an x509certificate. </p>
<p>I was told we have the party's public key. Can I just compare Request.ClientCertificate.PublicKey to this value? Can I... | c# asp.net | [0, 9] |
5,613,696 | 5,613,697 | Can't addClass() to an object after passing it through a function - jQuery | <p>I have a function that passes through an object in its parameter, and then does something with that object.</p>
<pre><code>function theFunction (theButton) {
theButton.addClass('inactive');
}
$('.button').click(function () {
theFunction($(this));
return false;
});
</code></pre>
<p>The problem is that ... | javascript jquery | [3, 5] |
2,830,427 | 2,830,428 | How can I read a Google Spreadsheets using jquery and php | <p>I have some information in Google Spreadsheets as a single sheet. Is there any way by which I can read this information from html by jquery and php. my sheet <a href="https://docs.google.com/a/rangde.org/spreadsheet/ccc?key=0An6ySbpOsu3GdFlSZkt0TzZTWHJyblBiQlNrcmZvZGc&hl=en_US#gid=5" rel="nofollow">link</a> and ... | php jquery | [2, 5] |
2,875,855 | 2,875,856 | Help me escape this php/js and stop warning error on zend studio | <p>This shouldn't be too difficult but for the life of my cant sort it out and its driving me mad.</p>
<pre><code>$script = "
$(document).ready(function(){
$('.row').hover(function() {
var id = ($(this).attr('id').replace(/\D/g, ''));
$('.row-edit-' + id).css('display', 'block');
}, fun... | php jquery | [2, 5] |
2,279,025 | 2,279,026 | JQuery - Binding / Appending to document.ready | <p>I am working on a ASP.NET MVC 3 application that is using JQuery. In this application, I have my _Layout.cshtml file and MyView.cshtml. In _Layout.cshtml I have something like the following:</p>
<pre><code><div id="wrapper" style="background-color:Gray; height:100%;">
<div id="content" style="background-... | javascript jquery | [3, 5] |
4,454,624 | 4,454,625 | jquery selector for multiple div Vticker | <p>Hi i have two division with class named "tick" what i am trying to do here is if the content overflows then only the ticker should be activated.</p>
<pre><code>div1 : <div class="home tick">
div2 : <div class="rbar tick">
</code></pre>
<p><strong>problem:</strong> if content overflows in one div the ot... | javascript jquery | [3, 5] |
1,226,400 | 1,226,401 | How to update value of a radio using Jquery | <p>I have this HTML code for radios:</p>
<pre><code><input type='radio' name='a_27' value='Yes' id='a_27_0' />
<input type='radio' name='a_27' value='No' id='a_27_1' />
</code></pre>
<p>I'm trying to set the selected value of the radio using this code:</p>
<pre><code>var field="a_" + this.id;
$('[name="... | javascript jquery | [3, 5] |
4,436,377 | 4,436,378 | asp.net OnClientClick not rendered for initially disabled Button | <p>I have a disabled asp.Button, which I enable later with JavaScript. Like this</p>
<pre><code><asp:Button ID="btnSave" runat="server" Text="Save" Enabled="false" OnClientClick="; return ValidateFields();" OnClick="btnSave_Clicked" />
</code></pre>
<p>However, the "onclick" method is not rendered as html when ... | c# javascript asp.net | [0, 3, 9] |
2,872,827 | 2,872,828 | Import C++ classes in python? | <p>so.. let's say i have this C function:</p>
<pre><code>PyObject* Foo(PyObject* pSelf, PyObject* pArgs)
{
MessageBox(NULL, "Foo was called!", "Info", MB_OK);
return PyInt_FromLong(0);
}
</code></pre>
<p>and then, I have to do this:</p>
<pre><code>static PyMethodDef Methods[] =
{
{"Foo", Foo, METH_NOARG... | c++ python | [6, 7] |
4,841,789 | 4,841,790 | Unable to pass values between Activities in Android | <p>I am using 2.3.3 version of the Android SDK and I'm trying to pass data between two activities using the following code</p>
<pre><code>Intent myIntent = new Intent(MainAct.this, FriendsActivity.class);
myIntent.putExtra(USER_NAME, ((EditText)findViewById(R.id.username)).getText());
MainAct.this.startActivity(myInte... | java android | [1, 4] |
1,172,640 | 1,172,641 | May I store View objects in instance fields? | <p>I've got an Activity class. It sould be really nice to find all the views I need in <code>onCreate</code>, and then just reference these fields, without calling <code>findViewById</code>. But is it OK to do so?</p>
<p>Can't views be assigned different objects at runtime? E.g., is it always true that <code>findBiewB... | java android | [1, 4] |
3,481,754 | 3,481,755 | Chain this jquery expression | <p>Is there a way to chain this jQuery expression or improve it? All i really want to do is change "my text" to "new text".</p>
<p>HTML:</p>
<pre><code><div id="myDiv">
my text
<span>button 1</span>
<span>button 2</span>
</div>
</code></pre>
<p>Javascript:</p>
<pre><code>v... | javascript jquery | [3, 5] |
2,499,562 | 2,499,563 | 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] |
3,886,413 | 3,886,414 | jquery <span> inside next() | <p>im trying to get this so that it rotates through LI's, and will fadein the SPAN within that LI after and before the next slide.</p>
<p>heres my code:</p>
<pre><code> var current = ($('.slider ul li.current'));
var currentspan = ($('.slider ul li.current span'));
var next = (current.next().length) ? ... | javascript jquery | [3, 5] |
5,860,357 | 5,860,358 | Javascript validation | <p>I have a form that people can click and add fields to the form and I need to have it validate the values in those fields if it is clicked. </p>
<p>So say I click it twice and get the 2 separate sets of fields and I need the rotation % to make sure it equals 100 at the time of save. </p>
<p>I have put in this funct... | javascript jquery | [3, 5] |
5,493,559 | 5,493,560 | Convert an java file into android program | <p>hi i am a new android developer. When i am searching for a logic related to my app in google, i found a java application which is related to my android app. After making some changes i succeded in getting output, but i need the code to be in an android based project. When i change to convert it i get lot of errors, ... | java android | [1, 4] |
5,968,867 | 5,968,868 | how to download some java jar library files | <p>Has anyone migrated a an application using Java AWT library to run on Android? How do you do this? I am using these packages.</p>
<pre><code> java.awt.AWTException;
java.awt.Robot;
java.awt.Rectangle;
java.awt.Toolkit;
java.awt.image.BufferedImage;
java.io.*;
javax.imageio.ImageIO;
</code></pre>
| java android | [1, 4] |
669,814 | 669,815 | PHP only allow server to access a PHP file | <p>I have three pages:</p>
<pre><code>index.html
getjavascript.php?id=index
index.js
</code></pre>
<p>index.html includes the script </p>
<pre><code>'getjavascript.php?id=index'
</code></pre>
<p>and getjavascript dynamically gets the script index.js.</p>
<p>Is there any way to prevent external users from directly ... | php javascript | [2, 3] |
4,072,415 | 4,072,416 | Javascript .on event handler | <p>I have the following scenario; in my js I have a dynamic hyperlink that I need to capture the clicked link id.</p>
<pre><code>for (var i = 0; i < neighbor.data[3].length; i++){
<a class="Chris" name="a" id="+i+" href="Chris">Hi</a>
}
</code></pre>
<p>Now I can get this with;</p>
<pre><code> ... | javascript jquery | [3, 5] |
831,419 | 831,420 | jQuery: Can I get a reference to the bound events on an element? | <p>I have some elements with a function bound to the <code>click</code> event. I want to bind that same function instead to the <code>mouseover</code> and <code>mouseout</code> events. Is it possible to get a reference to the click event so that I can assign it to those other events? I'm imagining something like this (... | javascript jquery | [3, 5] |
852,431 | 852,432 | HttpURLConnection setConnectTimeout() has no effect | <p>I'm connecting to a simple RSS feed using HTTPUrlConnection. It works perfectly. I'd like to add a timeout to the connection since I don't want my app hanging in the event of a bad connection or whatever. This is the code I use and the setConnectTimeout method doesn't have any effect whatsoever.</p>
<pre><code> ... | java android | [1, 4] |
5,292,106 | 5,292,107 | Javascript counter on php page | <p>I've got a java script counter on my php page. (I should probably add that I don't know java script). It display's the time the user is active on the page. My problem is if the user presses F5 or refreshes the page the counter starts from 0 again. How do I change this so that it remembers the time? Help will be... | php javascript | [2, 3] |
1,350,868 | 1,350,869 | Mask instead of Replace? | <p>Im trying to figure out how to mask text in a text input as though its a password field, only its not.
This is for a personal experiment and I unserdtand it may sound strange but its something I'd like to try, Ive used the replace method to change characters to asterisks only when I alert the value, it alerts * when... | javascript jquery | [3, 5] |
1,701,687 | 1,701,688 | Mixing OOP javascript with jQuery DOM manipulation | <p>I'm looking to start developing with javascript jQuery development in a big way. I recently read "JavaScript: The Good Parts" by <a href="http://javascript.crockford.com/" rel="nofollow">Douglas Crockford</a>, and feel well prepared for prototypal based object oriented development.</p>
<p>I'm now trying to figure ... | javascript jquery | [3, 5] |
5,874,706 | 5,874,707 | jQuery: onclick drop-down menu with controls | <p>I wish to create a menu (a sign-up menu), see <a href="http://jsfiddle.net/X2NXY/1/" rel="nofollow">this</a> to get an idea of it. When user clicks on this button/link a drop-down menu appears, using which he can do something (here login). </p>
<p>The behaviour of the link should be the following:</p>
<ol>
<li>The... | javascript jquery | [3, 5] |
4,487,070 | 4,487,071 | JQuery Refresh the content of a UI dialog box? | <p>I have problem when i tried to invoke multiple dialog boxes in a page. I have three anchor tags on clicking 3 tags i have to generate dialog boxes with diferent contents . But when i clicked the 2nd tag i am getting the same dialog box of the previous one? How can i refresh the content inside a dialog box?</p>
<p>W... | jquery asp.net | [5, 9] |
4,347,346 | 4,347,347 | dropdownlist selectedvalue | <p>I've used a webservice to create a dropdownlist of countries and I'm trying to add the dropdownlist selection to the sql database, but when I do that by using ddlCountry.SelectedValue in my insert statement, only the first value in the dropdownlist is showing up in the table. Should I use onselectedindexchanged to s... | c# asp.net | [0, 9] |
1,456,620 | 1,456,621 | How to handle multiple asyc request in java for android? | <p>Suppose if i have multiple url to get the information data either in xml or json. How can i manage the queue for maintaining the each request?</p>
<p>Example</p>
<p>Screen 1 --requests----> URL1 ----> DATA From Server
Screen 2 --requests----> URL2 ----> DATA FROM Server</p>
<p>Now, If user changes the screen freq... | java android | [1, 4] |
5,031,015 | 5,031,016 | Jquery passing string to function | <p>I want to pass the name of my list into my function, but it's not working correctly. I am trying to pass an array and a string to my function. I want to replace "#myGallery_2" to be dynamic. How would I do this correctly? This is what i'm currently trying.</p>
<pre><code>var src = $('#'+id+ li:nth-child('+index+')'... | javascript jquery | [3, 5] |
3,735,341 | 3,735,342 | JQuery each loop looping through one line of code x amount of times before even looking at the rest | <p>I have a loop in Jquery:</p>
<pre><code>var fadeTime=500;
css_id=0;
$.each(my_array, function (i, d_U) {
css_id++;
an_v=d_U[1];
an_d=d_U[4];
do_c_function("id_344",true,true);
$("#box_"+css_id).fadeIn(fadeTime,function(){
//this stuff will happen once the fadein is complete
$("#box_"+css_id).animate({top:... | javascript jquery | [3, 5] |
3,770,799 | 3,770,800 | jQuery - Post and reply | <p>Im attempting to add voteup/votedown to one of my sites, however Im having a few problems:</p>
<p>Firstly here is my jQuery:</p>
<pre><code>j(".voteup").click(function(){ // when people click an up button
j("div#response").show().html('<h2>voting, please wait...</h2>'); // show wait message
itemI... | php jquery | [2, 5] |
2,825,461 | 2,825,462 | problem with Check box selection when multiple gridview exists on the form | <p>I am working on check box selection in a grid view. I have gone though the following link <a href="http://www.highoncoding.com/Articles/228_GridView_CheckBox_Selection_With_a_Twist.aspx" rel="nofollow">Grid view checkboxes</a></p>
<p>This works fine when i am having one grid view on my form , but if i have multiple... | c# asp.net | [0, 9] |
4,414,880 | 4,414,881 | Detect if browser supports contentEditable? | <p>There's <a href="http://stackoverflow.com/questions/3497942/browser-detect-contenteditable-features">this question</a>, but the solution posted is browser sniffing, which I'm trying to avoid.</p>
<p>I need to make my website compatible with the iPad and perhaps newer Androids. I've been using an old version of the ... | javascript jquery | [3, 5] |
2,430,554 | 2,430,555 | Form reset event doesn't fire in IE | <p>This function fires in firefox/chrome :</p>
<pre><code>$(document).on("reset", "form", function(){
alert("working");
});
</code></pre>
<p>What alternatives are out there for IE (I have 8 installed so I'd like to make it work from 8 onwards).</p>
| javascript jquery | [3, 5] |
5,853,698 | 5,853,699 | Get first two digits of a string, support for negative 'numbers' | <p>I have the following strings in JavaScript as examples:</p>
<pre><code>-77.230202
39.90234
-1.2352
</code></pre>
<p>I want to ge the first two digits, before the decimal. While maintaining the negative value. So the first one would be '-77' and the last would be '-1'</p>
<p>Any help would be awesome!</p>
<p>Th... | javascript jquery | [3, 5] |
3,071,953 | 3,071,954 | Javascript / jQuery - Strip the current page URL | <p>I am currently working on an Enquiry system for our travel website.</p>
<p>When a user submits an enquiry, i have set it to reload the same page (by grabbing the current url and setting it as the redirect).</p>
<p>Upon redirecting my javascript detects if the following string is present in the URL - "?sendto", and... | javascript jquery | [3, 5] |
5,847,077 | 5,847,078 | How do I convert byte to string? | <p>Is there any fast way to convert given byte (like, by number - <code>65</code>) to it's text hex representation? </p>
<p>Basically, I want to convert array of bytes into (I am hardcoding resources) their code-representation like</p>
<pre><code>BYTE data[] = {0x00, 0x0A, 0x00, 0x01, ... }
</code></pre>
<p><em>How ... | c# c++ | [0, 6] |
5,369,220 | 5,369,221 | Loading content in table based upon scrolling position | <p>I'm using jQuery, and I already have a table set up with a specific height, with <code>overflow:scroll</code>. I'm wondering what I should access in order to know when to load more data from the server (I don't need help with the ajax calls or loading the actual data). Rather, I'm trying to understand how to know my... | javascript jquery | [3, 5] |
1,612,605 | 1,612,606 | javascript returns null on first click only | <p>I am making a modal that displays images for the client to viewer in larger form. and slides left and then slides the new image in from the left on click. When I click on the thumbnail on the page it is displays in the modal perfectly. But when I click on the first modal displaying image it returns null and the left... | javascript jquery | [3, 5] |
3,928,226 | 3,928,227 | enabling ASP.NET hyperlink using javascript | <p>I use VS2010,C# to develop my ASP.NET web app, I've created an asp.net hyperlink like this:</p>
<pre><code><asp:HyperLink ID="hpAccept" runat="server" Enabled="false" Target="_parent">Hyperlink</asp:HyperLink>
</code></pre>
<p>as you can see I've defined it as enabled=false, so it is disabled at startu... | javascript asp.net | [3, 9] |
2,130,474 | 2,130,475 | jquery/php form validation(login as well as registration form) | <p>I am working on a project which requires registration/Login...
I want to write a Jquery and php code which validates the data on client side and data on the server side(For log in), if the user enters wrong data stays on same page else redirect to his account...</p>
| php jquery | [2, 5] |
616,158 | 616,159 | Edit Dialog when Application crashes | <p>I would like to know if it is possible to edit the dialog which is displayed when an android application has crashed. I want to edit the whole message "'ApplicationName' has stopped"</p>
| java android | [1, 4] |
1,386,040 | 1,386,041 | jQuery equivalent to "getElementsByName" | <p>What is the correct jquery syntax for a <code>getElementsByName</code> call?</p>
<p>Here is my javascript code:</p>
<pre><code>var test = document.getElementsByName(tableName)[0];
</code></pre>
<p>using this is returning a different value:</p>
<pre><code>var test = $("[name=tableName]");
</code></pre>
<p>Thanks... | javascript jquery | [3, 5] |
41,596 | 41,597 | jQuery / Javascript - How do I convert a pixel value (20px) to a number value (20) | <p>I know jQuery has a helper method for parsing unit strings into numbers. What is the jQuery method to do this?</p>
<pre><code>var a = "20px";
var b = 20;
var c = $.parseMethod(a) + b;
</code></pre>
| javascript jquery | [3, 5] |
5,753,293 | 5,753,294 | populate radio button value after submit | <p>I try to implement the follwing code:</p>
<pre><code> <?php
$yesno1="";
$yesno2="";
$option1="";
$option2="";
$option3="";
if(isset($_POST['submit'])){
$yesno1=$_POST['yesno1'];
$yesno2=$_POST['yesno2'];
$option1=$_POST['option1'];
$option2=$_POST['option2'];
... | php javascript jquery | [2, 3, 5] |
4,825,561 | 4,825,562 | How would my Java program process a JS file to extract function names? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6921427/how-to-get-method-name-from-javascript-file">How to get method name from JavaScript file</a> </p>
</blockquote>
<p>I want to fetch Java Script function name in my Java file.I mean i want some solution so... | java javascript | [1, 3] |
1,357,083 | 1,357,084 | access HttpPostedFile without saving, get error "Request for the permission of type 'System.Security.Permissions.FileIOPermission..." | <p>Can we access HttpPostedFile's uploaded file without saving the file. I am trying to read file's name and size but get error <strong>"Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.</strong>"</p>
<... | c# asp.net | [0, 9] |
5,726,210 | 5,726,211 | Detect Android phone via Javascript / jQuery | <p>How would i detect that the device in use is an Android for a mobile website?</p>
<p>I need to apply certain css attributes to the Android platform.</p>
<p>Thanks</p>
| javascript jquery android | [3, 5, 4] |
5,303,990 | 5,303,991 | Adding links to specific phrases or keywords in jQuery | <p>I am trying to turn specific words or phrases into links with jQuery. So far I have only been successful in changing a span with a class="link" to an anchor tag after a hover event. My problem is that I want them to change when the page loads. As an added benefit it would be nice to target any words or phrases w... | javascript jquery | [3, 5] |
5,388,750 | 5,388,751 | making link disappear from window.open pop up | <p>I have link that opens a window, with <code>window.open("mytest.aspx");</code> the problem i am having is that when they close that pop up window I need to hide that link on the parent page. So basically, how can I hide the link (which is an anchor) on the parent page from the pop up that was opened with window.open... | c# javascript asp.net | [0, 3, 9] |
2,476,379 | 2,476,380 | How to make a socket client ready for sending and recieving without requiring an action from the server? | <p>I have a server.py socket code and client.py. Now I need the client to be always ready (in standby) to receive data even if it doesn't send any to the server. Can that be done ?</p>
| c# python | [0, 7] |
1,288,307 | 1,288,308 | Last segment of URL | <p>How do I get the last segment of a url? I have the following script which displays the full url of the anchor tag clicked:</p>
<pre><code>$(".tag_name_goes_here").live('click', function(event)
{
event.preventDefault();
alert($(this).attr("href"));
});
</code></pre>
<p>If the url is</p>
<pre><code>http:... | javascript jquery | [3, 5] |
2,703,648 | 2,703,649 | Useful undocumented methods and properties of jQuery | <p>I would like to gather all <em>useful</em> undocumented methods and properties of <a href="http://jquery.com/" rel="nofollow"><strong>jQuery</strong></a> (at least for the <a href="http://code.jquery.com/jquery.js" rel="nofollow">current version 1.9.0</a>).</p>
<p>Some of them look quite promising either for solvin... | javascript jquery | [3, 5] |
253,234 | 253,235 | How do i declare this and set values later? (javascript) | <p>This is the code I have and it is not working. I dunno how to declare this</p>
<pre><code> var input = {
container: '.slide_container',
container_all: '.slide_show',
slides: []
};
var $slides = $('.slide_show .slide');
var l = $slides.length;
for( var i = 0; i < l; i+... | javascript jquery | [3, 5] |
2,632,388 | 2,632,389 | How to use queue() with a 'cancel' button? | <p>I am trying to learn how to use the .queue() JQuery method. So I started with a basic animation using only setTimeout. I have the code here:</p>
<p><a href="http://jsfiddle.net/2gJQS/8/" rel="nofollow">http://jsfiddle.net/2gJQS/8/</a></p>
<p>I am wondering how to achieve this same animation using queues. The reaso... | javascript jquery | [3, 5] |
1,210,634 | 1,210,635 | Allow URLs in to website? | <p>I have couple of URLs that I need to allow to access before page load and remaining URLs will be redirected.</p>
<pre><code>expample: If user trying to access these urls they will be allowed and
other urls will be redirected to google.com (example)
http://mysite.com/site/Dept/IT
http://mysite.com/site/Dept/IT/... | javascript jquery | [3, 5] |
4,794,363 | 4,794,364 | Imagebutton not display image | <p>once i click button, my image1 will display an image;</p>
<p>when i set my imagePath to </p>
<pre><code>Server.MapPath("~/SME IMAGE/anonymous_avatar.gif");
</code></pre>
<p>my url not work</p>
<p>but when i set my path to </p>
<pre><code>"~/SME IMAGE/anonymous_avatar.gif"
</code></pre>
<p>my url work</p>
<p>s... | c# asp.net | [0, 9] |
3,596,909 | 3,596,910 | changing date format from dd/MM/yyyy to MM/dd/yyyy | <p>I have a datepicker which shows date in format dd/MM/yyyy(i know i coould change there itself but by client want it that way) and in database its in format MM/dd/yyyy so i do want to convert in that way.</p>
<p>e.g. in text box 23/09/2010 and in c sharp its convert to mm/dd/yyyy(txtbo1.text)</p>
<p>Regards
Indrani... | c# asp.net | [0, 9] |
5,616,270 | 5,616,271 | Call a method when class name not known at compile time | <p>I have a number of sub-games, SubGame1, SubGame2 etc. Each is derived from a SubGame class and implements a static String getDescription() function.</p>
<p>I want to access these descriptions, e.g. SubGame1.getDescription(), SubGame2.getDescription() etc.</p>
<p>However I want to use a code loop and not all the su... | java android | [1, 4] |
304,576 | 304,577 | Getting all the children of an element that are textareas? | <p>I have a bunch of text areas that are children of a div that has an id. I want to get the text in each of those text areas in an array - so is there a way in jquery to get all the children that are of a certain type(in this case text area) of a certain parent?</p>
<p>I've tried this -</p>
<pre><code>$("#optionGrou... | javascript jquery | [3, 5] |
2,280,776 | 2,280,777 | The import javazoom cannot be resolved | <p>hi all
i use the javazoom.jl.player.Player package but it is says The import javazoom cannot be resolved. i am using eclipse and doing Android project. i clean the project still the same error is shown. please correct me.</p>
| java android | [1, 4] |
5,907,006 | 5,907,007 | compare 2 arrays so that if one array has elements within the other array these elements are eliminated from the other array? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1187518/javascript-array-difference">JavaScript array difference</a> </p>
</blockquote>
<p>Using jquery or javascript how do I compare 2 arrays so that if one array has elements within the other array these elem... | javascript jquery | [3, 5] |
4,418,985 | 4,418,986 | how to do a group "unhighlight" on highlighted rows in a table | <p>I have a table in which any time a user clicks on one of the rows it highlights the row. However as of if I have multiple rows highlighted i have to click each individual highlighted row to get rid of the highlight. I want to make it so when an individual is not clicking on the table it will get rid of the highlight... | javascript jquery | [3, 5] |
5,549,020 | 5,549,021 | jQuery syntax: # symbol | <p>This piece of code - defined in a javascript function - is perplexing me...</p>
<pre><code>var defaultsortoption=decodeuricomponent(getParameter("v1",$('#defaultsort').val()));
</code></pre>
<p>I admit to being a novice with javascript and jQuery. I've done some homework and figured out what the selector refers t... | javascript jquery | [3, 5] |
2,599,618 | 2,599,619 | What does '+variable+' mean? | <p>What does this: '+variable+' mean?</p>
<p>I use jQuery append method to add some DOM element:</p>
<pre><code>$('#story_pages').append('<div><button value="'+window_value+'" onclick= "reload_to_canvas(this.value)" ><img id="w'+window_value+'", src=white_data_URL, width="100px", height="100px"/> &l... | javascript jquery | [3, 5] |
3,685,496 | 3,685,497 | replace Nth occurence in string - JavaScript | <p>I'm sure this was supposed to work, but I can't get it doing what I want it to:</p>
<pre><code>new_str = old_str.replace(3, "a");
// replace index 3 (4th character) with the letter "a"
</code></pre>
<p>So if I had <code>abcdef</code> then above should return <code>abcaef</code> but I must have gotten something wro... | javascript jquery | [3, 5] |
3,503,078 | 3,503,079 | .css function does not work inside of handler function | <p>I want to change css properties inside of a named function thant handles the click event. If I call .css in an anonymous function defined in the click event, it works. However, I want to call .css inside of a named function defined inside the handler function. Here's my code. </p>
<pre><code>$(document).ready(funct... | javascript jquery | [3, 5] |
4,483,525 | 4,483,526 | disable/enable buttons | <p>I'm working in ASP .Net. I need to be able to click a button, disable it, have the code behind kick in and execute some functions and once they are done, enable the button again. There is no postback taking place per say in this project as we are using an UpdatePanel. About as far as I've been able to get successful... | c# asp.net | [0, 9] |
5,343,342 | 5,343,343 | jQuery selector with variable, not updating when variable changes | <p>'I am trying to do something like the below that will run a function when clicking the "hit" class only when the parent "box" id is correct.</p>
<pre><code>var selected = 1;
$('#box-' + selected + ' .hit').click(function(){
selected = randomFromTo(1,5);
});
</code></pre>
<p>The <code>selected</code> var... | javascript jquery | [3, 5] |
827,296 | 827,297 | jquery: unload or beforeunload? | <p>I want to post an message to the server when user navigate off from the current page, I am using .unload right now but the result is unreliable, even in its document is said true:</p>
<blockquote>
<p>The exact handling of the unload event
has varied from version to version of
browsers. For example, some versi... | javascript jquery | [3, 5] |
1,393,484 | 1,393,485 | Advice on creating a screensaver updatable via a CMS | <p>I've been asked to provide someone with a screensaver which contains some content pulled from a mysql database. Having never developed a screensaver before, I'm wondering how best to go about this. The screensaver will be used in an office of around 20 machines running Windows - I was originally going to use Flash t... | java python | [1, 7] |
652,119 | 652,120 | How to escape quotes in while creating a textbox in jquery / javascript? | <p>I have a couple of span elements and I need to get the contents of these span elements into a textbox so the user can edit.</p>
<p>There might be any number of span elements, so the textboxes have to be created at runtime. The problem I'm having is that when the text contains a single quotes, it's messing with my t... | javascript jquery | [3, 5] |
5,070,595 | 5,070,596 | adding alternate text to a programmatically created image | <p>So I have an ashx file that creates an image with text written on it.</p>
<pre><code>//create the image for the string
Font f = new Font("Arial", 15F);
Graphics g = Graphics.FromImage(b);
SolidBrush whiteBrush = new SolidBrush(Color.FromArgb(0,71,133));
SolidBrush blackBrush = new SolidBrush(Color.White);
Rectangle... | c# asp.net | [0, 9] |
4,858,892 | 4,858,893 | __dopostback is not working in javascript function | <p>am calling <code>__dopostback</code> function in javascript while closing event of browser but its not working in Chrome.</p>
<p>the same function is working in IE </p>
<p>can any one give me the solution.</p>
<pre><code><script type="text/javascript" language="javascript">
function doUnload()
{
var btn... | javascript asp.net | [3, 9] |
2,701,964 | 2,701,965 | How get the second td innerHTML | <p><strong>Scenario:</strong></p>
<p>Im using datatable library to display alot of information. That table have the following rows:</p>
<pre><code>Id Type Name Case
</code></pre>
<p>What i'm looking for is that when i click the second row <strong>Type</strong>, that value will be taking and pasted in a te... | javascript jquery | [3, 5] |
1,077,417 | 1,077,418 | How can I wrap just a part of an element’s content using jQuery? | <p>how can I wrap a part of a content when I have elements and normal text? I've tried <code>.after()</code> but this automaticaly adds a closing tag.</p>
<p>I have got this:</p>
<pre><code><div class="block">
<a href="#">example 1</a>
.
<a href="#">example 1</a>
.
&l... | javascript jquery | [3, 5] |
2,750,892 | 2,750,893 | Intranet WebSite with Windows Authentification and Forms Authentification | <p>Ok, so my background to the problem that i am facing is:</p>
<p>I was given a project to built an intranet website for my company in C# and ASP.NET. At first the specifications were that the site would have a normal login based page with forms (so Forms Authentification). After the project was done, about 90%, the ... | c# asp.net | [0, 9] |
2,854,269 | 2,854,270 | How do you configure SWFUpload to work with an ASP.NET C# WebService? | <p>I'm trying to use SWFUpload with an ASP.NET Web Forms project. I need to get at Request.Files[0] But I can't do that in my WebService! </p>
<p>Anyone know a way around this?</p>
<p>Thanks in advance.</p>
| c# asp.net | [0, 9] |
2,902,412 | 2,902,413 | How can I insert a variable into a variable string? | <p>I have this code which I need to set a unique <code>title</code>:</p>
<pre><code>var tmpImg = '<img src="/admin/icons/cross.png" title="' + title + '" />';
$(this).find("tr td input").each(function(){
title = $(this).attr("value");
$(this).hide().before(tmpImg);
});
</code></pre>
<p>What I want to h... | javascript jquery | [3, 5] |
4,616,798 | 4,616,799 | How to send udp packets using Ip address from source to destination host? | <p>Source side:</p>
<pre><code>import java.io.*;
import java.net.*;
class Server
{
public static void main(String args[]) throws Exception
{
DatagramSocket ds = new DatagramSocket(50074);
byte[] ms = new byte[1024];
String a="Computer";
ms=a.getBytes();
DatagramPacket ps = new Datagram... | java android | [1, 4] |
1,718,841 | 1,718,842 | Change URL on first and second clicks | <p>I've searched the internet and stackoverflow for how to trigger a second click function and this is what I found:</p>
<pre><code>$('.elementclass').toggle(
function(){
//on odd
},
function(){
//on even
});
</code></pre>
<p>It's perfect. Now according to this I try to change the URL of my document but so... | javascript jquery | [3, 5] |
2,184,702 | 2,184,703 | Get Column Header in TableCellCollection in asp.net | <p>I am using a website and i have a gridview in that website.... I want to delete a row in that gridview by using that selected row column values and Column headers... i got the column values by using TablecellCollection but i cant get that column value's Corresponding Column header.... how shall i get that Column hea... | c# asp.net | [0, 9] |
1,154,026 | 1,154,027 | How to Set Layout Background in Android UI | <p>I'm new to Android programming. I have a UI with some <code>TextView</code> and <code>Button</code> controls. How do I set a background behind those components? Lets call it <code>background.png</code>. </p>
| java android | [1, 4] |
639,009 | 639,010 | In asp.net how to validate textbox depending on other text box? | <p>In asp.net Depending on Experience I should validate the salary of an employee. </p>
<p>If the employee is fresher his salary should be 1 lac to 1.5 lac. Or salary = 1.5 lac * years of exp to 3.5 * years of exp.</p>
<p><em><strong></em>**</strong> i have tried his*<strong><em>*</em>**</strong>
protected void B... | c# asp.net | [0, 9] |
22,073 | 22,074 | need help with real-time program in asp.net | <p>i need to build asp.net program that connect to sql-server 2008</p>
<p>i have in my program row count that count my database rows.</p>
<p>i need to see allwais this row count.</p>
<p>is there any way to show this ? any refresh ? or i need to run all the time any query ? any timer ?</p>
<p>i need something that n... | c# asp.net | [0, 9] |
5,033,943 | 5,033,944 | Emulator show's spinner value's tablet show's empty value | <p>In my application i use an MYSQL databank. And i try to load the value's from the Database into the spinner. In the (eclipse) emulator this works perfectally (all items get loaded into the spinners) .</p>
<p>But when i try to run my application on my tablet (honeycomb 10.1) the value's from the database don't show... | java android | [1, 4] |
2,900,429 | 2,900,430 | Javascript regex replace if the matched string length is greater than limit specified | <p>I am using javascript regex to add a html markup for all the urls found like:</p>
<pre><code> var exp = /(((|www\.|(http|https|ftp|news|file)+\:\/\/)[&#95;.a-z0-9-]+\.[a-z0-9\/&#95;:@=.+?,##%&~-]*[^.|\'|\# |!|\(|?|,| |>|<|;|\)]))/ig;
popupText = popupText.replace(exp , "<font color='red'>"... | javascript jquery | [3, 5] |
3,006,638 | 3,006,639 | Any php code to make embed code of video? | <p>I Want a php code to turn a youtube/dailymotion/vimeo/metacafe... URL into an EMBEDABLE code so i can show it using <code>echo</code> , it is really hard to read the API of every website, so i'm wondering if there is a class or code to do this.</p>
<p>Note: if there isn't anyone, then maybe a jQuery facebox alterna... | php jquery | [2, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.