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,575,711 | 5,575,712 | Div positioning fixed at margin-top:20px when scrolling up | <p>I have a div which I want to become fixed at 20px from the top of the window when you scroll up and 40px from the footer when you get the bottom. My code seems inconstant, there must be a better way? <a href="http://www.halogamertags.com/dachs" rel="nofollow">Page Link</a></p>
<pre><code>$(document).scroll(function... | javascript jquery | [3, 5] |
176,960 | 176,961 | Make large number of webcalls | <p>I have to make webcall to an external server at the rate of 5 tps. Every webcall usually takes around 7 secs to complete. How do I implement this. Would you recommend PHP for this?</p>
| java php | [1, 2] |
5,364,285 | 5,364,286 | jQuery UI Not being loaded properly? Dialog method not found | <p>I'm having an issue with my jQuery UI dialog on this page (and this page only):</p>
<p><a href="http://www.satelliteinternet.com/" rel="nofollow">http://www.satelliteinternet.com/</a></p>
<p>I'm not sure what the issue is as it's working on all the other pages on the site. The error I'm getting is the $("#DealerSe... | javascript jquery | [3, 5] |
764,944 | 764,945 | Why doesn't $(this) work here? | <p>In <a href="http://jsfiddle.net/littlesandra88/w5nAr/7/" rel="nofollow">this</a> JSfiddle have I two forms.</p>
<p>This is duplicated twice</p>
<pre><code><form action="" method="post">
<input id="element" signed type="checkbox" checked>
<label for="element">x</label>
<button type="submi... | javascript jquery | [3, 5] |
902,148 | 902,149 | using master page | <p>I have master page in asp.net.i want to display user in master page but in my knowledge master page is loading once at a time.How it possible when Session["User"] only get when login attempt.But master page is already loaded. </p>
| c# asp.net | [0, 9] |
3,086,979 | 3,086,980 | A Few Python questions | <p>I'm trying to learn Python from a background in javascript. I saw someone make a recursive function to find the least common denominator and wondered why they didn't just use a loop, so, both for the experience and to amuse myself, I wrote a simpler one:</p>
<p>I came up with:</p>
<pre><code>def LCM(n,d):
whil... | javascript python | [3, 7] |
4,344,417 | 4,344,418 | Using jQuery to change style of clicked element and removing that style from other elements with same class | <p><strong>EDIT: fixed it! Thanks to those who said to post my HTML - I looked at it, and didn't realize that I had the "appname" class twice.</strong></p>
<pre><code><li class="<?php echo $apid; ?> appname appname_getinfo appname_<?php echo $apid; ?>">
<span class="appname"><?php ech... | javascript jquery | [3, 5] |
1,567,738 | 1,567,739 | How can I call a C++ function from C#? | <p>How can I call a C++ function from C# .NET?</p>
| c# c++ | [0, 6] |
3,459,314 | 3,459,315 | Checkbox to act like radio button, check first four or last four checkboxes but not both- javascript? | <p>I am having a problem in javaScript.
I want to check either any of the first 4 checkboxes or any of the last four checkboxes to true.
here in my code if i check any one of the first four or all first four of the checkbox, last four checkboxes are disabled.
now after checking any one or the first four last four ar... | php javascript | [2, 3] |
3,073,224 | 3,073,225 | How to Load an object to a jQuery object | <p>In my javascript, I have a function which will return an element present in the HTML page .i have this stored in a variable and now want to do some kind of traversal in that using jquery methods like parent/fadeIn/fadeOut etc.</p>
<p>How can i do that.? My current code which returns the object is </p>
<pre><code> ... | javascript jquery | [3, 5] |
2,798,773 | 2,798,774 | Detect failed to load image with javascript | <p>Is it possible to detect when an image doesn't load with JavaScript? I plan on using base64 for images, but browsers such as IE 6 and 7 doesn't support it. So instead of displaying a red x, I'd like to detect such an error, then display a non base64 image. Below is an example of my intentions:</p>
<pre><code>PHP... | php javascript | [2, 3] |
4,295,297 | 4,295,298 | C# type conversion, how to avoid the error? | <p>A co-worker has an object that has a bunch of generic list collections on it. Each type in the list implements a given interface. He wants to be able to create a list that contains all the other lists so he can loop through and call the method the objects implement. Below is a simple example.</p>
<pre><code> List&l... | c# asp.net | [0, 9] |
1,748,482 | 1,748,483 | Confirm browser back button else stay on page | <p>In javascript or jquery I need to add an alert when the user clicks on the browser back button that has an ok/cancel button model, but instead of "Ok" it should say Leave and instead of Cancel it should say Stay. Thanks</p>
| javascript jquery | [3, 5] |
5,685,722 | 5,685,723 | 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] |
5,947,310 | 5,947,311 | Javascript default functions? | <p>In Javascript, like <code>setInterval(draw,20)</code> you don't include anything like in C#. You can just use the function. The function is on the <code>Windows</code> object of the browser.</p>
<ol>
<li><p>Can the following objects and its functions be called without any pre-definitions?</p>
<pre><code>Window
Nav... | c# javascript | [0, 3] |
3,689,174 | 3,689,175 | Run a javascript on postback in c# | <p>I used the below manner to run a JavaScript upon postback and it worked fine for me.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (this.IsPostBack)
{
Page.ClientScript.RegisterStartupScript(this.GetType(),"PostbackKey","<script type='text/javascript'>document.getEle... | c# javascript asp.net | [0, 3, 9] |
1,439,821 | 1,439,822 | Why is JavaScript called JavaScript, since it has nothing to do with Java? | <p>Since JavaScript is not derived from Java, why does it have "Java" in the name?</p>
| java javascript | [1, 3] |
4,056,880 | 4,056,881 | Use Jquery to get data value and supply it to a session variable | <p>I need help cause I am a total newb on this.</p>
<p>I set up a session in my header:</p>
<pre><code>session_start();
$_SESSION['catname'] = $catname;
</code></pre>
<p>Which I retrieve in my single pages:</p>
<pre><code>$catname = $_SESSION['catname'];
session_destroy();
</code></pre>
<p>I have several divs, e... | php jquery | [2, 5] |
3,408,985 | 3,408,986 | How to make a simple javascript auto scroll widget like Google News? | <p>I want to make a real simple widget like this:</p>
<p><a href="https://news.google.com/news/rtc?pz=1&cf=all&ncl=dgEurGFdFYAMclM_T4fKHKqMP6gwM&topic=h&ar=1336324205" rel="nofollow">https://news.google.com/news/rtc?pz=1&cf=all&ncl=dgEurGFdFYAMclM_T4fKHKqMP6gwM&topic=h&ar=1336324205</a>... | javascript jquery | [3, 5] |
3,309,595 | 3,309,596 | replace cookie value to space character using jquey or javacript | <p>I have stored some textbox values in cookies.</p>
<p>But if textbox is blank then cookie value will be "null".</p>
<p>I am assigning that cookie value to another textbox. But as the cookie value is null it shows "null" in textbox.</p>
<p>I want to replace this "null" to a blank space.</p>
<p>How to do it?</p>
<... | javascript jquery | [3, 5] |
2,241,154 | 2,241,155 | rename column in a list | <p>in a datatable you can rename column as follows:</p>
<pre><code> dt.Column[0].ColumnName="name";
</code></pre>
<p>Is it possible to do something similar with <code>list<MyType></code>? I need to retrun list of objects with modified column names. to bind to a gridview some special way.</p>
| c# asp.net | [0, 9] |
1,184,189 | 1,184,190 | Javascript Navigation Output (Minified) | <p>I have a page where I output the following</p>
<p>This is the html in my template</p>
<pre><code><ul id="process"><span>Process: </span>
</code></pre>
<p>This is my minified Javascript (functions.js)</p>
<pre><code>$(window).load(function () {
var a = $("#slider").children("img");
curre... | javascript jquery | [3, 5] |
3,637,352 | 3,637,353 | How to transparently pass URL parameters from page to page? | <p>Is there a way to <strong>transparently</strong> pass URL parameters through web pages? I mean situation that when using redirects, already added parameters will be passed to new page without direct action of programmer.</p>
<p>For example: </p>
<ol>
<li>we entering page myPage1.aspx?param1=test </li>
<li>perfor... | c# asp.net | [0, 9] |
4,383,263 | 4,383,264 | ASP.NET Application setting debug="false" in web.config breaks Javascript | <p>We have an application that works fine when we have debug="true" in Web.config, when we set this to "false" however the application stops working. It seems as if object inheritance is not working in the javascript (Microsoft JScript runtime error: Object doesn't support this property or method). Has anyone come acro... | asp.net javascript | [9, 3] |
2,970,179 | 2,970,180 | Calculate time difference between current and future time | <p>I want to calculate time difference in milliseconds from current time of a day(11 am , 1 october,2012) and time at midnight for the same day (11 pm 59 m 59s , 1 october , 2012.</p>
<p>I have tried this </p>
<pre><code> Calendar cal = Calendar.getInstance();
cal.add(Calendar.SECOND, 59);
cal.add(Calendar... | java android | [1, 4] |
5,454,230 | 5,454,231 | Get just one of a divs IDS with jQuery | <p>I have a div with more than one ID and I need to get each ID separately and send both variables off to a PHP file. I feel this would be the simpler option if achievable but the other option is to split the two IDS on the server side with PHP once the ID has been sent to it by jQueery. One ID is the timestamp the oth... | php jquery | [2, 5] |
1,079,236 | 1,079,237 | android change background image programmatically from string | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4313007/setting-android-images-from-string-value">Setting Android images from string value</a> </p>
</blockquote>
<p>I need to change background image programmatically on Android with source string I have.
For ... | java android | [1, 4] |
2,943,662 | 2,943,663 | Validating more that one email field | <p>Im using <a href="http://jorenrapini.com/blog/javascript/the-simple-quick-and-small-jquery-html-form-validation-solution" rel="nofollow">Joren Rapini's validation code</a> to for my online form. <a href="http://jorenrapini.com/blog/javascript/the-simple-quick-and-small-jquery-html-form-validation-solution" rel="nofo... | javascript jquery | [3, 5] |
1,159,784 | 1,159,785 | applying methods to single elements in an array - jquery/javascript | <p>I've created an array of elements called <code>$images</code> (all the elements in the <code>hidden</code> class.) Then when I try to apply <em>any</em> method to just <em>one</em> element in the array, I get a <code>$images[1].attr is not a function</code> error. However, when I try <code>$images.attr('id')</code... | javascript jquery | [3, 5] |
5,044,322 | 5,044,323 | Selecting class name of a span tag | <p>I have a span like this</p>
<pre><code> <span class='class_name'> blah blah </span>
</code></pre>
<p>I want to select the class name of this span. for that iam using this.className
its working fine in firefox. but for explorer its not...</p>
<p>How can i fix that??</p>
| javascript jquery | [3, 5] |
3,416,537 | 3,416,538 | can i use android aide for learning java | <p>Ok so this time I will make it more specific.</p>
<p>I want to learn Java only. So I have bought myself a book on Java programming and would like to follow the examples in the book. For doing this on the go (because I don't always have access to my PC) I've downloaded <a href="https://play.google.com/store/apps/de... | java android | [1, 4] |
4,669,891 | 4,669,892 | Any ways to detect CSS changing? | <p>I have this tags:</p>
<pre><code><div>
<h1>
</h1>
</div>
</code></pre>
<p>Then I have a javascript lib that changes font-size of the <code><div></code> tag, but <code><h1></code> has its own CSS. Then text in <code><h1></code> does not change. I just want resizing fo... | javascript jquery | [3, 5] |
4,438,189 | 4,438,190 | C# Program working with PHP server | <p>Just curious about the best way to go about this. I want to make a webpage that shows the amount of time it takes to ping all the machines on my network. I want a C# program to do the pinging and report it to the webpage. I want to be able to click "Re-ping" on the webpage and the program rerun the test. What is the... | c# php | [0, 2] |
1,026,073 | 1,026,074 | Not understanding jQuery and Server side events | <p>I'm having trouble since I'm a jQuery newbie. Let's assume I have a asp.net application with an ImageButton to save some data. I want to process this server side code, and if it is successful then I want to animate / toggle a panel that says success or not.</p>
<p>So for instance for an image button I have:</p>
... | jquery asp.net | [5, 9] |
2,276,889 | 2,276,890 | How To read cookie which created from client side javascript in serverside asp.net code | <p>For Example I have put one cookie on page load with some specific value on button submit at server side c# code how do i get the value of that cookie ?(asp.net)</p>
| javascript asp.net | [3, 9] |
757,879 | 757,880 | refresh a select list depending on previous selected value | <p>I have two option lists: 1st is Country the 2nd is cities. If user select a country like Pakistan then the 2nd list should show only the Pakistani Cities name.</p>
<p>I am new to web developer waiting for you reply.</p>
<p>Regards:</p>
| php javascript jquery | [2, 3, 5] |
4,218,900 | 4,218,901 | extracting text from html file | <p>I'm trying to get nodes containing text from html file using Javascript and jQuery.
if I have a node like
`</p>
<pre><code><div>txt0
<span>txt1</span>
txt2
</div>
</code></pre>
<p><code>
How can I select elements that meets this criteria??
Meaning, I need to retrieve the</code>div<code>and... | javascript jquery | [3, 5] |
553,662 | 553,663 | The "this" in javascript and ASP.NET control prefixes | <p>I have code that renders the following HTML</p>
<pre><code><tr>
<td>Control 1 with onclick="javascript:Test(this);" </td>
<td>Control 2</td>
<td><span><div>Control 3</div></span></td>
</tr>
function Test(myThis)
{
//Here I would like t... | asp.net javascript | [9, 3] |
5,971,135 | 5,971,136 | How to escape a double-quote in inline c# script within javascript? | <p>How can I make the following inline c# work within javascript? I have had no luck with escape characters, but I am sure I'm just doing something wrong.</p>
<pre><code>var inputId = "<%= applicationForm.FindControl("myInput").ClientID %>";
</code></pre>
| c# asp.net javascript | [0, 9, 3] |
5,475,867 | 5,475,868 | A faster way of getting unread SMS count? | <pre><code>String address = 0123456789;
Cursor unreadcountcursor = getContentResolver().query(Uri.parse("content://sms/inbox"),
new String[]{}, "read = 0 and address='"+address+"'", null, null);
int count = unreadcountcursor.getCount();
</code></pre>
<p>Isn't there a faster way of getting it? Because this code is ve... | java android | [1, 4] |
1,455,798 | 1,455,799 | Enable third party cookie in all browsers | <p>I found a p3p header code for enabling third party cookies in safari, firefox, chrome, opera and all versions of IE. Thecode i found is
'P3P:CP=”IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT”'</p>
<p>But this code does not work in safari. Can any one suggest me some solution to enable the third p... | javascript jquery | [3, 5] |
4,892,466 | 4,892,467 | How to simulate TAB on ENTER keypress in javascript or jQuery | <p>I want to change keycode in keydown ( key press ) in all input in a page.I want to replace Enter keycode with TAB key code. How I can do this?</p>
<p>thanks</p>
<hr>
<p>EDIT 1)</p>
<p>Consider this code:</p>
<pre><code><div>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<... | javascript jquery | [3, 5] |
5,012,857 | 5,012,858 | Reusing same functions in different .aspx files/making function library | <p>At the moment my website project in asp.NET consists of 5 .aspx files. I have defined the same functions in every .aspx file.
What I want is a way to create my own library/file of functions, which I could include in my .aspx scripts.</p>
<p>While searching for solution I've only found this <strong>Dynamically Inclu... | c# asp.net | [0, 9] |
67,829 | 67,830 | Fastest path to Android development for a non-Java programmer | <p>The decision to jump on the Android bandwagon has been made. The entire development environment has been installed and configured properly. I went through the steps suggested in <a href="http://developer.android.com/sdk/installing.html" rel="nofollow">http://developer.android.com/sdk/installing.html</a> and even man... | java android | [1, 4] |
803,629 | 803,630 | JQuery Show Hidden Div command inside function | <p>I have a JQuery function:</p>
<pre><code>function MyFunction() {
//I need a command here to show a hidden div
....
}
<div id="hiddenDiv" style="display:none"></div>
</code></pre>
<p>Basically, I need to Div above to show when the function is called.</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
1,965,930 | 1,965,931 | accessing values of Dynamic User Controls in asp.net | <p>i'm working on a registration form, where user inputs his personnel data,
on the end of the form there is a UserControl address filed, in some cases we need 2 our more addresses from the user so i implemented a button over there to add more address fields with following code:</p>
<pre><code> ucDataEntry addressUC... | c# asp.net | [0, 9] |
4,424,808 | 4,424,809 | run .msi setup file after accessing web site from server to client | <p>I have created a web application in ASP.NET, with C#. I am getting the following message in my browser window when accessing the application: </p>
<pre><code>---------------------------
Windows Internet Explorer
---------------------------
Stop running this script?
A script on this page is causing Internet Explorer... | c# asp.net | [0, 9] |
3,704,270 | 3,704,271 | Click link, show information in another section | <p>I don't have any examples, but I can only explain what I need.</p>
<p>I am trying to learn with jQuery, how to show information in another div when clicking on a link?</p>
<p>For example, I have One column for a list of links for dogs. When clicking on a specific dog, theres another column that shows information a... | javascript jquery | [3, 5] |
1,927,242 | 1,927,243 | parse_str for python? | <p>Is there a parse_str (used in php) alternative for python?</p>
<p><a href="http://php.net/manual/en/function.parse-str.php" rel="nofollow">http://php.net/manual/en/function.parse-str.php</a><br />
parse_str — Parses the string into variables</p>
| php python | [2, 7] |
1,874,586 | 1,874,587 | IE8 not initializing function properties in javascript. | <p>I have the following javascript. This extends keith woods jquery date picker. In chrome, ff the following alerts a date value. However in ie 8 i get [object, object]</p>
<pre><code><script type="text/javascript"><!--
var defaultDate = '06/01/2011';
$(function() {
$('#inlineDatepicker').calendarsPick... | javascript jquery | [3, 5] |
2,946,851 | 2,946,852 | I can't get li elements' index? | <p>This is my list..</p>
<pre><code><li class="haftalar"><a value="7" class="click" href="#" title="7. Hafta Maç Özetleri">7. Hafta</a></li>
<li class="haftalar"><a value="8" class="click" href="#" title="8. Hafta Maç Özetleri">8. Hafta</a></li>
</code></pre>
<p>I want ... | javascript jquery | [3, 5] |
3,434,160 | 3,434,161 | Is it possible to compress and obfuscate Javascript code on a fly? | <p>I came across <a href="http://javascriptcompressor.com/" rel="nofollow">this great online tool</a>. It has options to compress and obfuscate JS. I am wondering if it is possible to do that on the site on the fly. I know it will slightly slow-down the client, but in my case it is acceptable. I am more concerned about... | php jquery | [2, 5] |
863,108 | 863,109 | jquery modal confirm box button functionality, help please? | <p>I have a jquery modal confirm-box, I added a register and login button ( i just copied the one from the manual )..now the problem is,</p>
<p>1) once I click the register button, I want to show another Pop-up box, and this pop-up,
shall contain this ajax powered module</p>
<pre><code> <div id="registerp... | php jquery | [2, 5] |
4,583,664 | 4,583,665 | window.location with relative url | <p>I am trying to use window.location to redirect to a relative url</p>
<p>this variable</p>
<pre><code>var redirect = $(this).attr('title');
</code></pre>
<p>has this value</p>
<pre><code>../../000_Movies/_assets/playlist.html
</code></pre>
<p>this wont redirect</p>
<pre><code>window.location = redirect;
</code>... | javascript jquery | [3, 5] |
319,572 | 319,573 | Where to continue coding after created intent? | <p>I use an intent to call a new class and show a new layout with some buttons on.</p>
<pre><code>Intent intent = new Intent(MainActivity.this, Game.class);
setContentView(R.layout.game);
</code></pre>
<p>After this i want to show/hide some buttons on the second (game) layout. </p>
<p>i try to find t... | java android | [1, 4] |
5,252,601 | 5,252,602 | How to total two int values from two different activities in 3rd? | <p>I have a button with setText value set to 0 on activity created. It's 0 cause I total two int values, valueA and valueB that are 0 at game start. After another activity ends my valueA is now set to some public static int value in ActivityClassA, lets say 100. I need now when that activity ends to change that 0 value... | java android | [1, 4] |
3,640,850 | 3,640,851 | How do I get a button instead of a Submit | <p>Here I am again with another seemingly simple question I just cannot find the answer to. I would like to use an input type="button" but asp:Button always gives me a type="submit."</p>
<pre><code><asp:Button runat="server" bla bla bla />
</code></pre>
<p>Thanks in advance.</p>
| c# asp.net | [0, 9] |
1,580,263 | 1,580,264 | Alternative to the Now-Removed $.browser Property | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/12372831/why-is-browser-deprecated-and-what-is-a-better-alternative">Why is $.browser deprecated - and what is a better alternative?</a> </p>
</blockquote>
<p>I have historically used the $.browser property in m... | javascript jquery | [3, 5] |
2,606,416 | 2,606,417 | Implementation of various business logic for the same markup | <p>Good day!
I'm working on a ASP.NET project refatoringom and faced such a problem, because the project is international, there are several of its locations and in many places on the business logic, specific actions are solved with the help of a not so sly inspection:</p>
<pre class="lang-cs prettyprint-override"><co... | c# asp.net | [0, 9] |
3,225,062 | 3,225,063 | Android AlarmManager problem | <p>I'm a new developer android application.I've problem about AlarmManager,I using
AlarmManager to set alert for my application.</p>
<p>I was set time to alert 2 time but my application was alert a one time</p>
<p>example,I'll set alarm at 15.30 and 16.30,My application will alert at 16.30 but not alert at 15.30.I've... | java android | [1, 4] |
4,278,269 | 4,278,270 | How to set document.getElementById(progressPanel.ID) in aspx.cs page | <p>I have javascript which sets the location of panel and javascript is below</p>
<pre><code>function ShowProgressPanel(progresspanel)
{
var progressPanelId = document.getElementById(progressPanel.ID);
alert(progressPanelId);
if (progressPanelId != null)
{
var height = Math.min(document.docum... | javascript asp.net | [3, 9] |
5,565,628 | 5,565,629 | how to prevent popup javascript onclick event | <p>i have link</p>
<pre><code><a onclick="return package_tour_order(14400287396);" href="javascript:;">advanced</a>
<a>doit</a>
</code></pre>
<p>need to get value from onclick only ID nubmer, but this</p>
<pre><code>return package_tour_order(14400287396) is javascript function that popup new ... | javascript jquery | [3, 5] |
3,389,355 | 3,389,356 | Getting the code to randomly choose one of x amount of choices | <p>I use to program with a language where, if i wanted a number from a set of different numbers i could go x=choose(0,-1,2,5) and then it would randomly choose one of those options and give me a result but since i've been working with android and java i don't know a way to replicat that function as theres nothing i ca... | java android | [1, 4] |
1,882,305 | 1,882,306 | How to know when the content provider Uri content://mms-sms/conversations is active? | <p>I'm developing an app for Android, I noticed that every time I open a sms or mms message in the real device it shows in the logs something similar to this (content://mms-sms/conversations/x) where x is the Id of the conversation.</p>
<p>I want to have a Broadcast Receiver that Listen to this particular broadcast in... | java android | [1, 4] |
2,670,840 | 2,670,841 | Javascript calculation gives too many zero digits | <p>I think it's time get some second opinions on the javascript I'm working on at the moment.</p>
<p>I'm trying to create a calculator to tell people if they can save money by using a subscription etc etc. The calculation itself is done by som inputs from the client and some prevalues from Umbraco CMS.</p>
<p>The res... | javascript jquery | [3, 5] |
1,076,904 | 1,076,905 | jQuery outside events plugin not funcitoning properly | <p>I have downloaded the jQuery outside events plugin as Sarfraz suggested, which seems really great, except, I cannot appear to get it functioning correctly.</p>
<p>Here is my code that I'm trying to call it with:</p>
<pre><code>$("#player").bind( "clickoutside", function(event){
if($('#player').is(':visible')) {
... | javascript jquery | [3, 5] |
2,055,858 | 2,055,859 | On clicking the anchor tag the outermost div must hide along with its child elements | <p>I have a div tag, which contains a div tag, which contains a ul tag which then contains many li tags. On of these li tags contains an anchor element, which when clicked causes the outermost div to hide.</p>
<p>for example</p>
<pre><code><div class="object" id="123">
<div>
<ul>
<li&... | javascript jquery | [3, 5] |
3,114,392 | 3,114,393 | jQuery get parent jQuery Object of clicked element | <p>My HTML contains many objects like this:</p>
<pre><code><div class="class">
<div class="disconnect_btn">Click here</div>
<input type="hidden" name="ID" value="12"/>
</div>
</code></pre>
<p>I have a function that binds another function to the button element. Like this:</p>
<pre><c... | javascript jquery | [3, 5] |
689,278 | 689,279 | aspx GridView filter with javascript | <p>I'm using Asp.net with c# code, VS 2010.
I have a page with a gridview which shows a members list. I would like to use javascript without any ajax to filter the rows in the grid as the user type. For example if the user typed "Jo" then the rows with "John" and "Jonny" will stay and the other ones will be filtered ou... | c# javascript | [0, 3] |
1,398,487 | 1,398,488 | In jQuery, how can I access $(this) from an $.ajax callback function? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2643798/how-to-access-the-this-inside-ajax-success-callback-function">how to access the $(this) inside ajax success callback function</a> </p>
</blockquote>
<p>I have a code like this:</p>
<pre><code>$('.each_b... | javascript jquery | [3, 5] |
3,392,032 | 3,392,033 | Passing JavaScript Variables to PHP Session | <p>Why I do not get any printing on the screen (m1, m2 or m3)?</p>
<p>i.e. how can I pass JavaScript var to PHP Session. </p>
<pre><code><?php session_start(); ?>
<html>
<head>
<script type="text/javascript">
function disp_text()
{
var p = document.myform.mylist.value;
<?ph... | php javascript | [2, 3] |
1,974,242 | 1,974,243 | Refresh a view Android | <p>I want to refresh a listview . when i am getting a value from different class i want it to update that to list view . I am creating a thread for refreshing the list but i am getting an exception Only the original thread that created a thread a view hierarchy can touch its views . how to proceed
Thnx in advance ... | java android | [1, 4] |
3,932,562 | 3,932,563 | How can I load an aspx page in another aspx page in a specific <div> tag | <p>I would like to update a certain part of the page with content from another *.aspx page, thus avoiding having to have just one (very) long page of code.</p>
<p>So: How can I load an aspx page in another aspx page in a specific tag, without having to reload the entire page.</p>
| c# asp.net | [0, 9] |
3,012,672 | 3,012,673 | Preventing OnClientClick to newtab of Button to trigger Other clicks on the page | <p>I am using a <code>Button</code> in <code>Web form</code> and <code>onclick</code> event should open a report in new tab. I am using <code>onclientclick</code> property of <code>Button</code> but it enables all the other <code>Button</code> or <code>Radio Button</code> to redirect in new tab. How to prevent this.</p... | c# asp.net | [0, 9] |
153,662 | 153,663 | Android: moving ball through touch | <p>I am making a simple game for class on an Android phone in which you can change a ball's position by touch. I had it working in Processing by simply using mouse position. In Android, I am using the gesture scanner and corresponding methods for various gestures, but I can't figure out the exact way to pull in the c... | java android | [1, 4] |
2,102,862 | 2,102,863 | Open source plugin for share links like Addthis? | <p>I want to use something like Addthis on my website, but I want to keep my traffic data private. </p>
<p>Is there any jquery/PHP way that I can use to put many share buttons on my site at once like AddThis without external tracking?</p>
| php jquery | [2, 5] |
1,137,499 | 1,137,500 | How to escape quotes inside an inline javascript function | <p>My function is running perfectly without using class in appended <code>div</code> but when I try to add a <code>class</code> on the element it is not working.</p>
<pre><code><head>
<script type="text/javascript">
function showt(id){
$('body').append(id)
}
</script&... | javascript jquery | [3, 5] |
1,374,922 | 1,374,923 | Jquery plugin to allow only numbers in certain range in a text field? | <p>I am looking for some jquery plugin that would allow only numbers from a certain range in a text input field.</p>
<p>It would be great if it worked similar to a datepicker. I.e. user clicks on a text field and a tiny window with some numbers from let's say 0 to 23 appears. User than just selects the number and clic... | javascript jquery | [3, 5] |
1,931,423 | 1,931,424 | Dynamic Dropdown onselect | <p>What I am trying to do is when a item is selected from my dropdown menu, it would make a input box appear with the description selected on the dropdown menu, so that it can be edited and updated back into the database,</p>
<p>I am unsure how to handle the javascript:</p>
<p><strong>Dropdown Code:</strong></p>
<p... | php javascript | [2, 3] |
1,704,963 | 1,704,964 | Android phones for testing | <p>I heard that for testing android application you have to test them on 2 different phones(depends of resolution) What phones are recommended?</p>
| java android | [1, 4] |
4,256,906 | 4,256,907 | how to pass session parameter from jquery to ASHX handler | <p>Below is my Jquery code and I would like to pass Session paramater e.g. Session["ID"].
Jquery calls ASHX page</p>
<p>All below parameters are working fine and the session parameter has a value, but how can I pass session paramater from Jquery?</p>
<p>So below code "paramater Sessionparameter" should be replaced wi... | c# jquery asp.net | [0, 5, 9] |
3,469,203 | 3,469,204 | Works only one function in implemented file | <p>I have a js file with two functions, one in plain javascript and one using jQuery. I want both to work on window load. But if I enable both, only the plain javascript function works. When I disabled the "highliter" function "slideSwitch" works ok. What is the problem? How can I fix this?</p>
<pre><code>function sli... | javascript jquery | [3, 5] |
1,158,138 | 1,158,139 | make javascript links openable in a new tab | <p>I have links that are present as <code><div></code> images with click events getting passed to javascript.</p>
<p>Javascript opens the links by using <code>location.href = link;</code></p>
<p>When I middle click the links they don't open in a new tab though. How can i make them new tab compatible?</p>
| javascript jquery | [3, 5] |
5,559,209 | 5,559,210 | Why to use stopImmediatePropagation() in a form? | <p>I have a form named <strong>frm_contact</strong> and I need to bind submit event of that form. The "problem" (or better...the doubt) is that if I DON'T use <code>e.stopImmediatePropagation();</code> the submit event is called many times. I fixed it using <code>stopImmediatePropagation()</code> function.</p>
<p>I bi... | javascript jquery | [3, 5] |
2,791,579 | 2,791,580 | Is it possible to use jQuery to grab the HTML of another web page into a div? | <p>I am trying to integrate with the FireShot API to given a URL, grab HTML of another web page into a div then take a screenshot of it. </p>
<p>Some things I will need to do after getting the HTML </p>
<ul>
<li>grab <code><link></code> & <code><script></code> from <code><head></code> </li>
<li>... | javascript jquery | [3, 5] |
666,970 | 666,971 | Special symbols cannot be stored in SQL Server from ASP.NET 3.5 | <p>I have created a website in <a href="http://en.wikipedia.org/wiki/ASP.NET" rel="nofollow">ASP.NET</a> 3.5 that takes some input in text format and saves it in a SQL Server 2005 database.</p>
<p>The database field is <code>varcahar(50)</code>.</p>
<p>But I can't do it if data in text box contains special symbols li... | c# asp.net | [0, 9] |
5,569,707 | 5,569,708 | jQuery: is val() fast enough to use repeatedly or is it better to put the value in a variable | <p>If you are doing something like the following:</p>
<pre><code>var i = $('input[@name=some_field]');
if (i.val() != '' && !(i.val() >=1 && i.val() <= 36) || i.val() == 'OT')) {
i.focus();
}
</code></pre>
<p>is <code>i.val()</code> fast enough to use it multiple times or should you do:</p>... | javascript jquery | [3, 5] |
2,249,207 | 2,249,208 | How can I go to history.back() when page loads? | <p>I have a PHP page that has an error, but if I go back, it works fine.
I can't redirect because the page can be accessed from two different places.</p>
<p>How can I make a JavaScript that loads automatically when the page loads?</p>
<p>Thanks,
Sebastian</p>
<p><strong>EDIT</strong></p>
<p>that wouldn't work.
is t... | php javascript | [2, 3] |
5,901,696 | 5,901,697 | Android text coloring based on background | <p>I'm currently working on an Android app that has a progress bar with textView at it's edge showing a date.</p>
<p>When the progress bar's background is grey, and it's fill is blue. I need to have the text color change according to the progress bar behind it - aka letters that have the progress bar's fill behind the... | java android | [1, 4] |
137,014 | 137,015 | On clicking a button on a web page, can a dynamic link be generated? can we navigate webpage to the dynamically generated link | <p>I am new to PHP and javascript programming
I have a string that can be "abc" or "aac" or "aaa" etc based on the inputs given by the user. After the user clicks some button(say submit) I want to generate a dynamic link like www.domain.com/abc or www.domain.com/aac based on string and navigate the user to the genera... | php javascript | [2, 3] |
4,461,044 | 4,461,045 | Display image in a div like image gallery | <p>I want to display a selected image from table rows inside a div. i am using a for loop to populate the table but now i find it hard to display the selected image inside the div as the id's are dynamic. Here is my for loop</p>
<pre><code>for (i=1; i < my_image.length-1; i++) {
if (i%3==0) {
... | javascript jquery | [3, 5] |
624,026 | 624,027 | create unordered list dynamically using jquery | <p>how to create unordered list dynamically using jquery? i read the image filepath(href and src) from xml file.</p>
<pre><code> <ul>
<li><a href="images/test1.png"><img id="imageSlide" src="images/test1.png" alt="" /></a></li>
<li><a href="images/test2.png"&g... | javascript jquery | [3, 5] |
1,259,022 | 1,259,023 | Display 'Accept digital certificate' prompt using PHP and Javascript | <p>I'm developing a GIS: a web client to see some maps loaded from OGC servers.</p>
<p>The user can switch between use HTTPS connections and HTTP to load the maps, so I want to include some link to provide this funcionallity (because some maps can be loaded from an HTTPS url like this <a href="https://serverurl/ogc/" ... | php javascript | [2, 3] |
806,651 | 806,652 | Bind jQuery hover event to multiple DOM elements | <p>I've an unordered list of elements and I want to bind hover event to each of these elements. The HTML structure is as follows : </p>
<pre><code><ul>
<li id="url_1">item 1</li>
<li id="url_2">item 2</li>
</ul>
</code></pre>
<p>I figured using a for-loop would be the best way ... | javascript jquery | [3, 5] |
4,741,330 | 4,741,331 | Javascript - how to set child drop down menu based on parent dropdown menu selection | <p>For example take a look at <a href="http://katz.cd/submit.php" rel="nofollow">http://katz.cd/submit.php</a>. Notice when you select a type, that type is carried through to all the other type dropdown menus.</p>
<p>How do I do this?</p>
| javascript jquery | [3, 5] |
4,082,226 | 4,082,227 | what is the equivalent component in android like uiindicator in iphone | <p>can anybody tell what is the equivalent component in android like uiindicator in iphone give example</p>
<p>Thanks</p>
| iphone android | [8, 4] |
211,903 | 211,904 | Toggle effect problem when using for-loop in IE7 | <p>I'm a webdesigner that's trying to get the hang of JavaScript and jQuery, and I want to learn how to write shorter, more concise code - to avoid being ridiculed by the developers at work ;)</p>
<p>I have this snippet:</p>
<pre><code>// toggle divs when checkbox is checked
$('.product-optional-checkbox1').click(fun... | javascript jquery | [3, 5] |
1,927,617 | 1,927,618 | Android - edittext illusion | <p>I want to change the value of the EditText while typing on the virtual keyboard; my goal is to hide what the user types while displaying another text. For example if I want to enter "Stack" but displaying "Overf" it's going to be like this: when "S" typed (and hidden in a buffer) it displays "O" then I type "t" and... | java android | [1, 4] |
1,949,565 | 1,949,566 | How to get all input elements from page using only plain JavaScript? | <p>How to get all input elements from page using only plain JavaScript ( I have only three ) ? I cannot use any framework because I need to use this in android WebView.</p>
| javascript android | [3, 4] |
2,132,923 | 2,132,924 | JS setInterval executes only once | <p>I have the following JS functions:</p>
<pre><code>function checkIfGameAlreadyStarted(){
$.get("IsGameAlreadyStarted",null,function(gameAlreadyStarted){
if (gameAlreadyStarted == "true"){
window.location = "index.jsp?content=game";
} else{
alert("bla");
}
... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.