Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
2,117,624
2,117,625
How to parse a url from a String in android?
<p>I want to parse the url from a String in android. The example String is </p> <pre><code>"This is a new message. The content of the message is in 'http://www.xyz.com/asd/abc' " </code></pre> <p>I want to parse the url <code>http://www.xyz.com/asd/abc</code> from the String without using the subString method.</p> <...
java android
[1, 4]
1,192,656
1,192,657
if the IF statement is true view new activity
<pre><code> if(res.equals("5510")) checkback.setText("Correct version"); // else checkback.setText("Incorrect version, please update. \n Your current version is " + getString(R.string.versioncode)); </code></pre> <p>How do i get ...
java android
[1, 4]
4,991,601
4,991,602
Jquery toggle span text in trigger
<p>I'm so close to figuring this out, i think. I'm new to javascript, but here's my situation.</p> <p>I've got some lists hidden by default. Clicking on the headers displays the lists. I want the span in the header to change from '+' to '-' to hide and show respectively. </p> <p>The problem i'm running into is the sp...
javascript jquery
[3, 5]
512,967
512,968
Android location manager compilation error
<p>I'm trying to retrieve an instance of a LocationManager class (do get some GPS related information). I have used wrote a simple class to do so, but it end up giving me an error </p> <pre><code>Cannot make a static reference to the non-static method getSystemService(String) from the type Context </code></pre> <p>he...
java android
[1, 4]
3,989,403
3,989,404
Using jQuery's getJSON() method
<p>So I was reading through the code on Malsup's twitter <a href="http://malsup.com/jquery/twitter/" rel="nofollow">plugin</a> and I noticed he'd written his own method to handle jsonp but with timeouts and errors. I can only assume the built in jQuery method 'getJSON' doesn't have this functionality even though it cl...
javascript jquery
[3, 5]
3,357,077
3,357,078
Return array in Java
<p>I have my primary class running, and I wanted to run a separate class to shuffle numbers, then return the shuffled numbers into my primary class. In my shuffle class I have the return statement... but now what do I do? How do I use the random order of my int array in my primary class?</p> <p>Here is my shuffle cl...
java android
[1, 4]
3,629,834
3,629,835
Difference between document.createElement('script') vs jQuery .getScript
<p>I've been having an issue getting <code>.getScript</code> to work in some odd cases.</p> <p>For instance, this works to load the scripts only when needed.</p> <pre><code>function twitterSDK() { $jQ.getScript('http://platform.twitter.com/widgets.js'); } function diggShare() { $jQ.getScript('http://widgets....
javascript jquery
[3, 5]
992,059
992,060
How do you randomly generate X amount of numbers, between the range of Y and Z in JavaScript?
<p>For example I would like to generate 5 <strong>unique</strong> numbers between 1 &amp; 10. The results should be 5 numbers from 1 to 10(for example 2 3 4 8 10).</p>
javascript jquery
[3, 5]
4,693,016
4,693,017
jQuery beforeScroll event
<p>Is there a beforeScroll event in jQuery? Or can this type of event be replicated at all?</p> <p>We have a scenario where we need perform an event before a div with overflow:scroll has been scrolled. The problem with using the .scroll event is that this is raised after the div has been scrolled rather than before. <...
javascript jquery
[3, 5]
2,089,905
2,089,906
How can I set/store cookie when anchor clicked
<p>I am trying to use Cookie so that a default style OR a specific style is applied in reference to the anchor tag clicked, even when the browser is closed/reopen. So if the user clicked the second link, close or refresh the browser and reopen, than the style should still be active, if it is their first time the defaul...
javascript jquery
[3, 5]
243,271
243,272
Loop through All Objects of a Class
<p>Let's say I have some class called <code>loopObject</code> and I initialize every object through something like <code>var apple = new loopObject();</code> Is there anyway to loop through all objects of a class so that some function can be performed with each object as a parameter? If there isn't a direct method, i...
javascript jquery
[3, 5]
3,159,976
3,159,977
jQuery: animate to height of div
<p>I have this function:</p> <pre><code>function fixedFeeSize(i){ var num1 = $('#num' + i); if (num1.hasClass("extended")) { num1.stop(true, true).animate({height: '59px'},500); num1.removeClass("extended"); }else{ var height = 0; num1.animate({height: '360px'},500); num1.addC...
javascript jquery
[3, 5]
3,370,500
3,370,501
copy events from one elm to other using jquery
<pre><code> ==dom is like this== &lt;a href='javascript:void(0)' id='link1'&gt;elm with events bound initially&lt;/a&gt; &lt;a href='javascript:void(0)' id='link2'&gt;elm to which events are bound in future&lt;/a&gt; ====js== $(function(){ $('#link1').bind('click',function(){alert('do something ...
javascript jquery
[3, 5]
681,804
681,805
javascript array passed to post into PHP array
<p>How do you process a javascript array in PHP, when you're posting it. Here's what I am doing:</p> <pre><code>$(".action_btn").live('click', function() { var friends = new Array(); $(this).parents('.friends_rec').find('input:checked').each(function(k) { friends[k] = $(this).val(); }); ...
php javascript
[2, 3]
3,176,604
3,176,605
Handle "press enter key" on android
<p>I created a little app that has a search bar. now I want to know if I can handle the situation when a user press the enter key. so the app can call the buttonOnClickListener() that actually perform the search?</p>
java android
[1, 4]
1,204,264
1,204,265
How do I reference the "title" given the id?
<pre><code>var data = {}; data.event = [ { "id":"998", "title":"Foo", "thumb":"", "source":"" }, { "id":"999", "title":"Bar", "thumb":"", "source":"" } ] </code></pre> <p>Given that id=998 I need to extract the value of the "title" and I'm a bit lost as to the proper syntax.</p>
javascript jquery
[3, 5]
3,667,738
3,667,739
Error with MediaPlayer
<p>I am trying to make music play in my app and have a song play after the first one has finished but i get some errors that i cannot resolve any help?</p> <pre><code>public class Music { int count; String[] titles = new String[] { "title1.mp3", "title2.mp3", "title3.mp3", "title4.mp3" }; public void Game...
java android
[1, 4]
1,354,765
1,354,766
Styling a list item with a child
<p>I've been going around in circles for hours, I keep getting errors with this code :</p> <pre><code>$('div.colA div.region-sidebar-left div.menu-block-wrapper').find('li').each(function() { if ($(this).find('&gt; ul').size() &gt; 0) { $(this).addClass('has_child'); } }); </code></pre> <p...
javascript jquery
[3, 5]
3,629,557
3,629,558
How to add attribute when onclick event in asp.net
<p>Hi how can i add attribute into a button when button is clicked?</p> <p>this is the attribute <code>dojotype="dijit.form.Button"</code></p> <pre><code>void ButtonLogin_OnClick(object sender, EventArgs e) { // the add attribute } </code></pre> <p>this is my button</p> <pre><code>&lt;button id="ButtonLogin" runat...
javascript jquery asp.net
[3, 5, 9]
5,319,678
5,319,679
Send array from jQuery(ajax) to PHP
<p>class <code>email</code> is an array of email addresses. How do i get the array in jQuery and then send the data with AJAX to send.php along with class <code>title</code> and <code>message</code>?</p> <pre><code> &lt;input type='text' size='30' class='email' value='testing1@gmail.com' /&gt; &lt;input type='t...
php jquery
[2, 5]
553,347
553,348
update datatable inside a dataset
<p>I want to know how to update a Datatable which is inside a dataset.I have a datatable in which i have details of some item.Now i want to add this into a dataset for some purpose and update it.Give me some suggesions to solve this..</p> <p>this is my code:</p> <pre><code> DataRow dr; ...
c# asp.net
[0, 9]
2,353,075
2,353,076
Abstract class with static methods. Is that correct?
<p><strong>Task</strong>: I want to use some methods for many classes. Methods are same, so there is no need to implement them for each class. In my case - I work with android SDK and I send http request to server.</p> <p><strong>Problem</strong>: There is idea to use construction like this:</p> <pre><code>class abst...
java android
[1, 4]
1,049,786
1,049,787
Javascript / JQUery Dynamic Variable Access
<p>I have a javascript variable which is referencing a complex object (it is a slideshow control but that's not important)</p> <pre><code>e.g. var slideshow = new SlideShow(); </code></pre> <p>Because i have multiple slideshows on the page and I want to make accessing certain operations generic/reuse code in differen...
javascript jquery
[3, 5]
3,569,453
3,569,454
Checks if a value exists in an array input value by jquery
<p>I want check if id in array value input:cheched <code>3</code>, <code>alert (true)</code> else <code>alert (false)</code>. I tried as following js code, but don't work for me. </p> <p>How can fix it?</p> <p><strong>DEMO:</strong> <a href="http://jsfiddle.net/VAwHR/4/" rel="nofollow">http://jsfiddle.net/VAwHR/4/</a...
javascript jquery
[3, 5]
144,522
144,523
smart keyboard in jQuery
<p>SO I have need to develop online keyboard using jQuery or anything else that can help me achieve following.</p> <ol> <li>When I type any letter , it can check against bunch of words and keep only those Keys enable which are possible. </li> </ol> <p>For example. In my word collection I have word "Hello". When I typ...
javascript jquery
[3, 5]
5,681,511
5,681,512
PHP ' inside " inside '
<p>I have some code to display a thumbnail on hover over an image.</p> <pre><code>&lt;div onmouseover="document.getElementById('logo').style.display='block';" onmouseout="document.getElementById('logo').style.display='none';"&gt; &lt;img src = "img.jpg"/&gt; &lt;/div...
php jquery
[2, 5]
1,380,602
1,380,603
How can i create new Contact in Android by Java?
<p>I am using Android 3.1 platform and i just want to create new contact on my Emulator using java.I couldn't find any working example.Please help me</p>
java android
[1, 4]
1,307,072
1,307,073
I have a title like Virtual Team Resources then i need its short code like VTR
<p>I have a title like Virtual Team Resources then i need its short code like VTR If Title Virtual Team then ShortCOde will be VTE i have implement this but still some issues like if user enter title Virtual T then short code will ?</p> <p>My Code------</p> <pre><code>function EnterShortCode() { debugg...
javascript jquery
[3, 5]
5,335,475
5,335,476
Does jQuery's .load() always automatically execute scripts?
<p>I noticed if you <code>.load(url)</code> and the url is a page that contains scripts, those scripts are automatically executed. Is there a way to call <code>.load(url)</code> without the scripts executing, then perhaps execute them later? They seem to execute even if I've used <code>.load(url)</code> on an element t...
javascript jquery
[3, 5]
5,837,486
5,837,487
How can i close all the IE browser windows that I opened in JavaScript
<p>How can i close all the IE browser window in asp.net,</p> <p>I am opening many windows..from javascript by window.open()... I need to close all the windows by clicking the button in main page(parent window).</p> <p>some times we have open in in c# it self</p> <pre><code>btnShow.Attributes.Add("onclick", @"var win...
asp.net javascript
[9, 3]
5,753,539
5,753,540
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]
1,487,178
1,487,179
Finding words within a paragraph of text
<p>I have a <code>&lt;p&gt;</code> tag and within the tag, there is a paragraph of text. </p> <pre><code>&lt;p&gt;"Hello Lorem ipsum Hello dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris ...
javascript jquery
[3, 5]
2,105,518
2,105,519
jquery question regarding text change
<pre><code>&lt;script type="text/javascript"&gt; $(function () { var text3; $('.HideButton').click(function () { text3 = $('#MessageText').text; var theButton = $(this); $('#disclaimer').slideToggle('slow', function () { theButton.val($(this)...
javascript jquery asp.net
[3, 5, 9]
1,199,175
1,199,176
Adding 'type' attribute to a script tag loaded by a dll
<p>I have a menu control that is coming from a dll, I just need to reference it. Its old so the script tag that is <strong>injected</strong> into the page has the 'language' attribute. I looking for a way to add a 'type' attribute after the page has loaded.</p> <p>I tried:</p> <pre><code>$("script").attr("type", "t...
javascript jquery
[3, 5]
4,253,977
4,253,978
Can't find what's wrong in this code
<p>I have the following script which brings up a dialog on my screen telling me there has been an error:</p> <pre><code>&lt;script type="text/javascript"&gt; var myFunc = function() { var html='&lt;div class="cs-body"&gt;explanation of the error&lt;/div&gt;'; $(html).csDialog(); return false; }; &lt;/scri...
php javascript
[2, 3]
4,400,749
4,400,750
How to Find my website Visitor Region Code, IP and City Through simple javascript please no Google Analytics or other Software
<p>I want to Know how can i find Region of Visitor and IP adress through java script Region and City is on high priority these ones are not working</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function () { $("#hdnCountryCode").val(geoip_country_code()); $("#hdnCountyN...
javascript jquery
[3, 5]
4,376,024
4,376,025
how can i chain these functions so that when once completes, the next fires?
<p>If I have a div that I clear the contents of, but then want to put something new in it's place, how can I string these functions so that one only fires after the previous one completes</p> <pre><code>$('#nner_container').fadeOut(300, function(){ $('#header_div').after('&lt;div id="inner_container" style="dispa...
javascript jquery
[3, 5]
2,066,001
2,066,002
setTimeout vs setInterval in javascript
<p>Hi can we change setInterval to setTimeout function, it is working fine I want to know can it is done with setTimeout</p> <pre><code>&lt;head&gt; &lt;script type="text/javascript"&gt; $(function() { var current = $('#counter').text(); var endvalue = 50 $('a').click(function() { setInterval(funct...
javascript jquery
[3, 5]
3,108,028
3,108,029
how to update Sr. No. COLUMN after removing a TR from TABLE
<p>i have a table like </p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;Sr. No.&lt;/td&gt; &lt;td&gt; Name&lt;/td&gt; &lt;td&gt;$nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;abc&lt;/td&gt; &lt;td&gt;remove button&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;2...
javascript jquery
[3, 5]
2,723,478
2,723,479
What does this expression of jquery mean $("div[id*='box']")?
<p>Does below expression mean it will give me all the div objects which have id containing the word box in it? </p> <pre><code>$("div[id*='box']") </code></pre>
javascript jquery
[3, 5]
1,573,176
1,573,177
Illegal Character error in jQuery - regardless of function content
<p>First of all, I've done my research and I did find a bunch of simialr questions. However, I didn't find an answer that applies to my problem. All the examples I found were related to unescaped characters, single/double quote mishaps and the like. I on the other hand am getting this error on the following function:</...
javascript jquery
[3, 5]
5,152,365
5,152,366
Search & Replace Whole HTML Strings with jQuery
<p>I'm having some trouble searching &amp; replacing an entire string of HTML. </p> <p>My example in this fiddle is me trying to replace an entire div tag with all of its classes &amp; markup:</p> <p><a href="http://jsfiddle.net/LqkNE/" rel="nofollow">http://jsfiddle.net/LqkNE/</a></p> <p>As you can see, there are t...
javascript jquery
[3, 5]
3,689,151
3,689,152
Choosing a plotting library for web/browser application
<p>I am looking for a plotting/graphing library (mostly to do line plots) for my application. I have been looking at JavaScript APIs (like Google's) but I found them to be slowing down things at client side (I am plotting a quite large number of points). I also found that with client-side libraries, the performance was...
php javascript
[2, 3]
4,344,974
4,344,975
Display a widget on an activity
<p>Does anyone know the Java to display a widget on an activity? I've came across a couple apps that have done this (i.e., <a href="https://play.google.com/store/apps/details?id=com.smart.taskbar&amp;feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zbWFydC50YXNrYmFyIl0." rel="nofollow">Smart Taskbar</a>).</p>
java android
[1, 4]
5,872,289
5,872,290
Passing a PHP variable to another page via jQuery
<p>EDIT: I can put the question in a shorter way that perhaps focuses more closely on the real problem:</p> <p>Is there a way to keep PHP Sockets alive over multiple pages? That is, can I store the connection (the socket object) in any way?</p> <p>I want to save a socket connection between two PHP pages where the oth...
php jquery
[2, 5]
2,416,629
2,416,630
Arrange DIV in circle and rotate them facing outwards
<p>Basically I've managed to layout my DIV elements into a circle shape but I've not managed to work out how to calculate the deg of rotation need to have them face OUTWARD from the center of the circle.</p> <pre><code>$(document).ready(function(){ var elems = document.getElementsByClassName('test_box'...
javascript jquery
[3, 5]
1,949,013
1,949,014
Sending text box values from my website to gmail to login into the gmail
<p>I have two text boxes in my webpage as username and submit button.</p> <p>1)Firstly user needs to give username,password,then presses the submit button.</p> <p>2)After pressing submit button,I want to send those username and password values to gmail website for logging into gmail..</p> <p>3) Means,user will be lo...
php javascript
[2, 3]
5,319,644
5,319,645
JQuery: Why is this Load More Functionality not working?
<p>Trying to implement a simple "load more" functionality with jquery. The idea is to use it in the same way as one does pages. Click and a certain number of posts loaded from the database show up.</p> <p>I have the following javascript:</p> <pre><code>$(function(){ var count = 0; var num = 20; $("#contents").l...
php javascript jquery
[2, 3, 5]
701,596
701,597
Need help on text expander jQuery plugin
<p>I am trying to use this text expander/collapse jQuery <a href="http://plugins.learningjquery.com/expander/demo/index.html" rel="nofollow">plugin</a> to only display first snippets of text, but if I load this in the page the whole text would show up first and then when the plugin is fully loaded in to the browser it ...
javascript jquery
[3, 5]
907,468
907,469
HttpResponse returns a 502 Error, doesn't appear to hit endpoint
<p>I'm working on an application that uses HttpResponse for network calls. </p> <p>Occasionally (about 30% of the time) network calls seem to fail with a 502 returning from the server. When checking the server logs, It appears that the server never received the request. </p> <p>The logic doesn't seem bad, however, an...
java android
[1, 4]
3,883,233
3,883,234
Looking for some information in getting Java to communicate with a website
<p>I was wondering if one could write a Java application and put it on a website and then have it running so that when a user used your website it could interact with some html/javascript page which would communicate with the Java program.</p> <p>So basically, the html5 would be used to display the java program but al...
java javascript
[1, 3]
2,709,139
2,709,140
Finding an item in a repeater control?
<p>This one might be simple, but here it is anyway.</p> <p>I have a <code>List&lt;Object&gt;</code> that I bind to a repeater. The repeater binds all of the fields to textboxes <strong><em>except <code>Id</code></em></strong>. In my web page, whenever a user adds a new item, I create a new <code>Object</code> in my li...
c# asp.net
[0, 9]
3,067,732
3,067,733
DataSet.Relations in c#.net
<p>Hello Experts I have a repeater and questions and answers table. For each Question there can be multiple answers.</p> <p>I have radiobuttonlist in Gridview Control. On Row data bound event it will hit database multiple times based on question id to fetch answers.</p> <p>how to use datarelations for this purpose...
c# asp.net
[0, 9]
3,494,827
3,494,828
PHP Arrows, Java Equivalent
<p>I am just starting to research and learn PHP. I have a decent background in Java and I am trying to draw some correlations. One of the completely unfamiliar symbols I saw in PHP was the ?object access seperator? <code>-&gt;</code> as seen in this example: </p> <pre><code> &lt;?php class SimpleClass { ...
java php
[1, 2]
198,416
198,417
Share sourcecode between android- and javaprojects
<p>There is a class, that compiles with the <code>android platform</code> and the <code>jdk</code>. Now, the idea is, to use that class in two projects, one is a android one and the other result in a java application.</p> <p>So, I cretae a project with two modules, one for the android and one for the java solution. Al...
java android
[1, 4]
2,736,211
2,736,212
define an array of input control in aspx.cs
<p>i have an input control of type file.</p> <pre><code>&lt;input id="FileUpload1" type="file" runat="server" size="35" /&gt; </code></pre> <p>there are four input controls like this and in aspx.cs file i m trying to make an array of these ids..</p> <p>i have made an array </p> <pre><code>HtmlInputFile[] fl = new H...
c# asp.net
[0, 9]
5,775,771
5,775,772
How to enqueue callbacks before jQuery is loaded?
<p>I switched to using Require.JS in an app and immediately faced this problem:</p> <p>I used to use inline JS to initiate certain calls once certain part of DOM is loaded. Now apparently jQuery loads only after those calls are executed, thus resulting in errors because jQuery ($) is undefined.</p> <p>What's the best...
javascript jquery
[3, 5]
665,385
665,386
Using JQuery how to check if any checkboxes are checked and then set the first to checked if none are?
<p>Using JQuery how to check if any checkboxes are checked and then set the first to checked if none are checked. </p> <pre><code>var Checked = $('.ProductImageGallery').find(".DfaultCheckbox:selected); if (Checked == null) { $('.DfaultCheckbox:first').attr('checked', true) } </code></pre>
javascript jquery
[3, 5]
5,159,000
5,159,001
A good performance alternative to PHP - String/File Manipulation
<p>I have a project that is done but needs better performance. </p> <p>The gist of the project is that I'm taking XML and converting it to CSV files. The files represent data to be loaded into a Database.</p> <p>Right now I'm using PHP to unzip the zip file that contains the XML. Then I parse, convert to CSV, and rez...
php c++
[2, 6]
4,360,515
4,360,516
pop up window close
<p>how to close the pop up window and focus to the main calling window of that pop up.</p>
php javascript
[2, 3]
323,792
323,793
Parse a JavaScript file through PHP
<p>I have a JavaScript file where I would like to include some php code. The problem is that I have a few defines on PHP that I would like to use on JS as well.</p> <p>Is there any way of including a .js file in HTML allowing the server to first interpret it (before downloading to the client) using php?</p> <p>Thanks...
php javascript
[2, 3]
5,145,497
5,145,498
smart keyboard in jQuery
<p>SO I have need to develop online keyboard using jQuery or anything else that can help me achieve following.</p> <ol> <li>When I type any letter , it can check against bunch of words and keep only those Keys enable which are possible. </li> </ol> <p>For example. In my word collection I have word "Hello". When I typ...
javascript jquery
[3, 5]
5,311,198
5,311,199
Using jquery to select an item from a select list based on the label
<p>So if I have a select list of lets say dates that looks like </p> <pre><code>&lt;option value="624e70cb-2796-4029-bd09-2642abaa54b4"&gt;1989&lt;/option&gt; &lt;option value="ff591d9a-e8a4-4280-829b-9307b7b41912"&gt;1988&lt;/option&gt; &lt;option value="f2e9e756-7c59-4883-89b5-9c8cccf85ad6"&gt;1987&lt;/option&gt; &l...
javascript jquery
[3, 5]
3,946,449
3,946,450
How to input \t from asp.net
<p>I'm trying to input a control character from an asp.net form. For example I want a user to be able to enter \t into a text box and it be \t not \ \t (The space is there as one of them gets escaped if I put them together). What's the best way to go with this? I've been staring at it continuously now for quite a whil...
c# asp.net
[0, 9]
4,840,480
4,840,481
Change javascript according to window width
<p>I think this is quite simple but after 2 days of trying I'm still clueless. Basically, I need to run one set of commands if the screen is over 767 pixels wide and another if the screen is under 767 pixels.</p> <p>When the screen is wider than 767 pixels, I want to:</p> <pre><code>&lt;script type="text/javascript"&...
javascript jquery
[3, 5]
3,385,482
3,385,483
Displaying byte array as image using JavaScript
<p>I am trying to display an image (byte array) using purely JavaScript.</p> <p>How can I achieve this in ASP?</p>
javascript asp.net
[3, 9]
2,436,223
2,436,224
Handling array value in JS
<p>I have a problem with my arrays in JavaScript. I can't seem to get the value correctly.</p> <p>I create my array in PHP like this:</p> <pre><code>$data = Array(); $get = mysql_query("SELECT x,y,sid FROM table WHERE uid='1'"); while($row = mysql_fetch_assoc($get)){ $data[$row['x']] = Array(); ...
php javascript
[2, 3]
751,093
751,094
progress bar(animated GIF image) when page loads or some background process is going on::
<p>I want to have an animated GIF image to appear or load whenever my .aspx page (for my appln) is loaded or postaback or some background process is going on::</p> <pre><code>&lt;div id="WaitDialog" style="left: 480px; top: 255px; position: absolute"&gt; &lt;img src="http://developers.sun.com/docs/web-app-guidelines/...
c# asp.net
[0, 9]
966,185
966,186
Random iexplore crashes when debugging (ASP.NET)
<p>I have a web application I am developing that seems to crash completely at random when clicking links on any page. When this happens, I'm told 'An unhandled win32 exception occured in iexplore.exe'. When I try to debug, it says one is already attached.</p> <p>What could this be relating to? I know without code it w...
c# asp.net
[0, 9]
1,837,077
1,837,078
Java Thread Message Passing
<p>I'm writing an Android app. I have a main method, which creates and runs a new Thread using an anonymous inner Runnable class. The run() method, when it's done, calls a method on it's parent class (in the main thread) that calls notifyDataSetChanged() so that the main thread can redraw the new data. This is causing ...
java android
[1, 4]
4,292,341
4,292,342
How to do Trim operation in javascript
<p>I need to trim a text that has been entered in a text box using Java Script before saving it in DB in asp.net.</p> <p>Thanks</p>
javascript asp.net
[3, 9]
5,551,513
5,551,514
Android project using java and C++ together
<p>Anybody have one example of a android project using a same time C++ and Java together, for example, one normal android project build on eclipse and in there add a cpp class and using this cpp class on java class...</p> <p>say I have a class Foo on C++</p> <pre><code>class Foo{ ... } </code></pre> <p>and I have a ...
java android c++
[1, 4, 6]
2,698,400
2,698,401
jquery addClass doesn't work
<p>the jquery</p> <pre><code>$(document).on('click', '#fun', function (e) { var $this = $(this); var request = $.ajax({ url: "example.php", type: "POST", data: {bla: blabla}, dataType: "html" }); request.done(function(msg) { if(msg) { $this.addClass(...
javascript jquery
[3, 5]
2,934,563
2,934,564
Play audio and Redirect to page after some time
<p>I am working on a project,I have to implement a functionality that on page load I have to play an audio file and while playing after some seconds redirect to some other page. I have used tag and it's onplaying event,but its not working. Can any one suggest any alternative?Its not even hitting the function and showi...
javascript asp.net
[3, 9]
3,626,147
3,626,148
Jquery to modify all anchor tag href on a page and extract key request parameters from href attribute
<p>hi i need to replace all the href's in my page by a onclick event which has few of the parameters from the query string </p> <p>here is a sample anchor tag</p> <pre><code>&lt;a href="google.com?businessunit=Products&amp;dataSegement=BOTH_PERIOD&amp;endDate=12%2F06%2F2011&amp;d-49489-s=8&amp;d-49489-p=1&amp;d-49489...
javascript jquery
[3, 5]
1,667,936
1,667,937
How can i stop this countdown on mouseleave?
<p>Here is the code:</p> <pre><code>//Mouseover start countdown $("#icon_no_1").mouseover(function() { $(this).fadeTo("slow", 0.23); //Countdown var counter = 0; var interval = setInterval(function() { counter++; // Display 'counter' wherever you want to display it. if (counter == 1) { //Display ...
javascript jquery
[3, 5]
5,218,698
5,218,699
Referencing javascript libraries locally or externally?
<p>We are currently developing an ASP.NET MVC application which will be deployed on a corporate intranet, with a slightly-modified customer facing version available on the public internet.</p> <p>We're making use of a number of external javascript libraries (e.g. jQuery) and a discussion has come up regarding referenc...
javascript asp.net jquery
[3, 9, 5]
2,424,218
2,424,219
Periodically autosave form
<p>How to implement a periodical save of a form in the background? Same kinda thing that gmail does. </p>
javascript jquery
[3, 5]
5,582,529
5,582,530
Retrieve the position of a clicked button?
<p>Well, everything is on the question. I have a clickEvent on one of my button and i want to retrieve the position of this button when i click on it.</p> <p>Actually i retrieve the position event.pageX but it's not really what i want...</p> <pre><code>&lt;script type=text/javascript&gt; $( "#dM1").click( functio...
javascript jquery
[3, 5]
5,497,055
5,497,056
login to google with http POST
<p>Think google have a limitation for user , so users have to login to download a file , I want to login to a site like google with http post and after that download a file .</p> <p>how to login to site like google with http POST ? </p>
c# asp.net
[0, 9]
5,040,728
5,040,729
Jump to an anchor link on function complete in jQuery?
<p>I have a simple slidetoggle function that opens onclick. What I'd like to do is jump the user down to the bottom of the page following the opened div. Basically, wait for the slidetoggle to complete - then imagine clicking my jump link to pull the viewport down. Here's my code.</p> <pre><code> $('#clickme').click...
javascript jquery
[3, 5]
3,717,747
3,717,748
jquery listening to events
<p>I have a function A that does something (calls a web service in ajax request) and I have another function that is plugged in a calendar and that triggers on different events (click on day changes date, click on month changes calendar month... pretty typical calendar stuff).</p> <p>The calendar works with classes: w...
javascript jquery
[3, 5]
801,106
801,107
How to set datasource of listbox from generic list of class
<p>How can I bind List to the datasource of a Listbox? I want to to set the visible property Name.</p> <p>Here is my class and list:</p> <pre><code> public class Users { public string Name { get; set; } public DateTime Data { get; set; } public int Id { get; set; } public Users() { Name =...
c# asp.net
[0, 9]
4,390,072
4,390,073
Adding an input name upon creation of new table row
<p>I have an order form I had put together for a client, you can view it <a href="http://www.tdidesign.com/designerorderform.php" rel="nofollow">here</a>.</p> <p>As you can see it creates a new row with 5 input fields (per row). Here's my problem, I have this form outputting the form in html format to the clients emai...
javascript jquery
[3, 5]
2,221,692
2,221,693
JQuery/Javascript Reordering rows
<p>I have a aspx page that looks something like this:</p> <pre><code>&lt;tr id="Row1"&gt; &lt;td&gt;Some label&lt;/td&gt; &lt;td&gt;Some complex control&lt;/td&gt; &lt;/tr&gt; &lt;tr id="Row2"&gt; &lt;td&gt;Some label&lt;/td&gt; &lt;td&gt;Some complex control&lt;/td&gt; &lt;/tr&gt; &lt;tr id="Row3"&gt; &lt;t...
javascript jquery
[3, 5]
5,149,123
5,149,124
Jquery plugin for sticking a few table rows at the top of the page when scrolling?
<p>Can anyone recommend a jquery plugin that would allow you to stick a few rows at the top of the page</p> <p>i.e. page loads, the content is in the right place, then once the content reaches the top of the page it gets fixed in place while the user scrolls...then if they scroll back up the content will go back to it...
javascript jquery
[3, 5]
290,406
290,407
How To Pass PHP Variables On jQuery Load?
<p>I have code like this :</p> <pre><code>&lt;?php $username = 'johndoe'; ?&gt; &lt;head&gt; &lt;script&gt; ... $('a.manage-content-link').click(function (e) { var self = $(this), file = self.siblings('input[type="hidden.block-hidden-input"]').val(); self.next(".manage-content-wrap").find(".manage-con...
php jquery
[2, 5]
5,540,925
5,540,926
How to declare a global static class in Java?
<p>In C# I am able to create a class like this:</p> <pre><code>static class clsDBUtils { public static SQLiteCommand cmd; public static SQLiteConnection conn; public static String databaseFilePath; public static bool getConnection() { } } </code></pre> <p>Then anywhere...
c# java
[0, 1]
4,306,461
4,306,462
Dissect my jQuery - can't use keyup function to insert number of characters into another textarea
<p>I'm trying to figure out why my jQuery isn't working. I've got jQuery linked to, and then after that, I try to bind to the textarea content. I've used name=content and name=#content both.</p> <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script ...
javascript jquery
[3, 5]
3,786,863
3,786,864
how make the animation runs in a infinite loop
<p>i have the current code running</p> <p><a href="http://jsfiddle.net/Qchmqs/SxTgy/" rel="nofollow">MyTry</a></p> <p>what i want to do is to make the animation go in a infinite loop how to do ??</p> <p>i want to call the same function again or i don't know what </p> <p>just that the animation go again and again wh...
javascript jquery
[3, 5]
4,957,741
4,957,742
c# - Simple User Class Assignment
<p>this is a newbie question, i am trying to build a class in C# that is going to set the user org property for a user (each user can have more than 1)</p> <p>i have this thus far:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.SqlClient; using Sy...
c# asp.net
[0, 9]
263,764
263,765
JavaScript/jQuery: Running DOM commands *after* img.onload commands
<p>I need to get the width &amp; height of a CSS background image and inject it into document.ready javascript. Something like:</p> <pre><code>$(document).ready(function(){ img = new Image(); img.src = "images/tester.jpg"; $('body').css('background', 'url(' + img.src + ')'); $('body').css('background-size', ...
javascript jquery
[3, 5]
4,582,966
4,582,967
Toggle effect not working
<p>hello friends i want to use toggle on <code>&lt;li&gt;</code> when one <code>&lt;li&gt;</code> is open i want rest <code>&lt;li&gt;</code> get close i have tried this <a href="http://jsfiddle.net/MbTRD/1/" rel="nofollow">http://jsfiddle.net/MbTRD/1/</a> but its not working as i want</p> <pre><code> $(function () {...
javascript jquery
[3, 5]
3,758,266
3,758,267
Can someone explain the following javascript code?
<p>In addition to the explanation, what does the $ mean in javascript? Here is the code:</p> <pre><code>var ZebraTable = { bgcolor: '', classname: '', stripe: function(el) { if (!$(el)) return; var rows = $(el).getElementsByTagName('tr'); for (var i=1,len=rows.length;i&lt;len;i++) { if (i % 2...
javascript jquery
[3, 5]
3,649,948
3,649,949
Camel casing acronyms?
<p>This question may seem pedantic or just silly, but what is your practice for camel casing when it comes to acronyms? Do you insist that everything, even acronyms must be camel cased, or do you make an exception for acronyms. Explanations would be great too. I'm not sure how this practice effects IDE features (autoco...
c# java
[0, 1]
3,828,944
3,828,945
jQuery conditional logic with multiple classes
<p>I have many articles which have multiple categories. I have a checkbox for every category. When a checkbox is checked the articles with this category should be shown, otherwise should be hidden.</p> <p>So far so good.</p> <p>When I check category 1, but not category 2 all posts should be shown which have category ...
javascript jquery
[3, 5]
4,922,622
4,922,623
fire css change before end of code
<p>I'm sure this question has already been asked, but I can't found the good keyword to feed google with. I can't even find a good title for my question. I want to do this :</p> <pre><code>$(".selector").click(function() { $(this).css("background-color", "red"); if (confirm("Do you want to do this ?") { ...
javascript jquery
[3, 5]
2,167,582
2,167,583
Call function if two arrays are identical with jQuery
<p>I have a quick question regarding using jQuery to compare 2 arrays. I have two arrays, and I need to call a function only if they are exactly identical (same size, elements, order).</p> <p>For example, given these two arrays:</p> <pre><code>a['zero','one','two','three','four','five','six','seven', 'eight','nine'];...
javascript jquery
[3, 5]
1,209,140
1,209,141
What causes a 40 second delay when running an executable using Process.Start()?
<p>I'm running an executable on the local file system using Process.Start() from an ASP.NET web application. This runs correctly and does what I expect it to, the problem is that it takes around 40 seconds before the exe starts after Process.Start() has been called.</p> <p>When I run the exe from the command line it o...
c# asp.net
[0, 9]
1,630,996
1,630,997
Text box content rendering in a new window using javascript
<p>I have a asp.net textbox(textarea which is in a repeater have single texarea for each record which are read only) I have button (open in new window) when i click on it the content of the text area needs to be rendered in a new window using javascript . similar to experts exchange.</p>
c# asp.net javascript
[0, 9, 3]