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,814,481 | 1,814,482 | Toggle element visibility with jQuery! | <p>I have the following markup:</p>
<pre><code><div class="header">Text</div>
<div class="hiddenArea">sdsada</div>
<div class="header">Text2</div>
<div class="hiddenArea">sdsada</div>
</code></pre>
<p>and the following jQuery:</p>
<pre><code>$('.header').click(functio... | javascript jquery | [3, 5] |
1,209,812 | 1,209,813 | Alternative to document.getElementById().setAttribute() function | <p>Is there any alternative to doing the following line:</p>
<pre><code> document.getElementById("btn").setAttribute("onclick", "save(" + id + ");");
</code></pre>
<p>This line basically changes the <code>onclick()</code> event of a button to something like: <code>save(34); , save(35);</code> etc. However it fails in... | javascript jquery | [3, 5] |
2,001,069 | 2,001,070 | Data not displaying in dynamic drop down list asp.net & C# (no errors too) | <p>// aspx code</p>
<pre><code> <asp:DropDownList ID="DropDownList1" runat="server" DataTextField="fullname" DataValueField="username" AutoPostBack="True" Width="125px" Height="22px"></asp:DropDownList>
</code></pre>
<p>// Code behind</p>
<pre><code> SqlConnection myConnection = new SqlConnection("Serv... | c# asp.net | [0, 9] |
1,695,936 | 1,695,937 | Can we get the jQuery Validate error type? | <p>I am using the jQuery Validation Plugin. Is there any way to get the type of error from the jQuery form validation? For example,</p>
<pre><code>$('registration-form').validate({
rules: {
email: {
required: true,
email: true
}
},
messages: {
email: {
... | javascript jquery | [3, 5] |
1,743,815 | 1,743,816 | IPhone and Android website design | <p>How do you design and build your website to make it usable on both IPhone and Android, does it have to be pure html?</p>
| iphone android | [8, 4] |
885,244 | 885,245 | Basic Android development questions | <pre><code>onCreate(Bundle State)
{
TextView label = new TextView(this);
lable.setText("My new Label");
}
</code></pre>
<p>I read that the <code>TextView</code> has a reference to the <code>Activity</code>.
What does it mean for something to have a reference on something else?</p>
| java android | [1, 4] |
4,546,313 | 4,546,314 | OnBeforeUnload if qty inputs are differents of 0 | <p>I have html table like this : </p>
<pre><code><table border="1">
<tr>
<td>Prod name </td>
<td>Qty</td>
<td>Add to cart </td>
</tr>
<tr>
<td>product 1 </td>
<td><input name="super_group[961]" type="text" class=... | javascript jquery | [3, 5] |
2,137,198 | 2,137,199 | Can't set property to object | <pre><code>var data = {};
....
data[someprop][someotherprop] = 'bla bla'
</code></pre>
<p>I get</p>
<p><code>Uncaught TypeError: Cannot read property ... of undefined</code> and <code>Cannot set property of...</code></p>
<p>Yes, the object doesn't have these properties ..yet, but I'm setting them in that line whe... | javascript jquery | [3, 5] |
1,382,034 | 1,382,035 | get first occurred only in an array | <p>i have an arrayX of three elements , and i'm using $.inArray() to search for this three element in another arrayY ... and returning the location for each X element in Y</p>
<pre><code>X = [1,2,3] ;
y = [1,5,6,1,6,9,3,2] ;
</code></pre>
<p>But there is duplication in <code>y</code>, 1 occurred twice in <code>y[0]</... | javascript jquery | [3, 5] |
742,700 | 742,701 | jQuery: How to remove this code redundancy? | <pre><code> clone.find('[id]').each(function() {
id = $(this).attr('id');
ind = id.search(/\d+$/);
$(this).attr('id', id.substr(0,ind)+id_counter);
});
clone.find('[for]').each(function() {
id = $(this).attr('for');
ind = id.search(/\d+$/);
$(this).attr('for', ... | javascript jquery | [3, 5] |
3,673,312 | 3,673,313 | why does jquery work differently in various browsers | <ol>
<li><p>If jQuery is just a bunch of javascript libraries why would some
features not work in certain browsers?</p></li>
<li><p>If the jQuery tests have
been ran on a WebkitBased browser, can it automatically be assumed
that all other WebkitBased browsers will have the exact same
behavior whether mobile/desktop or ... | javascript jquery | [3, 5] |
1,398,246 | 1,398,247 | How to force a directory listing using SimpleHTTPServer? | <p>I have an <code>index.html</code> on the folder where SimpleHTTPServer is running, but depending on the value of a URL GET parameter I want to show a directory listing instead. Is that possible? I was trying to query the root directory using ajax, but it returns <code>index.html</code>by default. </p>
<p>I guess on... | javascript python | [3, 7] |
5,411,674 | 5,411,675 | Parse Contact details from a block of text | <p>Im trying to create a Business card reader</p>
<p>Im having a block of text for example</p>
<pre><code>Name
Head - Business Development
Company Name
# 2/324, ll Floor, Some Road,
Street, City-Zip, State, Country.
Tel : +987654321
Mobile: +123456789
Email : mail@comany.com
Website : www.comany.com
</code></pre>
... | java android | [1, 4] |
5,064,191 | 5,064,192 | Asp.Net Get Screen Width | <p>How can I get the screen width in server side in Asp.net (C#) project?</p>
<p>Thanks,
John</p>
| c# asp.net | [0, 9] |
994,816 | 994,817 | Get values of called file | <p>I am calling a .php file in this code. In the file "fetchvalues.php", I am fetching results from the database and want to return the column values back to the calling JQuery function and display them on HTML controls of my page.</p>
<p>How to do so?</p>
<pre><code>$(document).ready(function() {
$("#Edit").clic... | php jquery | [2, 5] |
1,784,566 | 1,784,567 | Is it possible to have "inherited partial structs" in c#? | <p>Is it possible to use partial structs to achieve something like this:
Have an asp.net page base class with the following defined:</p>
<pre><code>public partial struct QuerystringKeys
{
public const string Username = "username";
public const string CurrentUser = "currentUser";
}
</code></pre>
<p>Have an asp... | c# asp.net | [0, 9] |
1,152,387 | 1,152,388 | Adding Content During Runtime | <p>I've just started learning Android, and have been working on a simple application where the user has a simple conversation with the computer.</p>
<p>My question is, how can I set up the UI in a way that allows the input from the user to be displayed on the view, during runtime? As the input prompts increase, there ... | java android | [1, 4] |
1,113,196 | 1,113,197 | JQuery - clone element and change attributes for multiple attributes | <p>I have several elements like this:</p>
<pre><code> <div class="image_insert clearfix">
<label for="userfile3">Image 3</label>
<input type="file" name="userfile3" id="userfile3">
<label for="slika_naziv_eng3">Image Title</label>
<input type="text" name="slika_n... | javascript jquery | [3, 5] |
2,641,934 | 2,641,935 | Save a file where user wants, and in HTML or XML format only | <p>I'm developing a web application using asp.net. There is a text box which contains a HTML or XML file(loaded from server). After validating the file, I want to store that file where the user wishes to save(client), and the user must save in HTML or XML format only.
I had developed a code, but it automatically saves,... | javascript asp.net | [3, 9] |
3,119,185 | 3,119,186 | Android Development: Class That Creates an Object, Calls Some Methods Then Returns That Object (How?) | <p>I'm wondering how I'd go about making a class, let's call it Class Master, where:
- You call Class Master and it calls Class A, and calls some of that Class A's methods, then returns Class A so you can call methods from the returned Class A where ever you called Class Master.</p>
<p>Basically, I want to turn this c... | java android | [1, 4] |
2,401,337 | 2,401,338 | How do I access the ASP control within span through span ID? | <p>I use custom control which creates a span and 2 asp controls with int.</p>
<pre><code><abc:edf runat="server" ID="testing" ... />
</code></pre>
<p>Now my questions is how do I access the asp control within span through span ID in javascript?</p>
<p>I can get to it by </p>
<pre><code>var test = $get('<%=... | c# javascript asp.net | [0, 3, 9] |
2,200,055 | 2,200,056 | JS Function Wrapping | <p>Consider the following two code examples:</p>
<pre><code>// Example 1
$('#myButton').click(function() {
alert('I was clicked');
});
// Example 2
$('#myButton').click(
alert('I was clicked');
);
</code></pre>
<p>Why specifically does example 2 not work?</p>
| javascript jquery | [3, 5] |
5,964,442 | 5,964,443 | Replace Div with content | <p>I'm new to javascript/jquery and there is something fundamental that I am overlooking. I want to replace the content of a div with some text by calling a function. Absolutely every thing I have tried has failed. </p>
<p><a href="http://jsfiddle.net/spuder/dTGBy/" rel="nofollow">http://jsfiddle.net/spuder/dTGBy/</a>... | javascript jquery | [3, 5] |
4,183,208 | 4,183,209 | How does jQuery's .delay method work under-the-hood? | <p>I just saw this and think it's cool.</p>
<pre><code>console.log("Starting...");
$("#my_element")
.fadeIn()
.delay(3000)
.fadeOut();
console.log("Finishing...");
</code></pre>
<p>How does the .delay method work under-the-hood? I mean, how does it figure out how to wait 3 seconds but not interrupt the main co... | javascript jquery | [3, 5] |
5,570,026 | 5,570,027 | Piece of code to execute AFTER execution of other code | <p>I have a piece of code I want to execute after another piece of code. Now I'm using setTimeout but it's not a good solution.</p>
<p>For example, I'm using a text editor which of course needs time for initialization.</p>
<pre><code>myTextEditor.initialize();
setHeightToMyTextEditor();
</code></pre>
<p>In this exam... | javascript jquery | [3, 5] |
4,241,434 | 4,241,435 | Very Simple Routing on One page website | <p>I'm developing a simple one page website, where the pages scroll horizontally using the scrollTo() javascript library. I have a home / about / contact page. I was wondering if there was a way to still use some form of URL routing like www.example.com/about, to get the about page, and would get updated in the browser... | javascript jquery | [3, 5] |
3,674,840 | 3,674,841 | how to change textbox textmode using jquery | <p>i have a login component and within it the password field has a textmode of singlline </p>
<p>what i am trying to do is on focus the textmode will change to password</p>
<p>i tried this :</p>
<pre><code>$(function () {
$(".PassTextBox").focus(function (pas) {
$(".PassTextBox").attr("TextMode", "Password... | jquery asp.net | [5, 9] |
2,220,610 | 2,220,611 | Can I get jQuery autocomplete to match input without going through dropdown? | <p>I would like to get my autocomplete to return a "hidden" property when I blur out of the textbox or press enter. The data is in format <code>{value: "Pal", pts: "30"}</code>. I want to obtain <code>pts</code>. Here's an example:</p>
<p><a href="http://jsfiddle.net/ctuAg/4/" rel="nofollow">http://jsfiddle.net/ctuAg/... | javascript jquery | [3, 5] |
737,634 | 737,635 | How to check current tag element in javascript? | <p>I've a GridView with three rows like this</p>
<pre><code><tr>
<th>SlNo</th>
</tr>
<tr>
<td>1</td>
</tr>
<tr>
<td>2</td>
</tr>
</code></pre>
<p>I've the following code to traverse through the rows</p>
<pre><code>var GridViewRow=GridVi... | javascript asp.net | [3, 9] |
2,547,428 | 2,547,429 | data appear and disapear when jquery loads | <p>i have this code bellow and i have select options with <code>$menucompare</code> values .</p>
<pre><code><script>
function displayVals() {
var singleValues = $("#menucompare").val();
$("#hiddenselect").attr("value", singleValues );
$("p").html("Procent of: " + singleValues);
}
$("select").c... | php jquery | [2, 5] |
1,026,480 | 1,026,481 | Show button if input is not empty | <p>I am not much of a JavaScript guru, so I would need help with a simple code.
I have a button that clears the value of an input field. </p>
<p>I would like it (the button) to be hidden if input field is empty and vice versa (visible if there is text inside the input field).</p>
<p>The solution can be pure JavaScrip... | javascript jquery | [3, 5] |
3,466,738 | 3,466,739 | pop up until jquery finishes processing | <p>I am new to jquery and I need to figure out how to do the following:</p>
<p>I have a submit button on my page and when clicked a jquery function is executed. The function will load some information from mysql and echo a table with that information.</p>
<p>My problem is that this takes time and meanwhile the user i... | php jquery | [2, 5] |
5,635,367 | 5,635,368 | jQuery code placement suggestion | <p>I <em>know</em> this is going to sound like a dumb question, but as I'm learning jQuery by example, I'm finding that the placement of the scripts and functions varies a lot from example to example. Case in point, somewhere I read that the .onReady function should be placed below everything else to insure that the w... | php jquery | [2, 5] |
3,867,928 | 3,867,929 | JavaScript function pointer problem | <p>just starting out with JavaScript and jQuery, and i have this problem:</p>
<pre><code>foo(validation);
function foo(func) {
var time = new Date().getTime();
// do some other stuff
func("foobar" + time);
}
function validation(elementName) {
// do stuff
}
</code></pre>
<p>but when i call function foo with ... | javascript jquery | [3, 5] |
1,899,694 | 1,899,695 | android http post request | <p>I am trying to continuously save sensor data from my Android app into txt file online. At the same time I want my html page read that data. However, I am getting server time-out warning for my server. In fact, I set up a setInterval("RedisplayBall()", 1000) inside my javascript which gets txt data using ajax:</p>
<... | javascript android | [3, 4] |
3,232,536 | 3,232,537 | preventDefault() on an <a> tag | <p>I have some html/jquery that slides a div up and down to show/hide it, when a link is clicked:</p>
<pre><code><ul class="product-info">
<li>
<a href="#">YOU CLICK THIS TO SHOW/HIDE</a>
<div class="toggle">
<p>CONTENT TO SHOW/HIDE</p>
</div>
</... | javascript jquery | [3, 5] |
14,023 | 14,024 | How to get jQuery added values in aspx page at server side on Submit button click? | <p>When user clicks 'add new' button I want to add more textbox into the page, so that he can add n number of values. I will do this with jQuery. But on submit click I want to get values from all the fields at server side. How can I accomplish this? </p>
| javascript jquery asp.net | [3, 5, 9] |
3,388,745 | 3,388,746 | how to bind function on dynamically created node | <p>I'm writing a placeholder enabling function</p>
<pre><code>var t=document.createElement("input");
"placeholder" in t||$("input").each(function(){
if("submit"!==$(this).attr("type")){
var n=$(this),l=n.attr("placeholder");
n.css("color","#ccc").val(l);
n.focus(function(){("#ccc"==n.css(... | javascript jquery | [3, 5] |
5,719,607 | 5,719,608 | linkbutton will not fire | <p>This is continued from <a href="http://stackoverflow.com/questions/11849539/link-button-in-repeater-to-pass-session-variable">link button in repeater to pass session variable</a> but nothing happens when I try to click the link button I added to my repeater. Here is what I have</p>
<pre><code><asp:Repeater ID="r... | c# asp.net | [0, 9] |
4,989,311 | 4,989,312 | Add smoothness between changing images with jQuery | <p>I have this code that changes the image when a user rolls over a map area on my United States map. It is working perfectly. But I want the the images to have a smooth appearance and then a gradual fade away. What do I need to add to this code? Thanks! </p>
<pre><code>$(document).ready(function() {
//set off state ... | javascript jquery | [3, 5] |
4,187,527 | 4,187,528 | How do I add an option to a select box in a parent window using jquery? | <p>In my child window I have </p>
<pre><code>$('#opfile').addOption("someval",sometext");
</code></pre>
<p>Problem is #opfile is an a parent window I cant get it to communicate</p>
<p>I tried</p>
<p>window.opener.$('#opfile').addOption("someval",sometext");</p>
<p>but no luck any ideas?</p>
<p>Update</p>
<p>Emba... | javascript jquery | [3, 5] |
1,785,471 | 1,785,472 | How to call a sever side contol on Jquery Model pop up click | <p>I want to call a server side grid control on jquery model pop up's OK button click.
Could some body tell me on it, i have been toiling for long.</p>
<p>as i have following model pop up code</p>
<pre><code><script type='text/javascript'>
$(function dressing() {
var v;
$("#dialo... | jquery asp.net | [5, 9] |
4,167,736 | 4,167,737 | Not choosing existing selection when randomising | <p>I have created a speech bubble that displays quotes that I store in lists. When I click the bubble it picks another quote from the list at random, but sometimes chooses the one it is already displaying. How would I prevent it from doing this?</p>
<pre><code><ul class="joke-list">
<li id="quotes">
... | javascript jquery | [3, 5] |
1,243,135 | 1,243,136 | Best practice to organize image picking and store it into private folder | <p>I'm developing some android application what's need a image picking functionality (from camera and from galery)</p>
<p>After some research I know how to start intents for it, and how to store it in directory.
But I don't know how can I easily show pictures to user.</p>
<p>My opinion is to save camera images as far... | java android | [1, 4] |
4,602,602 | 4,602,603 | Auto fill text boxes based on drop down selected | <p>I am working on .asp webpage. I used javascript as the script language. I have a drop down with values populated from agencies table in database. In that agencies table , there are many other columns like contact information, phone number ,E-mail etc. If user selects an agency from drop down , the text boxes below t... | javascript asp.net | [3, 9] |
4,474,580 | 4,474,581 | Updating TextView | <p>I can't seem to get things to display programatically using text views? I have a main.xml:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
... | java android | [1, 4] |
1,481,801 | 1,481,802 | Android: Can we store the user input in a variable, Permanently? | <p>For example, I have an EditText and user inserts some text in it. We can store the input in the variable until the app is running. But can we store it permanently, so that after the user restarts the app, the variable will still hold the previously entered text.</p>
| java android | [1, 4] |
2,325,213 | 2,325,214 | Want to stop countdown and give out put as time up | <p>Hello i want when my countdown end it should give out as:</p>
<pre><code>document.getElementById("remain").innerHTML = "Time up";
</code></pre>
<p>Live countdown here : <a href="http://ffsng.deewayz.in/counter/" rel="nofollow">http://ffsng.deewayz.in/counter/</a></p>
<p>As its about to end i want to give out put ... | php javascript | [2, 3] |
4,649,215 | 4,649,216 | Javascript: How to remove an array item(JSON object) based on the item property value? | <p>like this: </p>
<pre><code>var arr = [
{ name: "robin", age: 19 },
{ name: "tom", age: 29 },
{ name: "test", age: 39 }
];
</code></pre>
<p>I want to remove array item like this(an array prototype method):</p>
<pre><code>arr.remove("name", "test"); // remove ... | javascript jquery | [3, 5] |
3,450,911 | 3,450,912 | Uploading a file using android without using MultiPartEntity | <p>Hi i have to upload a file without using MultiPartEntity in android because it set the content format to multi-part /form data.this format is not supported in my api call.can any one help how to upload a file using httppost method.i wrote the code for HttpPost method but its showing the error that api dont support m... | java android | [1, 4] |
4,219,786 | 4,219,787 | The remote server returned an error: 227 Entering Passive Mode (89,202,213,212,6,32) | <p>Briefly,<br>
I'm trying to read 5000 xml files from ftp but it throws
The remote server returned an error: 227 Entering Passive Mode (89,202,213,212,6,32) on reading 1500th xml file. what shall i do somebody help me. </p>
<pre><code>string[] files;
files = GetFileList();
foreach (string file in files)
{
xml... | c# asp.net | [0, 9] |
5,672,378 | 5,672,379 | Javascript not working as expected, why? | <p>I have javascript to set equal column heights of two divs contained by a parent div. Somebody even coded an working example that works (mine doesn't). What I have found is that it IS setting the height of the container which contains the two divs I intended to set. Why is my script setting the container height ra... | asp.net javascript jquery | [9, 3, 5] |
2,712,858 | 2,712,859 | How do I set the body of a HttpPut on Android? (without adding libraries) | <p>I want to upload some data from an Android application to Pachube.</p>
<p><a href="http://hurl.it/?url=http://api.pachube.com/v2/feeds/YOUR_FEED_ID.json&header-keys%5B%5D=X-PachubeApiKey&header-vals%5B%5D=YOUR_API_KEY_HERE&method=PUT&post-body=%7B%22title%22%3a%22Your%20Changed%20Title%22,%22version... | java android | [1, 4] |
1,785,900 | 1,785,901 | Create javascript property like C# property | <p>Is it possible to create a property on a javascript object that behaves similar to a property in C#.</p>
<p>Example:
I've created an auto-sizing textarea widget using dojo. In order to get the "value" property out of my widget, I've hooked up to the onchange event and I'm setting a variable everytime the value of ... | c# javascript | [0, 3] |
5,354,658 | 5,354,659 | Regex ReplaceAll Doesn't Work | <p>I copied this code from another StackOverflow post. However, I am having some issues with it. The items matching the pattern specified should be replaced but they are not.</p>
<p>The code is:</p>
<pre><code>protected String FixHexValuesInString(String str){
Log.v(TAG, "before fix: "+ str);
Matcher matcher ... | java android | [1, 4] |
760,576 | 760,577 | How can I control the usage of a custom jar library? | <p>I need a way to essentially secure my jar library to allow registered apps to use it in their projects and deny usage to apps that weren't approved by me.</p>
<p>It is fine if I hard code things in the lib for each distribution. I currently have this jar obfuscated.</p>
<p>What are good approaches to restrict the ... | java android | [1, 4] |
203,559 | 203,560 | textboxes on dropsown select | <p>I am beginner with jQuery. I want to use drop down in my page. Depending upon the selection of drop down value, no of text boxes should appear in page. Suppose I selected 8 than 8 text boxes appear and if then I select 4 than rest four should be removed. Please give me idea how to do it using jQuery.</p>
| javascript jquery | [3, 5] |
2,400,033 | 2,400,034 | jQuery AJAX tabs + PHP | <p>seems like I'm stuck with jQuery tabs. I'm trying to pass selected tab name to some php script but is seems like it doesn't get any data. </p>
<p>This is how tabs normally work without any response from server side:
<a href="http://pastebin.com/KBxj7p5k" rel="nofollow">http://pastebin.com/KBxj7p5k</a></p>
<p>And t... | php jquery | [2, 5] |
1,746,498 | 1,746,499 | how to create the div on the fly in javascript / jquery in this way | <p>i have asp.net mvc 2 application where i have a scenario as follows:
I want to create the parent div and in side it want to create n-number of divs with controls.like</p>
<pre><code> for(j=0;j<parentCount;j++)
{
//Create the parent div
for(i=0;i<childDivCount;i++)
{
//create child div... | javascript jquery | [3, 5] |
117,036 | 117,037 | How to make a form to submit itself | <p>I have a form with a <code><select></code> on the page. when the user selects an option, I want the form to submit itself. How can I do this?
Thanks</p>
| php javascript jquery | [2, 3, 5] |
1,900,591 | 1,900,592 | Travel though all <img /> and replace .png with .svg | <p>How can I, in javascript or jquery, travel through each of the <code><img /></code> tag in a page, check if it is a .png extension, replace the .png extension, if it is a .png extension, with .svg?</p>
| javascript jquery | [3, 5] |
1,842,178 | 1,842,179 | How to tell what is passed when no value exists | <p>For this code, how do you know that null is returned if there is no value in the querystring?</p>
<pre><code>HttpContext context = HttpContext.Current;
string strValue = context.Request[name];
</code></pre>
<p>I'm asking because I never know what's being returned in many cases in the .NET framework when you don't ... | c# asp.net | [0, 9] |
519,184 | 519,185 | Writing a string to textfile in Android | <p>How Can I write a String to a text file,I should be able to specify the location of the file(or some how open and see its content,It is not necessary that it should be located in Computers memory), please provide me with the code snippet.
Thank you in advance for all the responses.</p>
| java android | [1, 4] |
4,120,543 | 4,120,544 | Jquery to call next step after returning false? | <p>I am writing validation on a custom dropdown DD1 and DD2, but when it checks for DD1, and return false, it doesn't check for DD2. Can you please suggest me?</p>
<p>In the below script, i am calling Validatechecked function where it checks whether the dropdown has selected values, it works for only one dropdown. How... | jquery asp.net | [5, 9] |
2,067,008 | 2,067,009 | How to store the variable returned from a closure function? | <p>Noticed the code of the <code>submitHandler</code> was being used in several places, and tried to refactor it out.</p>
<pre><code>var validator = $("#form_id").validate({
errorClass: "ui-state-error",
submitHandler: function(form) {
jQuery(form).ajaxSubmit({
... | javascript jquery | [3, 5] |
249,006 | 249,007 | moving the content of a div to another div with jquery | <p><a href="http://www.frostjedi.com/terra/scripts/demo/jquery02.html" rel="nofollow">http://www.frostjedi.com/terra/scripts/demo/jquery02.html</a></p>
<p>According to <a href="http://www.elated.com/articles/jquery-removing-replacing-moving-elements/" rel="nofollow">this link</a> elements can be moved around by doing ... | javascript jquery | [3, 5] |
1,889,499 | 1,889,500 | Get Mouse click position and Set that position as cursor Position in asp.net texbox with ajaxToolkit:MaskedEditExtender | <pre><code><asp:TextBox ID="txtZip" runat="server" class="inputbtn" MaxLength="5" TabIndex="10"
Width="80px" OnBlur="return SetZip()"></asp:TextBox>
<ajaxToolkit:MaskedEditExtender ID="meeZip" runat="server" AutoComplete="false" InputDirection="LeftToRight"
... | c# javascript asp.net | [0, 3, 9] |
3,421,162 | 3,421,163 | Open a File Share link from Window.open javascript | <p>I am trying to open a file share link from the window.open ....... but its adding the <a href="http://localhost/vdir/" rel="nofollow">http://localhost/vdir/</a> before the path can any one say what is the problem?</p>
| javascript asp.net | [3, 9] |
1,268,620 | 1,268,621 | How to split the content of a DIV tag to multiple DIVs? | <p>I have a <code>DIV</code>tag with specific Width and height attributes.</p>
<pre><code><div style="width:793px;height:1096px"> A long text and pictures</div>
</code></pre>
<p>I want to separate the <code>DIV tag</code> to multiple <code>DIV tags</code> when the lines and pictures are exceeded the first... | javascript jquery asp.net | [3, 5, 9] |
6,022,860 | 6,022,861 | Make Parent Attribute | <p>can someone help me with jquery. i have a html TAG like this</p>
<p><code><p class="celak">hohohohoho</p></code></p>
<p>and i want to make the output (give its parent) be like this</p>
<p><code><div class="celak-parent"><p class="celak">hohohohoho</p></div></code></p>
<p>is th... | javascript jquery | [3, 5] |
5,902,740 | 5,902,741 | How can we make the backward button disable in the all browsers? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/961188/disable-browsers-back-button">Disable browser's back button</a> </p>
</blockquote>
<p>Hi everyone,I have a portal site and i want to make the backward button to disable state after the user gets logou... | c# asp.net | [0, 9] |
3,965,768 | 3,965,769 | clone values of select fields into span or any other html elements | <p><img src="http://i.stack.imgur.com/aH5Pp.png" alt="enter image description here"></p>
<p>this is the fields I have in the app, I need to clone this values into some span elements or any other html elements, so it will be a clone of the date that I select from selectors:</p>
<pre><code><select id="massmedium_reg... | javascript jquery | [3, 5] |
5,865,158 | 5,865,159 | Can I write an Android app in Java and convert it later? | <p>I've got a lot of experience in Java but none developing mobile apps. I'd like to write an application using Java/Swing and then convert it for use on an Android phone.</p>
<p>Is this feasible or do I really need to develop from the ground up for the Android platform?</p>
<p>I don't own an Android phone as I can'... | java android | [1, 4] |
2,991,008 | 2,991,009 | How can i create a online catch tool which can capture part of a web page? | <p>I saw this demo: <a href="http://www.gbin1.com/technology/democenter/20120720jsoupjquerysnatchpage/index.html" rel="nofollow">Capture demo</a>, it looks it use jsoup to capture the web element. Do we have any other choice for capture the web page content better? FOR example, capture the part of web page, and also in... | java javascript jquery | [1, 3, 5] |
768,965 | 768,966 | get a forms values via jquery, post to a php script, and have php script process for errors and return value | <p>I have this form:</p>
<pre><code><form action= 'addperm.php' class = 'addperm' method='post'>
<input type='text' name='user' /><br />
<input type='radio' name='perm' value='1' CHECKED /> Can view only<br />
<input type='radio' name='perm' value='2' /> Can make changes <... | php jquery | [2, 5] |
3,945,901 | 3,945,902 | execute string as javascript function | <p>My object has a call back:</p>
<pre><code>var MyObject = {
CallBack: "function (whichSubMenuIsClicked, subMenuObjectTag) { self.doStuff(whichSubMenuIsClicked.SubMenuItem, whichSubMenuIsClicked.HeaderColumnName, whichSubMenuIsClicked.DivIdentifier);}",
}
</code></pre>
<p>The callback is a string. Now I need to exec... | javascript jquery | [3, 5] |
4,925,972 | 4,925,973 | color an image using jquery or javascript | <p>I want to color the various parts of an image like this demo <code>http://www.nickjr.com/kids-games/color-with-dora.html</code>. This demo uses flash. Is there any possibility do this in javascript or jquery?</p>
<p>Please give any reference.</p>
| javascript jquery | [3, 5] |
3,220,438 | 3,220,439 | big Ajax problem .. can't figure it out | <p>Hy, </p>
<p>I have a live username validation using ajax :</p>
<pre><code><td id="user_process_live"><input type="text" id="user_live_ver" name="user" /></td>
</code></pre>
<p>abnd the following java :</p>
<pre><code> $("input#user_live_ver").blur(function() {
var username=$(this).val();
... | php jquery | [2, 5] |
421,563 | 421,564 | Javascript function in PHP fromCharCode() | <pre><code>var test = String.fromCharCode(112, 108, 97, 105, 110);
document.write(test);
// Output: plain
</code></pre>
<p>Is there any PHP Code to work as <code>String.fromCharCode()</code> of javascript?</p>
| php javascript | [2, 3] |
3,920,921 | 3,920,922 | Select appended item jquery | <p>How would i select the below item, i <strong>do not</strong> want to select every LI of <code>.top</code> but just the LI i have just created on the append.</p>
<p>How is this possible?</p>
<pre><code>$('.top').append('<li><span>' + html + '</span></li>');
</code></pre>
| javascript jquery | [3, 5] |
1,248,925 | 1,248,926 | how to paint on an image and save the image to phone gallery in android | <p>** my intent is to save the painted image along with my background view to gallery** //</p>
<pre><code>public boolean onTouch(View view, MotionEvent event) {
// draw the new Points to our internal canvas / bitmap
System.out.println("onTouch(View vc) { IS CALLING11111111111");
... | java android | [1, 4] |
5,336,890 | 5,336,891 | JQuery/JavaScript - Creating a table from list of words | <p>At the moment this creates the table for the list of words, but only in one column. How do I get it to print into a 4x5 table? </p>
<pre><code>var listOfWords = ["mat","cat","dog", "pit", "pot", "fog", "log", "pan", "can", "man"];
var innerTable = '';
for (var i = 0, len = listOfWords.length; i < len; i++) {
inn... | javascript jquery | [3, 5] |
3,510,001 | 3,510,002 | Is it good practice to include other dom elements actions into another dom elements action like common actions for both in javascript | <p>Is it good practice code below?(jquery)</p>
<p>common.js (dom elements of two files written in same js action)</p>
<pre><code>$('.list_item').click(function () {
$('#yes_button').addClass('selected');
$('#no_button').addClass('selected_no');
});
</code></pre>
<p>yes_button.html</p>
<pre><code><div class... | javascript jquery | [3, 5] |
4,245,207 | 4,245,208 | JavaScript: Whats the difference between 'Document' and 'HTML' | <p>Example:</p>
<pre><code>$(document).click(function() { blah });
// and
$('html').click(function() { blah });
</code></pre>
| javascript jquery | [3, 5] |
1,384,572 | 1,384,573 | jquery shortcut for multiple clicks | <p>well i am still new to js/programming.
can anyhow guide me on how can i optimize my code?
i am sure that there are multiple ways to write a small and fast code that does the same thing.</p>
<pre><code>$('.ourservices-content .left ul li:nth-child(1)').click(function(){
$('.our-services-content-box > ul.b... | javascript jquery | [3, 5] |
1,710,445 | 1,710,446 | How to bind Complex Entity type to Gridview using ObjectDataSource | <p>I have an entity</p>
<pre><code>class Person
{
public int Age{get;set;}
public string Name{get;set;}
public Department Dept{get;set;}
}
class Department
{
public int DeptId{get;set;}
public string DeptName{get;set}
}
</code></pre>
<p>Now I binds Collection to GridView using ObjectDataSource Control.
Under the Tem... | c# asp.net | [0, 9] |
5,463,218 | 5,463,219 | accessing multiple instances in jquery | <p>so i have a page of products, and for each one i want to cycle through some images on mouseover, and have it stop on mouseout. the following code is my current state...</p>
<p>initially i had it working where it checked a global variable called repeatCycle to see if it should rotate to the next image. this caused... | javascript jquery | [3, 5] |
2,908,271 | 2,908,272 | how to combine jquery code into a javascript function | <p>I need to add a jquery script into a javascript function and then call that function when <code>#sortby</code> is added to the url. Is this possible?</p>
<p><strong>the jQuery</strong></p>
<pre><code>$("#myselect option[value='availability']").attr("selected","selected");
</code></pre>
<p><strong>the Javascript</... | javascript jquery | [3, 5] |
3,744,295 | 3,744,296 | Delete text and other elements before and after the element | <p>I need to delete everything (text and other elements) before and after the element <code><a></code> with value class <code>chatlink</code>.
All this, within each element <code><div></code> with value class <code>main</code>.</p>
<p><strong>But only if <code><div></code> element with the value <cod... | javascript jquery | [3, 5] |
5,663,645 | 5,663,646 | iframe source problem with Safari | <p>I have a problem with Safari</p>
<p>Whenever the source of the iframe changes the new source is not displayed it instead shown as a download file.</p>
<p>Here is a sample of the code:</p>
<pre><code><?php echo "<iframe id='myframe' width='600' height='200' src='image3.php?id=$content' style='margin-left:25... | php javascript | [2, 3] |
4,992,639 | 4,992,640 | PHP and mySQL Data Errors | <p>I currently have 2 users registered on my website; jason and jason1.</p>
<p>I have a mySQL database that stores the following fields:
<code>id message reciever sender</code></p>
<p>When a message is sent from jason1 to jason, the data comes up correctly.
However, when a message is sent from jason to jason1 both t... | php javascript | [2, 3] |
4,351,295 | 4,351,296 | DefaultHttpClient or HttpURLConnection on Android | <p>In building web service designed to to interact with mobile devices, I am not sure what the best approach is for implementing HTTP requests on Android.</p>
<p>I came across this post, which finishes by stating <code>HttpURLConnection</code> is the preferred method for making HTTP requests, and I have had success us... | java android | [1, 4] |
2,997,493 | 2,997,494 | How to create bread crumb using Menu items in asp.net? | <p>I have two XMl files. One is for top navigation menu and other for left navigation menu.Based on the top navigation the left hand menu gets changed .It works fine but i am having problem to create bread crumb using these two xml files. Any suggestion on how to create bread crumb for this scenario?</p>
| c# asp.net | [0, 9] |
5,921,159 | 5,921,160 | Hide page when second click on menu | <p>I use jQuery to display an accordion menu when clicking on a menu title.</p>
<p>The first click displays the corresponding details page, and it works fine. Now, I need to hide this details page when the user clicks on that link for the second time.</p>
<p>Thanks in advance for help.</p>
| javascript jquery | [3, 5] |
1,358,424 | 1,358,425 | Get value of element created at "future" | <p>How to check element value if it will be create at the "future" on page. I know about live method but it works with an event.</p>
| javascript jquery | [3, 5] |
3,435,210 | 3,435,211 | I would like all my select classes including those that might be added later to use select2 | <p>I am using the following code:</p>
<pre><code>$(".select2")
.select2();
</code></pre>
<p>All the select2 classes have the the .select2() applied to them. </p>
<p>However I have code that adds html (including selects to my web page. Do I need to run the same code above after the new content is added? </p>
| javascript jquery | [3, 5] |
3,442,422 | 3,442,423 | how to insert this javascript in php | <p>how to insert this javascript code :</p>
<p>thejavascript</p>
<pre><code><A HREF="javascript:void(0)" onclick="window.open('welcome.html','welcome')"> </A>
</code></pre>
<p>inside img src in php </p>
<pre><code><img src="http:'.$iv[$j].'.jpg" height="220" width="200" alt="Image '.ucwords($kw).'" ... | php javascript | [2, 3] |
3,976,641 | 3,976,642 | Why is it possible to query jQuery('div') like an array? | <p>I got another question regarding jQuery's architecture. <code>$('div')</code> constructs a new <code>jQuery</code> object:</p>
<pre><code>$('div') instanceof jQuery; // true
</code></pre>
<p>I'd like to know why it is possible to query it like an array, allthough it isn't an array?</p>
<pre><code>$('div')[0]; // ... | javascript jquery | [3, 5] |
3,779,999 | 3,780,000 | Android months of Year | <p>How can i get all days of particular month and particular year..</p>
| java android | [1, 4] |
995,894 | 995,895 | Create different fragment types by one function | <p>I need a function in my Activity, that sets fragment to my ViewGroup (FrameLayout in this case). Of course, I can use such construction:</p>
<pre><code>public void setFragment(Fragment fragment){
FragmentManager fm=getFragmentManager();
//etc
}
</code></pre>
<p>But with this solution I need to create <code... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.