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,472,116
1,472,117
dynamic DOM masonry jQuery plugin
<p>I am creating <code>dom</code> elements by parsing <code>tumblr</code>'s json file.<br/> After the images are loaded, i would like to apply a <a href="http://masonry.desandro.com/docs/intro.html" rel="nofollow">jQuery plugin Masonry</a> to tighten up the image grid.<br/><br/> Heres my attempt but it doesnt seem to b...
javascript jquery
[3, 5]
1,969,173
1,969,174
Create an app where I can physically write things out with my finger
<p>I am trying to create an app where I can physically write things out with my finger and erase them? Something like a big sticky note that you can just write on?</p> <p>How Would do this, i am really new to programming so i would really appreciate your help.</p> <p>My question is similar to a question asked here, s...
java android
[1, 4]
2,183,672
2,183,673
use jQuery instead of long listed < SELECT > box?
<p>Right now I have an app that allows a user to pick a ring from a drop down (select) box. There can be many to choose from and it creates a long drop down that isn't very nice to use. I would like to maybe use jQuery to make this a little nicer. Like maybe have a tab on the top where they can choose "white gold", "ye...
javascript jquery
[3, 5]
3,972,981
3,972,982
POST asp.net form username and password to an external HTTPS login
<p>I am new to asp.net c#. I have created a login form that when the user submits will POST their username and password to a secure external login form outside of my application. I tried doing this by setting up a httprequest but it did not work. What is the best way of doing this with c# in asp.net. </p>
c# asp.net
[0, 9]
1,736,050
1,736,051
How to Search for a file in the drive with asp.net and C#
<p>In my Asp.net and C# web application ,i want to search for a file with file name or a wildcard in the hard drive (say C:\ for example) and display the results in a tree view.How can we achieve this ?</p>
c# asp.net
[0, 9]
4,331,889
4,331,890
SelectedIndexChanged event isn't fired after onchange
<p>I am trying to validate a Dropdown list on client side for its selected index/value. I want a function that alerts when the selected index is 0 or it should execute the <code>SelectedIndexChandged</code> method in the code behind..</p> <p>I have written the following code..</p> <pre><code>function validateDropDown...
javascript asp.net
[3, 9]
1,478,014
1,478,015
Select child of earlier clicked item in jQuery
<p>I have clicked on a div. In this div is an image:</p> <pre><code>&lt;div class="grid_2 shareContent" id="facebook_45"&gt; &lt;a href="#"&gt; &lt;img class="facebook" src="http://roepingen.kk/skins/admin/default/images/social/facebook.png" alt="Facebook not shared" width="32px...
javascript jquery
[3, 5]
1,593,926
1,593,927
jQuery load file function triggers only in one situation
<p>My jQuery script below works perfectly on all devices and PC except Windows Phone. I think it's a pretty standard coding but it gives me a problem. The <code>#feed</code> with the engine.php in it, does not update when I press refresh. ( only on Windows Phone)</p> <p>A workaround I found is that if I <code>cap +=1;...
javascript jquery
[3, 5]
3,982,693
3,982,694
How do i select an element with certain ID and a certain rel
<p>I looked at selectors and has attribute seems to be the closes choice however i cant seem to make it work.</p> <p>what i am trying to do i select an element with certain id that also has a certain rel value..</p> <p>for example:</p> <pre><code>&lt;input value="Needthisvalue" rel="15" value=wahtever" id="pickthisI...
javascript jquery
[3, 5]
4,619,474
4,619,475
passing parameter on jquery onclick function from html onclick event
<p>I want to pass parameters to onclick jquery function from html onclick event.</p> <p><strong>html statement rendering in PHP</strong></p> <pre><code>$name = "abcd"; for ($i=0;$&lt;10;$i++){ $text .= '&lt;tr&gt; &lt;td&gt;'.$i.'&lt;/td&gt; &lt;td&gt;&lt;div id="name"&gt;'.$name.'/div&gt; ...
php javascript jquery
[2, 3, 5]
1,975,730
1,975,731
Android app for a web application without an API
<p>Is it possible to create an Android app for an existing web application which doesn't provide any API? </p> <p>Webview just provides a crude view of the same web app in Android, but interface with webview looks crappy.</p>
java android
[1, 4]
465,204
465,205
Changing input element value in the fly
<p>I'm trying to create a voting system. So when the user clicks the "Vote" button, I want to display the vote count alongside which reflects the count in real time.</p> <p>I'm using a code something like</p> <p>HTML</p> <pre><code>&lt;div class='left'&gt; &lt;input id='vote' name='voteCount' type='button' value...
javascript jquery
[3, 5]
3,888,592
3,888,593
iframe and save content
<p>Hi i have working script saving content from editor works in iframe to input hidden, and geting data from post array. But if i want send in framework, not working. </p> <p>I tried to insert a hidden field with formlarza model, using the concatenating and outside the function. unfortunately does not work, but if you...
php javascript
[2, 3]
5,751,525
5,751,526
Read numbers from edit text and display it on the "textview" in android
<p>I want to develop an application in Android SDK, but I am facing a problem in reading a number from <code>editText</code> and making some calculations, after calculation display the result in textView. can any one help??</p>
java android
[1, 4]
3,692,322
3,692,323
Loads external php file with javascript src
<p>I'm currently using below method to call an external php file with some variables using javascript</p> <pre><code>&lt;script src="http://www.domain.com/function.php?param=A" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>And the code in the function.php file will return data in Javascript format, somet...
php javascript
[2, 3]
3,535,433
3,535,434
How to convert a currency string to a double with jQuery or Javascript?
<p>I have a text box that will have a currency string in it that I then need to convert that string to a double to perform some operations on it. </p> <p>"$1,100.00" -> 1100.00</p> <p>This needs to occur all client side. I have no choice but to leave the currency string as a currency string as input but need to cast/...
javascript jquery
[3, 5]
3,952,226
3,952,227
not understood working js code
<p>Please see this: <a href="http://jsfiddle.net/Muj3d/8/" rel="nofollow">http://jsfiddle.net/Muj3d/8/</a></p> <p>suppose mouse cursor is on <code>div_1</code>, now drag mouse from <code>div_1</code> to <code>div_2</code>, as we see, first time happened action <code>mouseout</code> and after <code>mouseover</code>. Ok...
javascript jquery
[3, 5]
3,499,320
3,499,321
Jquery .Stop() slowdown
<p><a href="http://jsfiddle.net/332tS/" rel="nofollow">http://jsfiddle.net/332tS/</a> When Using ".stop()" in Jquery, is it possible to make it slow to a halt THEN continue? instead of stopping on the spot.</p>
javascript jquery
[3, 5]
5,949,772
5,949,773
JavaScript to jQuery (function to add row to table)
<p>Can anyone help me to convert JavaScript to jQuery? The JavaScript code is:</p> <pre><code>function addRow() { var table = document.getElementById("table2"); var numOfRows = table.rows.length; var numOfCols = table.rows[numOfRows-1].cells.length; var newRow =...
javascript jquery
[3, 5]
1,201,621
1,201,622
jQuery add target="_blank" for outgoing link
<p>I need some help to create jquery script :)<br> I have some of link like this on my HTML.</p> <pre><code>&lt;a href="http://google.com"&gt;Google&lt;/a&gt; &lt;a href="/"&gt;Home&lt;/a&gt; &lt;a href="http://www.gusdecool.com/"&gt;Home&lt;/a&gt; &lt;a href="contactus.html"&gt;Contact Us&lt;/a&gt; </code></pre> <p>...
javascript jquery
[3, 5]
1,768,440
1,768,441
jQuery.map - Practical uses for the function?
<p>I am trying to get a better understanding of the <a href="http://docs.jquery.com/Utilities/jQuery.map">jQuery.map</a> function.</p> <p>So in general terms .map takes a array and "maps" it to another array of items.</p> <p>easy example:</p> <pre><code>$.map([0,1,2], function(n){ return n+4; }); </code></pre> ...
javascript jquery
[3, 5]
4,760,799
4,760,800
Browser detection
<p>I need to separate IE and FF browsers from others</p> <p>it's a pseudo-code :</p> <pre><code>If (CurrentBrowser == IE(6+) or FF(2+) ) { ... } else { ... } </code></pre> <p>in protected void Page_Load() event (think so)</p> <pre><code> if ((Request.Browser.Type == "IE") || (Request.Browser.Type == "FF")) ...
c# asp.net
[0, 9]
3,484,171
3,484,172
Building a Datetime Object for SQL database insert
<p>I'm working on a small web form that requires the user to input (among other things), the scheduled backup time of whatever server they're adding to the system. The problem is, I'm struggling to find out the best way to take the user input and build a DateTime object (which is what the database requires).</p> <p>I ...
c# asp.net
[0, 9]
124,324
124,325
Some @Override shows errors in Oracle Java but not in OpenJDK
<p>In a repository that was created in Ubuntu Linux and compiled under OpenJDK 6, when implementing LocationListener and SensorListener, adding the <code>@Override</code> tag above the inherited methods compiles fine.</p> <p>But when the repo is cloned onto a Windows system with Oracle Java, some of the <code>@Overri...
java android
[1, 4]
3,484,996
3,484,997
using python class methods inside java
<p>I have three different classes written in python. They contain several methods which I want to use them inside my java program (creating objects from these python classes and use these objects to call the methods). Actually my level in java might be intermediate. However, i am absolutely new in python. I have read t...
java python
[1, 7]
576,458
576,459
Problem with post in MVC
<p>I have a troubleshoot with my MVC project. I'm trying to do this:</p> <p>On a view i'm loading some data on a jqgrid, and based on some selections of the user, i save those selections on a javascript VAR, and i passed it via $post to a Action of the controller, that action is supposed to call it's own view and load...
c# asp.net jquery
[0, 9, 5]
1,823,716
1,823,717
Why javascript "write() function" isn't working when referring to an element by jquery?
<p>Hey guys, My array is printing it's values on page when:</p> <pre><code>document.write(unsorted[i]+"&lt;br/&gt;"); </code></pre> <p>but not when trying to put it in a div referring the element by jquery</p> <pre><code>$("#no1").write(unsorted[i]+"&lt;br/&gt;"); </code></pre> <p>Here's my code: </p> <pre><code>$...
javascript jquery
[3, 5]
926,980
926,981
Only run code when variable is not equal to null
<p>I'm having a problem. I have this code:</p> <pre><code>setInterval(function() { $.ajax({ url: url, success: function(data, count){ var obj = jQuery.parseJSON(data); var content = obj.results[0].content; }}) }, 2000) </code></pre> <p>Now this code is running every 2 seconds and making an aja...
javascript jquery
[3, 5]
2,329,011
2,329,012
pdf and rar files not uploading but images do
<p>I have been playing around with asp.net webforms controls to learn how to use them better and I seem to have gotten myself in some trouble with the fileupload control. I noticed that when I upload img's the code I wrote works but when I try to upload a PDF or a RAR file I get an error saying that</p> <blockquote> ...
c# asp.net
[0, 9]
4,538,859
4,538,860
Change property on jQuery element
<p>I'm not a very skilled javascript programmer, so i don't know how to do this the correct way.</p> <p>I have this script</p> <pre><code>&lt;script type="text/javascript"&gt; jQuery(function() { jQuery("#brand-select").jMyCarousel({ visible: '100%' , auto: true, ...
javascript jquery
[3, 5]
6,031,610
6,031,611
Javascript: Find numbers of keywords in textarea
<p><strong>Input:</strong></p> <pre><code>var text = $('#id_textarea').val(); var keywords = $('#id_keywords').val().split(','); </code></pre> <p><strong>Output:</strong> Number of <code>keywords</code> in <code>text</code></p> <p><strong>Example:</strong></p> <pre><code>text = "jquery javascript js jquery-js js dj...
javascript jquery
[3, 5]
797,452
797,453
ASP.NET or PHP? Soft for Real Estate Agencies
<p>Soon I begin create CRM for Real Estate Agencies sphere. In my backround 2 years of PHP-programming &amp; then 5 years of ASP.NET (intranet applications). &amp; I think maybe ASP.NET (i write code on C#) have good IDE (VS 2010), but this is monster :)</p> <p>My application will be multiplayer webapplication for dif...
php asp.net
[2, 9]
1,668,333
1,668,334
Parse Starcraft 2 replays using Java?
<p>I want to create an app for android which will parse Starcraft 2 replays in the format MQP.</p> <p>There was an old project called WARP - but I think it has died... if there was a c# or c++ implementation, I may be able to use that by natively calling it from Java / Android but that would not be ideal.</p> <p>Can ...
java android
[1, 4]
5,366,203
5,366,204
Is it possible send data in realtime in iPhone app to an php aplication?
<p>I want to make an iPhone app that sends some data to a PHP web site, I know it can be done with a web service, but how? Can be done in realtime? If I got several iPhones how can I make my app?</p>
php iphone
[2, 8]
5,629,347
5,629,348
javascript doesn't work in firefox
<p>JavaScript:</p> <pre><code>$(window).scroll(function(){ if ($(window).scrollTop() == $(document).height() - $(window).height()){ $('#footer').show(); } }); </code></pre> <p>CSS:</p> <pre><code>#footer { display: none; } </code></pre> <p>This is supposed to reveal a hidden <code>div</code> at...
javascript jquery
[3, 5]
3,897,419
3,897,420
The process cannot access the file because it is being used by another process while deleting image
<p>I am trying to delete original image after thumbnail create but original image cannot be deleted. It throws the exception </p> <blockquote> <p>The process cannot access the file because it is being used by another process.</p> </blockquote> <p>Here is my code </p> <pre><code>public static string deleteImage(str...
c# asp.net
[0, 9]
1,066,885
1,066,886
Parse error: syntax error, unexpected T_ECHO in
<p>all code is:</p> <pre><code>$(document).ready(function(){ $('#sub').click(function() { var r = confirm("سلام") if (r==true){ var in_code=document.getElementsByName("code")[0].value; var echo="&lt;?php include ('conect.php'); $res2=mysql_query("select * from produc...
php javascript
[2, 3]
692,012
692,013
show loading image using c# code behind
<p>I am working on a web application where I want to show a loading image (busy indicator) when my code create a xml file and download it I want to show the image in a div. I should use c# code only not update panel nor the jquery ajax technique. My code looks like:</p> <pre><code>protected void lb_DownloadXML_Click(o...
c# asp.net
[0, 9]
4,499,303
4,499,304
PHP to Java (using PtoJ)
<p>I would like to transition our codebase from poorly written PHP code to poorly written Java, since I believe Java code is easier to tidy up. What are the pros and cons, and for those who have done it yourselves, would you recommend <a href="http://www.numiton.com/products/ntile-ptoj/ptoj-overview.html" rel="nofollow...
java php
[1, 2]
3,769,172
3,769,173
create a new element as much as the value of the input
<p>How can I create element dynamically, and the amount of the element is based on the input text Thanks before..</p>
javascript jquery
[3, 5]
4,426,650
4,426,651
Canvas not visible on particular device (One X)
<p>I think I am facing a small issue. My problem is that I am drawing a speedometer based on <a href="http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/" rel="nofollow">http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/</a>. And the needle is visible on all d...
java android
[1, 4]
2,683,664
2,683,665
ASP MS chart control
<p>I am doing reporting on MS chart Control. I have 5 Series in Chart1 which all are having different values. I want to sort those series in descending order, so I used the multiple sort series method</p> <pre><code>Chart1.DataManipulator.Sort(PointsSortOrder.Descending, "Sereis1,Series2,Se...
c# asp.net
[0, 9]
5,479,803
5,479,804
How do I add text to the span after some action is perform?
<p><a href="http://jsfiddle.net/nwT6v/1/" rel="nofollow">http://jsfiddle.net/nwT6v/1/</a></p> <p>That's my script basically. How come? </p> <p>I want to add text after clicking download to the <code>span</code>.</p>
javascript jquery
[3, 5]
2,945,218
2,945,219
if statement OR logic oddity
<p>I'm calling this function from a jUnit test case with the following information:</p> <pre><code>// abbr = "US"; // Countries = array of two objects one with iso2 = "us" public Country getCountryFromAbbr(String abbr) { abbr = abbr.toLowerCase(); for (int i = 0; i &lt; Countries.size(); i++) { Countr...
java android
[1, 4]
3,316,668
3,316,669
Get a performance metric for certain Android devices?
<p>I'm working on an app that has some performance intensive pieces. I can easily scale this to provide a smoother experience while showing less precise information. I'm wondering if there is a good way to determine the capabilities of a given device? The goal is to provide the highest level of precision while keeping ...
java android
[1, 4]
4,302,739
4,302,740
How to select all elements except the ones with a given class, using jQuery?
<p>I want to select all elements in my page except those with the class "searchBox".</p> <p>How can I do that?</p> <p>I want to disable text selection on all elements except input elements</p>
javascript jquery
[3, 5]
1,246,381
1,246,382
Alternative to passing data in onClick?
<p>I have a web page which lists all database records from a certain server. Along side each row are a few buttons which allow you to rename or delete records.</p> <pre><code>INPUT( _value='Rename', _type="button", _class='appbutton', _onclick='renameApplication({0},"{1}")'.format(app.id,app.name)) </code></pre> <p>W...
javascript jquery
[3, 5]
1,944,766
1,944,767
Drop down box selectedIndex property
<pre><code>$.fn.fillSelect = function (data) { return this.clearSelect().each(function () { if (this.tagName == 'SELECT') { var dropdownList = this; $.each(data, function (index, optionData) { var option = new Option(optionData.Text, optionData.Value); ...
javascript jquery
[3, 5]
3,003,742
3,003,743
RegisterStartupScript fire at open popup
<p>I am trying to check the class of an object in the parent() of a popup. This check will determine the UI (ASP form elements of the popup). For Instance:</p> <p>Pseudo Code: (JQUERY) I want this executed when the popup is opened and pass in whether or not the specific class was found</p> <pre><code>if($(document)...
javascript jquery asp.net
[3, 5, 9]
119,299
119,300
How to show the progressbar when upload the video file using multipartentity
<p>i am upload video file and data using multipartentity .How to show the progressbar and upload the Array values in one key value?</p> <p>I am using the following code:</p> <pre><code> DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(Call_Server....
java android
[1, 4]
3,663,611
3,663,612
How to setup javascript redirect to send user to back page? see code
<p>with <code>onclick="history.go(-1);return false;"</code> user can navigate to back pages. but if I want to put a confirm method before it takes user to the back.. how would I do that?</p> <p>I think it can be achieved by doing something like below but I am not sure how to redirect user to back page? </p> <pre><cod...
javascript jquery
[3, 5]
1,172,834
1,172,835
Permanently Closeable jQuery pop-up
<p>I have a moveable and closable jquery pop-up notification box. It works well aside from the fact that it pops up every time the page is loaded. What method would I need to implement to allow a user to permanently (or at least semi permanently) close the pop-up box?</p> <p>If I need to use cookies how would I tie a ...
php javascript jquery
[2, 3, 5]
2,762,095
2,762,096
Data attribute not rendering in the desired format when added dynamically ,not escaping double quotes
<p>Im trying to add a div tag dynamically with some data attributes but the data attributes are not rendering in the right format.Please find the code below</p> <pre><code>$('&lt;a href="#" id="opendialog2" data-role="button"&gt;Open Dialog2&lt;/a&gt;&lt;div id="inlinecontent2" style="display:none" data-options="{"mod...
javascript jquery
[3, 5]
4,213,789
4,213,790
Half Hidden Div
<p>Ive got a interesting problem. I am using google vis to place guages inside a div. These gauges are updated on dropdownmenu selections from JS functions. The div which hosts the gauges is activated by clicking an image,</p> <pre><code> &lt;a title="Asset List View" target="_blank" class="header" target="_parent"&g...
javascript asp.net
[3, 9]
5,688,470
5,688,471
Server not reading jquery
<p>I created an application using PHP, mysql, and jquery. It's working fine on my localhost,m however after uploading it to the server, everything works fine but jquery, I believe it's not reading it.</p> <p>Using firebug, I get the following error when trying to read the .js file in the browser: </p> <blockquote> ...
php jquery
[2, 5]
4,479,143
4,479,144
Starting service from intent in another service gets a run time error
<p>I'm getting an error when trying to start a service with an intent from another service in an Android 2.3.3 project. The error is: Unable to start service with Intent{ act=(class name) cmp=(class name)/.(android name) }: java.lang.IllegalArgumentException:provider==null</p> <p>Method Call:</p> <pre><code>private v...
java android
[1, 4]
207,722
207,723
Why can't i run a javascript function from c# code?
<p>This is a part of the C# code where i want to insert the network graph:</p> <pre><code>DetailsBody3.Text = "&lt;tr class=\"space\"&gt;"; DetailsBody3.Text += "&lt;td&gt;" + "&lt;div id=\"center-container\"&gt;&lt;div id=\"infovis\"&gt;&lt;/div&gt; /&gt;"; DetailsBody3.Text += "&lt;/div&gt;&lt;/td&gt;"; Detail...
c# asp.net
[0, 9]
1,022,659
1,022,660
How to attach hover to SVG path?
<p>I'm dynamically drawing svg shapes and I need to attach hover and click listeners to the elements. For some reason I can't get it to work.</p> <p>I'm creating the svg like this:</p> <pre><code>function svgCreator(){ var objectName = this.name; $('#container').append('&lt;svg&gt;&lt;path class="overlay" id="path_' ...
javascript jquery
[3, 5]
3,715,310
3,715,311
jQuery form action change
<p>Normally to change the action attribute of a form in jQuery I would do the following:</p> <pre><code>&lt;form id="removeLightboxForm" action=""&gt; ... &lt;/form&gt; $('#removeLightboxForm').attr("action", "view/#close"); </code></pre> <p>But I usually use this for when the action attribute is empty on the HTML f...
javascript jquery
[3, 5]
1,529,766
1,529,767
jquery hooks for finger swype?
<p>so, i've built this site to put up some of my photos:</p> <p>pics.nicecomeback.com</p> <p>it's not using any standard jquery photo gallery .. implemented my own by capturing arrows and swapping page background to show next/previous photo. </p> <p>to my surprise, this thing mostly just works when viewed on an andr...
javascript jquery
[3, 5]
1,847,662
1,847,663
Uncaught SyntaxError passing multiple values to function
<p>I am trying to call a function, but am running into some struggles with properly escaping the values and passing it properly. I currently have:</p> <pre><code>function selectdone(sel, title_id, status_type) { ... } $(function() { $("td.status-updates").click(function() { if ($(this).find('#sel').length == 0)...
javascript jquery
[3, 5]
4,642,991
4,642,992
declaring serviceintent in androidmanifest
<p>I have a class which extends serviceintent called bluepostservice. In another class in the same package which extends activity i call</p> <pre><code>Intent selectIntent = new Intent(this, bluepostservice.class); this.startService(selectIntent); </code></pre> <p>I have this in my manifestxml </p> <pre><code>&lt;s...
java android
[1, 4]
3,191,084
3,191,085
currently selected month in asp.net calendar control
<p>How do I know which month is selected when no date is selected.</p> <p>For eg, on page load, the calendar will show december. The user click ">" button to show January. </p> <p>How do I know that he has selected January?</p> <p>Tkz</p>
c# asp.net
[0, 9]
639,064
639,065
Strange behavior in JavaScript
<p>I have 2 elements - "span" (named "divLikedX") and "a" (named "aLikeX"). I have the following javascript (occurs clicking by "a"):</p> <pre><code> function CommentLike(CommentID, aLink) { if (CommentID != null &amp;&amp; CommentID &gt; 0) $.post("/Home/LikeComment", { CommentID: CommentID }, ...
javascript jquery
[3, 5]
4,531,423
4,531,424
Javascript + Click all divs
<p>I trying to have a javascript function to click all divs that has an id of 'divResults' in my form but apparently it doesn't work, no errors but nothing buldges. Please advice. Thanks.</p> <pre><code> &lt;a href="javascript:clickAllDivs()"&gt;Expand All&lt;/a&gt; | &lt;a href="javascript:clickAllDivs()" &gt;Colla...
javascript asp.net
[3, 9]
3,691,348
3,691,349
Is there an equivalent of ucwords in java
<p>In php, the method <code>ucwords</code> converts any string in a string where each words first character is in uppercase, and all other characters are lower case. </p> <p>I always end up making my own implementation, and I'm wondering if a standard method exists. </p>
java php android
[1, 2, 4]
1,006,155
1,006,156
Subscribing to "childrenAdded" event in jQuery
<p>Is there currently a way to subscribe to an event of a wrapped set, that will trigger when any element is appended to it as a child element? </p>
javascript jquery
[3, 5]
4,368,453
4,368,454
JQuery: get current selector
<p>I have a form with multiple <code>select</code> dropdown menus that start with the id: package which are added dynamically by the user. My goal is to put all the selected values from these <code>select</code> dropdowns into an array. Here is the code I have so far. </p> <pre><code>$(document).ready(function() { ...
javascript jquery
[3, 5]
5,216,129
5,216,130
datetime string formatting in usercontrol
<p>I want to formatting a Date field in user control.</p> <pre><code>&lt;asp:Repeater ID="rptList" runat="server"&gt; &lt;ItemTemplate&gt; &lt;asp:Label ID="lblDate" runat="server" Text='&lt;%# ((DateTime)Eval("Date")).ToString("MMM dd") %&gt;'&gt;&lt;/ &lt;/ItemTemplate&gt; &lt;FooterTemplate&gt;...
c# asp.net
[0, 9]
3,949,657
3,949,658
onbeforeunload not working within unload
<p>I have wrote the following code to run the onbeforeunload within unload. However, this doesn't seem working. Does anyone know what's wrong about my code and anyway to make it work?</p> <pre><code>$(window).unload(function () { if ($('.submitAction').val() == "" &amp;&amp; isChange) { window.onbeforeunlo...
javascript jquery
[3, 5]
3,472,261
3,472,262
Creating classes and using them into project
<p>I have a lot of button inside my application and for every button i need to create onClickListener, this will incerase line of code's.</p> <p>So i create a class for onClickListener below:</p> <pre><code> import android.app.Activity; import android.content.Intent; import android.view.View; public c...
java android
[1, 4]
5,104,511
5,104,512
jQuery code lines from array
<p>This works ok:</p> <pre><code>$('#icon1').live("hover", show_popup, hide_popup); $('#icon2').live("hover", show_popup, hide_popup); $('#icon3').live("hover", show_popup, hide_popup); </code></pre> <p>But this does not works and has no error:</p> <pre><code>var icons = ['#icon1', '#icon2', '#icon3']; for (icon in ...
javascript jquery
[3, 5]
1,430,639
1,430,640
Web Crawling and inbound link extracting
<p>I'm searching for a c# function that takes a Url as a parameter and returns all the inbound url related to that url.</p>
c# asp.net
[0, 9]
2,589,669
2,589,670
add/remove class at same time in java script (php module)
<p>i am developing a module in PHP and i need to add/remove class at the same time using event onclick in javascript. Please suggest.</p> <p>Below is the code but it is not working,</p> <pre><code>jQuery("#cat-block-id").show(); //jQuery("#product-block-id").hide(); jQuery(".fme_layered_attribute").click(function()...
php javascript
[2, 3]
1,646,456
1,646,457
org.apache.axis2.databinding.ADBException: Unexpected subelement contentType at org.apache.axis2.AxisFault
<p>I am getting below exception when trying to create Proxy and consume service from ASP.NET, C#</p> <p>Web service was created in apache.axis2 org.apache.axis2.databinding.ADBException: Unexpected subelement contentType at org.apache.axis2.AxisFault.</p>
c# asp.net
[0, 9]
2,454,842
2,454,843
Get previous and next siblings from jQuery
<pre><code>&lt;ul&gt; &lt;li&gt; &lt;img src="a"&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="b"&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="c"&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="d"&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>This is just an example, this above structure belongs to a caro...
javascript jquery
[3, 5]
1,365,386
1,365,387
How do you name your classes when it comes to JavaScript vs CSS?
<p>There are some classes that are there for css, and there are some classes that are there for JavaScript.</p> <p>What naming convention do you use to denote "look for this class in the JavaScript file(s)" as opposed to: "Look for this class in the css file(s)" as opposed to "Look for this class everywhere".</p>
javascript jquery
[3, 5]
1,709,606
1,709,607
how to randomly change the color of every pixel on the screen
<p>I want each pixel on the screen to flash between red, blue, green, white, and black but independently of each other. Is this possible? I have been searching everywhere with out any luck. Any help on where to start would be greatly appreciated.</p>
java android
[1, 4]
5,018,460
5,018,461
Send some HTML data into a php file using javascript
<p>Example: I have two php files (<code>phpfile_1.php</code> , <code>phpfile_2.php</code>). I have a <code>div</code> with <code>id = "content_Div"</code> in the <code>phpfile_1.php</code> file. I want to send all HTML content that the <code>content_Div</code> has to another <code>div</code> which is in <code>phpfile_2...
php javascript
[2, 3]
2,970,010
2,970,011
What does IsPostBack actually mean?
<p>I am interested to know what specifically Page.IsPostBack means. I am fully aware of it's day to day use in a standard ASP.NET page, that it indicates that the user is submitting data back to the server side. See <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback.aspx" rel="nofollow">Pag...
c# asp.net
[0, 9]
2,983,718
2,983,719
Help me with setTimeout() please
<p><br />I guess I need help on this one.<br />I'm not new to Javascript but then I realize I don't know how to use <a href="https://developer.mozilla.org/en/window.setTimeout" rel="nofollow">setTimeout()</a>.</p> <p>I have tried this:</p> <pre><code>$(document).ready(function(){ setTimeout('changeit()',1000); // ...
javascript jquery
[3, 5]
319,458
319,459
Event which triggers when stylesheets, not only the DOM, are loaded on the page
<p>I tried to use the <a href="http://api.jquery.com/ready/" rel="nofollow">http://api.jquery.com/ready/</a> callback for executing a code, which I would like to get started only when the page is fully loaded. However, this triggers when the DOM is loaded, and it can often happen that the stylesheets are not loaded ful...
javascript jquery
[3, 5]
419,004
419,005
jQuery UI Tab returns first tab
<p>I've an asp:Button control in tabs-2. I'm inserting database something in onClick method, then it returns first tab but i want to open current tab. Also, page must be reload. How can i do ?</p> <pre><code>&lt;asp:Button ID="btnAddContactKnowledge" CssClass="ButtonDefault" runat="server" Text="add" OnClientClick...
c# jquery asp.net
[0, 5, 9]
2,475,637
2,475,638
Change table border color using JQuery
<p>I have a user control that conatins HTML, like this:</p> <pre><code>&lt;table id="tblProgramInfo" runat="server" cellpadding="0" cellspacing="0" class="ProgramInfo"&gt; &lt;tr&gt; &lt;td&gt; &lt;table cellpadding="0" cellspacing="0" width="100%" class="tblProgram" abc="def"&gt; &lt;tr&gt; ...
asp.net jquery
[9, 5]
4,094,696
4,094,697
Cant combine PHPfreechat and Jquery
<p>Im trying to implement an onscreen jquery keyboard into my PHPfreechat client.</p> <p>Everything works fine except when i try to link to the jquery script file. then the chat wont load.</p> <p>im loading the jquery from my CDN but i have also tried local.</p> <p>if i create a blank page with the jquery and keyboa...
php javascript jquery
[2, 3, 5]
4,186,615
4,186,616
How to call a PHP class member function from a Java file?
<p>I am using PHP/Java bridge to run PHP scripts on the Tomcat server. Can someone point me to an example as to how to call my PHP scripts from a Java file. </p> <pre><code>&lt;?php class X{ //variables //functions } ?&gt; </code></pre> <p>Now I want to call the member functions of class X using its object ...
java php
[1, 2]
15,669
15,670
record mouse movements, clicks and keyboard input with Java or C++
<p>I want to be able to record mouse movements, clicks and keyboard input from a user. It would be great if it was a cross platform solution.</p> <p>I'd like to get back something like this (pseudo code):</p> <p>mouse moved to 500, 500 mouse double clicked mouse moved to 800, 300 mouse left clicked keyboard typed "...
java c++
[1, 6]
2,414,982
2,414,983
How to highlight specific row in a DetailsView?
<p>I am a new ASP.NET developer. I am using a DetailsView now to dispaly some data from the database. I have the need to highlight certain two rows from the DetailsView. Both rows are VARCHAR data type. <strong>SO HOW TO DO THAT?</strong></p>
c# asp.net
[0, 9]
2,077,968
2,077,969
How to pass textbox value to JavaScript?
<p>How to pass two textbox values to a javascript function on a button click event.I have tried it like this but it is not working.here is my code</p> <pre><code>&lt;asp:LinkButton ID="lnkBTNSubmit" runat="server" CssClass="buttonlink" OnClientClick="checkDateRange(GetTextBoxValue('&lt;%= txtATrendStartDate.ClientID...
javascript asp.net
[3, 9]
2,847,222
2,847,223
comparing and sorting javascript arrays
<p>This might get a bit confusing and I'm not sure if it's possible, but I would appreciate any help. I have the following arrays (the items and number of lists might change, this is just an example):</p> <pre><code>var list_1 = ["A - 2" , "E - 5" , "C - 7"]; var list_2 = ["D - 2" , "A - 2" , "E - 3"]; var list_3 = ["...
javascript jquery
[3, 5]
3,616,020
3,616,021
How to select all body elements except first div
<p>I have this HTML:</p> <pre><code>&lt;body&gt; &lt;div id="switcher" class="switcher"&gt; &lt;h3&gt;Style Switcher&lt;/h3&gt; &lt;button id="switcher-default"&gt; Default &lt;/button&gt; &lt;button id="switcher-narrow"&gt; Narrow Column &lt;/but...
javascript jquery
[3, 5]
442,912
442,913
error in fix the position of navigation when scroll the page
<p>I wanna to fix the position of navigation at the top when the navigation position and scroll position are equal. Please let me know how can I get the position of navigation and page scroll position? I wanna like this site page <a href="http://new.livestream.com/live-video-tools" rel="nofollow">http://new.livestream....
javascript jquery
[3, 5]
4,068,762
4,068,763
How to get available scroll x amount
<p>I am looking to figure the amount available to scroll right. If a user has a smaller screen, the content that is appended will look cut off and I would like to just scroll for them in a smoother fashion. I have used </p> <pre><code>scrollTo(99999, y); </code></pre> <p>but that just jumps. I think my best bet woul...
javascript jquery
[3, 5]
5,260,419
5,260,420
I am looking forward to call some javascript method from a java class
<p>i want to call a javascript method from a servlet... is it possible??</p> <p>i have heard of something called mozila rhino but cannot understand its use, do any 1 has any idea???</p>
java javascript
[1, 3]
6,028,749
6,028,750
Most efficient jquery show/hide Toggle
<p>Simple question:</p> <p>What is the most efficient way of showing/hiding 2 divs based on a select control using jquery?</p> <pre><code>&lt;div id="div1"&gt;DIV 1 BRO&lt;/div&gt; &lt;div id="div2" style="display:none;"&gt;THIS BE DIV 2 CUZ&lt;/div&gt; &lt;select id="blablabla"&gt; &lt;option value="div1"&gt;di...
javascript jquery
[3, 5]
3,939,029
3,939,030
how to show .pdf file in asp.net web application using c#?
<p>i have fileUpload control on web page and a button to show .pdf file in a rich text box. but i dont know how to open apdf file ? can i use some pdf library?</p>
c# asp.net
[0, 9]
4,287,183
4,287,184
Will calling base on an inherited method call return also?
<p>Say my base method looks like:</p> <pre><code>public int GetCount() {.....} </code></pre> <p>Now I inherit from GetCount's class, and do:</p> <pre><code>public new int GetCount() { int count = base.GetCount(); count += 1; return count; } </code></pre> <p>Will calling base.GetCount() cause a return befo...
c# asp.net
[0, 9]
4,138,503
4,138,504
Block popup windows settings give error to close popup window in javascript
<p>I have one web page, on which when user click on button(for calculation purpose) one popup window open(its an aspx page as popup) .</p> <p>When user done calculations on popup then automatically popup is close. </p> <p>But when user block popup windows through browser setting then popup open but cant close.</p> <...
c# javascript asp.net
[0, 3, 9]
5,194,589
5,194,590
Triggering mouseenter several times on changing height for block
<p>There is problem with absolute positioned blocks - when I use $('.my-block').mouseenter() and change height in its handler - mouseenter triggers as many as it crosses other such blocks.</p> <p>for example some thing like this:</p> <pre><code>.items{position:relative;} .item{position:absolute;} </code></pre> <pr...
javascript jquery
[3, 5]
5,443,214
5,443,215
Are object parameters passed as references in Javascript to functions?
<p>I have the following javascript code:</p> <pre><code>var oLink = { title: $link.attr('title') || '', row: $link.attr('data-row') || '', $modal: '' } </code></pre> <p>I now call a function like this:</p> <pre><code>oLink.$modal = accessModalOpen(oLink, content); </code></pre> <p...
javascript jquery
[3, 5]