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 |
|---|---|---|---|---|---|
3,170,615 | 3,170,616 | Using Javascript to detect the bottom of the window and ignoring all events when a request is loading | <p>I have an anonymous function to detect the user has scrolled to the bottom of the window. Inside of the anonymous function, I have a call to a database that takes a while to complete.</p>
<pre><code>var allowing_more = 1;
$(window).scroll(function() {
if (allowing_more == 1){
if ($(window).scrollTop() ... | javascript jquery | [3, 5] |
5,134,885 | 5,134,886 | how to close client pop up windows | <p>How do I close all child popup windows which are already opened using jquery, after the user logs out?</p>
| javascript jquery | [3, 5] |
1,492,694 | 1,492,695 | get id of a hyperlink inside datalist using javascript | <p>i have a datalist and inside it there is a dropdown list and hyperlink which is loaded dynamically,means if there is one user then there will be one dropdown and one hyperlink and
there are two users then there will be two dropdown and two hyperlink.My requirement is when an onchange event occurs in a dropdown i wa... | javascript jquery asp.net | [3, 5, 9] |
4,423,847 | 4,423,848 | jquery next button focus | <p>To improve navigation on one of the pages I am tyring to set a focus on a next available(enabled) button when leaving last data entry field. </p>
<pre><code>$('input[type=text], select, textarea').filter(':last').blur(function()
{
$('input[type=submit][type=button]:enabled:first').focus();
});
</c... | asp.net jquery | [9, 5] |
4,078,410 | 4,078,411 | Run JavaScript After DataBind | <p>I have a ASP.Net Repeater control with a Table inside it. Is it possible to run a JavaScript function directly AFTER I call <code>MyRepeater.DataBind()</code>? I've been trying different things, but nothing is triggering the JavaScript function.</p>
<p>Thanks</p>
| javascript asp.net | [3, 9] |
2,694,725 | 2,694,726 | Why do jQuery show() parameters not delay before calling the `complete` function? | <p>The <a href="http://api.jquery.com/show/" rel="nofollow">jQuery API documentation for <code>show()</code></a> states that as of jQuery 1.4.3, one can call <code>.show()</code> like so:</p>
<pre><code>.show( [duration ] [, easing ] [, complete ] )
</code></pre>
<p>With the arguments being:</p>
<blockquote>
<ul>
... | javascript jquery | [3, 5] |
507,316 | 507,317 | Need help regarding building logic, adding properties to object | <p>I have an images array in which there are number of images. Not fixed, may be one or two or 8. When i have fixed number of images then i was using the code something like this</p>
<pre><code>var details = {
image1: {
position: 0,
title: $slideDiv.children().eq(0).attr("alt")
},
image2: ... | javascript jquery | [3, 5] |
3,200,405 | 3,200,406 | How can I trigger on URL change in jQuery? | <p>How can I trigger a function when the URL changes? I try something like:</p>
<pre><code>$(windows.location).change(function(){
//execute code
});
</code></pre>
<p>So my URL is something like <code>http://www.mysite.com/index.html#/page/1</code>. How can I execute jQuery or JavaScript code when the URL becomes s... | javascript jquery | [3, 5] |
1,158,480 | 1,158,481 | How can I only focus in on an "input:text" without triggering its bound focus event handler | <p>I get a input:text, I want to focus in on it, but I do not want to trigger it's binded event handler.
What can I do?</p>
<p>I guess:</p>
<ol>
<li>get the handler</li>
<li>unbind it</li>
<li>focus</li>
<li>bind it</li>
</ol>
| javascript jquery | [3, 5] |
5,597,502 | 5,597,503 | Counting no. of dropdownlists inside a div | <pre><code><div id="myDiv">
<select id="ddl1" name="31">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3" selected="selected">Three</option>
</select>
<select id="ddl2" name=32>
&l... | javascript jquery | [3, 5] |
4,914,435 | 4,914,436 | Why is this activity not starting? | <p>I am new to android development. I have an activity which is not even getting to its <code>onCreate()</code> function. I am using some 'Log.d's to check flow of control, and no Log.d inside the <code>onCreate</code> is getting executed at runtime. What am I doing wrong? The starting part of the class is below:</p>
... | java android | [1, 4] |
2,675,055 | 2,675,056 | How to access an element that is placed next to it? | <p>I have following html structure:</p>
<pre><code><span class="thump">1</span>
<a class="tp" href="#" programm="5">Post</a>
</code></pre>
<p>Now I want to write thump according to programm attribute. This is how I get the the a element according to the programm number:</p>
<pre><code>$("a.tp... | javascript jquery | [3, 5] |
2,533,900 | 2,533,901 | Javascript: Validation for special charaters | <p>Im working on some validations and can't seem to wrap my head around checking for special chars, none should be used. Currently I grab the value, make an array and check for uppercase and numbers. I need a way to check for special chars as well. Another small issue I found is that it passes an uppercase when a numbe... | javascript jquery | [3, 5] |
3,297,938 | 3,297,939 | Testing backwards compatibility? | <p>how can I test backwards compatibility in android emulator?
I have a testapp with SDK 15. Now if I switch the compiler version to SDK 7 (for running it on Android2.1 emulation), Eclipse complains about all used imports contained only >SDK7. Of course.</p>
<p>But in my code I care about the critical code by <code>if... | java android | [1, 4] |
3,197,009 | 3,197,010 | Listbox always returns 0 | <p>I am loading a ListBox OnSelectedChange of DropDownlist. If I select a 3rd value from the ListBox, it always returns 0. What could be wrong? I appreciate any help. Thank you. Here is my code.</p>
<pre><code> <asp:DropDownList ID="dropdown1" runat="server" Width="300" OnSelectedIndexChanged="onChange"
... | c# asp.net | [0, 9] |
2,688,216 | 2,688,217 | Page jumps to top when using Javascript rotating background | <p>I am using javascript for a rotating background image. The problem is, every time the image changes, the page jumps to the top. Hopefully this is an easy fix!</p>
<p>Here is my code:</p>
<pre><code><script type='text/javascript'>
$(window).load(function(){
var initialBg = $('#slider').css("background-ima... | javascript jquery | [3, 5] |
1,250,491 | 1,250,492 | Android dev - TextView won't show up | <p>I just started experimenting with Android app development and so I decided to give Android's own tutorials a go (this one: <a href="http://developer.android.com/training/basics/firstapp/starting-activity.html" rel="nofollow">http://developer.android.com/training/basics/firstapp/starting-activity.html</a> ) </p>
<p>... | java android | [1, 4] |
4,092,911 | 4,092,912 | Can I say that ASP.NET is compiled? | <p>You know that C# is a compiled language. But when we develop web applications we use ASP.NET + C#, in this case can we say that ASP.NET is compiled? </p>
<p>If ASP.NET is not compiled does it affect the performance of C# when ASP.NET and C# works beside each other to develop web applications? </p>
| c# asp.net | [0, 9] |
4,645,092 | 4,645,093 | The change event is not triggered before the beforeunloadhow | <p>I know there are lots of questions about the "beforeunload" event and I think I read most of them. So I wrote the following code to warn a user about leaving a page before saving data, and it works most of the time.</p>
<p>It does not work when the user enters a value in input "f1" and leaves the page before tabbin... | javascript jquery | [3, 5] |
3,715,883 | 3,715,884 | jquery form submitting | <p>index.php</p>
<pre><code><form method="post" action="read.php">
<p>Name: <input type="text" name="name" value="" /></p>
<p><button type="submit">Okay</button></p>
</form>
</code></pre>
<p>i'd like to send name value to read.php without refreshing the pa... | php jquery | [2, 5] |
1,186,948 | 1,186,949 | Using a development language (Python) before putting it into C++ | <p>I'm kinda having a debate here with my friend, whether it's OK to have a development language before putting the idea into C++.</p>
<p>When I say development language I mean a language to try ideas out before putting them into the compiled language, in this case C++.</p>
<p>My friend thinks it's unnecessary (and m... | c++ python | [6, 7] |
4,284,488 | 4,284,489 | Can't call page method from JQuery? | <p>I have a page called AddNews.aspx and in codebehind a web method called AddNews(Parameters)..</p>
<p>AddNews.aspx page is inherited from a master page.. So i used contentplaceholder.</p>
<p>I have a button..It's id is btnSave.</p>
<p>Here is jquery code:</p>
<pre><code>$(function() {
$("[id$='_btnSave']").click... | asp.net jquery | [9, 5] |
2,920,001 | 2,920,002 | Which is faster when reading large amounts of data: XML or SQLite | <p>I will be developing a dictionary app for both Android and iPhone. The data will be embedded within the app, and it consists out of approximately 100000 words, with genus and plural form. Is it better to use a SQLite database or can I just stick to XML? Somehow SQLite sounds more efficient, but I thought let's just ... | iphone android | [8, 4] |
2,966,420 | 2,966,421 | Writing a quiz application | <p>im making a quiz application in asp.net using c#. The following code is my start page where on clicking on start i'm redirected to my questions page.
The only reason I've added a start.aspx page ... so I could initialize the
values in the Session.
Here in the page_load event the- request.QueryString["testid"] always... | c# asp.net | [0, 9] |
4,571,142 | 4,571,143 | How can convert YYYY-MM-DD hh mm ss into MonthName, date, year | Hour:Minuts (am/pm) in JavaScript or jQuery | <p>I have date string <code>(2013-03-10 19:43:55)</code> and want to convert it in this format <code>(Mar 10, 2013 | 7:43 pm)</code> using JavaScript or jQuery. How can I do this ??</p>
| javascript jquery | [3, 5] |
561,825 | 561,826 | jQuery-not in pure JavaScript | <p>How can I write the following jQuery-not…</p>
<pre><code>$(".hover").not(".selected");
</code></pre>
<p>… in pure JavaScript?</p>
| javascript jquery | [3, 5] |
4,338,653 | 4,338,654 | jQuery "load()" Can't Load PHP "curl_exec()" Result | <p>I want an HTML file to load the result of "curl_exec()" method of a PHP file.</p>
<p>The PHP file is located in localhost, and the HTML file can be anywhere.</p>
<p>Eg the PHP file name is "curl.php".</p>
<p>I used jQuery "load()" to load the result, but it doesn't work, even after I upload the files to a web ser... | php javascript jquery | [2, 3, 5] |
883,509 | 883,510 | Select portion of input/string instead of all of it | <p>I have an input that holds a date value like so</p>
<pre><code>03/15/2012
</code></pre>
<p>I am trying to select only portions of the the value instead of the whole thing. For instance if I click the spot before 2 in 2012 the year 2012 will be selected not the whole date (same for is true for months and day).</p>
... | javascript jquery | [3, 5] |
5,216,814 | 5,216,815 | Time Counter using php and jquery | <pre><code>function next_second(){
var target = '1350840000';
var now = <?php echo time();?>;
alert(now);
}
$(function() {
setInterval(next_second, 1000);
});
</code></pre>
<p>the above alert function always returns same value. Am i doing something wrong?</p>
| php jquery | [2, 5] |
2,712,337 | 2,712,338 | Function without final argument, which includes Runnable() | <p>How to create function without final argument, which includes Runnable()?</p>
<pre><code> public void scroll(int scroll_to) {
final HorizontalScrollView scrl = (HorizontalScrollView)findViewById(R.id.horizontalScrollView1);
scrl.post(new Runnable() {
public void run() {
... | java android | [1, 4] |
1,787,871 | 1,787,872 | adding a class to some images based on the alt text using jquery? | <p>how can i add a class to some images based on the alt text using jquery?</p>
<p>here is an example of the image:</p>
<pre><code><img border="0" src="images/Product/icon/26086_1_.jpg"
alt="Show Picture 1" onclick="setcolorpicidx_26086(1);"
style="cursor:hand;cursor:pointer;">
</code></pre>
<p>so if the alt... | javascript jquery | [3, 5] |
3,424,781 | 3,424,782 | jQuery selectors after dynamic reload, and $(this) | <p>I need some help. I load a list of entries in a div every 5 seconds. Each entry is a div and has a unique ID. Like this:</p>
<pre><code><div class="entry">
<div class="textbox">
<p class="entry-text">
<?php echo $text;?>
</p>
</div>
<div class="infobox">
... | javascript jquery | [3, 5] |
3,158,503 | 3,158,504 | Should I ever pass data back to a main activity? | <p>My theory is that my main activity will open <code>LoginActivity</code>, then that activity will pass the <code>User</code> back to the main activity, which would launch <code>DashboardActivity</code> and stop <code>LoginActivity</code>.</p>
<p>Does this make sense or should I do this differently? I'm looking for ... | java android | [1, 4] |
1,620,699 | 1,620,700 | Three Different text to call the same onclick action | <p>I have this code working alright (all thanks to all the kind assistance i have received in this medium</p>
<pre><code>$htx = $row['mia_Text'] == 'mia owo';
<div id='inner'>
<p style="color:#FFF;"><a href="javascript:;" onclick="pkgsPopup('<?='http://'.$hLnk?>');" rel='nofollow'>... | php javascript | [2, 3] |
140,575 | 140,576 | convert string to php array, jquery serialize on form | <p>I have a form and am sending the data to a backend php script using:</p>
<pre><code>var fields = $('#myform').serializeArray();
</code></pre>
<p>And then doing a post. Some of my inputs are named as arrays so when the data gets posted, I have an array like below. How do I convert the attribute pieces back into o... | php jquery | [2, 5] |
586,854 | 586,855 | Comparing Java's pass-by-value with C++'s pass-by-value or -reference | <p>Java uses pass-by-value, both with Objects and primitive types. Because Java passes the value of the reference, we can change the value of target but cannot change the address.</p>
<p>How does this compare with C++?</p>
| java c++ | [1, 6] |
2,772,248 | 2,772,249 | Update a listview when a button is pressed | <p>I have two listviews, one where the data is displayed and another where I insert data (InsertItemTemplate). When the button on the first one is clicked and data is entered in the database i want the other one to update.</p>
<p>This is how i tried so far:</p>
<pre><code><asp:Button ID="InsertButton" runat="serve... | c# asp.net | [0, 9] |
4,165,766 | 4,165,767 | How to hide div on click and change html in another | <p>I have a simple request(still learning javascript). I have a title div and 3 divs(with an anchor tag inside each) below it. Basically what I want, is when you click on one of the anchor tags, that that specific anchor tag should hide(actually its parent div), and the text in the Title div above should change. How ca... | javascript jquery | [3, 5] |
5,808,212 | 5,808,213 | Whats the codeURI value for ¶? | <p>Could someone please tell me what the CodeURI value of a line break is? (¶)</p>
<p><strong>If you look below at the comment test you will see what i'm trying to achieve.</strong></p>
<pre><code>public static string unescapeForEncodeUriCompatability(string str) {
return str.Replace("%21", "!").Replace("%7e", ... | c# javascript | [0, 3] |
6,033,955 | 6,033,956 | What are the differences between PHP and Java? | <p>What are the main differences between PHP and Java that someone proficient in PHP but learning Java should know about?</p>
<p><strong>Edit:</strong> I mean differences in the syntax of the languages, i.e their data types, how they handle arrays & reference variables, and so forth :)</p>
| java php | [1, 2] |
4,683,437 | 4,683,438 | Why does changing the name of my function break my JavaScript? | <p>I have the following which works perfectly</p>
<pre><code>$(function() {
// Create the chart
chart = new Highcharts.StockChart({
...
});
});
</code></pre>
<p>However when I make the following modification</p>
<pre><code>createCharts();
function createCharts() {
// Create the chart
ch... | javascript jquery | [3, 5] |
5,634,978 | 5,634,979 | Setting an Image control source to an image in the server | <p>I'm trying to show an image on my Image control but it isn't working. I'm using it as a screenshot preview basically. I have the bitmap save to the Images folder in the server path, and then I set the ImageUrl for the control to that saved image location. Here is the code I have. This code executes on a button click... | c# asp.net | [0, 9] |
5,259,985 | 5,259,986 | how to debug into the java function from native call with GDB? | <p>there,
I have a C++ function call into Java module like this. My question is how to debug into the java code? In the program, there is a "JNI_CreateJavaVM()" function call to create the VM and load Java class into it. And I step into below code with GDB.
This is really a trick to me. Please give me some idea. Thank... | java c++ | [1, 6] |
3,815,946 | 3,815,947 | getting ids of different textViews defined in a class | <p>My TextView class is </p>
<pre><code>static class ViewHolder {
protected TextView tv0;
protected TextView tv1;
protected TextView tv2;
protected TextView tv3;
protected TextView tv4;
protected TextView tv5;
protected TextView tv6;
protected TextView tv... | java android | [1, 4] |
1,835,307 | 1,835,308 | Jquery conflict | <p>I have been trying and trying to fix jquery issues. i have in my header lots of jquery. I use it for slider and other things that are built into this premade theme. I am unable to add anything that uses jquery because of conflict. i need some help. The board is www.cgwhat.com. The forgot password is jquery and the ... | jquery javascript | [5, 3] |
246,581 | 246,582 | How to pass variable from PHP to Python? | <p>How can i pass a variable from a .PHP script to Python and vice versa?. </p>
<p>e.g</p>
<pre><code>//myPHPScript.php
$hello = 'hello';
//myPythonScript.py
print(get the result from $hello variable found in myPHPScript.php)
</code></pre>
| php python | [2, 7] |
911,787 | 911,788 | How to combine keypress & on click function in JavaScript? | <p>I have the following two functions:</p>
<pre><code>$("input").keypress(function(event) {
if (event.which == 13) {
//code
}
});
$('#login_submit').click(function () {
//code
});
</code></pre>
<p>The code which is being used in the functions are EXACTLY the sam... | javascript jquery | [3, 5] |
843,400 | 843,401 | textbox in asp.net using c# | <p>Can i bind my data with textbox in asp.net using c#
sorry to ask this silly question </p>
<p>if yes than how to bind it
as if we use VC# the text box has the option data binding in property ''</p>
<p>in asp.net i am not getting it </p>
<p>plz can any help me out ?</p>
| c# asp.net | [0, 9] |
5,982,868 | 5,982,869 | asp.net and c# with javascript | <pre><code>((LinkButton)e.Item.FindControl("my_label_name"))
.Attributes.Add("onclick","javascript:myJavaScriptFunction('"
+ data1_from_db + "','"+data2_from_db+"')");
</code></pre>
<p>I wrote this code (this code is in my <code>default.aspx.cs</code>) and this worked successfully a... | c# javascript asp.net | [0, 3, 9] |
2,768,836 | 2,768,837 | Programmatically call anchor tag to Page Top at load time | <p>I have a anchor tag that when you click on the "Up to the Top", it will move the web page to the top of the page. My anchor tag is #PAGETOP.</p>
<p>My question is, I am using the jQuery UI Dialog and basically would like to programmatically activate this #PAGETOP anchor so whenever the page always loads at startup,... | javascript jquery | [3, 5] |
1,325,570 | 1,325,571 | Use Browser Search (Ctrl+F) through a button in website? | <p>I have created a website and have added a button and lot of text. What I want is to use the browser search (Ctrl+F), when I press the button which I added in website.</p>
<p>How can I achieve this?</p>
| javascript asp.net | [3, 9] |
4,175,903 | 4,175,904 | iPhone / Android Apps & interacting with a website | <p>Hey guys.... just wondering does it matter much what your website is programmed in (PHP/.NET/ROR etc) with regards to having an iPhone or Android app interact with it?</p>
<p>Thanks!</p>
| iphone android | [8, 4] |
956,478 | 956,479 | Android JSON parsing pound symbol coming up as? | <p>I have a JSON file which contains a pound symbol in it. This json is pulled from a file stored on the phone temporarily. It will come from a server, but for time being I am just storing it on the phone. I convert the JSON file to an input stream and use a method to convert it to a string like this</p>
<pre><code>Re... | java android | [1, 4] |
4,451,983 | 4,451,984 | Function to get index from an array of objects having certain value of provided property | <p>My question is based on and similar to <a href="http://stackoverflow.com/q/7176908/148271">this one</a> but a little bit different because property name will be variable.</p>
<p>How do I create a function which will return me index of object having certain value of provided property? </p>
<pre><code>function index... | javascript jquery | [3, 5] |
4,627,320 | 4,627,321 | Jquery Ajax Problem | <p><strong>Hi all;</strong></p>
<pre><code>var v_name = null;
$.ajax({
type: "GET",
url: "Testpage.aspx",
data: "name=test",
dataType: "html",
success: function(mydata) {
$.data(document.body, 'v_name', mydata);
}
});
v_name = $.data(document.body, 'OutputGrid');
alert(v_n... | javascript jquery | [3, 5] |
2,354,383 | 2,354,384 | photo mosaics in javascript | <p>Is there any jquery plugin or a javascript library to produce photo mosaics, ie creating an image made up of smaller images ? (cf: <a href="http://en.wikipedia.org/wiki/Photographic_mosaic" rel="nofollow">http://en.wikipedia.org/wiki/Photographic_mosaic</a>)</p>
| javascript jquery | [3, 5] |
1,036,845 | 1,036,846 | jQuery - use .hover instead of .click | <p>I have the following code on my page.</p>
<p><a href="http://jsfiddle.net/SO_AMK/r7ZDm/" rel="nofollow">http://jsfiddle.net/SO_AMK/r7ZDm/</a></p>
<p>As you see it's a list of links, and every time a link is clicked, the popup box opens up right underneath the link in question.</p>
<p>Now, what I need to do is bas... | javascript jquery | [3, 5] |
1,890,502 | 1,890,503 | saving Image using sql query method | <p>I am using following code: Note that i HAVE TO SEND SQL Query so using this procedure.</p>
<p><code>currentReceipt.image</code> is a <code>byte[]</code></p>
<pre><code> String updateQuery = "INSERT INTO MAReceipts(userId, transactionId, transactionType, receiptIndex, referenceNo, image, smallThumb, comments,... | java android | [1, 4] |
3,470,763 | 3,470,764 | why java script cannot access this asp.net var? | <p>I have this c# user control class:</p>
<pre><code>public partial class UserControls_JsTop : System.Web.UI.UserControl
{
public static string sidebarBannerUrl = getSideBarBannerImgUrl();
protected void Page_Load(object sender, EventArgs e)
{
}
public static string getSideBarBannerImgUrl(){
... | c# asp.net jquery | [0, 9, 5] |
2,983,228 | 2,983,229 | Dynamically Draggable, Editable and self resizing TextField | <p>I'm working on an android app in Eclipse and I need a textfield that can be placed, dragged, and edited by the user on screen. Now I have this working on an absolute layout, which is fine, and I have editing capabilities but I'm looking for something more along the line of how Skitch by evernote does it. has anyone ... | java android | [1, 4] |
5,133,597 | 5,133,598 | Replace or remove nth occurrence of \n | <p>This is my string:</p>
<pre><code>var ok = "\n\n33333333333\n\n\n";
</code></pre>
<p>How to replace the 4th occurence of '\n' with ''?
Or, how to remove the 4th occurence of '\n'?</p>
| javascript jquery | [3, 5] |
4,618,378 | 4,618,379 | Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed | <p>I have a grid view on my page and i want to export it to the Excel Sheet,
Below is the code i had written to do this task, here i am already passing the dataset to the method to bind the grid and btnExcelExport is the button which will export the Grid Content in to Excel Sheet :-</p>
<pre><code>private void BindGri... | c# asp.net | [0, 9] |
1,558,729 | 1,558,730 | Best practice to save data for anonymous users? | <p>I'm building a web app and i'd like to allow anonymous users to use it and to save some data without signing up.</p>
<p>let's assume the user save a list of favorites image urls without singing up.</p>
<p>now i'm using this way: I save those favs in db and then i save the user's ip address
so every time the user g... | php javascript | [2, 3] |
3,800,611 | 3,800,612 | jQuery function not moving... can't find anything wrong with it? | <p>I'm trying to take these moving clouds: <a href="http://vintageskytheme.tumblr.com/" rel="nofollow">http://vintageskytheme.tumblr.com/</a> (it's a theme I've already bought from themeforest, but its for tumblr)</p>
<p>I'm trying to put it on wordpress. here: <a href="http://pawprintsinmypancakes.com/" rel="nofollow... | javascript jquery | [3, 5] |
2,424,043 | 2,424,044 | how to refrence Linq2SQL class from a static class | <p>i am having a strange problem, i have a static class like this </p>
<pre><code> public static class BlogDataAccess
{
private static Blog _Blg;
public static Blog Blg
{
get
{
_Blg = new Blog ();
return _Blog ;
}
}
}
</code></pre>
<p>then in my page i d... | c# asp.net | [0, 9] |
330,787 | 330,788 | Javascript alert based on specific selected inputs (drop down lists) | <p>I have very limited Javascript knowledge so require some help please:</p>
<p>I have the following function:</p>
<pre><code>$('#addDialog').dialog({
autoOpen: false,
width: 500,
buttons: {
"Add": function() {
//alert("sent:" + addStartDate.format("dd-MM-yyyy hh:m... | javascript jquery | [3, 5] |
1,976,069 | 1,976,070 | loading, scrolling , zoom in and zoom out the images like google map | <p>I am working on a web application. i just wanna know the way to do it. its just like a map application, but not the map.</p>
<p>i need to display 100 images on the webpage inside a div from mysql database. each image would display on a specific predefine tile. i wants the following functionalists. </p>
<ol>
<li>lo... | php javascript jquery | [2, 3, 5] |
4,619,571 | 4,619,572 | Jquery inline attribute value | <p><strong>Can i get some suggestions. Do you have better way to do this?</strong></p>
<p>Most of the time when i got a group of data input in Html table, I always level data like
some reference id like "student_id", or "country_id" to parent structure like or , </p>
<p>for example</p>
<pre><code><tr student_id... | javascript jquery | [3, 5] |
2,668,411 | 2,668,412 | Add onMouseOver Javascript Function to Asp.Net Dynamic Menu Items | <p>How do you add a mouseover javascript function to an asp.net menu item when the menu items are created dynamically? Doesn't allow you to add .attributes function.</p>
<p>[Javasript]</p>
<pre><code><script type="text/javascript">
function ChangeProjectImage(obj) {
var ctrl = document.getElementByI... | javascript asp.net | [3, 9] |
166,548 | 166,549 | Creating DIV dynamically, is not taking height and width on fly | <p>I want to create div dynamically based on some calculations.I am able build div's dynamically but the only issue is it's not taking height and width on fly.please any one share their view or code if possible.</p>
<p>Here's the script which i used for your reference.</p>
<pre><code><script type="text/javascript"... | javascript jquery | [3, 5] |
4,291,775 | 4,291,776 | Jquery clear form in a section | <p>for the following:</p>
<pre><code><div class="section grouping">
<div class="sectionControl">
<div class="parent row errorOn">
<div class="validGroupControl">
<div class="row2 itemWrap clearfix">
<label>Login1 (adress e-... | javascript jquery | [3, 5] |
1,328,073 | 1,328,074 | If it's inside the variable | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1789945/javascript-string-contains">JavaScript: string contains</a> </p>
</blockquote>
<p>I have a simple question for you. I have a variable with my url. Now i want check this url. I make this javascript:</p>
... | javascript jquery | [3, 5] |
2,362,062 | 2,362,063 | Getting the source of a click in jquery? | <pre><code>var currentImageBox;
$('.newImage').bind('click', function() {
currentImageBox = this;
currentImageBox.unbind('click');
});
</code></pre>
<p>Im trying to set currentImageBox to the div that was clicked (a number of divs on the page have the newImage class). But to no avail, where am... | javascript jquery | [3, 5] |
2,681,235 | 2,681,236 | send the form information to my email box with php | <pre><code><input type="button" class="button" />
<form action="" method="">
<input type="text" name="name" />
<input type="text" email="email" />
<input type="text" phone="phone" />
<textarea name="message"></textarea>
<input type="submit" class="submit"/>
</form>
... | php jquery | [2, 5] |
5,160,924 | 5,160,925 | Initializing jquery ui plugins using live or on jquery | <p>I want to initialize <code>jquery ui button plugin</code> using <code>live</code> or <code>on</code>. Means something like :</p>
<pre><code> $('button').live("which event", function() { $(this).button(); });
</code></pre>
<p>But i don't know the event which i can use in this place. I tried <code>load</co... | javascript jquery | [3, 5] |
3,328,164 | 3,328,165 | Variable passed into .on() function always is the last element | <p>I'm sort of emulating Backbone's event system with an object like this:</p>
<pre><code>var events = {
'click .one': 'fnOne',
'click .two': 'fnTwo',
'click .three': 'fnThree'
}
</code></pre>
<p>Then to set the event listeners with jquery I'm using the following:</p>
<pre><code>var method,
match,
... | javascript jquery | [3, 5] |
4,547,860 | 4,547,861 | DatePicker inside asp.net gridview not displaying? | <p>I've got an asp.net gridview inside an updatepanel.
One of the fields I have on there is a simple textbox like so:</p>
<p><code><asp:TextBox ID="txtDueDate" Text='<%# Eval("DueDate") %>' Width="75px" runat="server" ToolTip="Select the due date." CssClass="datePickerDueDate"></asp:TextBox></code></... | jquery asp.net | [5, 9] |
2,667,484 | 2,667,485 | How to tell onBlur not to hide the submit button when clicked? | <p>My blur event hides the submit button; but doing that seems to cancel the submit event. I only want to hide when the submit itself wasn't clicked. How can I determine if the focus was lost due to the submit, or due to just wandering off elsewhere?</p>
<pre><code><form action="" method="post">
<textare... | javascript jquery | [3, 5] |
4,396,497 | 4,396,498 | Forms in ModalPopupExtender in ASP.net c# | <p>I am currently working on an ASP.net c# project. I have an aspx page where I have a form taking user input and a datagrid. When the user clicks on a link inside the datagrid it displays a modal popup extender with dynamic data. This is working fine. </p>
<p>What I want to be able to do is when the modal popup exten... | c# asp.net | [0, 9] |
1,921,905 | 1,921,906 | ConfigurationSection with multiple projects | <p>In my asp.net solution i have a couple of class library-projects that act as modules of the site.<br>
In main project I have SiteConfigurationSection class that derives from ConfigurationSection. </p>
<p>I want all projects to be able to access and use this SiteConfigurationSection.<br>
But class library projects ... | c# asp.net | [0, 9] |
5,202,840 | 5,202,841 | Calling JavaScript Function From CodeBehind | <p>I am new to JavaScript Programming and C# Programming.
Can someone provide good examples of calling a Javascript function From CodeBehind and ViceVersa.</p>
<p>Thank You</p>
| c# javascript asp.net | [0, 3, 9] |
4,864,142 | 4,864,143 | How to send key event to an edit text in android app | <p>For example, send a backsapce key to the edit text control to remove a charactor or send a char code like 112 to append a charactor in the edittext control programatically.</p>
<p>Actually I need a method like</p>
<pre><code>onKeyReceived(int keyCode)
{
// EditText to append the keyCode, I know how to add a visib... | java android | [1, 4] |
759,697 | 759,698 | ClassCastException when getting the selected item of ListView as string or textview | <p>I got <strong>runtime error</strong> exception: </p>
<pre><code>java.lang.ClassCastException: android.widget.TwoLineListItem cannot be cast to android.widget.TextView
</code></pre>
<p>My Activity extends Activity <strong>NOT</strong> ListActivity and here is my layout construction:</p>
<pre><code><LinearLa... | java android | [1, 4] |
2,651,472 | 2,651,473 | move cursor to the beginning of the input field? | <p>when you click on 'Ask question' here in Stackoverflow you see a text "What's your programming question? Be descriptive."</p>
<p>i want the same thing and all i need for that is to move my cursor to the beginning of the text field. how do i do that with jquery?</p>
| javascript jquery | [3, 5] |
861,394 | 861,395 | Open window by window.open and print it with window.print on load | <p>I have some code like </p>
<pre><code>var windowObject = window.open('','windowObject','arguments...');
windowObject.document.write("<html><body onload="alert(1);window.print();alert(2);"><div>some html</div></body></html>");
</code></pre>
<p>The problem is that everything works... | javascript jquery | [3, 5] |
1,712,426 | 1,712,427 | 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] |
3,306,646 | 3,306,647 | how to remove a part of a url from a url using jquery? | <p>I have a javascript variable</p>
<pre><code>var url = http://www.abc.it/it/security/security.aspx?security=pdfcompare&../securitycomparepdf/default.aspx?SecurityTokenList=blab]2]0]blab$ALL|blab]2]0]blab$ALL|blab]2]0]blab$ALL;
</code></pre>
<p>I need to remove the part <code>"../securitycomparepdf/default.aspx... | javascript jquery | [3, 5] |
5,173,674 | 5,173,675 | Whether there is something similar to strip_tags in Java? | <p>We have a function <a href="http://php.net/manual/en/function.strip-tags.php" rel="nofollow"><code>strip_tags</code></a> in PHP which would strip all the tags and also you can exempt certain tags from being stripped out..</p>
<p>My question is whether there is anything similar in Java??</p>
| java android | [1, 4] |
3,093,537 | 3,093,538 | Issue with text area key down event using jQuery | <p>We're having problems trying to implement a word counter similar to the one on twitter which decrements when the user types in the text field. Unfortunately it's quite glitchy as once you've deleted all the characters via backspace it displays that you only have 84 characters left (unless you hit backspace again). I... | javascript jquery | [3, 5] |
3,866,400 | 3,866,401 | How to get the values from Dictionary type SESSION Variable in C# | <p>I am using C#.</p>
<p>I have got below format values in my <strong>SESSION variable ["FROMDATA"]</strong>, I am using <strong>DICTIONARY</strong> to store the FORM Posted Data. Please see the related <a href="http://stackoverflow.com/questions/4723240/how-to-store-all-the-form-posted-data-in-asp-net-dictionary">que... | c# asp.net | [0, 9] |
2,754,139 | 2,754,140 | Tips and Suggestion on how to create a quiz using php and jQuery | <p>I do want to create a Quiz like on this site </p>
<blockquote>
<p><a href="http://www.fatihacet.com/lab/jQuiz/" rel="nofollow">Quiz</a></p>
</blockquote>
<p>How can I done this using php and jQuery? or is there other way to do this not using flash </p>
<p>I do got a idea from this and my problem is how to imple... | php jquery | [2, 5] |
3,444,444 | 3,444,445 | JQuery events get unbound when I delete and re-add them | <p>I'm creating a custom view with sorting capabilities and has something that almost works, except that once it sorts once the click events to the elements being sorted become unbound, likely as a result of how i remove the elements and re add them sorted.</p>
<p>Is there a better way to do this such that the 'childr... | javascript jquery | [3, 5] |
1,666,667 | 1,666,668 | Store detail data in JavaScript | <p>I have a Parent/Child form. For example, the parent table may have the following field</p>
<ol>
<li>Number of projects completed</li>
<li>Have you ever worked with our company? (Yes/No radio button)</li>
</ol>
<p>If the second option have 'Yes' value, then I need to fill the details form.
For example: "The project... | php javascript | [2, 3] |
1,652,787 | 1,652,788 | Why does $('#id') return true if id doesn't exist? | <p>I always wondered why jQuery returns true if I'm trying to find elements by id selector that doesnt exist in the DOM structure.</p>
<p>Like this:</p>
<pre><code><div id="one">one</div>
<script>
console.log( !!$('#one') ) // prints true
console.log( !!$('#two') ) // is also true! (empty j... | javascript jquery | [3, 5] |
4,284,058 | 4,284,059 | make refresh without refreshing the all page | <p>I made 2 dropdownlists which are filled from my database. In the first drop are countries and in the second are cities. When a user selects a country automatically in the second drop down appears all the cities from that country. The problem is that when I select another country all the page is refreshing and I want... | php javascript | [2, 3] |
1,762,750 | 1,762,751 | jquery .slidetoggle() and .toggle() together, first click does nothing then works after that | <p>I'm trying to create an accordion-like interface but multiple sections can be open at once. Also, in addition to expanding a section of content for viewing, I'm swapping the image for the "header" that was clicked. Everything is working but the first click on each "header" does nothing. Each subsequent click works a... | javascript jquery | [3, 5] |
5,230,052 | 5,230,053 | Clean way to detect if a Java library is being used on Android | <p>What is a good way to detect inside a Java library, if it is being used on the Android platform?</p>
| java android | [1, 4] |
6,032,727 | 6,032,728 | How to show data from database in Data List Control | <p>I have a project in which I am working on admin interface . In admin interface I have to do following work.</p>
<ul>
<li><p>Allow user to select table in which
he want to perform
action(delte,show,update).</p></li>
<li><p>While saving user information. i am
saving the image path. and i have to
also so a user image ... | c# asp.net | [0, 9] |
1,875,944 | 1,875,945 | Allowing only one select option of a certain value to be selected | <p>I created a jsfiddle for this at <a href="http://jsfiddle.net/MZtML/" rel="nofollow">http://jsfiddle.net/MZtML/</a></p>
<p>I have a row of images with a select box to determine what type of image it is. These are the options:</p>
<pre><code><select name="image-type">
<option value="none">Select Ima... | javascript jquery | [3, 5] |
4,229,314 | 4,229,315 | jQuery making images bigger | <p>On my site I've got images which are in reality for example 2000 / 1500 px </p>
<p>I resized them using width and height properties in CSS, but I would like to show them bigger (maybe in popup or something like that) after clicking on them.</p>
<p>Which one plugin or method is the easiest one to accomplish this?</... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.