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,310,535 | 5,310,536 | how to pass the JavaScript variable to the php function | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/419240/how-to-get-javascript-function-data-into-php-variable">How to get javascript function data into Php variable</a> </p>
</blockquote>
<p>I am writing a code in javaScript. in that I need to call the php fun... | php javascript | [2, 3] |
4,138,564 | 4,138,565 | can jquery change a jquery-element to a normal dom-element , | <p>cauz i have to use a normal dom-element ,</p>
<p>the dom-element is like this : document.getElementById('a') or document.createElement('div')</p>
<p>so my mean is change $('#a') to document.getElementById('a')</p>
<p>can jquery do this ??</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
3,730,118 | 3,730,119 | How do I find out how many times a function is called with javascript/jquery? | <p>Perhaps an odd question but here it goes: I have a function which I call periodically and within that function I need to know which iteration I'm in, or how many times the function has been called. A simplified version of the problem: </p>
<pre><code>jQuery( document ).ready( function(){
setInterval( "myFunctio... | javascript jquery | [3, 5] |
2,168,944 | 2,168,945 | No view found for id 0x7f070000 for fragment | <p>I get this error when I try to load my <code>Fragment</code> in my <code>ActionBar</code>. </p>
<blockquote>
<p>Caused by: java.lang.IllegalArgumentException: No view found for id
0x7f070000 for fragment HomeFragment{4100e030 #0 id=0x7f070000}</p>
</blockquote>
<pre><code>public class HomeFragment extends Frag... | java android | [1, 4] |
138,067 | 138,068 | C# - Program to add an extra ' where a ' is found | <p>I am working on something which adds a single quote ' for every ' found in the string. </p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string insertStatement =... | c# asp.net | [0, 9] |
5,630,750 | 5,630,751 | java syntax question | <p>Is this code instantiating a SectionedAdapter object and overriding getHeaderView in one line?</p>
<pre><code>SectionedAdapter tagSectionedAdapter=new SectionedAdapter() {
protected View getHeaderView(String caption, int index,
View convertView,
... | java android | [1, 4] |
3,269,508 | 3,269,509 | How to add number of days to today's date? | <p>I need to be able to add 1, 2 , 5 or 10 days to today's date using jQuery. </p>
<p>I'm a novice and trying hard to learn.</p>
| javascript jquery | [3, 5] |
647,504 | 647,505 | Switch between Android activities when listview item clicked | <p>I searched for hours to find good tutorial about switching between Android activities when a list view item clicked. All tutorials describe about calling different activities for different list view item clicked, but I want to run same activity without considering what item is clicked Here is the code I have used bu... | java android | [1, 4] |
5,311,285 | 5,311,286 | Pop-up Thumbnails of Linked Pages | <p>I would like to show thumbnails of external websites that I link to when the user mouses over the links, similar to how snap.com does this. How can I accomplish the same thing?</p>
| asp.net javascript | [9, 3] |
4,454,772 | 4,454,773 | php timer at server side | <p>I am using php any mysql. I would like to create a timer that operates in the server side, and when time reaches a certain value (e.g. 06:00:00), it can trigger the running of another file (such as, update data of a table).</p>
<p>Actually, what kind of technique I shall use apart from php? </p>
<p>Thankyou...</p>... | php javascript | [2, 3] |
1,935,237 | 1,935,238 | Android application restarts when USB device is plugged in | <p>For anyone who can help me:
I am currently working with the open accessory framework for Android 3.1+ and my application runs when the usb device is plugged in automatically. However during the event that I unplug and replug the usb while the application is running, android will run a new instance of my application ... | java android | [1, 4] |
1,789,485 | 1,789,486 | For Loop Constructs | <p>Will this loop execute exactly N Times ?</p>
<pre><code>for (int i = 0; i < N; i++)
{
//statement
someMethodCall();
}
</code></pre>
<p>Will this loop execute atmost N Times ?</p>
<pre><code>for (int i = 1; i < N; i++)
{
someMethodCall();
}
</code></pre>
<p>Will this loop execute atleast N Ti... | c# c++ | [0, 6] |
4,829,207 | 4,829,208 | Is this a correct way to call a javascript function? | <p>Is this the correct way to call my javascript function with jquery? I have spent the last 5 hours trying to figure out why this won't work.</p>
<pre><code><form class="rpt" id="rpt" action="">
</code></pre>
<p><hr /></p>
<pre><code>$(function() {
$("#rpt").submit(doSave);
});
</script>
</code></pre>... | javascript jquery | [3, 5] |
5,929,322 | 5,929,323 | Difference between %5B% and %5B0%? | <p>jQuery .serialize() turns "[]" into %5B%5D</p>
<p>PHP http_build_query seems to turn the first "[]" into %5B0%5D, the second into %5B1%5D, etc. So it seems to be using some kind of counter.</p>
<p><strong>Why are there differences in these almost identical functions?</strong> </p>
<p>Is it just my browser that ma... | php jquery | [2, 5] |
2,456,988 | 2,456,989 | My jQuery BBCode script doesn't work properly, there is a little bug | <p>I currently use a basic BBCode script for my projects.</p>
<p>The problem is, BBCode only works for the first textarea. If I include other textareas, it start bugging.</p>
<p>For example;
In the first textarea, if I press the B image (means BBCode bold) it writes "[b] [/b]" in <strong>both</strong> of the textarea... | javascript jquery | [3, 5] |
3,648,784 | 3,648,785 | asp.net controls not able to grab the value or text | <p>I have a cleEditor on my page which needs rows="" cols="" and asp.net does not like this when I do runat="Server"</p>
<p>To get around this I was trying to use FindControl, but I cannot seem to grab the value this way.</p>
<p>Here is my code:</p>
<pre><code>protected void os_submit_Click ( object sender, EventArg... | c# asp.net | [0, 9] |
2,866,845 | 2,866,846 | Remove a letter(:) from a string | <p>I have strings like Name:, Call:, Phone:....and so on in my table. I am learning jQuery and was able to access the text. My tutorial has used <code>trim()</code> to remove any whitespaces. But I want o remove ":" from the end of each string (and yes, it always lies in the end after calling <code>trim()</code> method... | javascript jquery | [3, 5] |
2,140,384 | 2,140,385 | Use jQuery.data to get a boolean from a dom element? | <p>According to <a href="http://api.jquery.com/data/#data2" rel="nofollow">jQuery's .data() documentation</a> you can use the .data() method to <code>data</code> prefixed attributes from a dom element. For example:</p>
<pre><code>{# Include jquery.... #}
<div id='mydiv' data-foo='bar'></div>
<script>... | javascript jquery | [3, 5] |
5,811,527 | 5,811,528 | how to run 'free -m' every minute & add to current page (php only) | <p>I need to </p>
<ul>
<li><strong>run</strong> 'free -m' every minute</li>
<li>and then <strong>add</strong> the result to the previous results</li>
</ul>
<p>So the script is going to run only of I call the free.php from my browser. I want to use <strong>php 5.3</strong> + <strong>javascript/AJAX</strong> + <strong>... | php javascript | [2, 3] |
234,720 | 234,721 | jquery ui datepicker range between two dates | <p>Can you please show me how to enable range in jquery ui datepicker, I want to determine range in the format: from 2012-12-10 to 2012-12-20 etc (yy-mm-dd, already specified). All other dates should not be available. </p>
<p>Appreciate the help I can get, cheers!</p>
| javascript jquery | [3, 5] |
5,615,855 | 5,615,856 | Click event does not persist for new dynamically created elements | <p>I have some code that attaches to the click event of a class:</p>
<pre><code>$(".filter-link").click(function (e) {
$("#filter").dialog("option", "position",
{ my: "left top", at: "left bottom", of: e });
$("#filter").dialog("open");
});
</code></pre>
<p>The element I use it on is dynam... | javascript jquery | [3, 5] |
1,592,495 | 1,592,496 | C# client and Java server | <p>I have developed a retail EPOS solution in C# which runs on tills. I would like this to interface with a back-end Java server. The Java server will be used for running all back-office tasks such as reports.</p>
<p>What is the best method to get a C# client and a Java server talking to each other? Of course, if this... | c# java | [0, 1] |
578,870 | 578,871 | how to disable/hidden a list element using Javascript or jQuery | <p>Once my <code>eraser</code> is clicked, I want the <code>color</code> to hidden or shouldn't show its dropdown elements. I tried..here is my partial code.</p>
<pre><code> $('#chooseEraser').mousedown(function(e){
curTool = "eraser";
checkEraser = true;
$('#color').remove();
});
</code>... | javascript jquery | [3, 5] |
119,517 | 119,518 | How can I check if a background image is loaded? | <p>I want to set a background image on the body tag, then run some code - like this:</p>
<pre><code>$('body').css('background-image','http://picture.de/image.png').load(function() {
alert('Background image done loading');
// This doesn't work
});
</code></pre>
<p>How can I make sure the background image is fu... | javascript jquery | [3, 5] |
4,958,065 | 4,958,066 | Apply class to every div with certain id if the id ends with a even number using jquery | <p>I would like to apply a class to each div with a certain id if that id ends with a even number. Also i want to apply a different class to the ones that end with a odd number. Ideally it would be great if that can be achieved with jquery.</p>
<p>Here is a example. I want to add class "Red" to all divs with id "item1... | javascript jquery | [3, 5] |
3,166,338 | 3,166,339 | Problem with string format | <p>I would like to assign string "{"MY_URL", "MY"}" to string variable. So in my code behind (C#)
I wrote like <code>string str ="{\"MY_URL\", \"MY\"}"</code>. When i will assign this to textbox it will print escape character ("\") as well. That i don't want so what i have to do to achieve this??</p>
| c# asp.net | [0, 9] |
1,598,916 | 1,598,917 | Get current url using javascript, and see if string exists | <p>I need a reliable way to get the current URL in the browser using javascript, and to test whether a string is contained in the url.</p>
<p>Is this a safe process between all the browsers?</p>
| javascript jquery | [3, 5] |
2,531,772 | 2,531,773 | retrieving response object of an url in asp.net | <p>I want to pass parameters from one webpage to other,but it shud not be visible to the user. That is the parameters passing to the webpage should return the result that should displayed in my application without user knowing that we have visited that url webpage..please help</p>
| c# asp.net | [0, 9] |
2,449,467 | 2,449,468 | JavaScript/jQuery Circle Menu Effect | <p>I'm creating a website with PHP and MySQL and I need an effect which you can see <a href="http://olyxia.com/mainmenu.html" rel="nofollow">here</a>.</p>
<p>Here you can see a few menu circling effect. I know this effect is flash effect, but Is there any one give me a link or script that show exact effect without Fla... | javascript jquery | [3, 5] |
3,989,300 | 3,989,301 | How to get settext output in new line every line? | <p>I have this code, which fetches date from web, in text format.<br><br></p>
<p>Here is my code</p>
<pre><code>package com.zv.android;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import android.app.Activity;... | java android | [1, 4] |
383,096 | 383,097 | Pattern checking .Check for incorrect operators in an expression | <p>In an expression , How to
1.Check if operators and operands are correct or not.
2.check if brackets match or not.
Example 1: (a+b)- has a one extra operator How do i confirm that the number of operators are incorrect.
Example 2 :((a+b)/(c-d) has one extra opening bracket. how to check such irregularities.
Any re... | c# javascript asp.net | [0, 3, 9] |
54,704 | 54,705 | "Pull apart" Javascript objects within function returns | <p>I'm working with a jQuery plugin which has methods which return objects. I'm a little shaky on my terminology here, so I'll try to demonstrate:</p>
<pre><code>$(this).myplugin({
mouseMove: function(data){
//Do something
}
});
</code></pre>
<p>"Data" in this case would be an object that returns info... | javascript jquery | [3, 5] |
2,897,123 | 2,897,124 | How to Access a DIV inside a iframe from a Parent | <p>Hoping someone can assist but I am trying to access a div id="mnuGrp" that resides inside a child iframe(id="iframe2) from the parent window within the document.ready() section but unsure how to access this child div in the parent inorder to apply fadein and fadeout calls.</p>
<p>Want to be used within the followin... | javascript jquery | [3, 5] |
1,232,024 | 1,232,025 | Need help with creating image upload form | <p>I'm not really gr8 with ajax and javascript so I ask for help. Here is the deal, I have the image form upload working the old fashion way:</p>
<pre><code><form action="db/photo/do_upload" method="post" enctype="multipart/form-data"> <fieldset id="upload_form">
<input type="file" name="userfi... | javascript jquery | [3, 5] |
947,711 | 947,712 | Is there a way to not load jQuery? | <p>Is there a way to recognize that javascript is disabled on the user's PC and not include the jQuery file for people who won't use javascript?<br>
It'll improve performance for those who have disabled javasript.
thanks in advance.</p>
| javascript jquery | [3, 5] |
188,008 | 188,009 | How to substitute variables into JQuery selector? | <p>I have HTML:</p>
<pre><code><li onclick="myselect(mazda3,m3-to);">...</li>
</code></pre>
<p>and function:</p>
<pre><code>var a='';
var b='';
function myselect(a,b){
$('#workcont').empty();
$('#tocont').load('pages/' + a + '.html #' + b);
}
</code></pre>
<p>But it's not work. How to improve it... | javascript jquery | [3, 5] |
2,333,161 | 2,333,162 | Using Drop Down lists to hide/show with Jquery | <p>Dear ALL, I am trying to do soemthing quite straightforward but can't get my head around the syntax. </p>
<p>I have a dropdown list. The OPTIONs have two types of classes. If an OPTION with class 'less_than_3' is chosen we see an alert.
And if an OPTION with class 'greater'- we see a different alert.</p>
<p>Heres ... | javascript jquery | [3, 5] |
3,511,120 | 3,511,121 | Does Android DownloadManager support resume broken downloads | <p>We know that it had <code>android.app.DownloadManager</code> from android 2.3. While I want to know does <code>DownloadManager</code> support resume broken downloads and some example if possible.</p>
| java android | [1, 4] |
1,311,428 | 1,311,429 | Best way to disable all submit buttons after postback | <p>I'm trying to write code that will disable submit button (or all submit buttons) on the page to avoid double postback.</p>
<p>I thought of generating my own postback javascript function (and inject postback javascript using <code>GetPostbackEventReference</code>) but maybe there are some better ways to do this? Or ... | javascript asp.net jquery | [3, 9, 5] |
2,771,903 | 2,771,904 | Upload a file to multiple servers | <p>I see a ton of questions about uploading multiple files, but none about uploading a single file to multiple servers, so here goes...</p>
<p>I have an ASP.NET app that will be running on two load balanced servers, and I would like to allow users to upload files and have them end up on both servers. What is the clean... | c# asp.net jquery | [0, 9, 5] |
2,499,690 | 2,499,691 | Change background color of each row in ExpandableListView? | <p>Hey, Is it possible to change the background of a specified row in an ExpandableListView? What I want is: 1st row blue, 2nd red, 3rd blue, 4th red..... Thanks</p>
| java android | [1, 4] |
1,364,914 | 1,364,915 | Use array value as variable name | <p>I need to use jQuery's keyup function to take the value from input html form elements and display said values in a div elsewhere.</p>
<p>The working code looks as follows:</p>
<pre><code>$('#name').keyup(function() {
var name = $(this).val();
$('#name-in-document').html(name);
});
</code></pre>
<p>Since I... | javascript jquery | [3, 5] |
3,984,687 | 3,984,688 | strip out a portion of url | <p>Does anyone know how to strip out a portion of url.</p>
<p>For example I have 3 img sources each residing in it's own div class called "showimage".</p>
<pre><code><div class="showimage"><img src="http://www.mydomain.com/image1-thumb.JPG" /></div>
<div class="showimage"><img src="http://w... | javascript jquery | [3, 5] |
5,356,024 | 5,356,025 | Counting Rows in C# after dynamically adding them with jQuery | <p>I just have a simple ASP Table seen here:</p>
<pre><code><asp:Table ID="tblCategories" runat="server" CssClass="oneColTable padded-table dataTable">
<asp:TableHeaderRow CssClass="tableHeader">
<asp:TableHeaderCell>Category Name</asp:TableHeaderCell>
<asp:TableHeaderCel... | c# asp.net jquery | [0, 9, 5] |
4,038,432 | 4,038,433 | How to refresh text in a TextView programatically? | <p>I have following timer:</p>
<pre><code>Timer timer = new Timer();
timer.scheduleAtFixedRate(new TimerTask() {
@Override
public void run() {
--mTimer;
mTimeLeft.setText(String.valueOf(mTimer));
}
}, 0, 1000);
</code></pre>
<p>Text in the <code>TextView</code> will change when I touch t... | java android | [1, 4] |
762,987 | 762,988 | Create a URL Friendly string Android | <p>I want to write a function that takes a string and cleans it form url un-friendly characters, using a regular expression or something else, how can this be achieved?
Thanks</p>
| java android | [1, 4] |
930,719 | 930,720 | which language used to developed android? and DVM written in? | <p>I want to learn android so that i want to understand its background architecture. So can anyone tell me about android? in which language it is developed? there is one article about android and someone has said there that the whole android is developedn] in python? so is it true? and what about JIT compiler is the s... | java android python | [1, 4, 7] |
4,441,537 | 4,441,538 | JavaScript display remote content | <p>I'm building an affiliate system and in interested in knowing which would be the most reliable way to display remote banners. I mean for the affiliates to grab a piece of code and use it to display banners, it whatever on their sites.</p>
<p>Doesnt have to be JavaScript and I'm using php</p>
| php javascript | [2, 3] |
2,265,124 | 2,265,125 | jquery function works with live, not with on | <p>trying to use the preferred on method call but the code is not working with <em>on</em> but does work with the <em>live</em> method.</p>
<p>Okay, I have a simple button element.</p>
<pre><code><button id="EditVal" name="EditVal" style="btn" value="Edit Debt">Edit Debt </button>
</code></pre>
<p>If I u... | javascript jquery | [3, 5] |
1,565,143 | 1,565,144 | JavaScript: find the parent div given the class of the children | <p>My code looks like this</p>
<pre><code><div id=resultsdiv >
<div id=xxxx class=container>
<a> class=results </a>
<a> class=results </a>
<div id=zzzz class=default>
<p> some default data </p>
</div>
</div>
</div>
</code></pre>
<p>I have a butto... | javascript jquery | [3, 5] |
1,280,618 | 1,280,619 | Is there an event for when the content of a HTML element has fully loaded? | <p>I have a <code><div></code> containing a number of images. I want to fade this <code><div></code> in <em>after</em> all contained images have loaded, as they make up one unit that I'd rather have display cleanly instead of momentarily all over the place (while loading).</p>
<p>Is there something similar... | javascript jquery | [3, 5] |
5,674,925 | 5,674,926 | does location of e.preventDefault() matter | <p>I use <code>preventDefault()</code> in my jquery functions to prevent submit buttons from submitting the normal way. Does the location of <code>preventDefault()</code> matter. Does it have to come first or can be last thing in the function?</p>
| javascript jquery | [3, 5] |
267,215 | 267,216 | How do I handle this jquery loop? | <p>I have an array of images that I want to loop through infinitely ie. 1, 2, 3, 1, 2, 3...</p>
<p>At first, I tried to do this using the following code:</p>
<pre><code>var images = [
"/images/image1.jpg",
"/images/image2.jpg",
"/images/image3.jpg"
];
var obj = { currentValue: 0 };
var maxValue = 2; ... | javascript jquery | [3, 5] |
2,027,668 | 2,027,669 | How to send image dat over network as fast ? | <p>I am working with client-server using Java. Client is performs on android and wants to request some images from server. And the server will response image as byte[] data to client. The approximate size of data is 150K per/request (already re-size). And the process usually use 3 seconds for response. I think it use l... | java android | [1, 4] |
2,689,967 | 2,689,968 | Add a parameter to a div within a droppable | <p>I'm trying to add a parameter to a div once its dropped onto a droppable.
Is there a method which resembles addParameter below which can add the paramter ?</p>
<pre><code> $( ".placeHolder" ).droppable({ drop: function( event, ui )
{
"#"+this.id.addParameter(myParam="testParam");
}
</code></... | javascript jquery | [3, 5] |
1,935,519 | 1,935,520 | Adding a video to a page using jQuery | <p>Is there anyway to embed video in a page by only using jQuery.
basically i look for a code that if you run in the console embeds a video from a URL to the page.
please provide me with some sample code. Thank you</p>
| javascript jquery | [3, 5] |
4,340,784 | 4,340,785 | How to show/hide one dynamic element (div) at a time with jQuery | <p>This is my first attempt at jQuery and I'm using a basic tutorial I found here: <a href="http://papermashup.com/simple-jquery-showhide-div/#" rel="nofollow">http://papermashup.com/simple-jquery-showhide-div/#</a></p>
<p>This is my current code and how the jQuery works: <a href="http://jsfiddle.net/mZQsu/" rel="nofo... | php jquery | [2, 5] |
1,017,396 | 1,017,397 | Hide asp.net panel with validation using Javascript | <p>I need a way to hide/show an asp.net Panel with Validators inside using Javascript.</p>
<p>I have successfully hide a panel using this code below:</p>
<pre><code>function ShowHidePanel(panelId, isShown) {
var pnl = document.getElementById(panelId);
if (pnl != null) {
if (isShown) {
pnl... | c# javascript asp.net | [0, 3, 9] |
4,062,958 | 4,062,959 | javascript - changing title appends rather than rewrites | <p>I have created a news feed script which automatically informs the user when new news items are available, like on twitter. I want to add this alert to the title so used this;</p>
<pre><code>var originalTitle = document.title;
document.title = '(' + result + ') ' + originalTitle;
</code></pre>
<p>Now I don't see th... | javascript jquery | [3, 5] |
858,406 | 858,407 | Confused by this reference | <pre><code>(function($)
{
$.vari = "$.vari";
$.fn.vari = "$.fn.vari";
// $.fn is the object we add our custom functions to
$.fn.DoSomethingLocal = function()
{
return this.each(function()
{
alert(this.vari); // would output `undefined`
alert($(this).vari); // would output `$.fn.vari`
});... | javascript jquery | [3, 5] |
4,382,828 | 4,382,829 | Get multiple CSS properties with jQuery | <p>I know you can SET multiple css properties like so:</p>
<pre><code>$('#element').css({property: value, property: value});
</code></pre>
<p>But how do I GET multiple properties with CSS?
Is there any solution at all?</p>
| javascript jquery | [3, 5] |
3,719,171 | 3,719,172 | Can i passing parameter to jquery, after inserting a new row which is in different php | <p>this is my jquery coding</p>
<pre><code>$('#btnKirimPesan').click(function(){
$('#bantu').load('kirim_pesan.php', {'emailPenerima': $('#emailPenerima').val(), 'isiPesan': $('.isiPesan').val()});
});
</code></pre>
<p>then this is on kirim_pesan.php</p>
<pre><code><?
include('../../config/buka_koneks... | php jquery | [2, 5] |
4,414,462 | 4,414,463 | Represent numbers as shorten like SO does (13500 => 13.5k)? | <p>Ok I write my own JS code for this bug I'm sure there's something more comprehensive out there I can use. My Google mojo isn't working though - any help finding open source code that'll help me represent numbers like how SO does for high numbers (102500 => 102.5K, 18601 => 18.6K, etc)?</p>
<p>JS or PHP would be awe... | php javascript | [2, 3] |
1,691,869 | 1,691,870 | Getting source control id in JavaScript function | <p>I have taken three textboxes over aspx page. A JavaScript function is associated with these textboxes as:</p>
<pre><code>TextBox1.Attributes.Add("onkeypress","MyFunction()");
TextBox2.Attributes.Add("onkeypress","MyFunction()");
TextBox3.Attributes.Add("onkeypress","MyFunction()");
</code></pre>
<p>The <code>MyF... | asp.net javascript | [9, 3] |
2,590,268 | 2,590,269 | How to read C# method output from javascript? | <p>I have a C# class method that return a xml document not file.
How to read C# method output from javascript???
I don't wont to use script manager.</p>
<p>Any ideas?</p>
| c# asp.net javascript | [0, 9, 3] |
1,245,218 | 1,245,219 | Using a Wildcard at end of String | <p>I am trying to find a way to use a wildcard in an if statement. So I have values like this: 07/22/2012 (dates) and I then want it to do:</p>
<pre><code>if (date = "07/" *) { alert("test"); };
</code></pre>
<p>it must also only use the wildcard after the 07 as in the middle it can have: 06/07/2012</p>
<p>Any advic... | javascript jquery | [3, 5] |
231,831 | 231,832 | Calculate File Size using Javascript | <p>I need to calculate file size using javascript before the file starts to upload in server size. I need do the file size operation in client size itself.</p>
<p>Pls help me guys.,</p>
<p>Thanks.. </p>
| javascript asp.net | [3, 9] |
1,717,071 | 1,717,072 | indexOf.call vs array.indexOf in jQuery's source | <p>I was browsing the source of <a href="https://github.com/jquery/jquery/blob/master/src/core.js#L680" rel="nofollow">jQuery</a> and bumped into this:</p>
<pre><code>return indexOf.call( array, elem );
</code></pre>
<p><em>- <a href="https://github.com/jquery/jquery/blob/master/src/core.js#L683" rel="nofollow">Line ... | javascript jquery | [3, 5] |
5,739,697 | 5,739,698 | Don't want spaces in the text, but this regex is passing not sure why | <p>I am using the following regex</p>
<pre><code>/[a-zA-Z0-9]+/i.test(value)
</code></pre>
<p>If I enter a space in the word, it passes.</p>
<p>I don't see where spaces are aloud in the regex, why is it passing?</p>
| asp.net javascript | [9, 3] |
2,658,330 | 2,658,331 | asp.net C# how to check wether whereparameters of a entitydatasource returns 0 rows | <p>I have a entitiydatasource: </p>
<pre><code><asp:EntityDataSource ID="EntityDataSourcePersoneel"
runat="server"
ConnectionString="name=HotelTestDatabaseEntities"
DefaultContainerName="HotelTestDatabaseEntities"
EntitySetName="Personeels"
Include="Afdeli... | c# asp.net | [0, 9] |
1,380,962 | 1,380,963 | How to execute jQuery code if a div display style changes from none to block? | <p>I'm trying to execute jQuery code when a div's style changes from <code>display: none;</code> to <code>display: block;</code> </p>
<p>I'm using tabs that's why this div's style changes like this, and this jQuery code should only be running when viewing this tab only.</p>
<p>so how can I achieve this ?</p>
<p>and ... | javascript jquery | [3, 5] |
4,204,980 | 4,204,981 | jQuery class selector - accessing attributes on selected element? | <p>I currently have a page that has multiple elements with the class "chained". I want to use a class selector so that I can select all of these, and run some additional code based on some data attributes (which will be different for each element). My code so far is:</p>
<pre><code>$('.chained_child').remoteChainedTo(... | javascript jquery | [3, 5] |
2,729,882 | 2,729,883 | expose C++ functions in python and embed python in C++ | <p>My app have some events, each event can have some actions. These actions is implemented in C++. I want to expose those core functions to python and use python to write the action. The advantage is I can modify actions without recompile. For example:</p>
<pre><code>CppClass o;
// --- this is a action----
o.f1();
o.... | c++ python | [6, 7] |
3,590,494 | 3,590,495 | Sending JavaScript variable to PHP | <p>I have to send a value that is stored in a JavaScript variable to a PHP page. The PHP page is in a different folder than the JavaScript page.</p>
<p>This JavaScript variable is in a method that fires when we click a button. </p>
<p>How can I send that variable value to the PHP page?</p>
<p>(This is an Eclipse pro... | php javascript | [2, 3] |
1,309,653 | 1,309,654 | Android:html and javascript | <p>I am making an app in which i have to use javascript in android .Can anyone tell me how to use javascript in android , i mean to say will it be used in java class or any other means.Any help will be appreciated.
Thanks..</p>
| javascript android | [3, 4] |
4,274,515 | 4,274,516 | Access a global var | <p>I have a situation like this one:</p>
<pre><code>talenti = $(".talenti");
filtra = $(".filtra");
wrapNavHeight = $("#wrapNav").outerHeight(true);
filtra.click(function(e) {
e.preventDefault();
$(".nasco").hide();
$("#sliding-navigation").delay(delay).show();
delay += 500;
talenti.removeClass('o... | javascript jquery | [3, 5] |
1,588,807 | 1,588,808 | email validation using regular expression | <p>i am using this regular expression for email validation but it is not allowing hyphen (<code>-</code>):</p>
<pre><code>/^\w+([\.-_]?\w+)*@\w+([\.-_]?\w+)*(\.\w{2,4})+$/
</code></pre>
<p>please any one tell me how can i do this?</p>
| php javascript | [2, 3] |
3,230,786 | 3,230,787 | jQuery - Calendar plugin, pre selected dates on multiple select | <p>Im using a calendar plugin for jQuery, im using the 'selecting multiple dates' demo which is here <a href="http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiple.html" rel="nofollow">http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiple.html</a> </p>
<p>Im using the de... | javascript jquery | [3, 5] |
5,808,904 | 5,808,905 | Submitting form by hitting enter on keyboard | <p>Currently my team has this <code>(onKeyPress="keyPress(event))</code> defined for each field in a form. So if i have 20 fields then it is defined 20 times. I am wondering if it is possible to define this at the form level rather than field so we only define it one and not 20 times?</p>
<p>Using PHP codeignitor.</p>... | php javascript | [2, 3] |
5,732,113 | 5,732,114 | Using BufferedWriter and DataOutputStream in java together | <p>How can I simply write big-endian typed data into an OutputStream and still use buffering? (I'm developing for android if it makes any difference)</p>
<p>I tried</p>
<pre><code>out = new BufferedWriter(new DataOutputStream(new OutputStreamWriter(sock.getOutputStream())));
</code></pre>
<p>but it looks like I'm in... | java android | [1, 4] |
4,301,306 | 4,301,307 | htmlencode() for a specific tags only | <p>i have a long string dat can contain html tags
applying htmlencode will encode all the tags
but i want this method to leave some specific tags intact
how is it possible</p>
| c# asp.net | [0, 9] |
6,018,929 | 6,018,930 | Is there a way around local variable may not have been initialized | <p>I am getting the error the local variable may not have been initialized on the following line of code</p>
<pre><code>final StingBuilder personSearchURLOne = personSearchURLOne.append(getName.getName1(searchOne));
</code></pre>
<p>I cannot initialize by having final StringBuilder personSearchURLOne = null; at first... | java android | [1, 4] |
4,799,142 | 4,799,143 | How to execute a function when jQuery is loaded? | <p>I'm making a bookmarklet and using jQuery for it (with noConflict). I need to wait for jQuery to load, to execute all the jQuery code. </p>
<p>I know I can check with <code>typeof $</code> for jQuery, but I'm actually more looking for an event handler. Right now I'm just using <code>setTimeout</code> with a delay o... | javascript jquery | [3, 5] |
3,121,827 | 3,121,828 | Inserting value from Checkbox Template Field into sql database field type Bit | <p>I have a gridview which has a Checkbox Template Field, I am using C# code and basically when the user checks all the Checkboxs in the datagrid view I want to add these values into an SQL database with a datatype field Bit.
Here is my code so far;</p>
<pre><code>protected void SaveRegisterButton_Click(object sender,... | c# asp.net | [0, 9] |
3,727,169 | 3,727,170 | How can I focus on a given table's row using javascript/jquery? | <p>Having a big html table with many rows that does not fit on the screen, do you know how to focus on a given row with javascript/jquery avoiding the need to scroll down?</p>
| javascript jquery | [3, 5] |
3,195,701 | 3,195,702 | filtering the records in the second grid according to the selection in the first in Asp.Net GridView | <p>When i click on a row in gridview1, i want to go to gridview2 with the id i get from first grid.</p>
<p>How to get id from gridview1 to gridview2 and gridview2 autobinding?</p>
| c# asp.net | [0, 9] |
4,322,163 | 4,322,164 | Reload webpage with variable | <p>I am trying to reload webpage using location.reload(). I would also like to pass variable to this. I tried below option and it didn't work. Help plz?</p>
<pre><code> location.reload(window.location.replace=("success.jsp?abc="+<%=processId%>));
</code></pre>
<p>I also tried directly using below code and it se... | javascript jquery | [3, 5] |
5,400,657 | 5,400,658 | JQuery to Select and Swap Stylesheet href values | <p>I wondering how I can select the two stylesheet links I have below in the resize function below. I need to modify the two links href value based on the orientation value, but I'm unsure how to select and populate those inside the conditional statement below, any ideas?</p>
<pre><code> <head>
... | javascript jquery | [3, 5] |
178,585 | 178,586 | filling the text area using PHP | <p>I have a PHP Script which has several text areas. What I would like to do is enter id in one text box and based on the id entered i need to get some data from MySQL database and put it the textarea inputs.</p>
<p>There will be one text area with get button where we will enter id and the remaining text areas are tit... | php jquery | [2, 5] |
197,646 | 197,647 | How to change content of a div which toggles another div? | <p>My HTML is like this:</p>
<pre><code><div>
<div class="action">Show details</div>
<div>Some hidden details</div>
</div>
</code></pre>
<p>My current JS is this:</p>
<pre><code>$(".action").click(function(e) {
e.preventDefault();
$(this).next("div").slideT... | javascript jquery | [3, 5] |
4,283,114 | 4,283,115 | Wait for java script confirm message response from server side? | <p>Is such thing possible ?</p>
<pre><code> ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "Confirm", "x()", true);
if (hid.Value != null)
{
}
else
{
}
function x() {
var message = confirm("Are you sure you want to continue ?");
if (message == true) {
... | c# javascript asp.net | [0, 3, 9] |
4,550,281 | 4,550,282 | Looping over elements in jQuery | <p>I want to loop over the elements of an HTML form, and store the values of the <input> fields in an object. The following code doesn't work, though:</p>
<pre><code>function config() {
$("#frmMain").children().map(function() {
var child = $("this");
if (child.is(":checkbox"))
thi... | javascript jquery | [3, 5] |
710,457 | 710,458 | Javascript and clientId issue | <p>Hi guys I have a user control:</p>
<pre><code><input type="text" id="datepicker" runat="server" readonly="readonly" />
<img src="../images/remove.png" id="test" onclick="ClearFeild()" runat="server" />
</code></pre>
<p>My aspx page looks like this:</p>
<pre><code><asp:Content ID="Content3" Content... | c# javascript asp.net | [0, 3, 9] |
3,380,007 | 3,380,008 | Check whether white spaces exist without using trim | <p>I have following code that checks whether date is valid. <a href="http://jsfiddle.net/uzSU6/36/" rel="nofollow">http://jsfiddle.net/uzSU6/36/</a></p>
<p>If there is blank spaces in date part, month part or year part the date should be considered invalid. For this, currently I am checking the length of string before... | javascript jquery | [3, 5] |
5,275,108 | 5,275,109 | problem with inherits and src attributes of page directive | <p>I am having a problem with the page directive. The code behind file is CodeBehind.cs within the namespace <strong>aspnetian</strong>. </p>
<p>when i specify the inherit and src attribute like...</p>
<pre><code><%@ Page Language= "C#" src="~/CodeBehind.cs" inherits="aspnetian.CodeBehind.cs" %>
</code></pre>
... | c# asp.net | [0, 9] |
571,898 | 571,899 | back to the parent page without changes in that page | <pre><code><asp:HyperLink id="hypavmat" runat="server" NavigateUrl="~/Merchandiser/MAddMaterial.aspx"
Target="_blank" Visible="False">Click the link to select material</asp:HyperLink></td>
</code></pre>
<p>i have this hyperlink in my parent page. by clicking it i send values using sessions to the... | c# asp.net | [0, 9] |
5,778,701 | 5,778,702 | thumbnail is not creat in .flv file when video is upload | <p>any idea i have used ffmpeg.exe<br> </p>
<pre><code>string imgargs = " -i \"" + inputPath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".flv" + "\" -f image2 -ss 1 -vframes 1 -s 152x148 -an \"" + mediumimgpath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".jpg" + "\"";<br>
</code></pre>
<p>Thanks.<... | c# asp.net | [0, 9] |
3,535,080 | 3,535,081 | Having trouble with a dynamic fade in/fade out hover transition (jsfiddle included) | <p><a href="http://jsfiddle.net/XztsH/1/" rel="nofollow">http://jsfiddle.net/XztsH/1/</a></p>
<p>The hover class seems to be pushed down a 20 pixel and I'm not quite sure why.</p>
<p>Maybe it's late and my brain is dead...</p>
| javascript jquery | [3, 5] |
2,714,203 | 2,714,204 | jquery and java communication | <p>I have jquery pop form to upload a file, after on submit (the page refresh and the pop close) i check something about the file and then if there's something wrong i need to pop up that form again (from the java code?), how could i do that ? </p>
| java javascript jquery | [1, 3, 5] |
3,315,133 | 3,315,134 | I want to store the filter expression after the ok button on devexpress | <p>I'm trying to store the filter expression after the ok button is pres on DevExpress filter and I don't know how to do that.</p>
<p>I want the expression so I can put her in the database.
Please help me</p>
| c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.