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
4,729,966
4,729,967
Map the PHP date format into Javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/847185/convert-a-unix-timestamp-to-time-in-javascript">Convert a Unix timestamp to time in Javascript</a> </p> </blockquote> <p>I have been storing the user's date format preference in the database as a string o...
php javascript
[2, 3]
4,092,101
4,092,102
Reset a Checkbox Field Clientside
<p>I have a checkbox control and a reset button on a web page. I want the chekbox to be unchecked whenever the rest button is pressed. This should be a clientside process.</p> <p>How can i achieve it? can it be done by using document.getelementbyID()?</p>
javascript asp.net
[3, 9]
458,029
458,030
Uploadify v3.1 passing POST Data
<p>Iam getting Crazy with JQuery Uploadify V3.1.</p> <pre><code>// setup fileuploader $("#file_upload").uploadify({ 'swf': 'flash/uploadify.swf', 'uploader' : 'upload/do-upload', 'debug' : false, 'buttonText': 'Files auswählen', 'multi': true, 'method': 'POST', 'auto': false, 'width': 2...
javascript jquery
[3, 5]
2,965,313
2,965,314
Ajax Accordian control not working properly in IE 8
<p>We have used Ajax Accordian control in our ASP.Net application. It is working fine in IE 6 and IE 7. But while i executing it in IE 8 the accordion not properly work. Can anyone help me How can i solve that problem. Thanx in advance...</p>
c# asp.net
[0, 9]
1,171,215
1,171,216
jquery click tracking is acting a little strage
<p>On some links on my HTML page I have a special CSS class, that when clicked, I make a ajax call to a click.aspx page and track the click.</p> <pre><code>&lt;a href="..." class="click" id="blah-1"&gt;blah-1&lt;/a&gt; $(".click").bind("click", function() { $.get("/click.aspx?&amp;source=" + $(this).attr(...
c# asp.net javascript jquery
[0, 9, 3, 5]
3,600,386
3,600,387
How can create a dictionary in android?
<p>Am developing A Malayalam-> English dictionary app in android .how can i do this stuff? can anyone please help me.which is the best method to create a dictionary?..all answers are highly appreciative..</p>
java android
[1, 4]
3,159,054
3,159,055
"List.Remove" in C# does not remove item?
<p>Hello how can i remove item from generic list here is my code im trying to do it right but i dont know where i make mistake;/</p> <pre><code>Users us_end = new Users(); foreach (var VARIABLE in ((List&lt;Users&gt;)Application["Users_On"])) { if(VARIABLE.Id == (int)Session["Current_Id"]) { us_end.Nam...
c# asp.net
[0, 9]
541,446
541,447
MailTo: Asp.net
<p>I have a asp label that I need to be able to change according to the code behind. How can I do this? </p> <p>ASPX: (The first part works correctly only for "TestA@abc.com" and the second part dynamically changes the label (EmailLabel) according to the "if" statement in the code behind. How can I integrate these...
c# asp.net
[0, 9]
4,019,692
4,019,693
getting value of second input located inside the form. javascript jquery
<p>I have this html form</p> <pre><code>echo "&lt;form name='delete_article_form".$row['id']."' action='sources/public/article_processor.php' method='POST' &gt;"; echo "&lt;input name='processor_switcher' id='processor_switcher' type='hidden' value='delete_article'&gt;&lt;input name='article_id' id='article_id' type='...
javascript jquery
[3, 5]
3,852,724
3,852,725
How to append data from .load() function to div using javascript?
<p>Sorry if my question confusing, currently i got this working :</p> <pre><code>success: function(json) { $('.msgWrapper').load('http://localhost:88/TicketSystem/support/ajaxmsg', {date: json.date, msg: json.msg}).fadeIn("slow"); } </code></pre> <p>But this only <strong>replace</strong> my div's ...
javascript jquery
[3, 5]
5,859,180
5,859,181
Global variable not working
<p>I've been beating my head against the wall with this. Can someone please tell me what I'm doing wrong?</p> <pre><code>var foo = 100; function loadData() { // this pops up a window that says it's 100 alert(foo); $.getJSON(myvars.constants.ajaxpath + "getsettings", function(data) { foo = 200; ...
javascript jquery
[3, 5]
2,151,534
2,151,535
How a function in window A got triggered when window B is close?
<p>Could you please give me an example how a function X got triggered in window A when window B is closed. For example, window A is launched first, and a button in window A is pressed, then window B is open and does something...then close window B. As soon as window B is closed, the focus shifts to window A. At this...
javascript jquery
[3, 5]
4,405,739
4,405,740
Running a shell utility from my app causes it to use 100% CPU
<p>This is sort of an odd one:</p> <p>I am trying to run a terminal command from my android app. The command launches a small linux utility that runs in the background. When I launch it from a terminal emulator it works fine, with no unusual CPU activity, but when I run the same command from my app, the utility that i...
java android
[1, 4]
4,131,257
4,131,258
Obtain data from dynamically incremented IDs in JQuery
<p>I have a quick question about JQuery. I have dynamically generated paragraphs with id's that are incremented. I would like to take information from that page and bring it to my main page. Unfortunately I am unable to read the dynamically generated paragraph IDs to get the values. I am trying this: </p> <pre><code>v...
asp.net jquery
[9, 5]
322,959
322,960
How to apply the fore color and bold in message text using c#..net
<p>i am displaying the one confirm box after saving the values like this</p> <pre><code>showalert("Quote has been saved successfully. Your Submission Number is:" + SaveValue ); </code></pre> <p>now i have display the savevalue bold and underline and some fore color, how to apply(using any format and html styles also)...
c# asp.net
[0, 9]
3,805,742
3,805,743
Restrict number of decimals to be displayed from DB
<p>I am fetching some values from my DB. The columns are of float type and are being displaed in DataList in the following manner. </p> <pre><code>&lt;ItemTemplate&gt; &lt;tr&gt; &lt;td style="width:200px;text-align:left"&gt; Item1: &lt;%#Eval("Item1") %&gt; | Item2: &lt;%#Eval("Item2") %&gt;&lt;/td&gt; ...
c# asp.net
[0, 9]
1,884,880
1,884,881
Jquery-load event not firing asp.net button click event
<p>i Have tow Web page Home.aspx And login.aspx ---</p> <p><strong>login.aspx SouceCode</strong></p> <pre><code>&lt;div id="Lbox"&gt; &lt;asp:Label ID="Label1" runat="server" Text="User Id" CssClass="lable"&gt;&lt;/asp:Label&gt; &lt;asp:TextBox ID="Txt_userId" runat="server"&gt;&lt;/asp:TextBox&gt; &l...
jquery asp.net
[5, 9]
2,981,907
2,981,908
Moving a box in JavaScript again -- the program seems to be detecting two key presses even though I'm only pressing one
<p>I'm trying to build on the top answer <a href="http://stackoverflow.com/questions/4950575/how-to-move-a-div-with-arrow-keys">here</a> by adding "gravity" such that the box always moves down unless a key is pressed. </p> <p>I've been fiddling for a couple of hours now and I can't figure it out. In the previous code ...
javascript jquery
[3, 5]
5,956,205
5,956,206
jquery / javascript: Uncaught TypeError?
<p>hey guys, i wrote a little custom animated scroll function...</p> <pre><code>function scroll(selector, animate, viewOffset) { pageOffset = selector.offset(); scrollPos = pageOffset.top - viewOffset; if (animate) { $('html, body').animate({scrollTop : scrollPos + 'px'}, { duration:...
javascript jquery
[3, 5]
4,362,088
4,362,089
jquery print iterators
<p>I have the below code that iterates through a number of text fields. I am trying to write an if statement that will print if the jQuery is <code>jQuery('.textTextArea.print')</code> and not <code>jQuery('.txtTextArea.print').each</code>. I am new to jQuery but have experience writing if statements in rails but unsur...
javascript jquery
[3, 5]
5,232,578
5,232,579
Java Package names and conflicts
<p>a simple question but Ive realised im not sure of the answer for this one....</p> <p>If I am creating an android application with a library package named</p> <pre><code>com.example.one </code></pre> <p>and then i create another app and include another package with the name</p> <pre><code>com.example.one </code><...
java android
[1, 4]
2,824,479
2,824,480
JQuery to collapse table?
<p>I'm running the MyBB forum software and was able to load jQuery without breaking the functionality. The board itself already has a collapse function but I would like to do it in jquery, or well add a nice jquery effect to it, more smoother.</p> <p><a href="http://craftedbyfrank.com" rel="nofollow">http://craftedbyf...
javascript jquery
[3, 5]
4,544,264
4,544,265
javascript not working on iPhone
<p>I have the following javascript in my index file but its not showing for iPhone</p> <pre><code>onComplete: function() { var video_id = $('#video_id').val(); if(video_id == 1){ $("#TB_window").remove(); $("body").append("&lt;div id='TB_window'&gt;&lt;/div&gt;"); tb_show("","#TB_inline?height=500&amp...
javascript iphone
[3, 8]
5,508,545
5,508,546
moving aspx eval to code behind
<p>In my aspx file, I have some code that looks like this:</p> <pre><code>&lt;script type="text/javascript"&gt; var MyVar = '&lt;% =MyFunction() %&gt;'; &lt;/script&gt; </code></pre> <p>All this works fine: MyVar actually holds a json string that later gets evaluated on the client. The problem is that this code was...
c# asp.net
[0, 9]
2,261,263
2,261,264
can stop zooming my page in desktop browser
<p>how can i stop zooming my web page in desktop browser. or, prevent minimum &amp; maximum zooming. that the page will not zoom in or out after the width &amp; height. Thanks. </p>
php javascript
[2, 3]
388,827
388,828
use javascript variable into python Block
<p>I want to use JavaScript variable into python Block.</p> <pre><code>&lt;script&gt; $(document).ready(function() { $("#WO_cpp_id").change(function() { id = this.selectedIndex; ajax('{{=URL(r=request,f='get_CIs',vars={'CPP_Id':'#here I want to use id variable')}}', ['WO_cpp_id'], 'WO_ci_id'); }) .change(); }...
javascript jquery python
[3, 5, 7]
2,775,451
2,775,452
using jquery to access event values?
<p>When using for events for internet explorer we are currently using statements like this to access or change values:</p> <pre><code>window.event.cancelBubble = true; clickX = window.event.screenX; </code></pre> <p>I was wondering how to do this cross browser or using JQuery?</p>
javascript jquery
[3, 5]
3,933,801
3,933,802
How to Execute Command/function in Asp.net Automatically To send Email / Sms Without user logged In
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7645302/doing-scheduled-background-work-in-asp-net">doing scheduled background work in asp.net</a> </p> </blockquote> <p>I want To Send Email/SMS To my user Automatically in Asp.net C#, even they are not logged ...
c# asp.net
[0, 9]
4,477,580
4,477,581
Load Image and Fade In, but in sequential way
<p>I'm trying to load my images and fade in. Its working. But lets suppose that I have 4 images. Right now, my script its working by loading the last image, not the first. How can I make my js load the first image, and just start loading the second after the first has been loaded?</p> <p>Here's my code:</p> <pre><cod...
javascript jquery
[3, 5]
5,523,619
5,523,620
Aspnet Compiler is compiling my aspx files
<p>I'm using the aspnet_compiler compiler program as part of the automated build procedure for a website. We have a website project and the build step generates the assembily for the project for the release build. However it generates these dlls in such a way that the aspx pages reference those at the moment randomly n...
c# asp.net
[0, 9]
2,335,108
2,335,109
how we can use url rewrite to generate and get url like google provide cutome website url
<p>I need to make dynamic website like google provide services of develop and design on line website, I have completed all things of database and design, but how could i get the url at loading time of the web application if page not found then 404 error acre</p> <p>in google</p> <p>the website url would be www.websit...
c# asp.net
[0, 9]
4,750,013
4,750,014
RenderControl in HtmlTextWriter - InvalidOperationException
<p>I would like to render a Control object which is just created on the fly when the user send a postback request. To do so, I use the code below:</p> <pre><code>StringBuilder sb = new StringBuilder(); HtmlTextWriter ht = new HtmlTextWriter(new StringWriter(sb)); Rating r = new Rating("r", 5, 3, No, Big); r.RenderCont...
c# asp.net
[0, 9]
4,473,637
4,473,638
Jquery Keypress is not working for my input box
<pre><code>$("#epFilter").keypress(function(){ query = $("#epFilter").val(); alert(query); }); </code></pre> <p>In this code, whenever I type in my text box, it always alert one character less. It doesn't catch the last character. Why?</p>
javascript jquery
[3, 5]
820,756
820,757
What is a better way to write this Javascript hover function?
<p>This works but of course is a bit redundant. Items can also be dynamically added so I need to have it always increment by one. What is a better way to write this into one function?</p> <p>Update: Just added the markup. Bascially when a user hovers any of the list item a classname should be attached to the banner di...
javascript jquery
[3, 5]
3,427,778
3,427,779
Context in android
<p>i am a newbie.Please explain what all things are passed through a context.Like when constructing an object for the following class..</p> <p>public class myclass{</p> <p>public myclass (Context context){....} }</p>
java android
[1, 4]
2,849,932
2,849,933
Issues in Reorder list - C#
<p>I am using Reorder list in my page. In IE it is working properly. But in Firefox it is not working properly. I am not able to reorder the last few items. Can any one of you tell what may be the problem?</p>
c# asp.net
[0, 9]
2,776,085
2,776,086
jQuery - Library or Framework?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7062775/is-jquery-a-javascript-library-or-framework">Is jquery a javascript library or framework?</a> </p> </blockquote> <p>jQuery: The Write Less, Do More, JavaScript <strong>Library</strong>.</p> <p>Why do pe...
javascript jquery
[3, 5]
5,352,659
5,352,660
Stripping out a link in jQuery
<p>I have a bit of html like so:</p> <pre><code>&lt;a href="#somthing" id="a1"&gt;&lt;img src="something" /&gt;&lt;/a&gt; &lt;a href="#somthing" id="a2"&gt;&lt;img src="something" /&gt;&lt;/a&gt; </code></pre> <p>I need to strip off the links so I'm just left with a couple of image tags. What would be the most effici...
javascript jquery
[3, 5]
4,225,046
4,225,047
Trouble executing pygooglevoice under a PHP script (as www-data user)
<p>I can get the <a href="http://code.google.com/p/pygooglevoice/" rel="nofollow">pygooglevoice</a> library to work and place a call when when running under a normal user account, however when trying to run under PHP using the exec() function, nothing happens, and no output is generated. So I tried running the script a...
php python
[2, 7]
5,470,141
5,470,142
Unable to assign Resource Key to asp.net Label
<p>Am new to development , as startup, am learning from different videos and tutorials. Right now am facing a strange problem</p> <p>i have a asp.net label</p> <pre><code>&lt;asp:Label ID="Label2" runat="server" Text="&lt;%$ Resources:Label1TextKey %&gt;" /&gt; </code></pre> <p>and i have defined his key in </p> <p...
c# asp.net
[0, 9]
1,798,403
1,798,404
Determine if page was refreshed
<p>Would it be possible to determine if a webpage was accessed from the result of a refresh (pressing F5 or simply clicking the refresh button) using JavaScript? I'm also using jQuery.</p>
javascript jquery
[3, 5]
4,912,113
4,912,114
Triple (3) Equal Signs
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/359494/javascript-vs-does-it-matter-which-equal-operator-i-use">JavaScript === vs == : Does it matter which &ldquo;equal&rdquo; operator I use?</a> </p> </blockquote> <p>I asked <a href="http://stackoverflow.com...
javascript jquery
[3, 5]
2,268,572
2,268,573
Services returning JSONP
<p>I have heard about JSONPand want to try it with a live service (except flickr). Can anyone give me a very simple example in jquery/javascript on how to call this service? Also how do I pull large images (> 1MB) efficiently. Is there a way to add a progress bar during the call</p>
javascript jquery
[3, 5]
4,738,503
4,738,504
Cannot display converted PDF to image php
<p>I've got this page called pdf.php:</p> <pre><code>&lt;?php $im = new imagick( 'uploadedfiles/logo.pdf[0]' ); $im-&gt;setImageFormat( "png" ); header( "Content-Type: image/png" ); echo $im; ?&gt; </code></pre> <p>Then I've got script that echos this:</p> <pre><code>$pdf_ext = '&lt;div class="aList" style="curs...
php jquery
[2, 5]
1,720,611
1,720,612
Does a function inside jQuery constructor do anything different?
<p>I feel like I've only ever seen this here on SO, but I can't seem to find any documentation on it. The code I am talking about is stuff like this:</p> <pre><code>$(function foo(){ alert('foo'); }); </code></pre> <p>Is there anything to that or is that just something that novices do because they think jQuery is...
javascript jquery
[3, 5]
2,647,976
2,647,977
How to get sorting without removing Row-Created function(Use for changing column of header-text in run-time)
<p>The following code is my Grid View AA from aspx page.</p> <pre><code>&lt;asp:GridView ID="GridView_AA" runat="server" OnSorting = "Gridview_AA_Sorting" OnRowCreated="GridView_AA_RowCreated"&gt; &lt;asp:TemplateField HeaderText="Period Name" SortExpression="PERIOD_NAME"&gt; &lt;EditItemTemplate&gt; &lt;asp:TextBo...
c# asp.net
[0, 9]
3,443,960
3,443,961
Firing a server-side method via PageMethod
<p>I wrote a JavaScript function that fires when the user clicks OK in a RadConfirm dialog. This is supposed to trigger a JavaScript callback to the server to delete a record from the database. This may not be the best architecture (I can think of other ways to accomplish my goals) but I'm trying to struggle through ...
c# javascript asp.net
[0, 3, 9]
3,376,034
3,376,035
Changing Javascript method to Jquery
<p>So I have the following Jquery calling a Javascript method</p> <pre><code>$j("a.Pinterest").attr("href", "javascript:void(addScript());"); </code></pre> <p>And this is the Javascript Method</p> <pre><code> function addScript() { var e = document.createElement('script'); e.setAttribute('type', 'text/java...
javascript jquery
[3, 5]
3,672,413
3,672,414
detecting change in a text input box using jquery/javascript
<p>in html and javascript, I can use keyup, focus, blur to detect most of the content changes in a text input, however if the user do a copy and paste into the text input, how do I capture this change? The issue here is that the input is already in focus when user paste into it.</p>
javascript jquery
[3, 5]
2,151,673
2,151,674
How are Java objects laid out in memory on Android?
<p>I'm fairly familiar with the layout of objects on the heap in HotSpot, but not so much for Android.</p> <p>For example, in a 32-bit HotSpot JVM, an object on the heap is implemented as an 8-byte header, followed by the object's fields (one byte for <code>boolean</code>, four bytes for a reference, and everything el...
java android
[1, 4]
896,053
896,054
PLC Compiler and an Interpreter
<p>I am Trying to Build a PLC Compiler and an interpreter can anybody give me Some Links which will be useful for me.. Thanks</p>
java javascript
[1, 3]
1,444,942
1,444,943
jQuery to find all previous elements that match an expression
<p>Using jQuery, <strong>how do you match elements that are prior to the current element in the DOM tree?</strong> Using <code>prevAll()</code> only matches previous siblings.</p> <p>eg:</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td class="findme"&gt;find this one&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt...
javascript jquery
[3, 5]
1,050,205
1,050,206
External Javascript file is being called twice and doesn't work?
<p>I have two identical sites.</p> <p>One is in <strong>localhost/taiwantalk2</strong></p> <p>The other in <strong>localhost/taiwantalk3</strong></p> <p>The have this same code in the header:</p> <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;...
javascript jquery
[3, 5]
4,214,551
4,214,552
Who passed the "args" to the main method?
<p>I tried to run a small c# and java program (using VS and NetBeans not from the command line) and print the value of the args[0] but I got an <code>IndexOutOfRangeException</code>.<br/> I know that the <code>args</code> is for passing in command line parameters but it is <strong>still</strong> in the main method any ...
c# java
[0, 1]
4,767,769
4,767,770
When page loads display 1st image text - hide all other text
<p>I have created <a href="http://techavid.com/design/test3.html" rel="nofollow">this page</a> and when you load the page you see there are 3 images. The sun image is focused(in color), while the others are greyed out until clicked. That is how it should be for the images.</p> <p>Also when you load the page you see un...
javascript jquery
[3, 5]
5,493,216
5,493,217
create a game level
<p>I am looking to create a game like mega man or mario, I have been trying to find a good solution as to how to generate my levels. The only thing I can think of would be to create a level file and load coordinates as the player moves through the level. Which would suck because I would have to code the floor to load, ...
java android
[1, 4]
3,469,914
3,469,915
Display a link to the status of my latest tweet using jQuery & how to execute it?
<p>So I have jQuery in the <code>&lt;head&gt;</code> of my page as this:</p> <pre><code>&lt;script language="javascript" type="text/javascript" src="./javascript/jquery-1.2.6.js"&gt;&lt;/script&gt; </code></pre> <p>and already I was gratefully given this code that will display a linked text that reads 'Read' and the ...
javascript jquery
[3, 5]
5,092,098
5,092,099
asp.net validator add class to input if validation is wrong
<p>Is it possible to add css class to validated input if value isnt valid ? Im using asp.net validators.</p> <p>Maybe there is javascript event on taht validators which I can use ?</p> <p>thanks for any advice</p>
c# asp.net
[0, 9]
4,339,473
4,339,474
Repeat code in android
<p>I want an app which changes background color when pressing a button. After 500 ms, I want to change background color to black for 2000ms. And then repeat whole process again, until user terminates that.</p> <p>I have following code but its not working as I think it should.</p> <pre><code>private void set() { r...
java android
[1, 4]
355,314
355,315
setting a class to a menu depending of the url link
<p>Here is my scenario, my sub pages are not recognizing the parent, probably cause I set the structure bad, however going to back to fix that is not an option for now, problem the menu parent is getting the parent class in the wrong places....</p> <p>So what I need to achieve...</p> <p>if I have this url structure: ...
javascript jquery
[3, 5]
1,110,705
1,110,706
jw player javascript function to read title when pressed
<p>I made a page where jw player is loaded with some vars that create a playlist to load and play a video file when a respective link is pressed. How can i get the text from the link when is pressed and display it at the top of the video as title?</p> <p>So every time when a new links is pressed to load the video, thi...
php jquery
[2, 5]
5,019,246
5,019,247
How to retrieve value from asp.net textbox from javascript?
<p>I have an asp.net web form with a couple of asp.net textbox controls:</p> <pre><code>&lt;asp:TextBox ID="txtTextBox" runat="server" /&gt; . </code></pre> <p>I have a javascript file tools.js that are included in the page:</p> <pre><code>&lt;script src="tools.js" type="text/javascript"&gt;&lt;/script&gt; </code></...
asp.net javascript
[9, 3]
3,347,954
3,347,955
Jquery not working
<pre><code>(function($) { $(document).ready(function(){ /*$('body').css('position','relative'); $('body').animate({'left':'-9999px'},3000);*/ alert('hello'); }); }(jQuery)); </code></pre> <p>Tried also</p> <pre><code>$(document).ready(function(){ /*$('body').css('position',...
jquery javascript
[5, 3]
3,450,446
3,450,447
How to concat string to List C#
<p>I was trying to add the strings to the List and export the list as csv file but the result I got is not the way I want. Here is the code -</p> <pre><code>List&lt;string&gt; values = new List&lt;string&gt;(); using (StreamReader sr = new StreamReader(filePath)) { while (sr.Peek() != -1) { string line...
c# asp.net
[0, 9]
3,084,529
3,084,530
Read file from android based device?
<p>I am new to Android and Java so pardon me if the question sounds stupid.</p> <p>I have connected a device to PC which runs android OS. Once the device is attached I can see its direcotry F:\ . </p> <p>How do I write a code in JAVA which can display me those files. I am using Eclipse IDE and Android plug in.</p> <...
java android
[1, 4]
1,189,867
1,189,868
Div width resize based on how many radio buttons are selected
<p>Basicly theres 2 divs open by default, the one of the left is always there and then you have 3 radio buttons. Atleast one must be selected (can't have "default" column all by itself). By default, the "default" div and "1" is there, and "2" and "3" are invisible (display:none). Each radio button is linked to specific...
javascript jquery
[3, 5]
2,849,680
2,849,681
Find whether an element contains in a jquery selector
<p>Let say I have, </p> <pre><code>&lt;a id="a123"&gt;&lt;/a&gt; </code></pre> <p>Now I need to check whether $("a") selector contains $("#a123") element.</p>
javascript jquery
[3, 5]
4,371,057
4,371,058
javascript problem doPostBack
<p>I am having some problems. </p> <p>My page is failing in this javascript code (the second line):</p> <pre><code>function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value ...
javascript asp.net
[3, 9]
136,676
136,677
Array selector function by property value
<p>I have: </p> <pre><code>var array = [ { key: '1' }, { key: '2' }, { key: '3' } ] </code></pre> <p>I want:</p> <pre><code>var obj = getFirstItem(array, 'key', '2'); </code></pre> <p>And as a result:</p> <pre><code>obj = { key: '2' } </code></pre> <p>Is there such function in JavsScript or jQuery?</p>
javascript jquery
[3, 5]
1,153,170
1,153,171
animate move to the left and to the right?
<p>I want is to move my pagination to the left and to the right after clicked on <code>#prev_pag</code> and <code>#next_pag</code>. how is it and solve my problem?</p> <p><strong>Eg:</strong> <a href="http://jsfiddle.net/szVKD/5/" rel="nofollow">http://jsfiddle.net/szVKD/5/</a></p> <pre><code>$('#next_pag').click(fu...
javascript jquery
[3, 5]
5,645,590
5,645,591
populating dropdownlist with hours in c#
<p>I have to 2 dropdownlists and I want to populate them with hours from 1 to 24. Then I want to make the difference between them.If i choose in the first dropdown let's say the hour 12 AND in the second 16 then the difference will be 4. How can I achieve that in c#? I'm developing a asp.net web application with c#.Thi...
c# asp.net
[0, 9]
3,772,877
3,772,878
JavaScript or C#
<p>I'm new to development and want to learn JavaScript and C#, which one do you think would be best to start with. I want to mainly build web apps.</p>
c# javascript
[0, 3]
6,022,614
6,022,615
displaying php content in JavaScript new window
<p>Here is the code that I have so far: </p> <pre><code>$output = &lt;&lt;&lt;BLOCK &lt;html&gt; &lt;head&gt; &lt;title&gt;Preview!&lt;/title&gt; &lt;script type="text/javascrit"&gt; var content = $data; &lt;/script&gt; &lt;/head&gt; &...
php javascript
[2, 3]
4,644,008
4,644,009
get what element the mouse is over with the mousemove event on the body
<p>If you use the <code>mousemove</code> event on the body tag. Is it possible to get what element in the html the mouse is currently over.</p> <pre><code>$('body').mousemove(function (e) { var details = e; // can e.something return what element the mouse cursor is over? console.log(details); }); </code></pre>
javascript jquery
[3, 5]
4,368,818
4,368,819
ASP.NET: Session state not updated when redirecting in explorer
<p>I have an aspx page (page1.aspx) where I set a Session variable and then redirect to another page:</p> <pre><code>HttpContext.Current.Response.Redirect("page2.aspx"); </code></pre> <p>On page2.aspx I want to read the session variable, but it doesn't exist until I reload the page. I try to read the session variable...
c# asp.net
[0, 9]
468,611
468,612
jQuery Toggle Text change
<p>when using slideToggle, how to change the Text close/show. I did a simple one, but cannot get the text change back.</p> <p>Here is what I did <a href="http://jsfiddle.net/9EFNK/" rel="nofollow">http://jsfiddle.net/9EFNK/</a> If someone could give me a hand? thanks</p>
javascript jquery
[3, 5]
4,967,405
4,967,406
how can I add buttons in array in android
<p>I am new user of android and making slide puzzle game and using eclipse.I made buttons in xml file.In java file I made an array of button type.Now my problem is how I add my buttons in array which I made in the xml file in table layout...</p>
java android
[1, 4]
5,607,037
5,607,038
String variable out of context for use in HTML output
<p>I'm trying to understand why the variable <code>myUrl</code> is out of context in the example below. What's the best way to handle this situation? Are there alternatives? The code is C# in an ASP.NET page.</p> <pre><code>&lt;% string myUrl = "http://www.website.com"; %&gt; &lt;ul class="footerLinks"&gt; &lt;li&...
c# asp.net
[0, 9]
1,971,435
1,971,436
slideshow - return to 1st image
<p>does anyone know how to add another button to this slideshow that takes the user back to the first image at any given point during the slideshow?</p> <p><a href="http://www.switchonthecode.com/tutorials/jquery-creating-a-slideshow" rel="nofollow">http://www.switchonthecode.com/tutorials/jquery-creating-a-slideshow<...
javascript jquery
[3, 5]
1,426,231
1,426,232
ClickListener and ListView Item Layout
<p>I have the following ClickListener on my ListView. My item layout is a RelativeLayout with 3 TextViews. I'm trying to return the value of the list item but I'm getting "android.widget.TextView@44ed....". What am I doing wrong?</p> <pre><code> itemList=(ListView)findViewById(android.R.id.list); itemLi...
java android
[1, 4]
144,652
144,653
Implicit super constructor LoginActivity() is undefined for default constructor. Must define an explicit constructor
<pre><code>public class Utils extends LoginActivity{ public static String postData(String url, Map&lt;String , String&gt; params, Context context) { String responseString=null; </code></pre> <p>the above one is child class and below one is parent class and i am getting error at</p> <pre><code>public class...
java android
[1, 4]
5,408,030
5,408,031
Best Language to Scrape a Webpage?
<p>I have excellent knowledge of PHP and moderate knowledge of Java.</p> <p>Basically, I was to go to a website, auto-enter a form input with a date range, click the search button, then return the information listed in the results.</p> <p>What language above would give me the best/most features for manipulating and n...
java php
[1, 2]
2,941,385
2,941,386
javascript links same number as div
<pre><code>&lt;div class="slider"&gt; &lt;div class="slide"&gt; ..// &lt;/div&gt; &lt;div class="slide"&gt; ..// &lt;/div&gt; &lt;div class="slide"&gt; ..// &lt;/div&gt; &lt;ul class="pagination"&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/li&gt; ...
javascript jquery
[3, 5]
3,958,342
3,958,343
Simple ASP Query Question
<p>How can I make the SelectCommand use a textbox from the default page so that I can add that to the where clause? Please include an example I am new to programming and it helps me understand the concept better. thanks in advance.</p> <blockquote> <p>Example WHERE (BADGE = 10000 + xBadgeTextBox.Text)?</p> </bloc...
c# asp.net
[0, 9]
714,986
714,987
HTTPS Issue with redirecting
<p>So I inserted a SLL Certificate and now in the code for the web.config file I have</p> <p>Code:</p> <pre><code>&lt;system.webServer&gt; &lt;rewrite&gt; &lt;rules&gt; &lt;rule name="removed by me" stopProcessing="true"&gt; &lt;match url="(.*)" /&gt; ...
java php javascript
[1, 2, 3]
5,800,274
5,800,275
extensive JS in php-file with buffering - how
<p>I'm including a great deal of (partly server-generated) JS in a php.file.</p> <p>What's the best approach? </p> <p>I know there's something like ">>>excerpt" or something that just let me type anything, but I forgotten..</p> <p>Regards, //t </p>
php javascript
[2, 3]
3,207,458
3,207,459
how to pass data with quotation(") to a dialog in jQuery
<p>Supposed I have the following code:</p> <pre><code>&lt;html:link onclick="jQuery('#add').data('name','${name}').dialog('open');" href="#"&gt; </code></pre> <p>And with this, if <strong>${name} = a"b"c</strong>, problem occurs, link was not rendered well. I have tried to escape the value, serialize but maybe my way...
javascript jquery
[3, 5]
5,849,383
5,849,384
Protect javascript code from copying
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript">How can I obfuscate JavaScript?</a> </p> </blockquote> <p>I have some complex Jquery/Javascript code wich i want to protect from reading. Is there a possibility to put the ...
javascript jquery
[3, 5]
1,477,300
1,477,301
Which library/framework can be used for this specific project?
<p>I have a project, but I don't know which library that I could use for this project:<br> <em>Project requirement</em></p> <ol> <li>Log into hotmail.com</li> <li>Click on each email individually and take a specific link out of the email. </li> <li>Copy and add the link i want into a txt file. </li> </ol> <p>I've use...
c# c++
[0, 6]
595,547
595,548
fire jquery/javascript when a certain section of the screen changes?
<p>I want to detect when a specific part of a webpage changes and have the page refresh when it happens. Is this possible? For example, let's say there's a green, absolutely positioned element about 50px by 50px in the upper left corner of a page - I want the page to refresh whenever it turns red.</p> <p>Basically wha...
javascript jquery
[3, 5]
5,497,515
5,497,516
$(this) with child and pseudo selector
<p>I have the selection below, is there any way to make this selection work with <em>$(this)</em>?</p> <p>(select the second div child of .container)</p> <pre><code>$(".container div:eq(2)").width(); </code></pre>
javascript jquery
[3, 5]
5,063,113
5,063,114
How to capture a complete webpage using javascript
<p>I inject javascript code into a page user is currently viewing, on users command this script make DOM changes. At the end of this interaction user might want to save the page so that s/he can view/edit it later. I could remember the DOM changes that user made, But if the original page(at its source) is changed, I wi...
javascript jquery
[3, 5]
2,228,818
2,228,819
A btnclick Function calls another function,but the call not in the btnclick function
<p>consider the following: code for buttonclick fn in .cs file :</p> <pre><code>protected void additembtnClick(object sender, EventArgs e) { DataTable dt = createTemptable(); dt = (DataTable)Session["dfdtemptable"]; this.DFDLOVlst.DataSource = dt; this.DFDLOVlst...
c# asp.net
[0, 9]
2,307,391
2,307,392
How to update a TextView of an activity from another class
<p>Iam new to android/java programming. I have two class, one is an activity and other normal class. In my activity class contains TextView. Can i update TextView of activity class from normal class. I tried with random code, but it fails. Please provide a solution...</p> <pre><code>// activity class public class...
java android
[1, 4]
580,091
580,092
Jquery: How to prevent further animating to the left when style: left == 0 or 0px?
<p>How would I prevent a div from scrolling further left when the style 'left' of that div reached '0' or '0px'? Right now I am using the animate custom effect to scroll a div left and right to display hidden overflows but when the div reaches '0' or '0px' on style: left, I want the user to be prevented from scrolling...
javascript jquery
[3, 5]
2,821,926
2,821,927
jQuery Tree View and wp_list_pages
<p>I'm looking to use the <a href="http://www.dynamicdrive.com/dynamicindex1/treeview/index.htm" rel="nofollow">jQuery TreeView</a> script on wp_list_pages to get a nice collapsable-tree effect going. </p> <p>The script requires that I add some classes to the list elements such as:</p> <pre><code>&lt;ul id="red" clas...
jquery javascript
[5, 3]
3,125,443
3,125,444
Incrementing input "name" value with JS
<p>I have a table that is using jQuery to generate a "new row" when a button is clicked. When this new row is generated, new inputs are generated. Here is where I got the script from:</p> <p>chris-barr[dot]com/projects/table_jquery</p> <p>I am using this code on an order form for a client and I need to specifically t...
javascript jquery
[3, 5]
793,380
793,381
Eliminating State on the Server Side - Best Practice? Pros / Cons
<p>After seeing how easy client-side state can be accomplished on this <a href="http://stackoverflow.com/questions/10807822/can-javascript-maintain-any-state-after-a-reload">SO Post</a> and verifying that using local storage will work on all major modern browsers, I want to eliminate the Session Class in PHP...I want t...
php javascript
[2, 3]
636,121
636,122
how can I disable links while animate
<p>I have 3 links and every link do some animation</p> <pre><code> $("a#home_hits").click(function () { $(".hits").animate({left: "549px", opacity: 1}, { duration: 1500, queue: false }); }); $("a#home_hits1").click(function () { $(".hits1").animate({left: "549px", opacity: 1}, { duration: ...
javascript jquery
[3, 5]
1,671,412
1,671,413
Structuring javascript / jQuery
<p>I work in a lot of ASP.NET webforms projects. Since im not a big fan of postbacks, i tend to write a lot of jquery ajax calls to handle the cilent -> server calls. </p> <p>But keeping most of the logic in script tags / javascript files usually gets messy pretty fast, even though im trying to use a lot of functions ...
jquery asp.net
[5, 9]