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
3,372,032
3,372,033
How to create this simple looping function?
<p>I have a function that loops on itself. I'm still wrapping my head around how this works and I hope you can help.</p> <p>Basically I have the following function</p> <pre><code>function parachute_drop(animation_duration) { $('#parachute_wrap_2') .animate({top: "750px"},animation_duration) .animate( ...
javascript jquery
[3, 5]
5,899,139
5,899,140
Why the Page.DataBind() method call's result reflects later than the DataSet related works following it?
<p>I have called the Page.DataBind() method for binding data to the DataGrid controls. After that I've iterated through the DataColumns for the Column types and showed them as on the fly html. My code is as below:</p> <pre><code>public partial class MultipleDataSources : System.Web.UI.Page { protected void Pag...
c# asp.net
[0, 9]
2,723,534
2,723,535
date format in php for Date.parse
<p>I use a custom jquery table called <a href="http://datatables.net" rel="nofollow">Datatables</a>. It can automatically sort columns for you. Apparently it can sort on date as well as long as it is something Date.parse can handle.</p> <p>I'm having trouble figuring out the format I need that Date.parse can handle....
php jquery
[2, 5]
421,815
421,816
Android VideoView cannot play video
<p>I am trying to play video in Android. My widget is Kindle Fire so Android version is 2.3.4. Here is my code:</p> <pre><code>super.onCreate(savedInstanceState); setContentView(R.layout.video); Uri uri = Uri.parse(getIntent().getExtras().getString(VIDEO_URI)); MediaController mediaController = new MediaController(thi...
java android
[1, 4]
3,258,183
3,258,184
Validating multiple fields on a form
<p>I am trying to figure out how to make it so that if the first field is has data the next 2 are required to have data also. Is there an easy way to do this for all rows?, each field has a unique id for the row do they all have to be unique?</p> <p><img src="http://i.stack.imgur.com/9xBs8.png" alt="Fields"></p>
javascript jquery
[3, 5]
1,488,785
1,488,786
JavaScript Postback on condition
<p>I need help with the javascript below please. I have 2 text boxes and 1 button on my form. What I would like to happen is if User enters a value in textbox one and not textbox two, then event need not be fired. However, if there is a value in textbox one and then textbox 2 then I want a post back to fire. My code be...
asp.net javascript
[9, 3]
4,607,636
4,607,637
What events can I attach to jQuery's on() function?
<p>Besides click, mouseover, and mouseleave, are there any other events for jQuery's on() function or are those the main uses for on()? I can't find any documentation on it.</p>
javascript jquery
[3, 5]
5,160,472
5,160,473
How to validate years dynamically using validators in ASP.Net?
<p>I have to validate that the year entered must be less than or equals to the current year. I am using server side validators in ASP.Net and C#, and all validators are inside a validator group. So please suggest me to validate one more condition within the same.</p> <p>Thanks Amit Ranjan.</p>
c# asp.net
[0, 9]
6,008,113
6,008,114
Find values in multidimensional array
<p>Assume I have an array in my script and it's made up like this:</p> <pre><code> var detail= {}; detail['i100']=new Array() detail['i100']['ID 4564']= 'John' detail['i100']['ID 4899']= 'Paul' detail['i100']['ID 9877']= 'Andy' detail['i100']['ID 1233']= 'Evan' detail['i25'] = new Array() ...
javascript jquery
[3, 5]
1,634,827
1,634,828
Possibility to switch over to java from .net
<p>Today I am going to ask one off bit question. Sorry for that. Right now I am an MCA fresher and will be working on dot net for next few month(almost 10-12 months). After that I want to switch over to java. How is the possibility that I can switch over to it. What type of preparation I am supposed to do. I am also pl...
java asp.net
[1, 9]
2,634,880
2,634,881
Android, How to define multiple variables at once
<p>I have two variables and was wondering how I would define both at once.</p> <pre><code> Button answer1; Button answer2; </code></pre>
java android
[1, 4]
5,574,586
5,574,587
Manipulating database output in Android strings
<p>I'm trying to manipulate the output of an SQLite query so into two parts - KEY_DATE and KEY_ROWID + KEY_TYPE. Here's the code without the KEY_TYPE bit: </p> <pre><code> DataBaseAdapter db = new DataBaseAdapter(this); db.open(); // get last test date int whichItem = 1; int upDown = 1; // use 1 fo...
java android
[1, 4]
4,413,555
4,413,556
How to add dynamic html page using c# or Jquery
<p>I have created dynamic control in one panel using Jquery with movable option(draggable) in ASP.net with c#, now the requirement is like i have to save that panel as separate html page by clicking create button. and i have to show to user , if any modification has done in that panel(adding controls) then that has to ...
c# jquery asp.net
[0, 5, 9]
1,217,725
1,217,726
Keep ASP .NET code-behind files on server?
<p>I'm inheriting a web application and the previous programmer compiled all his code into a .dll. The .cs files are not present on the server. </p> <p>Working on previous projects, I've always uploaded the .aspx file and the corresponding .cs file. It's never been a problem for me and I always thought it was standard...
c# asp.net
[0, 9]
4,910,204
4,910,205
Finding an element in a javascript array and returning the position of the matched element
<p>I'm plucking my brain away at this but was hoping someone could help after several failed attempts.</p> <p>I have an HTML list like this:</p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;span class="current"&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span class="normal"&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> ...
javascript jquery
[3, 5]
1,665,482
1,665,483
PHP 'beating' javascript function call?
<p>I've got a bit of a weird problem. </p> <p>I'm creating a location based web app that is using a javascript function to get a user's GPS coordinates. I have a form with a submit button, and when that submit button is clicked, the function is called (onclick='getCoords()"). The javascript then sets that values of tw...
php javascript
[2, 3]
717,931
717,932
How to display response message after redirecting to otherpage?
<p>I am using ASP.NET and C#.In register page after click on submit i am storing all the details in database and redirecting to login page.So in login page i need to display message like successfully registered.</p> <p>Can someone tell me is it possible?</p> <p>Thanks.</p>
c# javascript asp.net
[0, 3, 9]
1,222,859
1,222,860
How to read php array of string in javascript
<pre><code>var longitudeArray = new Array(&lt;?php $result = count($longitudeArray); if ($result &gt; 1){ echo implode(',', $longitudeArray); } else { echo $longitudeArray[0];...
php javascript
[2, 3]
3,287,986
3,287,987
Generic method to get ASP.NET not checked items in checkbox list or radiobutton list?
<p>I have a method to get what items are not checked in a checkbox list like so:</p> <pre><code>public static string[] GetNotSelectedCheckboxes(CheckBoxList list) { ArrayList values = new ArrayList(); for (int counter = 0; counter &lt; list.Items.Count; counter++) { if (!list.Items[counter].Selecte...
c# asp.net
[0, 9]
3,962,974
3,962,975
Using the same input box to search different things
<p>I have an input which searcher's google web and another input to search google images. For each input i have buttons to fadeIn either. Can the search input be the same but search different sites? </p> <p>Here is a fiddle of what I currently have: <a href="http://jsfiddle.net/kwC36/" rel="nofollow">http://jsfiddle.n...
javascript jquery
[3, 5]
1,885,172
1,885,173
Android Implicit and Explicit Intents
<p>When use an Implicit Intent vs an Explicit Intent?</p> <p>For this Implicit Intent:</p> <blockquote> <p>Intent searchintent = new Intent()<br> searchintent.setAction(Intent.ACTION_VIEW) searchintent.setData(Uri.parse("http://www.google.com")) startActiv...
java android
[1, 4]
5,320,379
5,320,380
Pass list of strings from Javascript to asp.net code-behind
<p>I have problems with javascript in ASP.NET.<br> I modify a listBox, with add and remove command using javascript.<br> Now I have to use the data of the list in the code behind. How can I pass this data to the server? Can I use json?</p> <p>Here is the code. I can't use hiddenField because of the remove.</p> <pre>...
javascript asp.net
[3, 9]
2,805,993
2,805,994
Trouble witn creating notification in status bar from service Android
<p>I need to create Service in my application for showing notifications. I have the code for service:</p> <pre><code>package com.bba.droid; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Context; import andr...
java android
[1, 4]
571,781
571,782
how can i use php codes in javascript file while php is including the javascript variable?
<p>cuIzgaraKay is a javascript code I want to use it in sql command as cuIzgaraKay.id(it gets the value correctly I checked it). However, I could not it. I googled it but I can't find what I search . How can i do it ? sorry for asking syntax error but I can't find it maybe ı have logical error</p> <pre><code> ...
php javascript
[2, 3]
3,229,068
3,229,069
Displaying a changing loop of pictures in a dialog?
<p>I'm not having much success doing this the way I thought would work so I'll ask the experts.</p> <p>I have an ArrayList of ten URLs linking to images. I want to display the first URL for 2 seconds, then get the second URL and do the same until the end. </p> <p>Here is what I have so far, I think perhaps I'm not go...
java android
[1, 4]
110,601
110,602
html from code behind
<p>I want to insert html with a few controls +style from the code behind ( asp.net c#) how can I do it ?</p>
c# asp.net
[0, 9]
4,851,419
4,851,420
How to put image in anchor tag dynamically using javascript
<p>I have dynamically created image in javascript. I want img to be placed inside an anchor tag how can i do this?</p> <pre><code> var element = document.createElement("img"); element = cell.appendChild(element); element.setAttribute("src", "/Images/Delete.gif"); </code></pre>
javascript asp.net
[3, 9]
1,770,604
1,770,605
call onload from separate file
<p>I have a file header.php which is being used by all other files. This file has body onload function. But this function is only being used by one other file called test.php. How can i call this function from test.php by using jQuery or php. </p> <pre><code>&lt;body onLoad="setCountDown();"&gt; </code></pre>
php jquery
[2, 5]
181,560
181,561
Compare day and show hour only using DateTime formats
<p>I have a DateTime column in my SQL database, how do I check if the Day in that is Today, or yesterday?</p> <p>What I want to is something like: If date is today then the result would be "Today, at " same for yesterday..</p>
c# asp.net
[0, 9]
4,997,227
4,997,228
How to use javascript to get an ASP.NET's Textbox Control's Value
<p>Suppose I have an ASP.NET Text Box as Below : </p> <pre><code>&lt;asp:TextBox ID="txtQuantity" runat="server" Text="0"&gt;&lt;/asp:TextBox&gt; </code></pre> <p>I want to get this box's current value in javascript. How can I access this element? If it was a normal html text box, with id="txtQuantity", then I could ...
asp.net javascript
[9, 3]
468,222
468,223
jQuery Form Input
<p>I'm trying to use a radio button as a click function:</p> <pre><code>$("input[type=radio]").click(function(){ </code></pre> <p>and I don't just want radio buttons, I want radio buttons with the class 'baby', or I could even do it by name if that's easier, searched google and I can't find anything :(</p>
javascript jquery
[3, 5]
4,154,298
4,154,299
Find if a cell contents appears more than once
<p>I have a table body that looks like the following: </p> <pre><code>&lt;tbody&gt; &lt;tr class="basket_main"&gt; &lt;td class="basket_item"&gt; &lt;input type="text" class="basket_qty_txt" id="ctl00_ctl00_main_body_content_main_content_area_shopping_basket_ctl01_txt_qty_162" value="3" name="c...
javascript jquery
[3, 5]
4,779,903
4,779,904
togglebutton error not working correct
<p>i am using togglebutton so i can do tow function one when it is check and one when it is not check the first function (when it is check ) is working fine but the second is not it said in logcat</p>
java android
[1, 4]
4,919,814
4,919,815
ClientIDMode How to hide ID in Html Source code generated in browser
<p>I use .net 4 and c#.</p> <p>I have a asp.net Page wit an HyperLink.</p> <pre><code>&lt;asp:HyperLink ID="uxLink" ClientIDMode ="Static" runat="server"&gt;&lt;/asp:HyperLink&gt; </code></pre> <p>In my code behind I use the HyperLink <code>ID="uxLink"</code> to change some properties.</p> <p>In my browser the code...
c# asp.net
[0, 9]
881,206
881,207
Simulate Hover in jQuery
<p>Currently, I have some jQuery/Javascript code that toggles the css class 'ui-state-hovered' when a user hovers the mouse over certain elements, and I want to write a test in konacha to test this piece of code. </p> <p>How would I write this function in Javascript with the help of jQuery?</p> <p>Return true if when...
javascript jquery
[3, 5]
5,466,305
5,466,306
Show a javascript loader image while function is executing
<p>I want to click a button, show a loader image, execute a time-consuming function, hide the loader image. When I attempt this, the page freezes until the entire event runs, so the loader image is never seen.</p> <p>Here is a sample:</p> <pre><code>$('#btn').click(function() { $('#LoadingImage').show(); &lt...
javascript jquery
[3, 5]
4,214,143
4,214,144
how can i store String[] in android?
<p>Hi i want to store an array of strings internal in android but i want to do that in separate class not in activity.How can i do that.And then retrive it?</p> <p>thanks</p> <p>how i want to work whit it.I have 2 methods <code>addFoo(String s){}</code> and <code>String[] GetAllFoo(){}</code> In activity i need to ad...
java android
[1, 4]
4,419,551
4,419,552
JQuery Append Tag Without Id or Class
<p>I have repetitive <strong>nobr</strong> tags which I can't add ID nor Class.</p> <p>How do I find a specific <strong>nobr</strong> tag which contains a string of text?</p> <pre><code>&lt;nobr&gt;Due Date&lt;/nobr&gt; &lt;nobr&gt;Test&lt;/nobr&gt; &lt;nobr&gt;Hello&lt;/nobr&gt; $(document).ready(function() { $...
javascript jquery
[3, 5]
1,411,419
1,411,420
Android - Get Nickname and Type of Nickname
<p>I've been trying to get the nickname of a contact for a few hours now, and still cant get them to work, I've been told that they are in a differnt table to the phone numbers etc.. But i dont know how to access them.</p> <p>The closest I've got is this..</p> <pre><code>Cursor cursor = context.getContentResolver().q...
java android
[1, 4]
5,158,414
5,158,415
Some rendering issues with jQuery's .animate()
<p>I have some CSS that renders correctly normally when it's not being animated but doesn't render correctly when animated. Some clipping that should occur does not during the animation but snaps back as soon as it finishes.</p> <p><img src="http://i.stack.imgur.com/cD8Rp.png" alt="enter image description here"></p> ...
javascript jquery
[3, 5]
750,674
750,675
How to submit data array to server from PHP and jQuery
<p>I have an array of PHP with customer data. I will modify this values in jQuery. Then O would like to submit the changed values with an Id (<code>cashup_id</code>) to the server from jquery. Please see the PHP array below. Please help. Thanks.</p> <pre><code>$Cashups = array( array( 'cashup_id' =&gt; 146456, ...
php jquery
[2, 5]
5,995,151
5,995,152
asp.hyperlink in gridview Format 0 as null
<p>I am calling a giant stored proc via linq to sql that brings back some numbered data from 0 to 9. I would like to be able to display any zeros as nulls (so there is no hyperlink). I could do this in my stored procedure, but it would make it really hard to read and maintain (there is a lot of case logic going on).<...
c# asp.net
[0, 9]
3,642,445
3,642,446
The right way to get http referrer from jquery
<p>Command $(document).referrer is the correct way to get referrer with Jquery?</p>
javascript jquery
[3, 5]
718,986
718,987
To use or not to use jQuery?
<p>I have an <code>&lt;img id="mypic"&gt;</code> that i need to change with an interval its src.</p> <p>Should I use jQuery or not?<br> Should I do:</p> <ul> <li><code>document.getElementById('mypic').src='src2';</code></li> </ul> <p>or</p> <ul> <li><code>jQuery('#mypic').attr('src','src2');</code></li> </ul>
javascript jquery
[3, 5]
4,555,881
4,555,882
when a function's work is completed
<p>I'm using a jQuery plugin, it gets data from an url, fetches, calculates and writes some data in a <code>div</code>.</p> <p>I want to copy this <code>div</code> contents to another <code>div</code>, when that functions do its work.</p> <p>for example:</p> <pre><code>$("#div1").myfunction(); // it gets and calcula...
javascript jquery
[3, 5]
5,212,956
5,212,957
How can i delete the first word from a line with javascript or jquery?
<pre><code>Mon 25-Jul-2011 </code></pre> <p>I want to delete the first word "Mon" with javascript jQuery. How can i do this ?</p>
javascript jquery
[3, 5]
4,843,411
4,843,412
jQuery load() page fragment that does not exist
<p>What is supposed to happen if I run jQuery's load() function by supplying a page fragment that does not exist? Does it simply load the whole page, or does it load an empty page?</p> <pre><code>$("#a").load("http://www.example.com #non-existing-id"); </code></pre>
javascript jquery
[3, 5]
2,994,129
2,994,130
Javascript proxy-pattern problem
<p>I have something like that:</p> <pre><code>// original function Foo = function(params) { do foo... } Foo.prototype.alert = function() { alert('foo'); } </code></pre> <p>Now i want to interfere:</p> <pre><code>Bar = Foo; Foo = function(params) { do bar... return Foo(params); } </code></pre> <p>Or the JQue...
javascript jquery
[3, 5]
4,401,842
4,401,843
Add Javascript into a DOM
<p>Have any advice. Why I can not add the javascript into a DOM?</p> <pre><code>var strScript = "&lt;script type='text/javascript'&gt;&lt;/script&gt;"; $("#someElement").append(strScript); </code></pre>
javascript jquery
[3, 5]
1,048,336
1,048,337
Get an ID on page load in jquery script
<p>I have a PHP while loop where I am generating #id dynamically. </p> <p>Example : </p> <pre><code>&lt;?php $i=1; while ($row = mysqli_fetch_array($result)): ?&gt; &lt;tr&gt; &lt;td class='hashtag' id='status&lt;?php echo $i; ?&gt;'&gt;status value&lt;/td&gt; &lt;/tr&gt; &lt;?php $i++; endwhile: ?&gt; </code><...
php javascript jquery
[2, 3, 5]
601,769
601,770
Jquery Animated Tab - revert on mouseout
<p>I'm trying to adapt Gaya Design's Animated Tabbed Content <a href="http://www.gayadesign.com/diy/animated-tabbed-content-with-jquery/" rel="nofollow">http://www.gayadesign.com/diy/animated-tabbed-content-with-jquery/</a> for a navigation menu. I want to have the background verting back to the first tab on mouseout b...
javascript jquery
[3, 5]
5,732,246
5,732,247
Problem when setting a value to a dropdown in jQuery
<p>I have this strange problem in JQuery. I try to set a value to a dropdown dinamically, so I have this code:</p> <pre><code>$('#activity').val(idValue); //or this way: $('#activity').val("'"+idValue+"'"); </code></pre> <p>but it does not work. However, if I'm setting the value "statically" then it works:</p> <pre>...
javascript jquery
[3, 5]
4,957,611
4,957,612
How to add a script element in an iframe for jQuery
<p>I have a parent document and iframe with some JavaScript code to add a <code>script</code> element in an <code>iframe</code> bellow:</p> <pre><code>var script = window.document.createElement('script'); script.src = '/jquery.myPlugin.js'; window.frames['test'].document.head.appendChild(script); </code></pre> <p>How...
javascript jquery
[3, 5]
5,422,070
5,422,071
Java or C# for a PL/SQL Developer
<p>Can you Please suggest as what should be my next carrer move , I am an Oracle Developer , I worked in Forms and reports and know good PL/SQL and SQL.</p> <p>Now , I am thinking to learn new technology as there no jobs in PL/SQL alone and Oracle front-end Forms and reports are on the verge of extinction.</p> <p>The...
c# java
[0, 1]
2,613,071
2,613,072
Response.Redirect throwing error
<p>I am having an issue with a response.redirect call. </p> <p>Error:</p> <blockquote> <p>System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpRespons...
c# asp.net
[0, 9]
4,389,901
4,389,902
convert a string to integer in c#.net
<p>I need to convert a string to integer. My string can be of any type (float/int/string/special Character).</p> <p>For Example:</p> <pre><code>If my string is "2.3", i need to convert to = 2 If my string is "anyCharacter", i need to convert to = 0 If my string is "2", i need to convert to = 2 </code></pre> <p>I tri...
c# asp.net
[0, 9]
5,297,049
5,297,050
how to disable caching on few pages, so as to avoid double submission of forms
<p>how to disable caching on few pages, so as to avoid double submission of forms </p>
c# javascript asp.net
[0, 3, 9]
3,467,053
3,467,054
How can I fade-out a row (TR) in IE6 or 7
<p>I'm using JQuery to fade-out rows (TR) when the user clicks a Delete button on a row (TR). By fade-out, I mean the entire row (TR) background-color is changed to an off red and then it fades to white and disappears. This is a great little animation for showing the user an instant reaction for what the did.</p> <p...
javascript jquery
[3, 5]
1,117,247
1,117,248
Why is this expression always false?
<p>I'm creating a Q&amp;A site that allows users to vote on answers. I've set project.problem.upVoted to a list of answers which the user has already upvoted. If the answer is already voted on, the callback for the upvote arrow's click event should delete the current vote, and if it's not already voted on, it should ...
javascript jquery
[3, 5]
3,413,963
3,413,964
JavaScript synchronization
<p>I don't know how I can synchronize next code:</p> <pre><code>javascript: (function() { var s2 = document.createElement('script'); s2.src = 'http://192.168.0.100/jquery.js'; document.body.appendChild(s2); s = document.createElement('link'); s.rel = "stylesheet"; s.href = "http://192.168.0.100...
javascript jquery
[3, 5]
3,852,155
3,852,156
what is the XmlSampleGenerator namespace?
<p>i want use XmlSampleGenerator API in my project. i don't know how to add this my project. i use C# and 4.0 .Net FrameWork. can anbody help me?</p> <p><a href="http://msdn.microsoft.com/en-us/library/aa302296.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa302296.aspx</a></p>
c# asp.net
[0, 9]
1,167,527
1,167,528
How to include two attributes with jQuery
<p>I am new to javascript in general and pretty much have no idea what is going on. Sorry for the super noobie question.</p> <p>I have an accordion being started with the following code:</p> <pre><code>$(function(){ $("#accordion").accordion({header: "h3"}); }); </code></pre> <p>But I have no idea where to include <...
javascript jquery
[3, 5]
948,698
948,699
Selecting element with ID does not work
<pre><code>alert($('#myTableHeader1').width()); alert($('#myTableHeader1').outerWidth()); alert($('#myTableHeader1').innerWidth()); </code></pre> <p>None of the above works. Even though I have </p> <pre><code>&lt;th id="myTableHeader1" width="12%"&gt; testest&lt;/th&gt; </code></pre> <p>I get the error </p> <blockq...
javascript jquery
[3, 5]
5,909,326
5,909,327
How to open file using Intents programatically?
<p>I have following code for opening files programatically:</p> <pre><code> Uri path = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(path, type); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); </code></pre> <p>But now I need to set MIME-type of file, and it isn't unive...
java android
[1, 4]
3,001,285
3,001,286
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]
5,053,410
5,053,411
Converting jQuery function to be reused easily without repetition
<p>I have the following function that fades each line of an unordered-list in and out. Right now it works for #skills_hints but I want to use it for other #named_hints. Is there a way I can reuse this code over multiple unordered lists without copying and pasting the <strong>entire</strong> code and just changing the I...
javascript jquery
[3, 5]
5,415,405
5,415,406
How to find the duration of .swf file using JavaScript or jQuery
<p>I am embedding a .swf file in web page and I want to raise an event when .swf file has finished playing. After searching Google I came to know that it is not possible directly in JavaScript. But I assume that calculating the duration of .swf file and setting the timer according to the time may give me approximate re...
javascript jquery
[3, 5]
5,120,098
5,120,099
cant return li id with jquery
<p>I am pulling in data through ajax to populate a facebook-like wall type application (or a twitter wall).</p> <p>But I'm getting undefined when i try to access the first li- if anyone can spot my obvious mistake it would be appreciated</p> <pre><code>var get_venues = function(){ $.ajax({ type:...
javascript jquery
[3, 5]
871,186
871,187
using multiple id in jquery
<p>I made little jquery script for checking if input box value bigger than 5 .but I have 2 tag with an id and only one of them works.</p> <pre><code>&lt;div id="register"&gt; &lt;form id="register"&gt; &lt;input id="first" type="text" /&gt; &lt;a id="first" &gt;&lt;/a&gt; &lt;br /&gt; &lt;input id="second" ty...
javascript jquery
[3, 5]
4,850,526
4,850,527
Input button onClick remove closest div
<p>Erm, why this don`t work, iv used similar code like this for my site many times..butnow dont work..</p> <p>HTML</p> <pre><code>&lt;div&gt;&lt;span&gt;a&lt;/span&gt;&lt;input type='hidden' /&gt; &lt;input type='button' onClick='Remove(event)' /&gt; </code></pre> <p>JQuery</p> <pre><code>function Remove(e){ e.prev...
javascript jquery
[3, 5]
3,587,646
3,587,647
seperate validation of two forms with jquery
<p>I have two forms in one page and i would like to validate each form seperatly DEPENDING on what the user fills. So basically the user must fill only ONE form and NOT both of them...SO basically if the user fills up form number 1, the validation will be on form 1 ONLY..</p> <p>Below please find the code of both form...
javascript jquery
[3, 5]
579,744
579,745
how to open a file on android
<p>I am new to android and programming. I am using the android touchpaint api, and using the following code to save a drawing, but obviously saving is useless without being able to open the file.</p> <p>I was wondering if anyone could help me with some code for it.</p> <pre><code> // Function saves image to file p...
java android
[1, 4]
141,083
141,084
Jquery Div sort and order =)
<p>The problem i have is i need to group certain divs together and reorder them, and if it was all animating it would be cool. Please see below:</p> <pre><code>&lt;div id="away"&gt;Some Content&lt;/div&gt; &lt;div id="online"&gt;Some Content&lt;/div&gt; &lt;div id="offline"&gt;Some Content&lt;/div&gt; &lt;div id="away...
javascript jquery
[3, 5]
2,479,571
2,479,572
How to check if a button has been clicked using javascript?
<p>Here i need to check a button click using javascript i.e)if button A is clicked i will call a javascript function and if button B is clicked i will call another javascript function.</p> <pre><code>if(document.getElementById('imgBTNExportPPT').clicked == true) { ShowDialogExportPPTPOPUP(); } else if(document.getE...
c# javascript asp.net
[0, 3, 9]
3,718,640
3,718,641
passing data from php simple dom parser to jquery
<p>I have this simple script : </p> <pre><code>&lt;?php include_once("simple_html_dom.php"); $content = file_get_html('http://en.wikipedia.org/wiki/Myst'); ?&gt; </code></pre> <p>What I'm trying to do is find a way to send this to a jquery script ....would I need to do a $.ajax GET in jquery? What would I need to ad...
php jquery
[2, 5]
3,918,597
3,918,598
connect to ms sql database in a server
<p>i am working on a app which should take data from a database on a server. it is a ms sql database. i need some help like little code hints or some useful information.</p> <p>thank you!</p>
java android
[1, 4]
601,085
601,086
Help with modifying my custom JQuery slider to allow continous scrolling
<p>You can view my custom slider here: <a href="http://www.awaismuzaffar.com/examples/index.html" rel="nofollow">http://www.awaismuzaffar.com/examples/index.html</a></p> <p>And below is the JQuery code for it:</p> <pre><code> $(document).ready(function() { // Slider Function var slideWidth = $('div...
javascript jquery
[3, 5]
3,654,153
3,654,154
What does putting code in a curly brace block mean
<p>IN php, and some other languages i can have a code block without any entry conditions such as if, or for or function call:</p> <pre><code> echo "Hello World"; { echo "What does this mean"; } </code></pre> <p>What does this signify exactly. If I am not wrong, I can also do this in java. What exactly d...
java php
[1, 2]
53,078
53,079
Split table in two keeping same column width
<p>I'm trying to split a table -- i.e., rip off the <code>thead</code> and put it in its own table. Here's what I've got so far:</p> <h1><a href="http://jsfiddle.net/mnbayazit/UPeN3/" rel="nofollow">fiddle</a></h1> <pre><code>var $colgroup = $('&lt;colgroup&gt;'); $('td,th', '.query-results tr:first').each(function ...
javascript jquery
[3, 5]
4,968,460
4,968,461
constructing two dimensional array dynamically
<p>I have some values in JavaScript array as shown </p> <pre><code>var sampledata = {10,20,30,40};// these values would come from database later </code></pre> <p>I want to create a two dimensional array with these values.</p> <p>I want to create a array as </p> <pre><code>var newData = [[0,10],[1,20],[2,30],[3,40]]...
javascript jquery
[3, 5]
4,204,178
4,204,179
Jeditable textarea formatting
<p>I'm following the advice here: <a href="http://birdchan.com/home/2012/02/24/jeditable-textile-textarea-renderer-issue/" rel="nofollow">http://birdchan.com/home/2012/02/24/jeditable-textile-textarea-renderer-issue/</a> but I have not been able to get this to work. </p> <p>I have a textarea I am using jeditable on bu...
javascript jquery
[3, 5]
3,609,246
3,609,247
How to marshal nested structure?
<p>I have three C++ structures that I need to send as parameters when calling a DLL method from C#. I simplified them as the following:</p> <pre><code>typedef struct { int data1; int data2; } A; typedef struct { int numStructA; A *pStructA; int moreData; } B; typedef struct { TCHAR *pStr; ...
c# c++
[0, 6]
1,300,674
1,300,675
Android BroadcastReceiver wait for Service to start or transmit WakeLock to Service?
<ol> <li>BroadcastReceiver receives a broadcast, opens a wakelock, starts a Service</li> <li>Service opens another wakelock, then sends a "release wakelock" broadcast</li> <li>BroadcastReceiver receives the release wakelock broadcast and releases its wakelock</li> <li>Service does its thing and releases its wakelock</l...
java android
[1, 4]
163,713
163,714
Trying to get a jquery script to hide an element when a user clicks outside the scope
<p>I am trying to implement a bit of code that Twitter use to toggle off the drop-down login box when a user clicks outside the scope of the drop-down box itself.</p> <p>I am having a bit of trouble, currently if I click outside the scope of the element it works as expected but the same thing also happens when I click...
javascript jquery
[3, 5]
159,227
159,228
jquery validation
<p>I have some problem to execute the following jquery validation program</p> <pre><code>email: { required: true, email: true, remote: "emails.php" }, </code></pre> <p>.........</p> <p>in jquery validation </p> <pre><code>$.ajax($.extend(true, { url: param, mode: "abort", port: "validate" + ele...
javascript jquery
[3, 5]
5,313,029
5,313,030
obscure jquery syntax in supersized slider
<p>I was going through the supersized.3.2.5.js file of the full screen image slider - <a href="http://buildinternet.com/project/supersized/" rel="nofollow">supersized</a>. </p> <p>I can't understand the syntax of the following lines. Though I am not pasting the complete code here yet i think that is not any prob for t...
javascript jquery
[3, 5]
150,817
150,818
Is it possible to call an ASP.NET function inside a Javascript function?
<p>Is it possible to call an ASP.NET function inside a Javascript function?</p> <p>eg</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;%@ Import Namespace="System.Xml" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http...
javascript asp.net
[3, 9]
1,596,983
1,596,984
$(this). methods (js or jquery)
<p>I've looked at some js/jquery code and I saw this line here:<br> <code>$(this).</code></p> <p><strong>How can one find out what methods to call on this thing.</strong> Is there something similar to javadocs for js?</p> <p>Is this code in js or is it jquery?</p> <p>Note: this might be of relevance to those who rep...
javascript jquery
[3, 5]
797,395
797,396
jquery .load() does not get variable
<p>i have this code</p> <pre><code>$(document).ready(function () { $('a').click(function(e) { e.preventDefault(); url = $(this).attr('href'); $("body").load(href); }); }); </code></pre> <p>But it does not work. Nothing loads. The only thing that works is <code>e.preventdefault()</code>...
javascript jquery
[3, 5]
1,912,747
1,912,748
How does Python's handling of line-breaks differ from JavaScript's automatic semicolons?
<p>Javascript has a feature called Automatic Semicolon Insertion where basically if the parser encounters an invalid token, and the last token before that was a line break, then the parser will insert a semicolon where the linebreak is. This enables you to basically write all your javascript code without semicolons, bu...
python javascript
[7, 3]
419,010
419,011
Dynamic Array Value Count
<p>Similar to this question - <a href="http://stackoverflow.com/questions/8607455/array-value-count-javascript">Array value count javascript</a></p> <p>How would I go about doing this, except with dynamic values?</p> <pre><code>var counts = [] var dates= [ "28/05/2013", "27/05/2013", "28/05/2013", "26/05/2013", "28/0...
javascript jquery
[3, 5]
2,095,545
2,095,546
How to write JavaScript validation for a textbox in repeater control?
<p>I have a textbox in repeater control and I have a submit button. I want to validate the textbox using JavaScript such that after entering values in textbox, only one should be submitted. For that, I tried the following. My repeater control is:</p> <pre><code> &lt;asp:Repeater Runat="server" ID="repeater" EnableVie...
c# javascript
[0, 3]
5,723,187
5,723,188
How to put a variable as a string parameter in google's API data.addRows('string', value)
<p>I want to use a variable as a string parameter in data.AddRows like so...</p> <pre><code> function LanguagesChart(Names, Nums) { var data = new google.visualization.DataTable(); data.addColumn('string', 'Language'); data.addColumn('number', 'Employees'); for (i = 0; i &lt; Names....
javascript asp.net
[3, 9]
5,774,689
5,774,690
Uploading a text file in ASP.NET
<p>I have a web page on which users can upload text files (but a text file, i.e. a file with the extension .txt, could be of many encodings, e.g. ASCII, UTF8, UNICODE .. etc), I'm trying to validate the contents in memory before I save the file to the disk, if the content is not valid, I don't save the file. I'm readin...
c# asp.net
[0, 9]
4,128,075
4,128,076
problems with importing android project
<p>i have imported an existing android project into eclipse, it says <strong>The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project tet Unknown Java Problem</strong></p>
java android
[1, 4]
3,596,083
3,596,084
Browser's zoom-in and zoom-out function calling
<p>Is it possible to trigger a javascript function with Browser's zoom-in and zoom-out?</p> <p>Thanks in advance</p>
javascript jquery
[3, 5]
4,735,899
4,735,900
jquery woes , image replacement
<p>I currently creating a project, in which a user can click on thumbnail of an image, clicking on the thumbnail, replaces the src of a main image, to show a bigger version of the thumbnail.</p> <pre><code>$('.alternative_images a').click(function(e){ var imgSrc = $(this).attr('href'); $('.mainImage').attr('s...
javascript jquery
[3, 5]
5,632,565
5,632,566
Problem debugging script $(this).find is not a function
<p>I'm having a problem debugging this script, the initial problem was “$().ready is not a function” so I wrapped this part of the script:</p> <pre><code>$(document).ready(function() { $('#jsddm &gt; li').bind('mouseover', jsddm_open); $('#jsddm &gt; li').bind('mouseout', jsddm_timer);}); document.onclick = js...
javascript jquery
[3, 5]
3,124,721
3,124,722
How use C# methods in JavaScript?
<p>I have C# library with some logic for my app.</p> <p>How I can call C# methods from my web project(HTML/JavaScript/PHP/Apache)? Maybe exists some method like using Java Applet or <code>WebView.addJavascriptInterface()</code> in Android?</p>
c# java php javascript android
[0, 1, 2, 3, 4]
5,510,264
5,510,265
jQuery select multiple table columns by index
<p>I've seen certain questions knocking around which are similar, but not exactly the same and I'm stumped with this one.</p> <p>What I'm trying to do is create a widget that takes a table, then goes through the table's td elements and sets a cursor:pointer (for now) to them, but only the ones that I allow.</p> <p>Th...
javascript jquery
[3, 5]