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,627,686 | 5,627,687 | parsing css measures | <p>When i write a jQuery plugin i like to specify options for spacings the CSS way.
I wrote a function that returns a CSS String as values in a object. </p>
<p>5px 10px returns top: 5px, right: 10px, bottom: 5px, left: 10px</p>
<p>Now i often use the returned values to do some calculations and its not very nice to ha... | javascript jquery | [3, 5] |
1,033,634 | 1,033,635 | how to show textarea based on select dropdown using jquery? | <p>i want to display 2x dropdown menus both will be pre populated (2nd menu "mainToon" will contain over 200 names but for the example i have shown just a few.</p>
<pre><code><select id="category" name="Category">
<option value=" "></option>
<option value=" ">-----------------</optio... | php jquery | [2, 5] |
2,384,200 | 2,384,201 | ASPx set Cookie Domain | <p>I have a code as follows:</p>
<pre><code> this.Response.Cookies.Add(new HttpCookie("COOKIENAME",'test'));
</code></pre>
<p>I want to add the domain ".test.com" for this cookie. How do I do so? I tried the standard:</p>
<pre><code> this.Response.Cookies["COOKIENAME"].Domain = ".test.co.uk";
</code></pre>
<p>Bu... | c# asp.net | [0, 9] |
5,569,272 | 5,569,273 | Find out the post data size in byte | <p>When I submits the form in php.
I want to find the size of the data for each text box that are posted through javascript in bytes. </p>
| php javascript | [2, 3] |
2,361,793 | 2,361,794 | Menu and Submenu not behaving as expected when hovering erratically | <p>I have a horizontal menu (set out as a list) and when you hover over one of the list items it animates a dropmenu which is a child of the list item.</p>
<p>This works fine if you move the cursor over the menu at a "normal" speed. The problem I have is the behaviour of the menu if you erratically move the cursor ove... | javascript jquery | [3, 5] |
4,600,286 | 4,600,287 | Is it possible to launch an android application activity when the phone starts? | <p>Im attempting to build an android application and one of the key features to this application is for it to be able to launch an activity automatically when the phone starts, I see some apps on my phone that already do this, any help would be great so that I can atleast research this a little better through the sdk, ... | java android | [1, 4] |
461,235 | 461,236 | Make checkbox and a textbox Readonly | <p>Following is my javascript code,is there a way to make checkbox and textbox readonly?</p>
<pre><code>//display textboxes and checkbox when condition is true.
if($$("id").value =="something"){
document.getElementById("textboxl").style.display="";
document.getElementById("chkbox1").style.display="";
... | javascript jquery | [3, 5] |
438,110 | 438,111 | how to redirect when user closes window or tab | <p>Is there a way to redirect the window or tab when a user closes it? This does not work (in jQuery):</p>
<pre><code>$(window).bind('beforeunload', function() {
window.location = 'anotherpage.html'
}
</code></pre>
<p>Is it even possible? I just want to redirect a user to another page when they close it.</p>
| javascript jquery | [3, 5] |
740,533 | 740,534 | Does scrollIntoView work in all browsers? | <p>Does scrollIntoView work in all browsers? If not is there a jQuery alternative?</p>
| javascript jquery | [3, 5] |
2,390,900 | 2,390,901 | Automatically popup browser and tab | <p>I am using a chat section,its work perfectly.But the client wants ,if we got a new message</p>
<ol>
<li>open the minimized browser automatically </li>
<li>open the tab (in the case of same browser and another tab)</li>
</ol>
<p>is any way to do it using javascript or jquery?</p>
| php javascript jquery | [2, 3, 5] |
3,146,222 | 3,146,223 | How to set blur for brush? | <p>I have been developing the application which draws on a view using user's finger. So, I have a piece of code which demonstrate settings for Paint, Bitmap, Canvas:</p>
<pre><code> mPaint = new Paint();
mPaint.setAntiAlias(true);
mPaint.setDither(true);
mPaint.setColor(mForegroundColor);
mPaint.set... | java android | [1, 4] |
709,361 | 709,362 | IFrame and others Reloading after Clone and Append | <p>I have written below JavaScript using JQuery. I have tested it in Firebug and it is working. </p>
<p>What I am doing here?
I am copying social share bar and putting (after clone) in fixed position near to Post body. I think if someone share something then it will work as everything is same. </p>
<p>My question is ... | javascript jquery | [3, 5] |
5,727,916 | 5,727,917 | How to get number of html elements in a string? | <p>How to get number of HTML elements (HTML tags) in a string?</p>
<p>For example I have this string: </p>
<pre><code><div> some text
<div>
<label>some text</label>
</div>
</div>
</code></pre>
<p>Now how would I find number of html tags in this string? The res... | javascript jquery | [3, 5] |
2,164,319 | 2,164,320 | How to change floating sidebar js code so that it works with ajax pagination? | <p>I have a floating sidebar in my website <pre>www.rayshaft.com</pre> and I also have ajax pagination, so the sidebar is supposed to be floating until it reaches the footer of the page, but the problem is it works only with the 1st page, when the 2nd page is loaded via ajax the sidebar is not floating.
I was suggested... | javascript jquery | [3, 5] |
1,188,169 | 1,188,170 | How to validate username with rules | <p>I have set some rules for ma application username like min 3 characters and max 20 characters and only allow small case letter and numbers and only 2 special charters like . and _ that too only once. how can i do this. </p>
| javascript jquery | [3, 5] |
5,576,849 | 5,576,850 | Change href parameter using jQuery | <p>How do I rewrite an href parameter, using jQuery?</p>
<p>I have links with a default city</p>
<pre><code><a href="/search/?what=parks&city=Paris">parks</a>
<a href="/search/?what=malls&city=Paris">malls</a>
</code></pre>
<p>If the user enters a value into a #city textbox I want to ... | javascript jquery | [3, 5] |
4,175,082 | 4,175,083 | in jQuery, is it possible to halt execution until a user submits a value in a jQuery UI dialog? | <p>Currently, I have an event handler for <code>$('.toggle-enable-item').click(functi ....</code> which does an ajax request and a set of associated callbacks. I would like to just add one for <code>$('.toggle-enable-menu-item .with-comment').click(fun...</code> and set the textarea for that comment to a window.un... | javascript jquery | [3, 5] |
5,835,580 | 5,835,581 | Window object as Global Variables Inside Function always undefined | <p>Hi I dont know what I'm missing but if its always says undefined.</p>
<pre><code>function report_grid() {
$.ajax({
type: "POST",
url: "filter_option.php?action=filter",
data: $('#form1').serialize(),
async: false,
success: function(rdata) {
window.my_var = rdata
}
})
}
$('#onscreen')... | javascript jquery | [3, 5] |
963,661 | 963,662 | NotifyPropertyChanged in java - Android | <p>Does anyone know if there is anything in Java similar to <code>NotifyPropertyChanged</code> in C#? I have been searching around, and there is no proper answer.</p>
<p>Here is the senerio:
In fact,I am working on an android application. The applications will read data from the remote bluetooth device via the bluetoo... | java android | [1, 4] |
5,122,895 | 5,122,896 | Which Language to choose for a specific project? | <p>For my senior project I am making a program for home automation that will run on a windows computer (can be changed if linux is better choice). The idea is to have a program running all the time that interacts with the user via voice commands. It will listen for a keyword to be said, once triggered the user can then... | java python | [1, 7] |
3,137,451 | 3,137,452 | Start timer on web application start | <p>I would like to start a <code>System.Threading.Timer</code> in my application when it launches (maybe deploy is the correct word). I have seen that you can use <code>Application_Start()</code> but this is only <a href="http://stackoverflow.com/questions/1384131/configuring-asp-net-to-start-a-method-before-each-appl... | c# asp.net | [0, 9] |
5,375,646 | 5,375,647 | How do I find this JQuery element? | <pre><code><input type="text" class="the_name" data-num="1" value="Choose a Font.">
</code></pre>
<p>Find all elements that have "input.the_name" <strong>AND</strong> data-num = 1. How do I do both of those attributes?</p>
| javascript jquery | [3, 5] |
4,112,073 | 4,112,074 | Call jquery from php | <p>I have a form with Name : input and a submit. When pressed, it posts to the same php file. My first check is basically <code>if(!$name) { call jquery to insert error class }</code>. I have the jquery set up in a function but I'm not sure how to call the function from the if statement.</p>
| php jquery | [2, 5] |
3,899,132 | 3,899,133 | Using jQuery in a Blackboard Building Block | <p>Shot in the dark here, but I'm trying to use jQuery in a custom building block of type module for Blackboard: <a href="http://www.blackboard.com/" rel="nofollow">http://www.blackboard.com/</a>, and would love to know the tag structure I'm suppose to use to get this accomplished.</p>
<p>I have tried several combinat... | java jquery | [1, 5] |
225,946 | 225,947 | Jquery slider to show when you click on links | <p>I would like to create a slider for 2 forms that i have.. basically I am going to have Form 1 and Form 2 as text.I would like that when I click on Form 1, a form in a table will slide and become visible underneath the text Form1.... Then if i click Form 2, another form in a table will be visible underneath the text ... | javascript jquery | [3, 5] |
3,884,278 | 3,884,279 | How to prepend a string to a string variable in a for loop without changing the loop structure? | <p>If i have a for loop like this:</p>
<pre><code>var rows;
var len = z[0].length;
for ( var i = len; i--; ) {
rows += "<tr><td>" + z[0].Marketer + "</td><td>";
}
</code></pre>
<p>How can i prepend instead of append the current row to this string WithOUT changing the for loop structure?<... | javascript jquery | [3, 5] |
5,639,276 | 5,639,277 | event.stopImmediatePropagation() does not work on Chrome for Android | <p>I believe <code>event.stopImmediatePropagation()</code> does not work on Chrome for Android.
Would anyone have a fix for it ? (alternative code) ?
Thanks. </p>
| android jquery | [4, 5] |
3,917,300 | 3,917,301 | Prompting user when form fields have changed and they do not save | <p>Pretty common scenario here, a user changes fields in a form and leaves the page without saving. I throw a warning message.</p>
<p>I first began with using </p>
<pre><code>$(window).bind("beforeunload", function(){ });
</code></pre>
<p>But I want to throw a Dialog and give the user some options, I opted for this ... | javascript jquery | [3, 5] |
5,726,729 | 5,726,730 | Remove value from option select | <p>Have any chance to remove exp. value="1" option select?</p>
<p>Exp. that is my option select:</p>
<pre><code><select name="animals">
<option value="0">dog</option>
<option value="1">cat</option>
</select>
</code></pre>
<p>How to remove value="0" and value="1"?</p>
<p>I try t... | javascript jquery | [3, 5] |
698,973 | 698,974 | Populate an array with values from checkboxes and then submit all at once | <p>I'm probably going to need some sort of jquery or JS to accomplish this, and since I suck at using either solution; I was hoping someone could point me in the right direction. Basically I want to be able to select a bunch of records and add them into an array. Once I'm happy with my results, I hit the "Submit" butt... | javascript jquery | [3, 5] |
382,777 | 382,778 | How can I use my coding skills for good? | <p>By this autumn my two small websites should be generating around a total of $1200 a month with minimal/zero input which is enough to for me to live on comfortably enough. </p>
<p>Rather than embark on another business venture, I would love to spend the next few years doing something genuinely good or that helps oth... | c# java php javascript jquery | [0, 1, 2, 3, 5] |
1,253,768 | 1,253,769 | how to use try catch blocks in a value returning method? | <p>I am checking the uploaded image in a registration form , where i need to use try catch blocks. here is my code:</p>
<pre><code>public bool CheckFileType(string FileName)
{
string Ext = Path.GetExtension(FileName);
switch (Ext.ToLower())
{
case ".gif":
... | c# asp.net | [0, 9] |
1,895,332 | 1,895,333 | how can i add animate function here | <p>i am trying to show some div contents when user click a show more button and then hide the div contents when user click a hide button, i want to make this function with some animation. here is my script : </p>
<pre><code>$(document).ready(function(){ //Toggling between more results
$('.loadMoreDiv').click(func... | javascript jquery | [3, 5] |
11,953 | 11,954 | Add javascript pixel values? | <p>Is there a way in javascript/jQuery to take two variables with values "60px" and "40px" and add them together to get "100px"?</p>
<p>Or in a more general sense, I'm trying to calculate positions of objects relative to other objects and it would be really convenient if I could do something like this:</p>
<pre><code... | javascript jquery | [3, 5] |
5,061,629 | 5,061,630 | How to logout with jquery or just javascript using form authentication? | <p>I'm using forms authentication in my web application. Is there any way to logout (FormsAuthentication.SignOut;) using jQuery library or javascript?</p>
| c# javascript jquery asp.net | [0, 3, 5, 9] |
1,676,684 | 1,676,685 | Get a file given a path to the file | <p>I want to get a file which i saved in a specific directory on my phone.
How can I find and get a ref to it so I can do with it something different like uploading to a server?</p>
<p>Thanks in advance.</p>
<p>Shiran</p>
| java android | [1, 4] |
3,236,380 | 3,236,381 | How do I transfer a javascript value to a php variable? | <p>I have an html table containing values that are being generated from javascript. How do I transfer those values to php variables?</p>
| php javascript | [2, 3] |
5,680,568 | 5,680,569 | Is there a ? conditional test in Javascript like in C#? | <p>I have the following:</p>
<pre><code>var isChecked = $('#htmlEdit').is(":checked");
</code></pre>
<p>But I don't really need the variable isChecked and what I want to do is to assign a value to a variable called "action" so that if the test on the right above is true then </p>
<pre><code>var action = "Editing HTM... | javascript jquery | [3, 5] |
2,578,695 | 2,578,696 | javascript on click event is not working fine on img tag | <p>I am trying to open a link on image click using follwoing code</p>
<pre><code> <img src="AllScripts/SliderImages/images/1Main.png" alt="" title="" onclick="openSliderImage(id);" onmouseover="this.style.cursor='hand'" width="800px" height="300px" id="http://www.google.com" />
</code></pre>
<p>It is working ... | javascript asp.net | [3, 9] |
1,207,124 | 1,207,125 | Making divs constantly move randomly | <p>I have created a shooting game for children, where they have to shoot the correct number (depending on the question) when it appears. My problem is at the moment the numbers appear one at a time but I would like to make it so that the canvas is constantly populated with numbers that keep moving around like the shape... | javascript jquery | [3, 5] |
5,583,479 | 5,583,480 | Auto Flip Tab on specific time duration | <p>All</p>
<p>I am using this flip tab for my project.</p>
<p>This is js fiddle link : <a href="http://jsfiddle.net/ajaypatel_aj/XbhUW/1/" rel="nofollow">http://jsfiddle.net/ajaypatel_aj/XbhUW/1/</a></p>
<p>Js code </p>
<pre><code>$('document').ready(function(){
$('#flip-container').quickFlip();
$('#flip-navigatio... | javascript jquery | [3, 5] |
5,323,245 | 5,323,246 | Javascript: Timed href change | <p>Having a slight Javascript issue at the moment, I am hoping to have the below image have a variable HREF which is triggered by a time change. </p>
<p>At the moment it is triggering to some extent but then getting stuck on one of the URLs. It is also affecting an image which is overlaid on top of this one. Which isn... | javascript jquery | [3, 5] |
4,048,479 | 4,048,480 | Clip text in C# after the third word | <p>I have a text(title) which has values like "Zesty Bean Bites South of the Border ". I need to add ... after the 3rd word in title .How can we achieve this ? i tried using Substring() method but it wont split by words ? </p>
| c# asp.net | [0, 9] |
115,639 | 115,640 | Set cookie domain with Javascript variable | <p>Im taking the domain from the HTML of the page using jQuery:</p>
<pre><code>domainUrl = $("p.domain").text();
</code></pre>
<p>for the purposes of testing:</p>
<pre><code><p class="domain">.vl3.co.uk</p>
</code></pre>
<p>Which is also the domain Im testing the script on.</p>
<p>This then give an ale... | javascript jquery | [3, 5] |
2,345,813 | 2,345,814 | Getting the text of all inputs in a form using jquery | <p>I am trying to consolidate all inputs on my form into one string, but my code just overwrites the var on each loop leaving me with only the text from the last input on the form... How can I fix this?</p>
<pre><code>$(':input').each(function() {
var output = $(this).val();
$('#output').html(output);
});
</co... | javascript jquery | [3, 5] |
1,146,821 | 1,146,822 | preventDefault does not work on focus event | <p>I am trying to design a form such that if it has a certain class, the user should not be able to interact with any of the inputs. For various reasons, I would like to avoid using the "disabled" attribute. I am trying to prevent the default on the focus event and it is not working. I tested this in recent versions of... | javascript jquery | [3, 5] |
674,090 | 674,091 | Does Android have any way to detect cyanogenmod and its version? | <p>I'm working on an android media player which needs equalizer. However, equalizer is only available on Gingerbread and above, but cyanogenmod 6 has modified audioflinger to act as equalizer, so I want to detect OS version.</p>
| java android | [1, 4] |
3,099,893 | 3,099,894 | javascript regex does not work for sentence string | <p>I am writing a function which takes string as an argument. Then if the string begins with capital letter then return true otherwise return false. But my current function only works for one word string which I want it to work for both one word and a whole sentence. How can I improve my code to achieve this? Secondly,... | javascript jquery | [3, 5] |
1,077,712 | 1,077,713 | Obtaining information from a picture taken with the camera device | <p>I started to develope a new application for Android OS and the idea of this application is to find some words from the picture that taken with the camera device.</p>
<p>I don't know how to find words and if it's a long sentence so the application will divide the words.</p>
<p>Does you have some ideas for this?</p>... | java android | [1, 4] |
5,895,793 | 5,895,794 | How to call a asp.net page asynchronously using JQuery | <p>I want to call a aspx page method asynchronously using JQuery</p>
| asp.net jquery | [9, 5] |
1,419,942 | 1,419,943 | Event not firing on dropdown list when disabled | <p>This client side script is being added to buttons in our existing codebase. It basically shows a pop-up that the system is busy whenever a long running process is occuring. this works fine for buttons, however the btn.disabled = true line causes the SelectedIndexChanged event to never fire(when using it on a button,... | asp.net javascript | [9, 3] |
720,415 | 720,416 | Multi step form with jQuery which degrades nicely if JS is turned off | <p>I currently had my form set up so that each section was refreshed using Ajax, however it didn’t degrade gracefully with JavaScript turned off and I’ve looked into putting each part of the form in to a separate view which works fine but isn’t that great to be honest.</p>
<p>I know the client wants it to look nice so... | javascript jquery | [3, 5] |
4,515,039 | 4,515,040 | Bind Telerik radmenu from database using Dataset in winforms | <p>how to bind rad menu from database using <strong>dataset or datatable</strong> in windows forms .i am unable to bind submenu in telerik radmenu winforms </p>
| c# asp.net | [0, 9] |
3,536,656 | 3,536,657 | Disable certain tags and javascript inside an element? | <p>I run a forum and there's an option to enable full html coding in posts. However, it does not have the option to disable javascript and tags, to my chagrin. For security reasons, I wanted to disable them, which brings me to the question: is there any way via jquery or javascript to accomplish this? I have been sear... | javascript jquery | [3, 5] |
3,876,754 | 3,876,755 | Tutorials for an experienced C# user to learn C++ | <p>Are there any good resources for learning C++ that a C# user could use, which don't require knowledge of C? </p>
<p>I have quite a good knowledge of C# via courses in my University's game development program (in a 300 level course right now) but now I need to use C++ for a project. </p>
<p>I would use a beginner t... | c# c++ | [0, 6] |
4,982,499 | 4,982,500 | php array in javascript variable for jquery autocomplete | <p>I am using jquery autocomplete and trying to define the values for the auto complete options.</p>
<p>I am trying to create a javascript variable from a php array.
So far i have:</p>
<pre><code><?php
$usernames = get_records_sql("SELECT firstname,lastname FROM {$CFG->prefix}user ORDER BY lastname DESC");
... | php javascript | [2, 3] |
485,403 | 485,404 | How do I convert this Python punctuation-stripping function to JavaScript? | <p>Please can anyone translate this python code into javascript.</p>
<pre><code>#
def strip_punctuation(s):
#
for c in ',.":;!%$':
#
while s.find(c) is not -1:
#
s.replace(c, '')
</code></pre>
| javascript python | [3, 7] |
5,006,032 | 5,006,033 | Find IP address using jQuery | <p>I tried to get my IP using the following code:</p>
<pre><code>$.getJSON("http://jsonip.appspot.com?callback=?", function(data){ip=data.ip});
</code></pre>
<p>But it doesn't seems to work for me. Please Help.</p>
<p>Thanks in advance.</p>
| javascript jquery | [3, 5] |
5,578,685 | 5,578,686 | click on a button and inside a button to raise another button to be clicked with code behind? | <p>For example I have 2 buttons:</p>
<pre><code><asp:button id="button1" onClick="Button1_click" runat="server"/>
<asp:button id="button2" runat="server"/>
Button1_click(sender, args)
{
//how to call button 2 to be clicked?
}
</code></pre>
<p>How could I write code behind to fire the button2 to be cli... | c# asp.net | [0, 9] |
516,210 | 516,211 | Is it possible to do ".value +=" in JQuery? | <p>Classic javascript:</p>
<pre><code>var myvar = document.getElementById("abc");
abc.value += "test";
abc.value += "another test";
</code></pre>
<p>Jquery:</p>
<pre><code>$("#abc").val($("#abc").val()+"test");
$("#abc").val($("#abc").val()+"another test");
</code></pre>
<p>Is there a way to make my Jquery prettier... | javascript jquery | [3, 5] |
3,303,814 | 3,303,815 | How to add dynamic rows to a table on C# | <p>Hi
i have a table and i want to add dynamic rows to that through C# ... how can i do this.... advance thanks</p>
| c# jquery | [0, 5] |
4,598,185 | 4,598,186 | jQuery prepending and fading in content does not work | <p>So I have an ajax form submission system, and I want to prepend the submitted form directly into the HTML when a successful status response is given. Right now I have,</p>
<pre><code>$(".post-submit").click(function(){
var postcontent = $(".post-form").val();
if (postcontent == ""){
return false;
... | javascript jquery | [3, 5] |
4,742,894 | 4,742,895 | JQuery not initializing properly | <p>I am working on a basic Jquery script to hide a button after it is clicked on an HTML Page. However, when it is clicked the button does nothing. code is below. JQuery has been update to it's most recent version.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>Test Page</title>
<... | javascript jquery | [3, 5] |
2,362,178 | 2,362,179 | The info about unread emails reading from a content provider | <p>I have been developing the application which need to get information about unread emails. Are there any means which allows to get this information from any content provider? </p>
| java android | [1, 4] |
5,812,844 | 5,812,845 | How to create C++ class in android project via Eclipse? | <p>In order for reuse ability on iOS, I would like to write the logic for my Android game in C++ rather than java. How can I create a C++ class in eclipse and integrate it into my application?</p>
<p>I have read "native C++ code can be used on Android as well using the Native Development Kit (NDK)". What is the latest... | android c++ | [4, 6] |
3,002,209 | 3,002,210 | jquery timer vs javascript timer? | <p>which timer is better for use in term of performance ? the Jquery Timer or The Javascript Timer.</p>
<p>the page that has the timer doesnt have any Jquery code.</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
375,896 | 375,897 | Pass a method as an argument | <p>How do I pass a method as an argument?
I do this all the time in Javascript and need to use anonymous methods to pass params. How do I do it in c#?</p>
<pre><code>protected void MyMethod(){
RunMethod(ParamMethod("World"));
}
protected void RunMethod(ArgMethod){
MessageBox.Show(ArgMethod());
}
protected S... | c# asp.net | [0, 9] |
579,126 | 579,127 | Changing value of custom select option - Javascript | <p>I need assistance changing the value of a custom-select box. I cannot use JQuery because I already have a change() function hooked up to it.</p>
<p>How can I change the value of the select box in Javascript?</p>
<p>This is my custom select function:</p>
<pre><code>$.fn.customSelect = function() {
if ( $(this).le... | javascript jquery | [3, 5] |
5,909,278 | 5,909,279 | For a dropdownlist, SelectedIndex always returns the value 0 | <p>I have a dropdown in my webpage, which always returns the value 0 as the selected index no matter whichever item the user selects. I have populated the dropdown using a DB query. And I am populating in on Page_Load method in my page. The code shown below does the specified work: int danceid;</p>
<pre><code> p... | c# asp.net | [0, 9] |
4,598,060 | 4,598,061 | jQuery: Finding second closest div | <p>How can I find the second closest div?</p>
<p>For example, to get the closest one, I am successfully using:</p>
<pre><code>var closest_div_id = $(this).closest('div').attr('id');
</code></pre>
<p>Now, how do I get the second closest? Something like: </p>
<pre><code>$(this).(closest('div').closest('div')).attr('i... | javascript jquery | [3, 5] |
1,989,773 | 1,989,774 | In Android, how do I query MediaStore only for files in a specific path? Or alternatively, only display files in a certain path? | <p>Suppose I have an Android block of code that looks something like this:</p>
<pre><code>String[] proj = {MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media._ID};
int[] to = new int[] { R.id.artist_name };
Cursor musiccursor = managedQuery(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, proj, null, null, MediaStore.A... | java android | [1, 4] |
4,052,016 | 4,052,017 | ASPX Null Character Bug | <p>I have an .aspx page that I'm trying to render, but when I go to render characters, I get strange results.</p>
<pre><code><%= default(char) %>
</code></pre>
<p>Expands to the following in FF and Chrome, but not in IE:</p>
<pre><code>�
</code></pre>
<p>Is there a way to ignore the value if it's the null cha... | c# asp.net | [0, 9] |
1,210,978 | 1,210,979 | How to draw dotted lines between geopoints in google map on android | <p>I have displayed the locations on map with marker images, but now i want to connect the locations by dotted lines, in same line locations.</p>
<p>Please give any idea....</p>
| java android | [1, 4] |
4,790,699 | 4,790,700 | how to determine if user left our site | <p>We're tryin to implement some kind of feedback, which I saw in MSDN web-site. More concrete when user first enters to our site, I want to show a pop-up which will ask user to leave comment rite before he would leave our web-site, and depending on user's answer( it would be some kind of confirmation box with Yes and ... | jquery asp.net | [5, 9] |
4,592,961 | 4,592,962 | C# ASP.NET - Get current application physical path within Application_Start | <p>I'm not able to get the current physical path within Application_Start using </p>
<p><code></p>
<pre><code>HttpContext.Current.Request.PhysicalApplicationPath
</code></pre>
<p></code> because there is no <strong>Request</strong> object at that time.</p>
<p>How else can I get the physical path?</p>
| c# asp.net | [0, 9] |
835,540 | 835,541 | copy contents of div to clipboard | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/400212/how-to-copy-to-clipboard-in-javascript">How to Copy to Clipboard in JavaScript?</a> </p>
</blockquote>
<p>Is there a way to copy the contents of a div into a clipboard using javascript/jquery without usin... | javascript jquery | [3, 5] |
3,113,852 | 3,113,853 | change ASP.NET control ID in Javascript | <p>I've a table in my ASP.NET app, and add rows dynamically to it, each row has some cells each including a textbox, I generate everything dynamically, for instance:</p>
<pre><code> tc = new TableCell();
TextBox t_total = new TextBox();
t_total.ID = "txtTotal" + dt.Rows[i... | javascript asp.net | [3, 9] |
1,330,865 | 1,330,866 | How to read href attribute with JQuery | <p>I use <code>$(this).attr('href')</code> in JQuery to read the string in href="" attribute.
I have those kind of links:</p>
<pre><code><a href="1"></a>
<a href="2"></a>
<a href="3"></a>
</code></pre>
<p>Firefox and Chrome return me the code correctly. IE return me: <code>http://... | javascript jquery | [3, 5] |
3,102,727 | 3,102,728 | Loading Javascript through PHP | <p>From a tutorial I read on Sitepoint, I learned that I could load JS files through PHP (it was a comment, anyway). The code for this was in this form:</p>
<pre><code><script src="js.php?script1=jquery.js&scipt2=main.js" />
</code></pre>
<p>The purpose of using PHP was to reduce the number of HTTP requests... | php javascript | [2, 3] |
2,832,080 | 2,832,081 | text area like FCK editor | <p>I would like to develop a html editor just like FCKeditor, but i dont know how they display the html code in text area like region, Will U pls help me with that? for having that textarea, which prase html codes and displays just like a web page?</p>
| php javascript | [2, 3] |
441,492 | 441,493 | how to check parent in jquery | <p>I bind a click event over the <code>document</code>. I have a div with id <code>parent</code>. Now whenever the click event occur over the <code>document</code> than i am trying to check the target element is the child of <code>div ( id = parent )</code> or not.</p>
<pre><code> <div id="parent">
<div... | javascript jquery | [3, 5] |
3,303,063 | 3,303,064 | Calculate gesture distance in Android | <p>I'm trying to find a way to calculate the distance traveled during a Gesture. I can get the distance between two points using MotionEvent.ACTION_DOWN and MotionEvent.ACTION_UP or MotionEvent.ACTION_MOVE. But that doesn't account for moving in say, a circle. It would calculate 0 because you moved all the way back aro... | java android | [1, 4] |
3,408,402 | 3,408,403 | What's the reason behind to include a engine in Java to run JavaScript? | <p>To let JavaScript able to run in server-side? </p>
<p>If it's justified, what's the advantage? and any good application for such use?</p>
| java javascript | [1, 3] |
1,148,415 | 1,148,416 | Code behind value of a control in an user control | <p>I am getting ImageButtons ID which is a part of my user control. To this imageButton i have a primary key(code) associated with it. I am getting the ID of the image button (" ImgBtn" ). How do I get the Code(primary key) of the image button that is present on the page.</p>
<p>Below is my code that I am executing.</... | c# asp.net | [0, 9] |
3,574,488 | 3,574,489 | Update Javascript variable from PHP without page reload | <p>I am using jCart as shopping cart, and from jCart it's possible to get the variable <code>$subtotal</code>.</p>
<p>However, when changing something in the shopping cart, the variable <code>$subtotal</code> doesn't change until a page reload.</p>
<p>Is it possible to use jQuery to update <code>$subtotal</code> on p... | php jquery | [2, 5] |
4,326,910 | 4,326,911 | listview scrolls to top after editing entry | <p>I am trying to create a listview that when you click on an entry you may modify it and after hitting confirm it will still show the entry you just modified instead of scrolling to the top. </p>
<p>made advised changes and after leaving the edit activity it still scrolls to the top and does not find the correct scro... | java android | [1, 4] |
5,622,797 | 5,622,798 | JQuery next class on click | <p>Is there a way to grab the first class, after a given class?</p>
<p>The code below only selects the first class (I'm aware of what <code>first</code> does) but I want it to select each first <code>.FAQAnswers</code> after each <code>FAQName</code> is this possible?</p>
<pre><code> $(".FAQName").click(function () {... | javascript jquery | [3, 5] |
1,225,991 | 1,225,992 | Tackling browser Autofill with jQuery | <p>I wanted to make a particular checkbox visible when I type at-least one character in it, the following jQuery function works brilliantly for all test cases but not one :
What if the browser autofills the input (say via remember me.). In this case the checkbox is not visible when the browser has filled in content by ... | javascript jquery | [3, 5] |
5,388,826 | 5,388,827 | jQuery and ASP.NET - forcing button click | <p>I have a ASP.NET page which has a form on it. It also has a search form on it. The search is in the top-right of the page, so the button for the search is the first added to the control hierachy.</p>
<p>When you're working on the other form and press enter it will click on the search button. I don't want this, I wo... | asp.net javascript jquery | [9, 3, 5] |
1,071,591 | 1,071,592 | How to publish my c++ program to my android? | <p>I am new at this. I wrote a simple c++ program in eclipse. I was wondering how to get this app to run on my phone?</p>
| android c++ | [4, 6] |
2,031,804 | 2,031,805 | jQuery Modal Dialog - I must be missing a simple thing | <p>I have a php page that needs a modal confirmation.</p>
<p>When clicking "Please confirm" on the dialog, I want the page post to continue. How in the world can I accomplish this?</p>
<p>Here is my js code so far:</p>
<pre><code> $(document).ready(function() {
var $dialog = $('<div></div>')
... | php jquery | [2, 5] |
3,285,277 | 3,285,278 | Adding Value into an Input Field | <p>I am working on an iPhone Web App using HTML & CSS. I have currently got the JavaScript/HTML5 Geolocation picking up my current location and showing me it on a Google Map using Lat & Long values.
I also want to add these Lat & Long Values into the 'address' text field on the page so I can submit the det... | javascript jquery | [3, 5] |
4,466,873 | 4,466,874 | Jquery to populate input or textarea | <pre><code><div id="example"></div>
<script type="text/javascript">
jah = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
jah+= "<p>Browser Name: " + navigator.appName + "</p>";
jah+= "<p>Browser Version: " + navigator.ap... | javascript jquery | [3, 5] |
5,890,045 | 5,890,046 | jQuery - if Value = 1 fadeIn | <p>Is there any alternative to onKeyUp which says that if letter was typed do this because onKeyUp shift, enter, backspace etc counts. </p>
<p>Something like if value.div1 = 1 fade in div2 for example.</p>
<p>Thanks alot </p>
<p>EDIT:
Okay I wasn't clear. Sorry, what I meant is:</p>
<p>I have a textarea. If letter ... | javascript jquery | [3, 5] |
2,568,306 | 2,568,307 | Redirect on button click in alert-dialog | <p>I would like to show an alert box at the end of my code where the insert operation is complete. Is there an easy way to show some kind of alert box that says "Inserted successfully" and shows an OK-button. The click on "OK" should then redirect to a specific page.</p>
<p>The code I'm using:</p>
<pre><code>ScriptMa... | c# javascript asp.net | [0, 3, 9] |
861,861 | 861,862 | A jquery means to the end of changing every(as in each and all) href value to a corresponding array value | <p>my question is while vague, specific. I would like to know the simplest means of changing each and every (10+) anchor tags href value to a corresponding array item. the page in question being constructed from the bottom up meaning that each new post is above the last new post, so I have an array of links starting wi... | javascript jquery | [3, 5] |
1,404,612 | 1,404,613 | Trying to do email validation but it isn't working as intended | <p>I'm just making some form validation with jQuery, this is the part for the email:</p>
<pre><code>var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
var email = $('#user_email');
$('#user_email').on('keyup change', function() {
if ((email.val().length <= 6) &&... | javascript jquery | [3, 5] |
3,951,690 | 3,951,691 | How can i stream CCTV camera to iphone from windows | <p>I am trying to build an iphone app that connects to an IP camera. The IP camera is windows based to i need to create a server using c++ and then stream the video to the iphone app.</p>
<p>Can anyone tell me the best way in going about this task. I am new to programming so a dummies type guide would help.</p>
<p>Th... | c++ iphone | [6, 8] |
4,879,279 | 4,879,280 | jQuery code not executing - iPhone | <p>Im using jquery in webview
basically im calling jquery method inside the html string loaded inside the
webview.
problem is webview is loaded properly but method is getting executed.
i tried putting breakpoints it's hard to see the execution inside the string.</p>
<p>Thanks in advance.</p>
| jquery iphone | [5, 8] |
453,276 | 453,277 | Why would jquery not pollute global namespace? | <p>It is said here:</p>
<p><a href="http://briancrescimanno.com/2009/09/24/how-self-executing-anonymous-functions-work/" rel="nofollow">http://briancrescimanno.com/2009/09/24/how-self-executing-anonymous-functions-work/</a></p>
<blockquote>
<p>Take a look at the source code of jQuery and you’ll see that the
whole... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.