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
1,309,357
1,309,358
Hiding divs with javascript collapse all
<p>I'm making divs with holds content and my problem is how to get all divs to collapse. Problem here is that the code needs to be dynamic since we don't know how many divs going to be made.</p> <p>First here is my javascript:</p> <pre><code>function pageLoad() var j = 1; while(j&gt;0) collapseAll($('div'+j,'divx...
javascript jquery
[3, 5]
2,183,706
2,183,707
Creating DOM elements in jQuery
<p>Let's say we have the following JavaScript/jQuery code below</p> <pre><code>function createElement(i, value) { return $('&lt;div&gt;', { id: "field" + i, text: value}); } </code></pre> <p>I have a div with an id of "container" and then I do:</p> <pre><code>var c=$("container"); c.append(createElement(1, "hell...
javascript jquery
[3, 5]
2,906,035
2,906,036
How to detect if user has reached almost the end of the page using jQuery?
<p>Right now I fire an event when the user has reached the bottom of the page using this:</p> <pre><code>$(window).scroll(function() { if($(window).scrollTop() == $(document).height() - $(window).height()) { // do something } }); </code></pre> <p>How can this be modified to fire the event when ...
javascript jquery
[3, 5]
4,992,040
4,992,041
Getting data from ASP.Net JSON service with jQuery
<p>I am trying to call the Google Maps geocoding API, to get a formatted address from a lat/long pair, and then log it to the console. I am trying to get the first 'formatted_address' item that gets returned for a given location. I am simple unable to extract that item from the JSON, I have no idea why. The line of co...
c# jquery asp.net
[0, 5, 9]
5,715,652
5,715,653
Jquery functions working momentarily, and then not at all?
<p>I had applied this slide mechanism to a page, and it worked fine for a while. I can't remember changing anything at all, but now it won't function properly.</p> <p>Here is the code:</p> <pre><code>$(document).ready(function () { var hash = window.location.hash.substr(1); var href = $('#nav li a').each(func...
javascript jquery
[3, 5]
1,856,771
1,856,772
HTML page floating on iphone
<p>I am developing a web app for mobile (iPhone, android), i got an issue where in the whole webpage is floating (checking on safari) when i drag the webpage its floating how to avoid this floating</p>
android iphone
[4, 8]
2,862,236
2,862,237
Serving Python website on it's own server next to apache serving other websites
<p>I have Apache server serving several PHP driven websites. I'm developing a websites in Python/Pyramid and want to host it on the same server. What options do I have available?</p>
php python
[2, 7]
1,543,342
1,543,343
can we store fadeOut method in a variable
<p>i have a jquery slider function and i want to customize it. my requirement is i want store fadeout effect in variable but i am not getting any idea. i spent some time on the internet to find out the solutions but not reaching up to the solutions. so there is any solutions regarding this. if yes please let me know it...
javascript jquery
[3, 5]
4,431,422
4,431,423
ASP .NET - Set default values of ListView InsertItemTemplate
<p>For a DetailsView I use the following code:</p> <pre><code> protected void DetailsView1_PreRender(object sender, EventArgs e) { DetailsView myDetailsView = (DetailsView)sender; //set value to current datetime ((TextBox)myDetailsView.FindControl("TextBox1")).Text = DateTime.Now.ToString("M/d/yyyy HH...
c# asp.net
[0, 9]
1,077,198
1,077,199
How do I convert a DateTime object to a string with just the date using C#?
<p>Seemingly simple. I need to convert a DateTime object to a string without the time stamp.</p> <p>This gives me the date and time. And I can't figure out how to just get the date.</p> <pre><code> startDate = Convert.ToString(beginningDate); </code></pre> <p>This outputs: 10/1/2011 12:00:00 AM</p> <p>I need...
c# asp.net
[0, 9]
5,656,622
5,656,623
Jquery - how to load everything except the images?
<p>I'm currently working on a WordPress addition which loads full post content (normally it shows exceprts) when asked to. I did my code like this:</p> <pre><code>$(".readMore").click(function() { var url = $(this).attr("href"); $(this).parent("p").parent("div").children("div.text").slideUp("slow", function () { $...
javascript jquery
[3, 5]
5,040,867
5,040,868
Java public class with an internal method
<p>I am attempting to convert a C# abstract class to a java class that has the same encapsulation and functionality. I understand you can make a class internal in Java by declaring the class without any modifiers, and this results in a private package. I would like to achieve something similar except where the class is...
c# java
[0, 1]
4,780,756
4,780,757
exporting gridview to Ms Excel 2007
<p>I am trying to export grid view data into excel 2007 i.e. xlsx format. but its giving error.</p> <p>i am using following code</p> <p>protected void Button1_Click(object sender, EventArgs e)</p> <pre><code> { Response.Clear(); Response.Buffer = true; Response.AddHeader("content-dispositi...
c# asp.net
[0, 9]
287,128
287,129
Call ajax load from a popup
<p>I'm trying to dynamically load html into a popup using ajax with this:</p> <p><code>$('body').load( new_url, function (responseText, textStatus, XMLHttpRequest ) { ... } );</code></p> <p>It works fine, but it doesn't load the html into the subwindow, it loads it into the opening window. If I have a reference to th...
javascript jquery
[3, 5]
5,567,824
5,567,825
For Android development, some questions about Java SDK and 32/64 bit versions
<p>I am about to get my feet wet in Android development, and I had some questions about the Java SDK as it pertains to Android coding.</p> <p>I'm running Win 7 x64 - is it better if I run the 32-bit JDK, or the 64 bit JDK? I've done some searching, and keep finding conflicting answers.</p> <p>Also, if I'm about to i...
java android
[1, 4]
1,581,417
1,581,418
Dynamically create JS file using ASP.net Handler
<p>I have many clients I want to give them scripts so I want to Create JS file based on their Cusotmer ID. So I can return and it directly execute on customer side. Client can be anyone either PHP,Html, ASP.net</p> <p><strong>Problem is when i browse this link it give me JS string but on customer side this script is n...
javascript asp.net
[3, 9]
970,515
970,516
not redirecting to handler page
<p>My java script which i had given in aspx page. the info should be redirect to handler page is not working..</p> <pre><code>&lt;script type="text/javascript"&gt; var Name; var Age; var Mobile; var Email; var Center; function getdata() { alert('Adding'); Name=document.getElementById("txtname").value; ...
javascript asp.net
[3, 9]
4,269,550
4,269,551
jquery callback specificity
<p><br> Is there any specificity associated with event callback with jQuery. Say, I register a mousedown event callback on a div element, and also on the document. Which one would trigger if I click on the div? Does the order of registration matters? or the specificity (like css) matters?</p> <p>thanks.</p>
javascript jquery
[3, 5]
1,576,618
1,576,619
How to restrict user from submitting the form twice?
<p>I have an asp.net form, which allow users to submit a registration form which internally sends/store all these values on SharePoint list using the web-service and hence on submit the page process time is a little lengthier then the normal form.</p> <p>Mean time before the page gets redirect to a thanks page, user's...
c# javascript jquery asp.net
[0, 3, 5, 9]
1,428,772
1,428,773
Embed Python in Java on Android
<p>By embed I mean execute Python code from String in Java.</p> <p>Jython won't compile for Android, and <a href="http://code.google.com/p/android-scripting/" rel="nofollow">Scripting Layer for Android</a> doesn't seem to let me embed Python through my Java application.</p> <p>So how to embed Python in a Java applica...
java android python
[1, 4, 7]
4,005,950
4,005,951
Jquery validate with fade in and hide
<p>I have a JS validation code like this :</p> <pre><code>$(document).ready(function(){ $('#username').keyup(username_check); }); function username_check(){ var username = $('#username').val(); if(username == "" || username.length &lt; 4){ $('#username').css('border', '3px #CCC solid'); ...
javascript jquery
[3, 5]
5,022,763
5,022,764
How to Disable Browser from Saving Previous Data of TextBox in asp.net
<p>Sorry I didn't explain My problem correctly , My problem is that I have a TextBox with AutoComplete Extender and It's works but The browser save the text that i have Entered before so when i start writing to My text Box I have Two lists appear , one from the browser and one from the autocomplete </p> <p>I want to d...
c# asp.net
[0, 9]
948,666
948,667
current time with seconds
<p>I have strange problem .. i have a function to display the time with seconds counter but i sent specific time (hours and minutes) as parameters when count of second reach 59 no minutes incremented and i am not sure if the same problem with hours when minutes will be 59 minute</p> <pre><code>function updateClock(cur...
php javascript jquery
[2, 3, 5]
5,921,402
5,921,403
best method of detecting mobile browsers with javascript/jquery?
<p>For a site I'm working on I'm implementing image preloading with javascript however i most certainly do not want to call my <code>preload_images()</code> function if someone is on slow bandwidth.</p> <p>For my market the only people with slow bandwidth are those using mobile internet on a smartphone.</p> <p>What's...
javascript jquery iphone android
[3, 5, 8, 4]
3,534,919
3,534,920
What's faster $('#parent .childclass1, #parent .childclass2').css(something) or $('#parent').children().css(something)?
<p>I think the title is explanatory. I'm becoming performance obsessed due to previous problems and am trying to get everything to max speed. As I found out that $('#parent').find('li') is faster than $('#parent li') I feel like I don't know anything anymore... So thus my question:</p> <p>What's faster </p> <pre><cod...
javascript jquery
[3, 5]
3,797,152
3,797,153
Using an adapter from another class/activity
<p>How can I use an ArrayAdapter from another activity? I tried doing the following in MyListActivity.onCreate():</p> <pre><code>setListAdapter(SomeOtherActivity.myAdapter); </code></pre> <p>where myAdapter is defined and initialized in SomeOtherActivity. However, I get an empty list, even though I verified that Some...
java android
[1, 4]
594
595
Jquery syntax when calling methods
<p>This code:</p> <pre><code>&lt;script type="text/javascript"&gt; someMethod1(); $(function () { someMethod2(); }); &lt;/script&gt; </code></pre> <p>What is the difference between these two callings? When do we do the first call, and when do we do the second call? What is the order of the method execution?<...
javascript jquery
[3, 5]
1,733,468
1,733,469
PHP & Javascript :A generic way to create a javascript dictionary using php
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1156054/whats-the-best-way-to-send-javascript-array-to-php-script-using-get">What&#39;s the best way to send JavaScript array to PHP script using GET?</a> </p> </blockquote> <p>I just want to know that what is t...
php javascript
[2, 3]
2,238,959
2,238,960
SQLiteException when executing query
<p>I want to execute a ManagedQuery but am getting a error in my log:</p> <p><strong>Query</strong></p> <pre><code> Cursor cursor = managedQuery(GroceryListContentProvider.NOTES_URI,projection,Notes.NOTE_TITLE+"="+S+" AND "+ Notes.NOTE_DATE+"="+S1, null, null); </code></pre> <p><strong>Error Log</strong></p> <pre><...
java android
[1, 4]
5,832,436
5,832,437
find each link with jquery and a html string
<p>I want to find every "a" tag in this HTML string</p> <pre><code>$(document).ready(function(data) { $.get('test.html', function(responseText){ //find each a tag }, "html" ) }); </code></pre> <p>Why is that so damn difficult for me ?</p>
javascript jquery
[3, 5]
5,775,832
5,775,833
Add or Subtracting into $(window).scrollTop + $(window).height == $(document).height() - Scrolled to bottom of page equation
<p>I'm running an if function when the user gets to the bottom of the page which works great as is like this</p> <pre><code>if($(window).scrollTop() + $(window).height() == $(document).height()) {} </code></pre> <p>However I want it to run slightly before the bottom - about 300px before. </p> <p>I've tried</p> <pre...
javascript jquery
[3, 5]
1,065,173
1,065,174
How to get the my table size after applying css styles
<p>i am having one div, which contains one table. i want to apply the table-width to div element. My table cells having padding 5, so table width is not correct in IE browser, while the mozila the sample code works.</p>
javascript jquery
[3, 5]
1,594,077
1,594,078
opening new window in ie7 opens same target as base window but shows proper url in firefox
<p>i have a simple little form</p> <pre><code>&lt;form id="loginform"&gt; &lt;input id="myinput" type="text" /&gt; &lt;input name="submit" value="go" type="submit" /&gt;&lt;/form&gt; </code></pre> <p>in a very not secure way i want it to go to different urls depending on the input value.</p> <p>here is my simple lit...
javascript jquery
[3, 5]
2,812,755
2,812,756
Cancel step if validation fails in asp.net wizard
<p>I am using asp.net wizard in my project which is new to me. I have validations in one of the steps in my wizard. If the validation fails i should not allow the user to go to next step. And i am using a asp.net button which navigate between the steps in wizard. I would really appreciate if anyone could help me.</p>
c# asp.net
[0, 9]
5,819,194
5,819,195
How to escape new line chars in php to output into a javascript string value?
<p>I pulling out some html/text strings that I need to insert into a javascript variable.</p> <p>eg, that's how it would look in php: </p> <pre><code>echo "&lt;script type=\"text/javascript\"&gt;\n"; echo "var myvar='{$value}'"; echo "\n&lt;/script&gt;"; </code></pre> <p>The problem with the above approach is that s...
php javascript
[2, 3]
5,986,226
5,986,227
Facebook link inspector
<p>I'm building a website and am looking for a way to implement a certain feature that Facebook has. The feature that am looking for is the link inspector. I am not sure that is what it is called, or what its called for that matter. It's best I give you an example so you know exactly what I am looking for.</p> <p>When...
php javascript
[2, 3]
2,191,572
2,191,573
Executing javascript code stored in an element attribute using jQuery
<p>say there is an element #button with the attribute onmousedown containing some random javascript how could I trigger the js in that element attribute using jQuery? </p> <pre><code>j("#otherbutton").click(function(){ var script = j("#button").attr("onmousedown"); //what now? }); </code></pre>
jquery javascript
[5, 3]
4,659,074
4,659,075
How to disable HTML links
<p>I have a link button inside a TD which i have to disable. This works on IE but not working in Firefox and Chrome. Structure is - Link inside a TD. I cannot add any container in the TD (like div/span)</p> <p>I tried all the following but not working on Firefox (using 1.4.2 js):</p> <pre><code>$(td).children().each(...
javascript jquery
[3, 5]
981,967
981,968
Send mail with attachment
<p><strong>Edit</strong>: <strong>I'm able to send mail without attachment</strong> </p> <p>Getting this error while trying to send mail:</p> <pre><code>System.Net.Mail.SmtpException: The operation has timed out. </code></pre> <p>Following is my code:</p> <pre><code>public static void SendMailMessage(string to, str...
c# asp.net
[0, 9]
4,031,662
4,031,663
How to make /#!/ in our URL?
<p>Everyone!</p> <p>Almost 3 hours im stack in this problem! iv'e copy the concept in twitter like this if twitter.com/#!/username then the page/profile is username, </p> <p><a href="http://twitter.com/#!/mardagz" rel="nofollow">http://twitter.com/#!/mardagz</a> as you can see it redirected to my account, so now im t...
javascript jquery
[3, 5]
2,395,732
2,395,733
Javascript hour countdown error
<p>I have a countdown timer which transfers time from H:i:s to long version using this script:</p> <pre><code>function parseTime() { var timeLeftStr; var timeLeft = 0; timeLeftStr = document.getElementById("timeleft").innerHTML; timeLeftStr.replace(/(\d+):(\d+):(\d+)/, function () { for (var i = 1; i &lt; argume...
php javascript
[2, 3]
136,844
136,845
handle cookie through XML web server
<p>I am dealing with XML API, where according to the document, i need to login XML call first before making secure(HTTPS) calls. e.g. to make login call (http://calllogin.do?username=test&amp;password=password). once i am successfully logged in, third party system will write cookie. everytime i make https call third p...
c# asp.net
[0, 9]
2,187,592
2,187,593
call the same name functions in jquery?
<p>i have 2 file js in my asp website named</p> <pre><code>1-jquery.datepick.js 2-jquery.hijridatepick.js </code></pre> <p>these file have the same name functions but second one apear popup hijricalender i call it by</p> <pre><code> &lt;script type="text/javascript"&gt; $(function () { $('[id$=Text...
javascript jquery asp.net
[3, 5, 9]
1,424,825
1,424,826
Javascript Type Error, is not a function
<p>I've got abit of a strange problem, that I just can't seem to solve! It's part of a big framework I'm writing, but I've wrote some test code which has the same problem. See the following:</p> <pre><code>!function ($, window, undefined) { // BASE FUNCTION var test = function (selector, context) { re...
javascript jquery
[3, 5]
978,255
978,256
How to change the message box title?
<p><img src="http://i.stack.imgur.com/6mZQS.png" alt="enter image description here"></p> <p>How to change the title of this message box in asp.net?</p> <p>this heading appears in IE.</p> <p>Do Help...</p>
javascript asp.net
[3, 9]
1,625,044
1,625,045
Android equivalent of IBActions and IBOutlets
<p>I am thinking of starting with android development. </p> <p>What are the equivalents of IBActions and IBOutlets in android? </p> <p>Is it as easy as Interface Builder to setup connections to code?</p> <p>Is it quick to learn the basics of android development if one knows java?</p>
iphone android
[8, 4]
2,117,922
2,117,923
LinkButton open new windo tab
<pre><code>&lt;asp:LinkButton ID="lnkbtnMoreTagRules" runat="server" CommandName='&lt;%#Eval("Value")%&gt;' CommandArgument='&lt;%# string.Format("{0}||||{1}", Eval("Tag"), Eval("TagAppearance"))%&gt;' OnCommand="lnkbtnMoreTagRules_Command"&gt;Več pravil&lt;/asp:LinkButton&gt; </code></pre> <p>I wan...
c# asp.net
[0, 9]
150,520
150,521
controlling vibration intensity in android phones? is it possible?
<p>I am developing a game. In which, i want do set different vibration intensities for different events. I just want know if its really possible to control the vibration intensity and duration. Any advice or reference links, could be very helpful. Thanks in advance.</p>
java android
[1, 4]
3,313,823
3,313,824
list with scrollview
<p>I have list with <code>scrollview</code> after i add the scroll i try to change the height of the scroll view so the list be in the center of the layout and the height be more but it dose not working.</p>
java android
[1, 4]
3,640,445
3,640,446
toggle two images on click
<p>I'm trying to use someone's code from an earlier post that I posted on here, and in it, he provided a <a href="http://jsfiddle.net/D9VvV/" rel="nofollow">jsFiddle</a> that shows how to toggle between two images.</p> <p>I'm trying to replicate exactly what that person is doing, but it doesn't seem to work on my code...
javascript jquery
[3, 5]
1,284,825
1,284,826
jQuery animate effect optimization
<p>I am experimenting with jQuery and the animate() functionality. I don't believe the work is a final piece however I have problem that I can't seem to figure out on my own or by trolling search engines.</p> <p>I've created some random animate block with a color array etc and everything is working as intended includi...
javascript jquery
[3, 5]
3,871,278
3,871,279
What does this code mean? $.getJSON
<p>i know this:</p> <pre><code>$.getJSON( "test.js", function(json){ alert("JSON Data: " + json.users[3].name); } ); </code></pre> <p>but i see the code in a site:</p> <pre><code>$.getJSON(l, { tag: "userName", userName: 'sss' ...
javascript jquery
[3, 5]
356,860
356,861
Saving File on Long Click
<p>I have an app that plays mp3's. I want to make it so when you long click/press on the button it will save the mp3 file to there ringtones directory. Also want a toast notification if possible. Could someone shoot me into the right direction? </p> <p>Thanks</p> <p>EDIT: This is what I have so far</p> <pre><code> ...
java android
[1, 4]
4,947,541
4,947,542
Run two mediarecorders at the same time
<p>I am implementing <strong>talking tom</strong> like application I am implementing the record and play feature for it like it plays the recorded audio when it detects silence </p> <p>what I have understood so far is </p> <ol> <li>we need two recoders running at the same point of time</li> <li>one checks the amplitu...
java android
[1, 4]
4,615,200
4,615,201
how to deal with an undefined query variable
<p>I have the following to launch dialogs in my app:</p> <pre><code>$('.dialogDo').live('click', function() { // Do we have a custom width? var width = this.search.match(/width=(\d+)/)[1]; if (width) { dialogDo(this.href, width); } else { dialogDo(this.href, 480); } return...
javascript jquery
[3, 5]
4,240,071
4,240,072
ArrayList of images to GridView
<p>I have a list of images in my ArrayList, I would like to display them in GridView, the same way the example is over here: <a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-gridview.html</a></p> <pre><code>...
java android
[1, 4]
5,521,407
5,521,408
jQuery object to string help please
<p>I am creating a jquery object like so:</p> <pre><code> htmlCode = $("&lt;div id='"+data.layoutDescriptions[i].id+"'&gt;&lt;/div"); </code></pre> <p>It seems to be missing some elements mainly when I am doing this:</p> <pre><code>if(data.type == "ListView"){ htmlCode.append("&lt;SELECT property='"+ data.prope...
javascript jquery
[3, 5]
929,859
929,860
JavaScript Library for opening Excel Files on the Web
<p>Is there a javascript library that processes an excel file on the client side of the web? </p>
javascript jquery
[3, 5]
707,672
707,673
Map structure in Android and dynamic memory allocation
<p>Not so recently I've published a game that is written entirely in Java on Android platform. Currently I'm trying to get as much of the performance as possible. It seems that the problem in my game's case is that I'm using more too often <code>ArrayList</code> container in places where <code>Map</code> could be bette...
java android
[1, 4]
326,314
326,315
Java hierarchy inside an android listner
<p>In my android application I want to solve the following scenario.</p> <pre><code>class Login extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LayoutBuilder objLB=new LayoutBuilder(this); objLB.createSpinner(); } ...
java android
[1, 4]
2,352,759
2,352,760
asp.net jquery loading values on page after post back
<p>Im currently trying to use a jQuery plugin: <a href="http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/" rel="nofollow">jQuery Autocomplete Tokenizer</a> Now after posting back the page, I want to re-load the values back into the textbox for whatever items had been entered.</p> <p>Now the...
javascript asp.net jquery
[3, 9, 5]
3,951,226
3,951,227
Disable PrettyPhoto in code
<p>How can I disable <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/" rel="nofollow">PrettyPhoto</a> after it has been enabled?</p> <pre><code>$(document).ready(function () { $("a[rel^='prettyPhoto']").prettyPhoto(); } $("#disablePrettyphoto").click(function (e) { $("a...
javascript jquery
[3, 5]
2,202,257
2,202,258
unzipping a file using c#
<p>which one is better to unzip a file in C# using window shell or uzipping it in c# using third party software like DotNetZip?</p>
c# asp.net
[0, 9]
3,771,561
3,771,562
window.navigate and document.location issue
<p>I am working on a system that after completing a record edit and returning control to the calling AJAX script, I refresh the calling page by calling a custom server extension. The odd behavior I am experiencing is after control is returned to the calling script, when the code hits window.navigate or document.locati...
c# javascript
[0, 3]
291,268
291,269
Javascript with PHP
<p>I have an overlay image that is created in Javascript using the 'Createelement' function. Now I would like to know if I can attach a handler to the mouseover event using PHP? </p> <p>Can you give an example pls?</p> <p>The image appears only when hovering over the element below it. </p> <p>Regards, T</p> <p><...
php javascript
[2, 3]
5,455,242
5,455,243
what's the behind jquery event delegate?
<p>Someone told me sometimes event delegate more efficient.</p> <pre><code>&lt;ul id="test"&gt; &lt;li&gt;aaaaa&lt;li&gt; &lt;li&gt;bbbbb &lt;p&gt;xxxxx&lt;p&gt; &lt;/li&gt; &lt;li&gt;ccccc&lt;li&gt; &lt;/ul&gt; //script var li = document.getElementByTagName('li'); for(var i=0,len=li.length;i&lt;len;i++){...
javascript jquery
[3, 5]
3,326,624
3,326,625
Javascript show/hide - I don't want it to hide the entire element
<p>This is probably a fairly easy question, but I'm new to JavaScript and jquery....</p> <p>I have a website with a basic show/hide toggle. The show/hide function I'm using is here: <a href="http://andylangton.co.uk/articles/javascript/jquery-show-hide-multiple-elements/" rel="nofollow">http://andylangton.co.uk/articl...
javascript jquery
[3, 5]
5,595,181
5,595,182
jQuery slider with delayed elements/content
<p>I'm looking for a jQuery slider similar to this <a href="http://www.apple.com/uk/imac/" rel="nofollow">http://www.apple.com/uk/imac/</a> or <a href="http://www.reachlocal.com/" rel="nofollow">http://www.reachlocal.com/</a>.</p> <p>I believe Apple calls theirs "hero slider".</p> <p>I was looking at easy slider whic...
javascript jquery
[3, 5]
377,583
377,584
How is it possible to cast an Android Activity to an interface?
<p>In the Android documentation here: <a href="http://developer.android.com/guide/components/fragments.html" rel="nofollow">http://developer.android.com/guide/components/fragments.html</a> A Fragment implements an interface.</p> <p>In the onAttach() callback, it seems to cast the current Activity to an interface. Conc...
java android
[1, 4]
3,286,592
3,286,593
How to make Product List in ASP.net C#
<p>how to display Product list in ASP.net C#? i'm creating e-commerce website for my thesis i need to display it in a grid form like this >> <a href="http://pcx.com.ph/components/processors.html?p=2" rel="nofollow">sample product list</a> with limitation per page example 10 products per page please i need your help</p>...
c# asp.net
[0, 9]
1,799,076
1,799,077
Can I install an Android application from a byte array programmatically?
<p>I know I can install an Android application programmatically by the below code which passes the <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Identifier" rel="nofollow">URI</a> of an <a href="http://en.wikipedia.org/wiki/APK_%28file_format%29" rel="nofollow">APK</a> file. Can I install the application witho...
java android
[1, 4]
1,901,734
1,901,735
jQuery - Get value of hyperlink.navigateurl
<p>I bind click to a series of <code>asp:hyperlink</code> via the following jquery</p> <pre><code>$(".dummyIdentifier").click(function () { $("#divLineItemComments").dialog("open"); return false; }); </code></pre> <p>This works fine. Now, I need to pass the value of Hyperlink.Navigate...
jquery asp.net
[5, 9]
5,413,176
5,413,177
The requesterd URl could not be found AJAX
<p>I have an ASP.net application, when i run it the page load but the method which are AJAX method they do not load. and i get this error.</p> <p>Error 1: </p> <blockquote> <p>/ajax/UserControls_WebUserControl,App_Web_webusercontrol.ascx.6bb32623.ssiyzisi.ashx</p> </blockquote> <p>I have re-install AJAX, check th...
c# asp.net
[0, 9]
296,890
296,891
Two animations run the same time jquery
<p>I have tried to make two squares move at the same time... I know the first animation is repeating to infinite but what should i do?</p> <p><a href="http://goo.gl/cgrWg" rel="nofollow" title="JsFiddle">JsFiddle</a></p>
javascript jquery
[3, 5]
620,757
620,758
Starting jQuery autocomplete immediately after my Ajax call to server
<p>In my code I bind a <code>keyup</code> event to my input to check if the input value's length is 3. If it is, I make an Ajax call to the server getting the records from my database which start with these 3 character entered and then I start jQuery autocomplete with source - the data from database.</p> <p>The proble...
javascript jquery
[3, 5]
3,491,177
3,491,178
Need help regarding submitting values through a form with select Box?
<p>I have a empty select box on a form. </p> <p><code>&lt;select id='essentialDocs[]' &gt;&lt;/select&gt;</code></p> <p>through some script i add options to it. Basically it adds URL's. So at runtime html will look like </p> <pre> <code>&lt;select id='essentialDocs[]' &gt; &lt;option value='http://www.google.com' ti...
php javascript
[2, 3]
1,119,739
1,119,740
JQuery - Help with .animate and function callback
<p>I am trying the following, but cant get the function to run itself again (I am trying to create some kind of looping animation)</p> <pre><code>$(document).ready(function() { //function loopingFunction(){ function loop() { $('#item').animate({top:'+=100'}, 500, function() { ...
javascript jquery
[3, 5]
3,993,647
3,993,648
c# transform ref_cursor into a list ar a dictionary
<p>Hi I was wondering how to transform ref_cursor with a table of results generated by a stored procedure into a list or dictionary,I mean this:</p> <p>stored proc procedure(userID in integer,result out sys_refcursor); returns a table 6*5 or smtng similar</p> <p>now we call this procedure from c# and we have a ref_cu...
c# asp.net
[0, 9]
859,186
859,187
I want a tab control in asp.net with previous and next button
<p>I want a tab control which will have say 4 tabs. in the content of 1st tab, there will be a button named as "Next". Onclick of "Next",it should go to 2nd tab or switch to 2nd tab. Similar way, 2nd tab will have "Previous" and "Next" buttons which will switch to 1st and 3rd tab respectively.</p>
c# jquery asp.net
[0, 5, 9]
5,153,028
5,153,029
Select2: search based on tags
<p>I would like to have search box like below image.</p> <p><a href="https://plus.google.com/u/0/photos/114872147731683389826/albums/5843935056831072545?authkey=CKai5M3A-ePvogE" rel="nofollow">https://plus.google.com/u/0/photos/114872147731683389826/albums/5843935056831072545?authkey=CKai5M3A-ePvogE</a></p> <p>Can I ...
javascript jquery
[3, 5]
1,471,951
1,471,952
Required fields check in asp.net textbox
<p>How can I implement a clientsidevalidation required textfields which contain the following texts:</p> <p>[Name required] [Address required]</p> <p>Preferrably I would like to use the asp:CustomValidator if possible? Only if both fields have data the postback will be triggered?</p> <pre><code> &lt;html xmlns="...
c# asp.net
[0, 9]
1,592,052
1,592,053
How to handle adding a close link within an UL/LI item
<p>I've got some code like so:</p> <pre><code>&lt;ul id="ulPersonal"&gt; &lt;li class="break eTime"&gt; &lt;p&gt;Manage your time card.&lt;/p&gt; &lt;div id="dEtime"&gt; some content &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>The div only appears once you hove...
javascript jquery asp.net
[3, 5, 9]
1,323,171
1,323,172
Is there any function like contains from Java for PHP?
<p>I would like to know if is there any function that search a string within string and return boolean value in PHP, telling if the string contains or not, like the method contains in Java?</p>
java php
[1, 2]
3,148,175
3,148,176
Is it better to send XMLHttpRequests to different scripts or one master script that delegates tasks?
<p>I am building a rather larger web application with javascript and PHP. The app has several different types of XMLHttpRequests, and my question is about best practice: is it better to send each of those requests to a different PHP script or to one master script which then goes through and delegates tasks? </p> <p>Cu...
php javascript
[2, 3]
612,657
612,658
Android - root shell comands wont work
<p>Can someone tell me whts wrong with this code because it doesnt work, it just wont stick what i echo</p> <pre><code> Process localProcess; try { localProcess = Runtime.getRuntime().exec("su"); DataOutputStream localDataOutputStream = new DataOutputStream(localProcess.getOutputStream()); loca...
java android
[1, 4]
6,004,415
6,004,416
How to make visible of text boxes on selecting the drop down list which is multi select
<p>Hi all i have gone through the example of dropdownlist with checkbox from here</p> <p><a href="http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=79" rel="nofollow">http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=79</a></p> <p>which works fine for me . But as per my requirement i will have 3 items in the drop d...
jquery asp.net
[5, 9]
3,704,937
3,704,938
Access element, which contains current <script>
<p>I've got following page:</p> <pre><code>&lt;div&gt;&lt;script&gt;AddSomeContent(??, 1)&lt;/script&gt;&lt;/div&gt; &lt;div&gt;&lt;script&gt;AddSomeContent(??, 2)&lt;/script&gt;&lt;/div&gt; </code></pre> <p>I need to replace the <code>??</code> with the surrounding <code>&lt;div&gt;</code> DOM object, so the functio...
javascript jquery
[3, 5]
777,079
777,080
How to disable/enable input field on click with jQuery
<p>How to properly enable/disable input field on click with jQuery?</p> <p>I was experimenting with:</p> <pre><code>$("#FullName").removeAttr('disabled'); </code></pre> <p>which removes <code>disabled="disabled"</code> from this input field:</p> <pre><code>&lt;input id="FullName" style="width: 299px" value="Marko" ...
javascript jquery
[3, 5]
3,184,225
3,184,226
How to change the label text in javascript function?
<p>i want to validate login page using java script function. i take one label button for displaying message and two text box for username and password and one button for "Login" . </p> <p>when user click on "Login" button without enterning username and password then message will be display in label control. So how to ...
javascript asp.net
[3, 9]
768,168
768,169
javascript object help
<p>I'm following a tutorial on how to make a javascript game, but i'm stuck on the return part. Why are is there { }, and what is the init: init for? Any help would be appreciated. Thanks.</p> <pre><code>var JS_SNAKE = {}; JS_SNAKE.game = (function () { var ctx; var xPosition = 0; var yPosition = 0; var frame...
javascript jquery
[3, 5]
793,987
793,988
$("*") with exception?
<p>A long time ago a friend made this for me:</p> <pre><code>$(".rnd1").click(function(){ $("*").click(function (event) { event.stopPropagation(); $(this).fadeOut(); }); $('#random-button').hide(); $('#recover-button').show(); }); </code></pre> <p>now i would like to protect some elem...
javascript jquery
[3, 5]
2,834,400
2,834,401
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]
3,342,854
3,342,855
Check the gridview column check box
<p>I am developing an app in C# in which I am using the datagridview and gridview first column contains the checkboxes and I want to chech the checkbox is true or not but it is giving me the exception of 'Object referernce is not set to an instance of an object'. The code is following</p> <pre><code> private void btn...
c# asp.net
[0, 9]
2,135,470
2,135,471
How do I close a splash message after generating a file?
<p>I've run into a rather sticky situation and I was hoping you all could help. As part of my application, I'm generating a file for my users. Unfortunately, the time it takes to generate this file could be close to 5 minutes. In order to appease my users, I'm showing a message asking them to please wait. Once I ha...
c# asp.net
[0, 9]
3,435,673
3,435,674
JQuery / JavsScript mechanism to schedule methods
<p>I want to be able to invoke a specific method at specific times. For example.</p> <ul> <li>after 10 seconds</li> <li>after 20 seconds</li> <li>after 35 seconds</li> <li>after 50 seconds</li> <li>after 60 seconds</li> <li>after 65 seconds</li> </ul> <p>All times from the same starting point. I was looking at the JQ...
javascript jquery
[3, 5]
1,094,826
1,094,827
why define function inside $()?
<p>I came across a public JavaScript fragment that has the following lines of code:</p> <pre><code>$(function() { var v1, v2; v1 = new V1; return v2 = new V2(v1); }); </code></pre> <p>The guts of the function are perfectly grokkable. But what is the significance of wrapping this in a <code>$()</code>?</p...
javascript jquery
[3, 5]
5,219,052
5,219,053
get the second tds tag text in this html string
<p>How do I get the text in the second td tag in this html string, can I pass a html string into the JQUERY object and filter through it like this?</p> <pre><code>var t = '&lt;td&gt;a&lt;/td&gt;&lt;td&gt;b&lt;/td&gt;&lt;td&gt;c&lt;/td&gt;&lt;td&gt;f&lt;/td&gt;g&lt;td&gt;h&lt;/td&gt;'; $(t).find("td:eq(1)").html(); <...
javascript jquery
[3, 5]
5,407,456
5,407,457
What javascript array, nested array, object is most suitable for searching
<p>I'm trying to build a colors structure that has 3 data per item. For example, red has x and y, blue has x and y, etc. So the 3 pieces of data are <code>color, x, y</code></p> <p>What structure do I need to make it easy to read the x and y based on the color. I usually do <code>push(color, x, y)</code> but that woul...
javascript jquery
[3, 5]
3,199,530
3,199,531
R.layout.row stuck on use Android
<p>my code is not working and its to do with the R.layout.row.... I do not know how to use it what do I do ? here is my code...suggestions?</p> <p>could you please give any suggestions on how to improve my code its just a simple wifi scanning app</p> <pre><code> package com.example.webu; import java.util.ArrayLis...
java android
[1, 4]
6,030,292
6,030,293
How to investigate why Session() expired and let users know
<p>How to investigate what is causing Session expiry? I would like to give some advise to end-users who have the following problem with our website:</p> <pre><code>If Session("xxxx") Is Nothing Then say something.. WHY?? </code></pre> <p>Can I add something to web.config to make sessions last longer or should I read...
c# asp.net
[0, 9]