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,494,856
2,494,857
div doesn't position horizontally
<p>Im not getting my form element to position horizontaly in the center here is my code</p> <pre><code>$('.form') .css('top', window.screen.availHeight / 2 - $('.form').height() / 2) </code></pre>
javascript jquery
[3, 5]
2,875,232
2,875,233
How to change text on spinner selection
<p>I have a couple of textviews with a couple of spinners lined up in a table. There are 4 choices in the spinners, all of them the same, the first choice being '--'. I want the textview next to the spinner to be red when the default option '--' is selected, and white otherwise. </p> <p>I coded this to handle this but...
java android
[1, 4]
71,201
71,202
Converting string to javascript object
<p>I want my user to input some text in an input field and click a button "Evaluate" on clicking that button I will convert that inputted text into a JavaScript object if I could and will show all of it's members(properties and functions).</p> <p>For example if user inputs <code>"document"</code> or <code>"window"</co...
javascript jquery
[3, 5]
3,960,604
3,960,605
calendar android
<p>how can i catch calendar events in android? (when i have a calendar event right now i will do something?</p> <p>thanks</p>
java android
[1, 4]
5,858,632
5,858,633
JQuery - image refresh
<p>Can anyone tell me why the first block of code works, but not the other two?</p> <pre><code>setInterval(function() { var url = "http://192.168.2.5:8080/?action=snapshot" + Math.random(); $("#webcam2").attr("src", url); }, 1500); </code></pre> <p>Not working:</p> <pre><code>setInterval(function() { var url ...
javascript jquery
[3, 5]
324,641
324,642
How to remember changes of html attributes which are changed by jquery
<p>I am using jquery function which changes the class of element</p> <pre><code> $("a").click(function(){ $(this).closest("ul").find("a").parent().removeClass("active"); $(this).parent().addClass("active"); }); </code></pre> <p>but when i refresh page, there are no changes added. How to remember t...
javascript jquery
[3, 5]
1,596,329
1,596,330
Query breaks after updating Android app
<p>I have this query running. If I update my app from an old version to a new. This query seems to break. I can 100% guarantee that the database is the same. Does anyone have any suggestions for what I should check?</p> <pre><code>Cursor value = checkDB.rawQuery("SELECT * FROM table WHERE open='1' AND country=?", new ...
java android
[1, 4]
1,256,880
1,256,881
JQuery modal popup on specific region
<p>I have a grid and when i change its sorting order i a loading message appear on grid region and block its content like other modal popup but only on grid region is there any available jquery modal popup meet my needs ? can I configure jqueryUI modal to do this ?</p>
javascript jquery
[3, 5]
1,692,479
1,692,480
Back Button Code not working
<p>I am using the following code for a "Back" Button:</p> <pre><code>&lt;INPUT type="button" value="Button" onclick="window.history.back(); return true;"&gt; </code></pre> <p>But, on the Previous page I have two div elements. When the page loads it will show div1. The next time, when the button of div1 is clicked, d...
c# javascript asp.net
[0, 3, 9]
2,554,184
2,554,185
How to pass an array of structures through Postback?
<p>I have the following structure:</p> <pre><code>private struct S_indiv { public int[] x; public int s; public S_indiv(int[] p1, int p2) { x = p1; s = p2; } } </code></pre> <p>and array:</p> <pre><code>private static S_indiv[] ind; </code></pre> <p>How can I pass this array thr...
c# asp.net
[0, 9]
3,987,178
3,987,179
jQuery: Can I get a reference to the bound events on an element?
<p>I have some elements with a function bound to the <code>click</code> event. I want to bind that same function instead to the <code>mouseover</code> and <code>mouseout</code> events. Is it possible to get a reference to the click event so that I can assign it to those other events? I'm imagining something like this (...
javascript jquery
[3, 5]
1,757,066
1,757,067
How to scale click/touch area of a view after applying ScaleAnimation in android?
<p>I haven't found any solution regarding how to scale the touch area of a view after applying ScaleAnimation, this animation really change the scale of that view but not the touch area of that view .The touch area remains the same. Here is my sample code:</p> <pre><code>package com.xyz; public class XyzActivity exte...
java android
[1, 4]
4,415,756
4,415,757
How to show status message on TextView in Main Activity?
<p>I am newbie in android, in my android app, a main <code>Activity</code> class, which contains a <code>TextView</code> for displaying various status message from other classes. I want to update <code>TextView</code> of main <code>Activity</code> with status values from other classes. There is no direct connection b...
java android
[1, 4]
3,881,913
3,881,914
download problem asp.net
<p>Hi this is the current version......please help.</p> <p>&lt;%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="FormDownload.aspx.cs" Inherits="Default2" Title="Form Download" %></p> <p> ...
c# asp.net
[0, 9]
5,453,014
5,453,015
can we create instance of class by using USE Keyword
<p>We use keyword to refer the namespaces and class</p> <p>can we create instance of class by using USE Keyword </p> <p>i need to access method in that class.</p> <p>Like eg:- using (new class) if any other ways please let me know. </p>
c# asp.net
[0, 9]
2,225,425
2,225,426
How to use JavaScript/jQuery to search/delete emails in GMail, HotMail etc?
<p>I want to create a small software to delete all old emails which were sent by a specific user, e.g. GroupOn. </p> <p>I would like to run this program on multiple platforms so I would like to write in JavaScrip.</p> <p>I am not sure whether it is possible.</p> <p>Thanks in advance.</p> <p>Updated my subject, and ...
javascript jquery
[3, 5]
1,453,561
1,453,562
how to convert the data stored in string to string array
<p>I'm parsing an url using json. I'm getting the value of each tag and storing it in a string using <code>getString</code> in a <code>for</code>-loop. </p> <p>What I want is to store the <code>String</code> value into a <code>String</code> array. I'm a noob as far as android development is concerned.</p> <p>Below is...
java android
[1, 4]
4,314,607
4,314,608
confirmation about deleting a record from database
<p>I am using php and javascript. I want to delete a record from database after a giving "Yes" and "No" confirmation to user. I am using confirmbox by google but don't know what should be my code structure inside that. I am new to programing. Can any one help me please</p> <p>How can I add this php function on javascr...
php javascript
[2, 3]
3,142,140
3,142,141
Is this possible through javascript?
<p>I am currently working on asp.net project. I use oodle web service. Oodle provides result via URL. I use <a href="http://api.oodle.com/api/v2/listings?key=TEST&amp;region=chicago&amp;category=vehicle&amp;format=json" rel="nofollow">Link</a> to get data from the URL.</p> <p>From code behind I use following code to f...
c# javascript asp.net
[0, 3, 9]
5,319,055
5,319,056
Passing data from one page (within jQuery Dialog) to another
<p>How can I pass a selected value of an element in a jQuery dialog to its parent page?</p> <p>Page1.aspx</p> <pre><code> $(document).ready(function() { $("#btnLookUp").click(function() { $("#searchActor").dialog({ autoOpen: "false", resizable: "false", ...
jquery asp.net
[5, 9]
3,378,068
3,378,069
How can I prevent automatic redirect in LoggedIn-event on the asp.net login control?
<p>How can I prevent the asp login-controls automatic redirect on authentication in the LoggedIn-event? I want to make some controls available to the user before redirect...</p> <p>Stig</p>
c# asp.net
[0, 9]
3,802,439
3,802,440
javascript get variable open in new window
<p>I have standard text links which all say "Full View". When clicked these links send out php in this form: <a href="http://mysite.com/fullview.php?myimage=30" rel="nofollow">http://mysite.com/fullview.php?myimage=30</a></p> <p>Basically there's thumbnailed images and text links that say full view. I'd like for fullv...
php javascript
[2, 3]
5,652,695
5,652,696
how to use parameters in code behind to access some controls in my aspx file using C#
<p>i have 2 textbox that has a date values in my aspx file. I would like to access these 2 controls in my select statement using code behind but i am getting error like this: 'Must declare the scalar variable "@txtStartClosingDate" so what am i missing here in my code behind here? thanks</p> <pre><code> protected vo...
c# asp.net
[0, 9]
1,467,943
1,467,944
jquery remove javascript code
<p>I am able to remove html element using jquery using <code>$(element).remove();</code>. But there is a javascript code, like <code>setinterval()</code>, which should be removed. Yes, I can do <code>clearInterval()</code> for particular that case, but what if other types of javascript code?</p> <pre><code> &lt;sc...
javascript jquery
[3, 5]
5,580,655
5,580,656
set first check box checked and others disable from checkbox list in clientside
<p>I have a Checkbox list. On the load of a page i want my first checkbox true and others are disable.I need to check only one checkbox from checkbox list and others should be disable.If use unchecked the checked checkbox then others should be enable means allowed only one check box checked.</p> <p>My javascript code ...
javascript jquery
[3, 5]
5,380,738
5,380,739
How to add touch events to a class?.. prefereably through jquery
<p>How can you do something like the following?</p> <pre><code>$('.myDivs').ontouchstart(function(){ alert('touch'); }) </code></pre> <p>the only way I appear to be able to implement touch events is using javascript.. like so </p> <pre><code>document.getElementById('singleDiv').addEventListener("touchstart",touchHan...
javascript jquery
[3, 5]
272,391
272,392
hide tr that has th and colspan
<p>I'm trying to alter the background of "table tr" if it has a "colpan" and if it contains "th" but this below wont work.</p> <pre><code>$("#mytable tr").contains('th').attr('colspan').hide(); </code></pre> <p>Can you help?'</p>
javascript jquery
[3, 5]
5,226,870
5,226,871
How to Create Generic Get Custom WebConfig Section Extension Method
<p>i have the following Code to get a Custom Webconfig Section</p> <pre><code>Configuration config = WebConfigurationManager.OpenWebConfiguration (System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath + "/ExternalConfig"); Sample1Section myHandler = (Sample1Section)config.GetSection("settin...
c# asp.net
[0, 9]
211,651
211,652
compare sql date to javascript date
<p>Is there an easy way to compare a sql dateTime to a javascript date time so that the two can be compared easily?</p> <p>Are there built in javascript functions as I cant edit the sql</p>
javascript jquery
[3, 5]
2,686,463
2,686,464
Why is this displaying Hello World when I run it?
<pre><code>package com.FlickrView; import android.app.Activity; import android.os.Bundle; import java.net.*; import java.io.*; public class FlickrView extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(s...
java android
[1, 4]
2,453,909
2,453,910
Disable wifi in source code
<p>In android source code 'WifiEnabler.java' class I want to disable wifi when battery voltage is below 3.4. I am getting battery voltage but i am unable to disable toggle button. How to do this? </p> <p>Thanks</p>
java android
[1, 4]
1,635,380
1,635,381
Iterating through array using jquery returns only last object
<p>I am new to jquery and i think this is just a basic problem. `</p> <pre><code>&lt;input type="text" name="text1" value=""&gt;&lt;/input&gt; &lt;input type="text" name="text2" value=""&gt;&lt;/input&gt; &lt;input type="text" name="text3" value=""&gt;&lt;/input&gt; &lt;input type="text" name="text4" value=""&gt;&l...
javascript jquery
[3, 5]
5,839,206
5,839,207
asp.net c# google api Documents - 401 Unauthorized
<p>I have this code</p> <pre><code>DocumentsService vService = new DocumentsService("test"); vService.setUserCredentials("vUserName", "vPassword"); RequestSettings vSettings = new RequestSettings("test"); DocumentsRequest vDocReq = new DocumentsRequest(vSettings); Feed&lt;Document&gt; vFeed = vDocReq.GetEverything(); ...
c# asp.net
[0, 9]
2,191,130
2,191,131
C# run code every 30 days
<p>If I were to run some code, perhaps send an email, every 30 days to users of my site, how would that be done?</p>
c# asp.net
[0, 9]
1,101,726
1,101,727
Why does my function get called when it's not supposed to?
<p>I have 2 java script functions. If the first one returns true, the 2nd one is not to be executed. If the first one returns false, only then the second function to be executed. So I am trying to achieve this with the following code:</p> <pre><code> &lt;script type="text/javascript" language="javascript"&gt; ...
javascript jquery
[3, 5]
2,568,413
2,568,414
auto collapse html content
<p><br/> Perhaps you can't help me. I want to auto create <strong>jquerymobile collapses</strong> (<a href="http://jquerymobile.com/test/docs/content/content-collapsible.html" rel="nofollow">http://jquerymobile.com/test/docs/content/content-collapsible.html</a>) with javascript a content like this :</p> <pre><code>&lt...
javascript jquery
[3, 5]
3,349,224
3,349,225
How do I encrypt multiple passwords using one key?
<p>I want to encrypt multiple passwords using one key using Java. I can generate passwords using a key generator but it generates different key every time. I want only one key to do encryption. How do I encrypt multiple passwords using one key? And the other issue is each time i run my application i always use the same...
java android
[1, 4]
5,005,719
5,005,720
How can I autoplay media in Safari on an iPhone?
<p>I'm trying to get an video file to autoplay in Safari on an iPhone. But this javascript not working on Safari on an iPhone, but on Android it's fine.</p> <pre><code> window.onload = function () { var pElement = document.getElementById("myVideo"); ...
javascript jquery
[3, 5]
3,409,479
3,409,480
Fetch posts from db-table, do math and THEN sort <- how?
<p>For fetching some db-posts (int) and then multiplying with user input-values I use php. </p> <pre><code>$result = mysql_query("SELECT * FROM table")or die("Error" . mysql_error()); while($row = mysql_fetch_array($result)){ $value1=$row['value1']; $value2=$row['value2']; $value3=$row['val...
php javascript
[2, 3]
661,539
661,540
Getting images and description of a webpage using its link in ASP.Net
<p>hi i am making a website in asp.net which is like social netwroking. users shares their updates and views. i am able to complete all modules but now stucked at a requirement.</p> <p>i want to get images (not screenshot of page) and description from webpage link, when entered by user into the update status bar. just...
c# asp.net
[0, 9]
253,971
253,972
c#.net website - How to let user choose a folder?
<p>I basically want to open a dialog box on the click of a button..The user will choose a destination folder and then a text file will be created in the chosen Folder using the path in the dialogue box.</p> <p>I have used asp.net's FileUpload to upload files but I don't know how to chose a folder using it. Or there's...
c# asp.net
[0, 9]
211,916
211,917
Jquery - add image at specific co-ordinates
<p>Is it possible to add a image at a clicked position within a div using jquery?</p> <p>I need to develop a small game basically involves clicking the screen to guess a position - a image is placed wherever the user clicks...</p> <p>I know how to get the X &amp; Y coordinates of the place that was clicked - but have...
javascript jquery
[3, 5]
2,575,389
2,575,390
Are inbuilt layouts in Android Styleable?
<p>Is possible to apply styling to Android inbuilt layouts such as R.layout.simple_list_item_multiple_choice?</p>
java android
[1, 4]
1,828,469
1,828,470
To call C# Function from Javascript in Web apps
<p>Hi i wanted to call a C# function through javascript code.</p> <p>For Eg: i have C# function which is in aspx.cs page</p> <pre><code>public void setValue() { lblMsg.Text = "hello"; .... ..... } </code></pre> <p>from javascript i need to call this function. </p>
c# javascript asp.net
[0, 3, 9]
2,997,919
2,997,920
How to disable cookie triggered popup on first page visitor lands on?
<p>I have a cookie set with expiry of 3 mins, this will allow a user to navigate through the site for 3 mins before seeing an advert. They will see the ad if cookie is not present on next page they visit and the cookie will be reset once the ad is closed. </p> <p>However a consequence of this is that as soon as the we...
php javascript jquery
[2, 3, 5]
4,488,549
4,488,550
Mixing variables with text in Javascript
<p>Im trying (unsuccessfully) to prepend the following content to a div:</p> <pre><code>var entry = $('textarea').val(); var formated = '&lt;div class="newsfeed_entry"&gt;&lt;p&gt;' . entry . '&lt;/p&gt;&lt;/div&gt;'; $('#entry_container').prepend(formated); </code></pre> <p>I think the reason it isn't work ...
javascript jquery
[3, 5]
4,218,546
4,218,547
How to make a dynamic preview link?
<p>I need to show a preview link in a pop up. Basically it is a link that, on the mouse over, shows more information of the contact.</p> <p>Like when we put the mouse over the avatar of an user who posted a comment.</p> <p>How can I do this in asp.net?</p>
javascript asp.net
[3, 9]
4,488,305
4,488,306
Splitting string with multiple delimiters into a hash table in JavaScript
<p>I'm trying to figure out how to split a string using regex while having the results placed into a hash table.</p> <p>Example:</p> <pre><code>var x = "Name: John Doe Age: 30 Birth Date: 12/12/1981"; var arr = x.split(/Name:|Age:|Birth Date:/); </code></pre> <p>However while I can spit a string the problem is I ca...
javascript jquery
[3, 5]
1,795,411
1,795,412
Sorting multiple html tables logically related to each other
<p>I wish to sort 3 separate tables that are logically related to each other but kept separate in design for some purpose. I am using sorttable.js for sorting. Can someone guide me on this. Thanks.</p>
javascript asp.net
[3, 9]
2,950,747
2,950,748
Looking for a hand on my jQuery and JS script
<p>What I have is in my fiddle here <a href="http://jsfiddle.net/mPuj9/4/" rel="nofollow">http://jsfiddle.net/mPuj9/4/</a> </p> <p>What I tried to do is to disable the button until all of <code>textbox</code>es are filled and the <code>checkbox</code> is checked. My current code is not good, it let you submit in some ...
javascript jquery
[3, 5]
2,436,781
2,436,782
python and javascript with html generation
<p>On a website that I manage, we have JSON files which contain page data. We then create the page using this JSON.</p> <p>The data looks roughly like this (except a lot more complex).</p> <pre><code>[ {"title": "Hello world", "content": "World, hello to you!"}, {"title": "Hello world Part II", "content": "The se...
javascript python
[3, 7]
2,292,141
2,292,142
Searching multiple words in many blocks of data
<p>I have to search about 100 words in blocks of data (20000 blocks approximately) and each block consists of about 20 words. The blocks should be returned in the decreasing order of the number of matches. The brute force technique is very cumbersome because you have to search for all the 100 words one by one and then ...
c++ python
[6, 7]
782,927
782,928
Java split string from array
<p>I have a string array that contains some information.</p> <p>Example: </p> <pre><code> String [] testStringArray; testStringArray[0]= Jim,35 Alex,45 Mark,21 testStringArray[1]= Ana,18 Megan,44 </code></pre> <p>This is exactly how the information i...
java android
[1, 4]
4,872,346
4,872,347
associate an event to the spinner
<p>I've created a spinner for my application. This is the code in the main.xml</p> <pre><code> &lt;Spinner android:id="@+id/sMenu" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:prompt="@string/base" /&gt; </code></pre> <p>and in...
java android
[1, 4]
2,067,963
2,067,964
Why is object/associative array values not setting when I use $item.data("something").x
<p>Why is it when I do something like </p> <p><a href="http://jsfiddle.net/sUhn9/" rel="nofollow">http://jsfiddle.net/sUhn9/</a></p> <p><em>Added relevant HTML</em></p> <pre><code>&lt;div id="container" data-physics='{x: 10, y: 5}'&gt;Hello&lt;/div&gt; </code></pre> <p>JavaScript:</p> <pre><code>$(function() { ...
javascript jquery
[3, 5]
2,051,799
2,051,800
How to pause but not freeze Android execution?
<p>I'm trying to set the background color of an ImageView over a specified amount of time (pauses in between each switch of color) based on a certain criteria (such as string = "a" or "b"). My problem is I can't seem to make the entire application wait for one change until it moves on to the next, so to the user it jus...
java android
[1, 4]
617,889
617,890
Trying to find a (jquery?) popup date/time selector with callback to php
<p>I have a large table with input boxes.</p> <p>Three columns of these are dates/times (in unix format).</p> <p>Im trying to find an easy to implement way of allowing the user to click on this box, being able to (graphically) select a date/time, and when done, sending the selection to a php script to make the physic...
php javascript jquery
[2, 3, 5]
4,130,194
4,130,195
Transversing a JQuery object?
<p>I'm doing sorting of a list of elements, using:</p> <pre><code>jQuery.fn.sort = function() { return this.pushStack( [].sort.apply( this, arguments ), []); }; $("ol li").sort("sortFunction").appendTo("ol"); </code></pre> <p>The problem is in the sortFunction.</p> <pre><code>function sortFunction($a, $b) { ...
javascript jquery
[3, 5]
433,040
433,041
Python to Javascript
<pre><code>&gt;&gt;&gt; def clockwise(r): ... return list(r[0]) + clockwise(list(reversed(zip(*r[1:])))) if r else [] ... &gt;&gt;&gt; a = [ ... [ 1, 2, 3], ... [ 5, 6, 7], ... [ 9, 10, 11]] &gt;&gt;&gt; clockwise(a) [1, 2, 3, 7, 11, 10, 9, 5, 6] </code></pre> <p>I'm trying to change the function clo...
javascript python
[3, 7]
366,551
366,552
Jquery: Add class unless there is a child of certain class
<p>I want to do an addclass, but only if it doesn't have a child of a certain class.</p> <pre><code>$selector.addClass('addthisclass'); </code></pre> <p>So I want:</p> <pre><code>&lt;div class="addthisclass"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt; </code></pre> <p>And nothing on here.</p> <pre><code>&lt;div&gt;&l...
javascript jquery
[3, 5]
4,481,158
4,481,159
What's the Java's float.floatToRawIntBits equivalent method in C#?
<p>What's the Java's float.floatToRawIntBits method implementation in C# ?</p>
c# java
[0, 1]
4,182,718
4,182,719
How can we make Tab layout auto hide?
<p>generally we can hide particular tabs at runtime. but I need to make make whole tab layout hideable. when I click the screen once it appears and other time it will disappear. Can this possible. I have seen this in motorola Droid X phone's camera application. please Help me. thanks in advance</p>
java android
[1, 4]
4,667,794
4,667,795
Dropdownlist filling within Gridview (updated)
<p>I have a DropDownList within a Gridview (<em>a web application</em>), the Dropdownlist' data comes from database, as :</p> <pre><code> private void LoadClassType(DropDownList dropDownList) { businesslayer bs = new businesslayer(); // business layer object dalDataset ds = new dalDatas...
c# javascript asp.net
[0, 3, 9]
5,842,311
5,842,312
Is it possible to compile C# without structs and with limited generics into JVM?
<p>I like C#, but I have to write Java and I really dislike Java as a language. But what is the difference? If we omit structs and interop related stuff, then the resulting C# code should be easily compilable into JVM, isn't it?</p> <p>So, my question is this - is there a tool that:</p> <ol> <li>Can compile C# into J...
c# java
[0, 1]
5,990,757
5,990,758
Issue parsing Reddit XML with jQuery
<p>I'm trying to use the reddit XML feed of a subreddit, but I'm having issues parsing it with JavaScript. </p> <p>I've got this code</p> <pre><code>function parseXml(xml) { var xmlResult = ""; $(xml).find("item").each(function() { xmlResult = xmlResult + ($(this).find("title").text()) + "&lt;br /&gt;...
javascript jquery
[3, 5]
3,015,038
3,015,039
jQuery cant get value from textbox
<p>I am trying to get a value from a textbox so that that I can rotate an Image using jQuery</p> <pre><code>&lt;script src="Scripts/jQueryRotate.2.2.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { var angle = $("input:TextBox1").val(); $("#need...
javascript jquery asp.net
[3, 5, 9]
91,849
91,850
JavaScript methods, calling method without parentheses
<p>Hello there I have a question with the that I need some help with to increase my knowledge and understanding of JavaScript.</p> <p>Within my init method please look at this particular line with the .on method where I am saying when button is clicked we’re going to refer to the contactForm object by using the this k...
javascript jquery
[3, 5]
4,380,649
4,380,650
Do I have to use an animation to change an Android activity's view?
<p>Everywhere I look online, it seems that I must use an animation to change views dynamically (like slide in, out). Do I have to do this, or can I simple just setContentView() on each new activity?</p> <p>Thanks!</p>
java android
[1, 4]
4,873,125
4,873,126
JQuery - getting mixed up with variable scope in parameter functions
<p><a href="http://jsfiddle.net/c7JFH/" rel="nofollow">JSFiddle - SSCCE</a></p> <pre><code>function restoreTitle() { for (var i = 0; i &lt; 4; i++) { clicks[i] = false; letter = $('#title-wrapper p[index="' + i + '"]'); letter.css('cursor', "pointer"); } animateTitle(); } function ...
javascript jquery
[3, 5]
3,640,376
3,640,377
creating an action table and accessing it
<p>I am a beginner in android and have only limited knowledge in java..!! Anyone plzz tell me how i can create action table in android..like one showed in the picture..but my situation is different..and then how can i call actions based on the table created.. plzz help me.. Thanks in Advance</p> <p>for image pl...
java android
[1, 4]
2,180,607
2,180,608
How to store html in hidden field using jquery?
<p>How to store string with HTML tags in hidden field using jquery? I am using the below code. But its not working.</p> <pre><code>var terms = $('#TermsAndCondition').val(); alert($('#hdnTerms').val(terms)); </code></pre> <p>Here TermsAndCondition is TextArea and hdnTerms is hidden field. In alert it returns the ...
javascript jquery
[3, 5]
321,767
321,768
Convert Dataset element to string array in c#
<p>I am trying to convert the dataset item into the string and save into the array. But it gives me syntax error. Please help me out. This in VS 2005 and C#</p> <p>Thanks in advance!!</p> <pre><code>string strdetailID[] = new string[4]; for(int i = 0; i &lt; x ; i++) { strdetailID[i] = dsImages.Tables[0].Rows[i...
c# asp.net
[0, 9]
3,136,681
3,136,682
Parent Iframe URL Query string
<p>I am having a iframe withing facebook fanpage , the inner iframe is at my server</p> <p>a link opens the same FanPage again in pop up using <code>window.open</code> javascript attaching a query string to it</p> <pre><code>window.open(path,'mywindow','scrollbars=yes,toolbar=no,menubar=no,status=no,width=805,height=...
php javascript
[2, 3]
2,179,306
2,179,307
How to create columnspan in gridview?
<p>I have a grid like below. Here I am getting problem with "<strong>Hours Last 52 Weeks</strong>". Here I have to use this text over the grid headers like the below screen. How can I use this? Highlighted in "Yellow" is the actual text.</p> <p>Please help me on this. Thanks in advance.</p> <p><img src="http://i700.p...
c# asp.net
[0, 9]
3,128,976
3,128,977
Using Javascript or JQuery, how can i get the RGB color where ever the mouse is moving specially in IMG or DIV elements
<p>I have a <code>&lt;img src="/meAndMy/face.jpg" /&gt;</code>. I am trying to get the RGB colors when ever or where ever i move my mouse cursor.</p> <p>How can i do this with jQuery or plain Javascript? e.g: <a href="http://www.script-tutorials.com/demos/158/index.html" rel="nofollow">http://www.script-tutorials.com/...
javascript jquery
[3, 5]
1,216,662
1,216,663
parsing only the Year in a DateFormat Java
<p>I get a returned parsed JSON result with string values in the form of dates like "27-11-2012" which i parse to a date Object. my code for this is:</p> <pre><code>public Date stringToDateReport(String s){ //Log.d(TAG, "StringToDateReport here is " + s); DateFormat format; Date date = null;...
java android
[1, 4]
1,691,456
1,691,457
redirect by clicking submit button
<p>I am writing a code in which I need to redirect to the another page to another link by clicking the submit button But there is something wrong Because I am not redirecting to that page.</p> <pre><code>&lt;input id="submit1" type="submit" value="submit" onclick="location.href='hi.php'"&gt; </code></pre>
php javascript
[2, 3]
2,563,933
2,563,934
Flexscroll not working in show/hide div
<pre><code>&lt;div class="right_tab_content_part1_s"&gt; &lt;a href="javascript:void(0)" class="active" id="classtabnew1" onclick="showHideDivforTabbingBeforeaward(1)"&gt;View Provider&lt;/a&gt; &lt;a href="javascript:void(0)" class="" id="classtabnew2" onclick="showHideDivforTabbingBeforeaward(2)"&gt;V...
javascript jquery
[3, 5]
2,749,236
2,749,237
How to implement three tier architecture in java and asp.net?
<p>I want to know that how can I implement three tier architecture in java and ASP.NET and what are the benefits of implementing it?</p>
java asp.net
[1, 9]
5,227,741
5,227,742
How to handle progress dialog correctly in android?
<p>I am new in android and java. I am in a trouble in implementing progress dialog correctly.</p> <p>I have a code like this</p> <pre><code> ProgressDialog dialog= new ProgressDialog(Main.this); dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); dialog.setMax(100); dialog.show(); MY METHOD WHICH ...
java android
[1, 4]
3,232,841
3,232,842
Error in for loop in datatable
<p>I've got an error in a datatable , that I want to present it in the aspx code. (%>)</p> <p>it throw me an exception : </p> <blockquote> <p>An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code approp...
c# asp.net
[0, 9]
5,322,870
5,322,871
How to call a function when a function execution is completed? - Javascript
<p>I am working with a user control that has set of javascript functions that are called when an action is performed. This user control is used in a lot of places in the application.</p> <p>When one of the inbuilt JS function completes execution, I need to fire a custom JS function on my page. </p> <p>Is there a way ...
javascript jquery asp.net
[3, 5, 9]
2,171,604
2,171,605
What number does 8e3 evaluate to?
<p>I encountered this code today:</p> <pre><code>b = setTimeout(function () { // do some javascript stuff here }, 8e3) </code></pre> <p>The timeout is set to <code>8e3</code>. What time does this equate to in milliseconds, and why would anyone choose this strange notation? The code appears to be fully functiona...
javascript jquery
[3, 5]
591,796
591,797
Monitor services in android
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/600207/android-check-if-a-service-is-running">android: check if a service is running</a> </p> </blockquote> <p>I have one services to perform my action, it will run on background indefinite time. I want to monit...
java android
[1, 4]
5,708,719
5,708,720
More efficient way to pre-load images
<p>What is a better way to pre-load images:</p> <pre><code>$.each(['{{ MEDIA_URL }}jwplayer/jwplayer.js', '{{ MEDIA_URL }}jwplayer/jwplayer.js.jgz', '{{ MEDIA_URL }}jwplayer/player.swf'], function() { $('&lt;img/&gt;')[0].src = this; </code></pre> <p>or: </p> <pre><code>var preloadImages = ['{{ ME...
javascript jquery
[3, 5]
1,213,854
1,213,855
jquery inquiry: passing message without a new pageload
<p>Please forgive the awkwardness of this question, I honestly don't know how to phrase a better query...</p> <p>The situation:</p> <p>I have a basic contact form within an xhtml/php page that I'm in the process of upgrading. I recently added a new unrelated jquery plugin on this page, so I would like to use the jqu...
php jquery
[2, 5]
20,010
20,011
jQuery - script tags in the HTML are parsed out by jQuery and not executed
<p>I have an HTML page like so:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div id='something'&gt; ... &lt;script&gt; var x = 'hello world'; &lt;/script&gt; ... &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>On another page, I am doing this:</p> <pre><code>$.ajax({ url: 'example.h...
javascript jquery
[3, 5]
2,838,558
2,838,559
android - fc without an obvious reason
<p>Can someone tell me what is wrong with this code. On my 3 different devices it works totally fine but a lot of my app users are reporting fc when this activity starts</p> <p>Logcat from every one of then is saying NullPointerException in onCreate</p> <p>Code: <a href="http://pastebin.com/E3WyeYdN" rel="nofollow">p...
java android
[1, 4]
1,099,502
1,099,503
File, Save As for iPhone and Android
<p>I have an application written in HTML5 that uses localstorage. The user should be able to play this game in airplane mode, but right now it goes to my website to load the page.</p> <p>Q: How do I save a web page onto a mobile device so that it doesn't require going to the Internet to dl it first?</p> <p>Is the an...
android iphone
[4, 8]
4,236,686
4,236,687
Working with the same variable across the jQuery .ready() defined in multiple scripts
<p>Say that I have a HTML that links to two scripts:</p> <pre><code>... &lt;script type="text/javascript" src="general.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="specific.js"&gt;&lt;/script&gt; ... </code></pre> <p>Each of the two scripts has it's own jQuery's <code>.ready()</code> defined.</p> <p...
javascript jquery
[3, 5]
2,149,026
2,149,027
Resetting a while loop
<p>I have found a confusing thing in a php script I am writing to generate some javascript. Here it is below, slightly simplified.</p> <p>The second while loop won't run unless I comment out the entire first while loop. Can anyone explain why? Many thanks.</p> <pre><code>&lt;?php $listid = 2; //DEMO ONLY $result1 = m...
php javascript
[2, 3]
2,623,915
2,623,916
Getting the value from usercontrol in javascript on button click
<p>I have this following scenario. I have a usercontrol in my page which has a radio button. This control is placed in a page, on click of a button in the page I need to know if the radio button is selected. This is a client event click event of the button as I have to show a confirmation message box i.e. if user click...
javascript asp.net
[3, 9]
744,193
744,194
Mobile software development ( iphone/android/ java)
<p>I have an interview for Mobile software developer ( java/ J2ME ) at <strong>Sybase</strong>. Can anyone help me out as to what questions can I expect? The interview will be of 30 minutes. In such a short span what type of questions can be asked. </p>
java iphone android
[1, 8, 4]
2,051,461
2,051,462
What is the non-jQuery equivalent of '$(document).ready()'?
<p>What is the non-jQuery equivalent of <code>$(document).ready()</code>?</p>
javascript jquery
[3, 5]
2,913,686
2,913,687
How do i read javascript array in c sharp
<p>I have created a function in javascript like a class</p> <pre><code> function myclass { this.Id=null; this.Name=null; } </code></pre> <p>from other function i am returning a list(Array in javascript) of myclass </p> <pre><code>function ReturnList { var lst=[]; var objmyclass=new myclass(); objmyclass.Id...
c# javascript asp.net
[0, 3, 9]
3,142,081
3,142,082
jQuery .index() strangeness
<p>I'm by no means a jQuery (or JavaScript) expert so forgive me if I'm misunderstanding or overlooking something. I have the following HTML:</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div class="ted"&gt;Ted&lt;/div&gt; &lt;div class="ted"&gt;Ted&lt;/div&gt; &lt;div class="tim"&gt;Tim&lt;...
javascript jquery
[3, 5]
1,633,190
1,633,191
How do I make the $(window).height() doesn't go below what it started at?
<p>I am trying to console.log the window height with this code here:</p> <pre><code>var $win = $(window); $win.on('resize', update); function update () { console.log($win.height()); } </code></pre> <p>It sort of works, but it wont go below the height of my largest element. How can I make it so it will?</p>
javascript jquery
[3, 5]
1,501,702
1,501,703
Extend Session Time On Button Click Event Server Side
<p>Is there a way to extend the session of a user the moment they click a button that fires up code behind logic. Example I need to 100 people to a gridview and each time I add a person I want the session to be reset to 30 minutes.</p> <p>I need to set the timeout on a certain page not the whole site. When a user make...
c# asp.net
[0, 9]
1,986,250
1,986,251
Using a get variable while staying on the same page?
<p>I was wondering if there is a way to use a GET variable while staying on the same page. </p> <p>I have some php/mysql script that I would like to execute if a particular link is clicked, using a GET variable. However, once the link is clicked, I don't want anything on the page to change, I just want to the script t...
php jquery
[2, 5]
1,560,024
1,560,025
How to create Facebook chat like sound?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/879152/how-do-i-make-javascript-beep">How do I make Javascript beep?</a> </p> </blockquote> <p>I'm using PHP for my new project. My client needs a beep sound when someone enters data in a mysql table.</p> <p>Is...
php javascript
[2, 3]