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
2,054,425
2,054,426
Jquery Hide Function in PHP
<p>I have a while statement that is echoing about 10 different stories. Every story has a user comment. When clicking the button edit I want one of the functions to hide the user comment. Here is the code I wrote to try and make it happen. Let me know if you think of why this wouldn't work.</p> <pre><code>&lt;script&g...
php jquery
[2, 5]
63,095
63,096
I'm unable to get the date to equal my string in my Jquery Datepicker
<pre><code>var currDay = date.getDate(); var currMonth = date.getMonth(); var currYear = date.getFullYear(); var fullDate = currMonth + '/' + currDay + '/' + currYear; fullDate = fullDate.toString(); if(fullDate == special_dates[b][4]){ ret...
javascript jquery
[3, 5]
5,923,011
5,923,012
Problem with char * in python
<p>I've just wrapped a header (.h) file and created .so to use it as a module in python. The function Encrypt takes char* bb, then fill it using memcpy(). If I want to call this function from a c code I have to do (char* bb = (char*) new char[200]; Encrypt (...,...,..., bb);). How to call it from python? How is the equ...
c++ python
[6, 7]
5,570,267
5,570,268
Value is undefined when element is obtained with jQuery
<p>Below is the code where I obtain my input element with jQuery:</p> <pre><code>var txt = $(tableRow).find('input:text'); if (txt.value == null) { //TO DO code } </code></pre> <p>and here's how I do it </p> <pre><code>var txt = document.getElementById('txtAge'); if (txt.value == null) { //TO DO code } </code></...
javascript jquery
[3, 5]
2,007,055
2,007,056
jQuery: stop a <select> list from moving on keypress?
<p>I have HTML/jQuery like this:</p> <pre><code>&lt;select id="userlist" name="userlist"&gt; &lt;option value=''&gt;&lt;/option&gt; &lt;option value="ADJUDICATION"&gt;ADJUDICATION&lt;/option&gt; &lt;option value="ADMINISTRATIVE"&gt;ADMINISTRATIVE LAW&lt;/option&gt; # etc &lt;/select&gt; $("#userlist").keypress(functi...
javascript jquery
[3, 5]
3,629,464
3,629,465
InnerText in Python
<p>Is there an equivalent to the c# <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmlnode.innertext.aspx" rel="nofollow"><code>XmlNode.InnerText</code></a> Property in Python?</p> <p>If not, is there a straightforward way to implement it in Python? I thought I found something <a href="http://www.chaingan...
c# python
[0, 7]
5,379,672
5,379,673
Two methods with different signatures, jquery is not calling correct method
<p>There are two methods <code>GetUserAssignedSystems()</code> and <code>GetUserAssignedSystems(string Id)</code> These methods act very differently from each other. The problem is, when I want to call <code>GetUserAssignedSystems(string Id)</code>, the parameter-less method is called.</p> <p>Here are the methods:</p...
c# jquery
[0, 5]
1,407,071
1,407,072
How to get index of current records in C# ASP.NET ListView in Render Time
<p>I have a list view like below:</p> <pre><code>&lt;asp:ListView ID="lstTopRanks" runat="server"&gt; &lt;ItemTemplate&gt; &lt;div class="Amazing-{recordNumber}"&gt;{itemdata}&lt;/div&gt; &lt;/ItemTemplate&gt; &lt;/asp:ListView&gt; </code></pre> <p>I would like to replace <code>{recordNumber}</code> w...
c# asp.net
[0, 9]
1,183,211
1,183,212
Periodically autosave form
<p>How to implement a periodical save of a form in the background? Same kinda thing that gmail does. </p>
javascript jquery
[3, 5]
4,352,481
4,352,482
Jquery passing variable problem
<pre><code> for(var n=0;n&lt;10;n++) { $('#content-scroll'+n).mousewheel(function(event, delta) { if (delta &gt; 0) sliderUp(n-1); else if (delta &lt; 0) sliderDown(n-1); return false; // prevent default }); n++; } </code></pre> <p>I have a problem with this code, variable "n" is not passed...
javascript jquery
[3, 5]
5,220,510
5,220,511
Two ways to make python based webpages?
<p>I wanted to try out python to create webpages instead of using php. However I came across that you need either mod_python or mod_wsgi installed to apache to make it play with python. If you now use pure, i'm not sure if it should be said pure, python code, not using any web frameworks like django. I found out that m...
php python
[2, 7]
1,848,624
1,848,625
How to call a php function from Javascript
<blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/3761448/how-to-call-php-function-in-js">how to call php function in JS?</a><br> <a href="http://stackoverflow.com/questions/221396/javascript-and-php-functions">Javascript and PHP functions</a> </p> </blockquote...
php javascript
[2, 3]
4,963,262
4,963,263
jQuery .attr('value', 'new_value') not working?
<p>I am trying to dynamically change the actual HTML <code>value</code> attribute of an input using jQuery. Although using <code>input.attr('value', 'myNewVal');</code> works to change it visually, when I inspect the source using Developer Tools in Chrome, the HTML attribute hasn't changed.</p> <p>Since I'm doing a ch...
javascript jquery
[3, 5]
988,786
988,787
jquery, Showing a hidden item with a fadeIn
<p>in jquery, how can I show a hidden div, and make it fade in?</p>
javascript jquery
[3, 5]
5,125,750
5,125,751
OnNewIntent does not show Toast
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/11304267/displaying-a-toast-notification-in-android-framework">Displaying a Toast notification in Android framework</a> </p> </blockquote> <p>I have an activity and in onResume there is the following Code:</p> ...
java android
[1, 4]
4,905,614
4,905,615
How to send data into URL via POST - ASP.Net
<p>Below is the form in HTML that I want to send. But the problem is that since some input fields change their input value dynamically, I can't use an HTML form. So I need an asp.net form: these input field vales need to be set via code-behind.</p> <p>Please help, how should I implement this in C# asp.net?</p> <pre><...
c# asp.net
[0, 9]
925,077
925,078
URL breaking when it contains # in jQuery ajax request
<p>When I request a url with jquery Ajax that contains # sign, the string of the url after # gets cut off. For example:</p> <pre><code>http://somesitem.com/?name=Some#thing </code></pre> <p>When I observe this url being requested in firebug, I see that all that is being submitted is:</p> <pre><code>http://somesitem....
javascript jquery
[3, 5]
2,418,855
2,418,856
Can some one tell how can I register the jquery function on button click which is in master page
<p>Hi all I am having a master page where I am having a button, where I have written some script as follows</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { $("#btnMaster").click(f2()); }); function f2() { if (isDirty == 1) { jConfirm('Can yo...
jquery asp.net
[5, 9]
2,927,532
2,927,533
Splitting code in to multiple files for easier management
<p>I am currently using jQuery to write an online application, that started off with a couple of lines of code, and have quickly now become over a 1000 lines.</p> <p>My code's structure is simple. I have a window.load which wraps my javascript, and inside it I start adding my click event handlers, and the various func...
javascript jquery
[3, 5]
2,337,698
2,337,699
asp.net selectedvalue bind conditionally
<p>I like to do a conditional bind. For example if the SelectedValue is null, I like to bind it to "Pacific Time". Below does not work but will give you an idea of what I am trying to do</p> <pre><code> SelectedValue='&lt;%# Bind("Zone") ?? "Pacific Time" %&gt;' </code></pre>
c# asp.net
[0, 9]
206,084
206,085
address parsing and validation technique required for Australia zone with regex
<p>We need to implement the validation for the following field</p> <p><strong>Street Address/ Business Address</strong></p> <p>Conditions which needs to be taken care are as below</p> <p>Post office box, private bag NOT acceptable as address. The address field should not start with the following:</p> <p><strong>NOT...
java php javascript
[1, 2, 3]
416,254
416,255
jQuery Animate backgroundColor with If and Else
<p>I'm trying to use <code>if</code> and <code>else</code> in a jQuery Function based in the <code>backgroundColor</code> of a <code>li</code> tag, for exemple: If this <code>backgroundColor = #ccc</code> do something, else, do other. I tried like this:</p> <pre><code>if ($(this).css('backgroundColor = #EBE5C5')) { </...
javascript jquery
[3, 5]
4,078,519
4,078,520
how to send element values from parent window to child layer window element?
<p>i have an array of comments from DB and each comment have a reply links. when i click on the anchor reply i need to open a new layer window.. and i need that particular comment id in the newly popup layer window.</p>
php javascript jquery
[2, 3, 5]
3,976,088
3,976,089
How to write a table content to an xml?
<p>Can somebody tell me how can i write a clientside table control content to an xml on a button click . I'm using a clientside table "selectedTexts" and on save button click i need to save the table content to an xml. Please help.</p> <pre><code> $(document).ready(function() { $('#&lt;%=btnSave.ClientID %&gt;').cli...
javascript jquery asp.net
[3, 5, 9]
4,389,476
4,389,477
How to make jQuery load() work for all elements of array, not just last one
<p>I have a web page that show a list of data feeds by name (the dataFeed variable below) and I am trying to simulate a pop-up window that contains more information about the data feed when the user clicks on the icon (dataFeed + 'dataLink') next to the data feed name. I have a hidden div (diagWindow) that contains a d...
php javascript jquery
[2, 3, 5]
947,886
947,887
jquery star rating vertical
<p>I'm using the jquery star rating plugin by fyneworks. The problem is that about 5% of the time (and on the initial page load), the stars stack vertically instead of horizontally!?</p> <p>When you refresh the page, they are fine - which is really odd. <a href="http://www.nacremedia.com/stars/stars.html" rel="nofollo...
javascript jquery
[3, 5]
5,719,065
5,719,066
What are the tell-tale signs in an interview that a developer is not competent?
<p>I'm specifically talking about interviewing for a position for a very experienced and competent C++/C#/Java systems developer, not a html, javascript web developer position. In my experience nervousness is often not a good indicator, because many good developers get very nervous under pressure, so what is a good in...
c# java c++
[0, 1, 6]
3,791,517
3,791,518
PHP work with JS Jquery
<p>How do i make PHP work with JS? I mean more like, i want to check if the user is logged in or not, and if he is then it will: $("#message").fadeIn("slow"); ..</p> <p>How should i do this? I have an idea maybe have a file that checks it in php, and then it echo out 1 or 0.</p> <p>And then a script that checks if...
php javascript jquery
[2, 3, 5]
3,739,972
3,739,973
Add function to object
<p>I have the following code</p> <pre><code>var PROMO = PROMO || {}; PROMO.Base = (function () { var _self = this; var Init = function () { WireEvents(); }; var WireEvents = function () { //wire up events }; } ()); </code></pre> <p>In the same file I have the code to call the above function</p> ...
javascript jquery
[3, 5]
3,406,764
3,406,765
Is it possible to hide a web based game jQuery code from the user?
<p>I know some of you just feel it is as a completely wrong question but I have a few requirements of such kind that's why I am asking this question. I understand that javascript is downloaded by the browser on client side so it's very difficult to hide that.</p> <p>So now i have a game code completely written in jque...
javascript jquery
[3, 5]
4,543,228
4,543,229
jQuery validation field by range
<p>How can I validate field by range?</p> <p>I use additional-methods, but i don't know how providing parametr with range to my validation method via HTML.</p> <p>Something of a<br /> <code>&lt;input type="text" class="rangeField" rel="[10, 20]" /&gt;</code></p> <p>It's nice, if i can make a difference between integ...
javascript jquery
[3, 5]
5,669,488
5,669,489
set cursor position in textarea at end once user clicked on textarea
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4715762/javascript-move-caret-to-last-character">Javascript: Move caret to last character</a> </p> </blockquote> <p>I am working on text area using jquery, to provide good UI validation. Currently I stuck at -</...
javascript jquery
[3, 5]
1,006,137
1,006,138
Detect if java is installed on the web server from php
<p>Is it possible to detect from a php script if java is installed on the server (if I can run an exec() command with java)?</p> <p>Thanks,</p> <p>Benjamin</p>
java php
[1, 2]
5,849,062
5,849,063
Web site project login against seperate database
<p>Howdy, I use the Visual Studio 2010 - and I'd like to create a ASP.NET Website - however I would like to check the login against a seperate database and not the .mdf file because I need a bit more flexibility and the access to the remaining items in my database.</p> <p>Does anyone of you have a good solution how I ...
c# asp.net
[0, 9]
2,690,804
2,690,805
I need some help importing an RSS feed from Wordpress
<p>I'm trying to import the last 5 posts from a Wordpress RSS feed and show them on my site.</p> <p>I was using this, but it grabs the whole feed.</p> <pre><code>&lt;asp:DataList ID="dataNews" runat="server" DataSourceID="xmlSource" &gt; &lt;ItemTemplate&gt; &lt;a href="&lt;%# XPath("link") %&gt;"...
c# asp.net
[0, 9]
5,093,247
5,093,248
Creating ascx dynamically and adding controls to it
<p>I am a beginner in asp.net(C#) and stuck in an important point.</p> <p>I have a dropdown list on my homepage which users select a category. After selecting the category, user will fill a form which has related controls to that category in it.</p> <p>As I have many categories, I just want to have single ascx page a...
c# asp.net
[0, 9]
4,893,257
4,893,258
How to change li position using Jquery
<pre><code>&lt;ul&gt; &lt;li id="1"&gt; &lt;li id="2"&gt; &lt;li id="3"&gt; &lt;li id="4"&gt; &lt;li id="5"&gt; &lt;li id="6"&gt; &lt;li id="7"&gt; &lt;/ul&gt; </code></pre> <p>i want to make a function that foreach time the function is called the first li at the top will be the last one so the first example will look...
javascript jquery
[3, 5]
3,573,091
3,573,092
Serialising POST requests jQuery/Javascript
<p>I am working on an application which sends an AJAX POST request (I'm using jQuery currently) every 1500ms. I have noticed that most of the times, these requests succeed within 350-450ms and are sent to the server nicely in the same order as they are generated. </p> <p>However sometimes, one or two requests take nea...
javascript jquery
[3, 5]
5,832,449
5,832,450
Accessing script block with jquery
<p>I have a script block, in the div element which is appended after html response. I want to access this block and call eval() function for this script. How can I access the script block.</p> <p>I tried <code>$("#divId script")</code> , but it doesn't work.</p> <pre><code>&lt;div id="divId"&gt; &lt;script type="...
javascript jquery
[3, 5]
2,284,767
2,284,768
Should we refer to objects by their interfaces in Android platform
<p>I use to the advice given by Joshua Bloch's Effective Java, <code>Item 52: Refer to objects by their interfaces</code>.</p> <p>However, in most of the sample code comes with Android, I realize the following code is quite common.</p> <pre><code>private ArrayList&lt;Integer&gt; mPhotos = new ArrayList&lt;Integer&gt;...
java android
[1, 4]
1,073,908
1,073,909
jquery or javascript active element on foreground, lock background?
<p>I have a layer that is presented by a logic var. </p> <p>that layer is just a hidden div - how do I make it so the layer is the only element that can be interacted with on the page when it is visible?</p> <p>thanks!</p> <p>Update:</p> <p>used a full size div in the background with a transparent gif - works in fi...
javascript jquery
[3, 5]
2,236,077
2,236,078
jQuery::List of image elements. Trying to make them into a slideshow
<p>I managed to design a small 4x4 grid filled with images. Currently, I am styling the ul element using jQuery.</p> <pre><code>&lt;ul id="imagegrid"&gt; &lt;li&gt; &lt;img src="..."&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="..."&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>So, when I click an element i...
javascript jquery
[3, 5]
3,444,513
3,444,514
Is there any MIT licenced jquery pagination plugin?
<p>The famous <a href="http://archive.plugins.jquery.com/project/pagination" rel="nofollow">jQuery pagination plugin</a> is of GPL licence. If I am not wrong to use a GPL licenced software in a product the product must be GPL licenced too. So I am looking for a pagination plugin which is MIT licenced. Any suggestions? ...
javascript jquery
[3, 5]
3,609,192
3,609,193
Posting Credentials to a basic authorization site and opening the link in a new browser. Open URL instead of a response
<p>The below code will post a request to an IIS basic authorization site. And sucessfully log in to the site using Windows Credentials. But what I need to do is convert this to opening the website in a browser much like opening a new hyperlink with a target="null".</p> <p>So just a recap, how do you post the WebRequ...
c# asp.net
[0, 9]
5,397,040
5,397,041
reverse the order of the linked list
<p>i have a linkedlist, which add an object like a tree, the following is the printout LinkedList nodeList = new LinkedList();</p> <p>(result A)</p> <pre><code>1 : Tester Meeting 2 : Adminstrative &amp; Operational 3 : Functional Committees 4 : Aduit Committee 9 : Supporting Services Development 8 : Medical Se...
c# asp.net
[0, 9]
1,376,912
1,376,913
WebRequest.Timeout not working as expected
<pre><code>var strURL = "http://999.999.999.999"; // invalid IP-address System.Net.WebResponse objResponse = default(System.Net.WebResponse); System.Net.WebRequest objRequest = default(System.Net.WebRequest); objRequest = System.Net.HttpWebRequest.Create(strURL); objRequest.Timeout = 100; objResponse = objRequest.GetR...
c# asp.net
[0, 9]
5,216,958
5,216,959
Using Python vs PHP for Web Development - When and Where
<p>First of all, please don't make a comment that is based on your opinion or preferences or some magic hatred for PHP.</p> <p>I work at a web development company and I'm going to write a new CMS soon. I'm currently using WordPress, but I have lots of experience with Python/Django.</p> <p>My question to this great co...
php python
[2, 7]
5,328,133
5,328,134
find howmany words are starting with given search string - Regex
<p>I am working on regex for searching hotel list. There are names like "testing hotel plaza", "testing2 newhotel plaza", "plaza hotel"....</p> <p>basically my requirement is if user type plaza then all the hotels should populate which contains "Plaza"....but if user types "aza" no result should populate. In short in...
javascript jquery
[3, 5]
382,486
382,487
how to write the condition in jquery?
<p>I have two text input fields like so:</p> <pre><code>&lt;input type="text" id="test1".../&gt; &lt;input type="text" id="test2".../&gt; </code></pre> <p>Now I want the visitor to only be able to fill in only one of those text inputs. For example, if <code>#test1</code> has a value, when the visitor tries to enter a...
javascript jquery
[3, 5]
4,104,916
4,104,917
JQuery recursive function?
<p>How can I call a function from inside the function, so it becomes recursive? Here is my code, I have added a comment where I would like to start the recursion:</p> <pre><code>$('a.previous-photos, a.next-photos').click(function() { var id = $('#media-photo img').attr('id'); var href = $(this).attr('href'); ...
javascript jquery
[3, 5]
5,598,857
5,598,858
Simple Javascript not Working - Jquery
<p>I have the following in my page.</p> <pre><code>$(document).ready(function() { function setTheTimeout(){ var t=setTimeout("alertMsg()",3000); } function alertMsg(){ alert("Hello"); } setTheTimeout(); }); </code></pre> <p>I am getting an error in Firebug alertMsg() is not defined...
javascript jquery
[3, 5]
1,339,329
1,339,330
Is there a way to detect mouse press in jQuery?
<p>I want to add a class to a link when it is clicked, but I can't use:</p> <pre><code>$('a.someLink').click(function() { // code }); </code></pre> <p>since click seems to detect when a user clicks and lets go of the mouse clicker on an element. I need to add the class as soon as the user has clicked on the elemen...
javascript jquery
[3, 5]
1,129,294
1,129,295
jQuery determining if element exists on page
<p>How can I determine if an element exists on a page... for instance... </p> <pre><code>$('select[name="modifier_option"]') </code></pre> <p>If that select box exists on the screen I need to validate it's value on the page to ensure it's value is > 0, but if it doesn't exist I don't need to worry about it.</p>
javascript jquery
[3, 5]
512,428
512,429
In JQuery, how do I check if the DOM is ready?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1206937/javascript-domready">javascript domready?</a> </p> </blockquote> <p>I want to check whether <code>$(function(){ });</code> is "ready".</p> <p>Return true if DOM is ready, false otherwise</p>
javascript jquery
[3, 5]
5,807,825
5,807,826
Get Touch Coordinates Relative To A View (ScreenToClient Equivalent?)
<p>I have an image I am displaying to a user in my android application.</p> <p>I want to be able to tell where they 'touch' the image.</p> <p>I can easily get the screen coordinates by implementing an OnTouchListener</p> <pre><code> private OnTouchListener image_Listener = new OnTouchListener(){ @Override pu...
java android
[1, 4]
3,816,550
3,816,551
why do we use HttpContext.Current?
<p>i don't know, why do we use HttpContext.Current?<br /> in this property i use it for Session but i don't know why! </p> <pre><code>public static string Name { get { if (HttpContext.Current.Session["_n_"] != null) return HttpContext.Current.Session["_n_"].ToString(); else return...
c# asp.net
[0, 9]
2,552,652
2,552,653
div does not animate in jquery. why?
<p>I created a <a href="http://jsfiddle.net/pesAA/2/" rel="nofollow">fiddle</a>. I am trying to make jquery animation but when I click on the link it does not move. Why? I am using jquery transition plugin.</p> <p>Here is my code</p> <p>html</p> <pre><code>&lt;header class="header"&gt;&lt;a href="#" class="click"&gt...
javascript jquery
[3, 5]
5,143,983
5,143,984
How to compare Time in java/android (given input in strings)?
<p>I have two strings which are used to store time in the format <strong>hh:mm</strong>.I want to the compare these two to know which time is greater.Which is the easiest way to go about this?</p>
java android
[1, 4]
5,557,958
5,557,959
An unwanted object in the last cell of an array
<p>I'm using the following code on a parsed XML array: </p> <pre><code>$(this).find("cp_group").each(function() { $("select#comp_1").append('&lt;optgroup label="' + $(this).attr('label') + '"&gt;&lt;option&gt;' + $(this).find("cmp").map(function() { return $(this).text(); }).get().join("&lt;/option&gt;...
javascript jquery
[3, 5]
166,251
166,252
Requests with Jquery
<p>Currently I'm trying to add on to the auto-complete module for jquery that is out there. After i've auto-completed my text field, i tab to my next field (a drop down). When that drop down is focused, i want to check against my text field and populate the drop down with a specific list depending on what the text fie...
php jquery
[2, 5]
1,162,542
1,162,543
jquery menu - active links
<p>I am trying to make a jquery menu that when I click on one of the links (with reloading the page), it changes its class to "active" and removes this class when I click on another link.</p> <p>here is my code :</p> <p>enter code here`$(document).ready(function(){</p> <pre><code>$(function(){ $("a").click(functio...
javascript jquery
[3, 5]
990,964
990,965
setInterval onclick of #fr_tab div and clear on click of anywhere in document
<p>I have this jquery code: </p> <pre><code> $('#fr_tab').click(function() { $("#tab2").empty().html('&lt;img src="images/loading.gif" /&gt;'); var handle = setInterval(function () { $('#tab2').load('fr_quests.php'); }, 3000); }); $('body').click(function() { if (handle) { ...
javascript jquery
[3, 5]
5,369,853
5,369,854
Python - List of Strings to Java
<p>I'm getting a list of strings from python code and need to read it in Java. When trying to read it, i get the hashCode</p> <blockquote> <p><code>[Ljava.lang.Object;@7cf1bb78</code></p> </blockquote> <p>I want to read the values in a list. In python my return is something like</p> <pre><code>return SUCCESS(OK, p...
java python
[1, 7]
2,395,775
2,395,776
Configuration settings in (web.config|app.config) versus a Static Class Object
<p>I am just looking at the BlogEngine.Net source code and was intrigued at how it stores application settings.</p> <p>Instead of using web.config or app.config which I am accustomed to, the source uses a static class object implemented using a singleton pattern to achieve the application settings. the information is ...
c# asp.net
[0, 9]
647,276
647,277
Variable in a Closure
<p>I have a JS object, in a property I use a function expression, within a variable result.</p> <p>I need to populate the result variable and return it when processData has been invoketed.</p> <p>Could you tell me what I'm doing wrong here, if you brief explain the problem and add a pieec of good would be great.</p> ...
javascript jquery
[3, 5]
4,172,110
4,172,111
How to make something load at an event rather than on page-load
<p>So the situation is for comments on a blog in progress, each commenter will have the ability to reply to any comment. To do this, I have a link that, when clicked, will reveal (with jQuery) a special reply form right there as opposed to the normal one at the bottom of the page. So instead of loading a form on every ...
javascript jquery
[3, 5]
507,611
507,612
Multiple TextViews in a SurfaceView
<p>I am creating an android game, I tried using the canvas.drawText() method to display my score and level but it caused errors. Now I am trying to use TextViews to display them, I am using a SurfaceVeiw and I wanted to know is it possible and would it be a good way of doing it. </p>
java android
[1, 4]
1,644,490
1,644,491
Need to enable/disable a button on click of checkbox
<p>I am trying to disable a order button when the page loads and enable it when one checks the Terms and condition checkbox. I have it working where the order button is disabled when the page loads but on the click of checkbox the button doesnt get enabled. Here is my code. Can anyone help me identify the problem</p> ...
javascript jquery
[3, 5]
3,939,752
3,939,753
Spellchecker not working when text contains an url
<p>I am using one free spellchecker named pure javascript spell checker.But right now if somebody enters a url(starting with http://) in the text area and then do a spell check in that case its showing error in Firefox but in IE its working fine.So is there any way in javascript to escape an entire url from the user in...
javascript jquery
[3, 5]
3,894,078
3,894,079
manipulating radio box selection with javascript
<p>i'm trying to do a poll but i designed it without any radio box in it. So i decided to make the selection being highlighted with a different background color, all is done with jquery.</p> <p>I set the display of the radio box to none so that it wouldn't show, gave each a unique ID. Here's the script.</p> <pre><cod...
php javascript
[2, 3]
3,676,424
3,676,425
Append text to iFrame body where users mouse is "blinking"
<p>I need to append a face icon to the body of a iframe. The problem I am having is that it is put at the end of the body, not where the user has the insertion point.</p> <p>Here is the code I have so far,</p> <pre><code> &lt;iframe style=""name="content" id="content" width="758" height="200" onload="javascript:load(...
javascript jquery
[3, 5]
1,029,597
1,029,598
How to write this in a simpler less ridiculous way
<p>This just seems absurd to me. Should I use array instead or is there some other better solution?</p> <pre><code>$('.hoursRange').change(function() { if ('0' == $(this).val()) { $(this).val('00'); return false; } if ('1' == $(this).val()) { $(this).val('01'); retur...
javascript jquery
[3, 5]
366,897
366,898
jQuery calculation doesn't add up as expected when toggling height
<p>I have the following function for calculating the height of <code>.node</code>. It then takes away the height of a possible image, <code>.node-image</code>, from the height of the <code>.node</code>, and sets a column, <code>.node-content-column</code> to have a height that is the difference (i.e. 500 - 50 = 450; co...
javascript jquery
[3, 5]
4,111,157
4,111,158
Check if a radio selection is made
<p>I am having trouble checking whether there is a radio selection is not made in my form. In my form, I have 5 items, each item is given 2 options (radio buttons). Something like this:</p> <pre><code>item 1 opt1 opt2 (name attribute is "1") item 2 opt1 opt2 (name attribute is "2") item 3 opt1 opt2 ...
javascript jquery
[3, 5]
1,212,038
1,212,039
how to compare two text input type box values using jquery
<p>I have a two textboxes <code>t1</code> and <code>t2</code> . I would like to figure out how in jquery if the values in <code>t1</code> and <code>t2</code> are same I can display an alert message. If user does not change the values I want to prevent the form from being submitted.</p>
javascript jquery
[3, 5]
2,760,753
2,760,754
Global variable in javascript not working properly
<p>I have an iframe issue ( little bit strange for me ) . The issue is that i have an iframe in my document, and there are several functions are operating different task on that iframe and for accessing the contents of iframe we use :</p> <pre><code>$("iframe").contents(); </code></pre> <p>So instead of writing this ...
javascript jquery
[3, 5]
2,065,863
2,065,864
push an apk file into assets folder programmatically in android
<p>Can i push an apk file into my assests folder programmatically?I wanted to use this apk file in my application.</p> <p>Please forward your valuable suggestions to me.</p> <p>Thanks in advance... Priya</p>
java android
[1, 4]
5,974,635
5,974,636
Reusing a menu onclick events in android app
<p>I'm new to android but experienced in non OOP languages (mostly vb and PHP)</p> <p>However java and android seems hard to lean...</p> <p>However i gotten fairly long with my app so far. Now i want to reuse my custom built bottom menu (i created the graphics myself, and includes it in the layout file with the inclu...
java android
[1, 4]
4,293,193
4,293,194
How to get a box to appear from the top of the browser window on page load?
<p>I want a box to appear from the top of the browser window upon page load.</p> <p>Ideally it would look like this:</p> <p><a href="http://demo.cookieconsent.silktide.com/" rel="nofollow">http://demo.cookieconsent.silktide.com/</a></p> <p>So the page loads and this slides down. </p> <p>How would I achieve this?</p...
javascript jquery
[3, 5]
4,190,826
4,190,827
Why my Uri , is not fetched by ACTION_DIAL in android?
<p>I have found that the following code is working perfectly : </p> <pre><code>Intent intent = new Intent( Intent.ACTION_DIAL , Uri.parse("tel:555-2368") ); </code></pre> <p>But when I tried the code below, it is not working. I am trying to create a URI by reading from a file.</p> <pre><code>File f = new File ( "tus...
java android
[1, 4]
1,902,451
1,902,452
how to prevent $(document).ready(function() {} from calling a function
<p>i have a simple but bit complicated problem. what i want to do is that in my php page i have added this</p> <pre><code>$(document).ready(function() { $("a[rel^='prettyPhoto']").prettyPhoto({social_tools:false,overlay_gallery:false}); }); </code></pre> <p>now this page get call through ajax too.normal call of pa...
javascript jquery
[3, 5]
2,960,558
2,960,559
Possible to put Exception Try/Catch Error Messages to Textbox on first page?
<p>Usually error messages are thrown to a new webpage when I get some sort of <code>SocketException</code>, <code>WebException</code>, etc.</p> <p>Instead of being redirected to a new page with the error messages, is it possible to get the error to show in a textbox on the first page?</p>
c# asp.net
[0, 9]
3,776,153
3,776,154
JS: setInterval and clearIntervals with jQuery
<p>I'm probably tired for staring at this for too long, maybe someone can clear this up for me:</p> <pre><code>//scripts in whispers are setup this way. var something = function(){ setInterval(function1,1000); setInterval(function2,1000); blah .. blah... } //function2 is the same as this one var function1...
javascript jquery
[3, 5]
553,754
553,755
Rotated image in ImageView
<p>I want to show an arrow that indicates the direction towards a goal, using the orientation sensor and current GPS position. Everything works well, except that I want to rotate the arrow image in my ImageView.</p> <p>The current code, which shows the arrow pointing upwards, is this:</p> <pre><code>ImageViewArrow.se...
java android
[1, 4]
5,007,449
5,007,450
Merge two similar click event into one
<p>this is a recurrent problem in writing my javascript : I have the events :</p> <pre><code>$(document).on('click','.mi_piace_brick',function(){ $this = $(this).children(), $that = $(this), i = s.get_current_step_id(), j = $that.attr('data-class'), counter = parseInt($('.like_counter_'+i+'_'+j).first(...
javascript jquery
[3, 5]
1,751,557
1,751,558
Always center div in the middle of screen
<p>My object is to have popup appear on the center of screen. Everything works fine with default zoom on PC and tablets with "Matt Coughlin" <a href="http://stackoverflow.com/questions/11364959/how-to-center-getting-data-on-mobile-screen?answertab=active#tab-top">answer</a>, but things starts to break when zooming in. ...
javascript jquery
[3, 5]
4,124,066
4,124,067
Phone doesn't go to sleep?
<p>Is it possible that if phone's screen turns off completely but phone does not go to sleep?</p> <p>I have an app which do some things when device goes to sleep. I registered broadcast intent: Intent.ACTION_SCREEN_OFF</p> <p>On my device app works fine ( HTC Desire, cyanogenmod ). When screen turns off, my app is ac...
java android
[1, 4]
2,829,627
2,829,628
jquery form wizard and validation
<p>i am trying to use the jquery form wizard with asp.net to create a multi step form. I have already built the form, but i am having problems during validation of emails. I have two form fields email and confirm email which should match before going to the next step. The problem i am having is I am using master pages...
jquery asp.net
[5, 9]
2,595,218
2,595,219
has no method 'replace' jquery error
<p>I got the following js code which is erroing in the console and i'm not too sure of what i'm doing wrong. Basically i'm trying to get a list of fields so i can do some calcs on.</p> <pre><code>var LabourItems = { rate: null, hours: null, total: null, init: function(object) { var rate = $(obj...
javascript jquery
[3, 5]
2,460,918
2,460,919
getting comma before first element in an array in jquery
<p>I am inserting some data into an array but I am getting </p> <pre><code>,9,My firstname,My lastname,myemail@example.com,123456789 </code></pre> <p>out in my console. How can I remove comma from first element i.e. 9? here is my code</p> <pre><code>var data = new Array(); $(row_el.children("td")).e...
javascript jquery
[3, 5]
163,165
163,166
Return either local variable or GET results
<p>I would like to return x || $.get.</p> <p>Or in other words, if x is true, then return x, else perform a GET call and return the value provided by the server.</p> <p>My attempt is listed below (ideally, it would follow the return x || y format maybe with an anonymous function? instead of the if/then).</p> <p>Prob...
javascript jquery
[3, 5]
2,707,118
2,707,119
How to fetch the value of selected checkbox inside a checkboxList?
<p>I want to know the selected value of the markup below. So that I can disabled a textbox, if one of the checkbox is selected.</p> <pre><code> &lt;asp:CheckBoxList ID="ChkTest" runat="server" RepeatDirection="Horizontal" CssClass="toggleYesNo"&gt; &lt;asp:ListItem Value="1"&gt;Yes&lt;/asp:ListItem&gt; ...
c# asp.net jquery
[0, 9, 5]
4,653,991
4,653,992
e.which codes for CTRL + A and CTRL + E
<p>Can anybody please tell me e.which codes for key press <kbd>CTRL</kbd> + <kbd>A</kbd> and <kbd>CTRL</kbd> + <kbd>E</kbd>.</p> <p>Also please tell me where i can find these values, i tried searching google but no appropriate results and i dont want shortcuts plugin for simple needs.</p> <p>Thank You.</p>
javascript jquery
[3, 5]
151,931
151,932
separate a string in c#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1219094/separate-firstname-and-lastname-from-fullname-string-in-c">Separate firstname and lastname from fullname string in C#</a> </p> </blockquote> <p>I want to split a string which is like lastname, firstname....
c# asp.net
[0, 9]
1,513,131
1,513,132
jquery closest() doesn't work
<p>I am trying to grab the closest link with the class <code>a.tariff-link</code> and send it to a method, but looks like <code>closest()</code> cannot find it because it's always passing an undefined element.</p> <pre><code>$(".ui-icon-triangle-1-e").click(function () { GetRuleData($(this).closest("a.tariff-link...
javascript jquery
[3, 5]
3,710,033
3,710,034
Loading JQuery with Javascript from footer
<p><strong>If you would like to get to the point, here is my question:</strong> Is there any way to call a specific script to load first in javascript?</p> <p><strong>For more detail, please read below:</strong></p> <p>I have a javascript file that is loading from the bottom of my HTML <code>&lt;body&gt;</code>. Unf...
javascript jquery
[3, 5]
5,245,085
5,245,086
How to format isoDateTime to dd/m/yyyy
<p>I have this time <code>"2012-03-23 00:00:00"</code>. How can I format it to <code>"dd/m/yyyy"</code>?</p>
javascript jquery
[3, 5]
517,789
517,790
not called Looper.prepare() when running a Timer from CallBack
<p>I'm in this code I am cycling through an attaylist of objects and assigning each object a callback, yet when I get to using a CountDownTimer, it crashes with <strong>Can't create handler inside thread that has not called Looper.prepare()</strong></p> <pre><code> for ( final ABoxActor a : actList ) { ...
java android
[1, 4]
3,136,315
3,136,316
UserControl not rendering children when added to a page using aspx tag
<p>I must be missing a trick here. I have an <code>.aspx</code> page (that uses a master page, if that matters) with the following code in it:</p> <pre><code>&lt;me:ModuleContainer runat="server" ID="topmodules"&gt;&lt;/me:ModuleContainer&gt; </code></pre> <p>Now for some reason, my UserControl for <code>ModuleContai...
c# asp.net
[0, 9]
5,705,126
5,705,127
how to make this code works if i used it inside update panel and some of the checkbox values will be disabled according to database field ..?
<p>This code works fine if i use this inside ssercontrol > panel and i have a checkboxes in table when no checkbox is checked its works fine .... but if i disabled and checked any of the textbox then this doesn't work .... in usercontrol why ? i didnt understand ..</p> <pre><code>&lt;script type="text/javascript" lang...
javascript asp.net
[3, 9]