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
508,998
508,999
How to implement this function of all dataviewers in ASP.NET C#?
<p>I am displaying four records at a time, each having a check box.</p> <p>The design is static. I would like to know a way to find out, if a check box clicked, then extract the name displayed in label to its left.</p> <p>How would the code know what lies to its left?</p> <p>That is, find out in which row the click ...
c# asp.net
[0, 9]
3,914,505
3,914,506
jquery imagesLoaded plugin: how to listen to every image is loaded
<p>I am using imagesLoaded plugin to trigger some actions when all the images are loaded. But now I want to do something after every individual image is loaded, is it doable using imagesLoaded plugin?</p>
javascript jquery
[3, 5]
6,034,015
6,034,016
jQuery: Preventing list scroll?
<p>I have this scenario: Using an ajax query I fetch some data items and push them into a <code>ul</code> element as an <code>li</code> element. I use <code>$("ulele").append(new_li_item)</code>. I wrote my own custom scroll for this <code>ul</code> element using the following whenever an event is detected:</p> <pre><...
javascript jquery
[3, 5]
1,925,275
1,925,276
Creating upload button and progress bars using jQuery-File-Upload plugin
<p>I'm trying to use the <a href="http://blueimp.github.com/jQuery-File-Upload/" rel="nofollow">jQuery File Upload</a> plugin to upload some files in an ajax form. I'm trying to follow the directions for the <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin" rel="nofollow">"Basic" plugin</a>, bu...
javascript jquery
[3, 5]
3,369,532
3,369,533
Jquery: Action for each change
<p>Continuing on from: <a href="http://stackoverflow.com/questions/16649933/jquery-on-form-change-with-bootstrap-sliders/16650319?noredirect=1">Jquery on form change with Bootstrap Sliders?</a></p> <p>I am currently using the below to capture the ID of a slider and change the content of #log. The problem with this is...
javascript jquery
[3, 5]
4,211,088
4,211,089
Passing query strings with jQuery
<p>I've been googling for two hours now, can't find the answer. Hope you guys can help me out.</p> <p>The following is part of a refresh script in jQuery. I'm using this code in <em>index.php</em>:</p> <pre><code>&lt;script type="text/javascript"&gt; jQuery.noConflict(); // UPDATE TYPES function typeUpdate() { j...
php javascript jquery
[2, 3, 5]
5,897,532
5,897,533
How can it be detected if a page is on background or foreground with jquery/javascript?
<p>The title explains itself. How can I detect if a web page has gone to background?</p> <p>I'm implementing a chat application and I'll use this information to decide showing new message notifications. I suppose that GMail uses something like that. If the page is on background, it shows desktop notifications (on chro...
javascript jquery
[3, 5]
5,844,151
5,844,152
How to execute JavaScript on Android?
<p>I have code which uses ScriptEngineManager, ScriptEngine class for executing JavaScript code using Java. But it works fine in Java SE, and doesn't work in Android - SDK show error of missing classes. Is it possible to execute JS code in Android? Thank you. </p>
java javascript android
[1, 3, 4]
4,568,180
4,568,181
jQuery bind to Paste Event, how to get the content of the paste
<p>I have a jquery token tagit plugin and I want to bind to the paste event to add items correctly.</p> <p>I'm able to bind to the paste event like so:</p> <pre><code> .bind("paste", paste_input) </code></pre> <p>...</p> <pre><code>function paste_input(e) { console.log(e) return false; } </code></pre> <...
javascript jquery
[3, 5]
482,485
482,486
Best way to push alert to webpage through php/jquery?
<p>Just looking for some guru advice/tips as am building a home automation website for our new house. Will have a php website that each PC (about 10-15) throughout the house will be able to access to perform tasks (eg play movies, music, control lights etc).</p> <p>On this site, I'd also like to be able to ping a mes...
php jquery
[2, 5]
73,469
73,470
Show soft keyboard with no input
<p>I'm implemented an Activity where the control is the soft keyboard (I'd like to perfom some actions when some keys are pressed)</p> <p>so I'd like to show the keyboard (having no an EditText or similar) and read the touches with </p> <pre><code>@Override public boolean onKeyDown(int keyCode, KeyEvent event) { ...
java android
[1, 4]
4,270,370
4,270,371
URLEncoder encode / URLDecoder decode in java (Android)
<p>I want to use the URLEncoder/URLDecoder class (java.net.URLEncoder/URLDecoder) in an application and the methods : encode(String s, String enc)/decode(String s, String enc), but I don't know what can be the value of the String argument enc? I want to encode/decode in the "x-www-form-urlencoded" MIME content type. Th...
java android
[1, 4]
4,230,664
4,230,665
FancyUpload with JQuery
<p>How to use FancyUpload in a JQuery based project? The page in which I will use FancyUpload is made of JQuery. How to use FancyUpload? Please mention every steps in details. Please</p>
javascript jquery
[3, 5]
5,827,335
5,827,336
Better way to submit a form with custom variable (prompt)?
<p>I'd like to submit a form with a custom variable from the <code>prompt()</code> function.</p> <p>Submitting a form uses the code</p> <pre><code>document.formname.submit(); </code></pre> <p>But that will just submit the form, what I want is:</p> <pre><code>var iInvoiceID = prompt("Please enter the invoice ID"); d...
php javascript
[2, 3]
5,326,995
5,326,996
jQuery ConceptMap plug-in bug
<p>This is about the jQuery plugin ConceptMap: <a href="https://github.com/allain/JavaScript-Concept-Map" rel="nofollow">https://github.com/allain/JavaScript-Concept-Map</a></p> <p>There is also a rewrite of this plug-in by KNV: <a href="https://github.com/knv/jquery-conceptmap-plugin" rel="nofollow">https://github.co...
javascript jquery
[3, 5]
3,457,800
3,457,801
PHP/JQuery/JavaScript Countdown
<p>I'm trying to use the jQuery Countdown (http://code.google.com/p/jquery-countdown/) to display a countdown to a specific date and time, but you need to program the number of days, hours, minutes, and seconds into the jQuery call. </p> <p>I'm not quite sure how to do this in JS, but I figured using PHP to calculate ...
php javascript jquery
[2, 3, 5]
4,791,219
4,791,220
Which pattern should I use?
<p>I have been making Android application, and I have following task: when the device is shaken, application should download data from server, part of this data should be shown on screen, remaining data should be spoken using text2speech class. Which pattern should I use for it? </p>
java android
[1, 4]
3,033,780
3,033,781
What's the difference between JavaScript and Java?
<p>What's the difference between JavaScript and Java?</p>
java javascript
[1, 3]
5,042,549
5,042,550
How to call a function(only one not all) inside a plugin from outside in jQuery?
<p>I need to call a function i.e. </p> <pre><code> SFProductFilter.prototype.filter = function () { //Some Code which also interact with some of other plugin functions } </code></pre> <p>From outside of the plugin. Is it possible if yes how?</p>
javascript jquery
[3, 5]
2,662,677
2,662,678
jquery: Passing this to child function
<p>I have something like this:</p> <pre><code>$('element.selector').live("click", function (){ run_some_func (); }); $('element.selector2').live("click", function (){ run_some_func (); }); </code></pre> <p>Now in the function I need to use $(this):</p> <pre><code>function run_some_func () { $(this).show(); } ...
javascript jquery
[3, 5]
1,851,889
1,851,890
Using jquery slide panels and javascript lightbox together causing conflict?
<p>I'm using some jQuery to have some sliding panels. It's for a portfolio website I'm building for myself. I have a panel sliding in that contains thumb nails that I want to link to images to be displayed inside of a Lightbox using JavaScript.</p> <p>When all the scripts are inside my head, the sliding panels work bu...
javascript jquery
[3, 5]
4,148,055
4,148,056
Problem in calling Python script from PHP
<p>This is my python script which creates a "test.txt" file when executed. when I execute using terminal (Ubuntu 11.04) <code>root@gml-VirtualBox:/var/www/HMS# python test.py</code>. It creates the "test.txt" in the <code>/var/www/HMS</code> directory as I expected.</p> <pre> test.py: #!/usr/bin/env python def init(...
php python
[2, 7]
2,251,439
2,251,440
autotrader.com posting
<p>Does anybody know if autotrader.com offers an API or something that would help with mass postings of vehicles? Or does anybody have any idea of what to use to create something like this? I was thinking of maybe a mouse location and click over a browser window type of thing.</p>
c# c++
[0, 6]
4,279,486
4,279,487
Open the Save Image dialog using jQuery/Javascript?
<p>When a user clicks on an image on a web page, I'd like to trigger the browser's Save Image dialog and to let the user save the image on their hard drive. Is there a cross-browser way to do this with jQuery/Javascript?</p>
javascript jquery
[3, 5]
4,156,429
4,156,430
How do you use PHP to interact with a running C++ process?
<p>Is it possible to have a C++ program running on a server that sits and waits to be passed arguments by a PHP process. The C++ program would then process these arguments and return a result to PHP.</p> <p>I’ve been searching the web and can see a couple of ways to run a C++ program from PHP but can’t find a way to ...
php c++
[2, 6]
651,937
651,938
Create another div and variable onChange using jQuery
<p>below is a code that gets the value of the selected option and shows the php file in the div. How can I add another file and another div (secondfile) to be displayed ?</p> <pre><code>$('#firstresult').empty().addClass("loading") .load(val + '.php', { value: val }, function(){ $("#firstresult").removeCla...
php javascript jquery
[2, 3, 5]
4,364,180
4,364,181
javascript button which stops the image loading process
<p>I want to make a javascript (or jQuery if that's a possibility) button for my HP which stops the loading of the images on the page (for example when a user has to pay per MB and is only interested in the text).</p> <p>I searched and searched and found answers like "remove the src", or "use window.stop()", but the p...
javascript jquery
[3, 5]
1,271,116
1,271,117
Why my javascript is not working in Firefox
<p>I have written the following script to change the back color of check box when checked but this is not working on Mozila</p> <pre><code>&lt;script type="text/javascript"&gt; function checkBoxList1OnCheck(listControlRef) { var inputItemArray = listControlRef.getElementsByTagName('input'); for (var i=0; i&lt;input...
javascript asp.net
[3, 9]
4,130,266
4,130,267
How to validate a duplicate value of textbox in asp.net while submit button
<p>I have 3 text box's and a submit button when i enter the values and submit then values are entered in database .</p> <p>but when i enter the same values and enter then those values are also entered.......This should not happen...I need a popup window showing there are duplicate values that you have entered.Please g...
c# asp.net
[0, 9]
5,803,019
5,803,020
retrieving the return value of a python script
<p>I have an external C# program which executes a python script using the Process Class.</p> <p>my script returns a numerical code and I want to view that number with my C# program.</p> <p>the problem is, I'm getting the return code of python.exe, instead of my script return number - in that case, "return 3" </p> <p...
c# python
[0, 7]
4,361,293
4,361,294
Function stops after click()
<p>I'm trying to simulate two click to open a menu. The first one opens the menu and the second the submenu but after the first click() the function stops.</p> <p>This is my JS code:</p> <pre><code>function open_menu(id_menu, id_sub_menu) { $('.sous-domaines a#lien-domaine-'+id_menu).click(); $('a#lien-menu-'...
javascript jquery
[3, 5]
4,154,735
4,154,736
jquery - Open popup window and size, then size image inside and keep aspect ratio
<p>Im looking to open a popup window which will contain an image.</p> <p>Im already using:</p> <pre><code>$(document).height(); $(document).width(); </code></pre> <p>To set the width and height of the pop-up window so it fills as much of the screen as possible. How can I then work out the best height and width of th...
javascript jquery
[3, 5]
4,449,891
4,449,892
How to Get Calling Page Name from Library Class
<p>Within some library class, is there a way I can I determine which webpage called it, without having to pass in the calling Page object ?</p>
c# asp.net
[0, 9]
3,744,980
3,744,981
Overriding instantiateItem(...) won't compile
<p>I am trying to use a PageAdapter. I found out that <code>public Object instantiateItem( View pager, int position )</code> has been deprecated. So I am trying up update but ran into a problem. The new definition changes the deceration to <code>public Object instantiateItem( ViewPager pager, int position )</code>, whe...
java android
[1, 4]
1,939,477
1,939,478
add delete icon to confirmation popup
<p>I have an ASP.NET record (in a grid view) like this:</p> <pre><code>&lt;ItemTemplate&gt; &lt;asp:ImageButton ID="btnSearchDeleteProperty" runat="server" ImageUrl="~/Images/delete2.png" OnClientClick="return confirm ( 'Are you sure you want to DELETE this record?' )" CommandArgument='&lt;%# Eval("PropertyID"...
javascript asp.net
[3, 9]
338,682
338,683
override Master Page CSS div width in Child Page
<p>I've set a specific width to the body div in my Master Page and I want to change that in a Child Page that belongs to the Master Page. Is this possible? I've been searching and I think what I need is javascript.</p> <p>I haven't used javascript before though, but here's what I've tried:</p> <pre><code>&lt;asp:Cont...
c# asp.net
[0, 9]
1,629,251
1,629,252
Javascript error: ...is not function
<p>What i wanna do is, to animate and hide some div, on closerlink button click, then hide this button. Function works but doesn't hide the <code>closer_div</code> and gives error message </p> <p><code>ftr_form_cntr.stop(true, true).animate({height: "0"}, 1000).pause is not a function</code></p> <p>on ff. Actually it...
javascript jquery
[3, 5]
4,852,645
4,852,646
Java Compile time interface changes
<p>I am new to Java, and have inherited an existing android app. The original developer has chosen to use an Interface for Constants.</p> <p>My problem is that I need to change a number of these constants to compile the App for Production vs Dev. Everything works just fine if I modify a handful of values by hand, bu...
java android
[1, 4]
229,048
229,049
Upgrading a piece of code from jQuery 1.3.2 to the latest version
<p>This code works in jQuery 1.3.2</p> <pre><code> $(document).ready(function() { $(function() { $("#proiecte").click(function(e) { e.preventDefault(); $("#ThisWillScroll").removeClass() .addClass("slide1"); $("#menu li a")...
javascript jquery
[3, 5]
5,887,967
5,887,968
Hide buttons when printing fullcalendar
<p>I am using Fullcalendar on my site and I have a button to print it. I am doing this with:</p> <pre><code>function print_calendar() { $('#calendar').css('width', '6.5in'); $('.fc-content .fc-state-highlight').css('background', '#ccc'); $('#calendar').fullCalendar('render'); bdhtml = window.documen...
javascript asp.net
[3, 9]
2,572,290
2,572,291
Jquery plugin qTip - scrollLeft is not a function
<p>I am trying to make use of <a href="http://craigsworks.com/projects/qtip/docs/#create" rel="nofollow">qTip JQuery plugin</a>.</p> <p>I have tried to implement it but I get an error reported by firebug.</p> <pre><code>f(window).scrollLeft is not a function [Break on this error] (function(f){f.fn.qtip=function(B,u){...
javascript jquery
[3, 5]
81,345
81,346
e.which ENTER key enabled only if input field focus
<p>I am using a e.which of jquery for running a function on press of ENTER, but I want this function to be called only if the particular input field is focused (where the cursor is blinking).</p> <p>My current jquery function.</p> <pre><code>$(document).keyup(function(e) { if (e.which == 13) { var page = ...
javascript jquery
[3, 5]
5,825,869
5,825,870
How to select an option via jquery
<p>I have a select form that looks kind of like this:</p> <pre><code>&lt;select multiple="multiple" id="id_color_id" name="color_id""&gt; &lt;option value="1"&gt;Red&lt;/option&gt; &lt;option value="2"&gt;Blue&lt;/option&gt; &lt;option value="3"&gt;Brown&lt;/option&gt; &lt;/select&gt; </code></pre> <p>What I want to ...
javascript jquery
[3, 5]
1,194,003
1,194,004
jquery .find() method -- parameter composed of doms joined by comma
<p>I have seen code like this, a<code>jQuery.find()</code> with parameters split by commas, i.e. <code>div, input, select</code>.</p> <pre><code>newRow.find('div, input, select').each(function() { ...... }); </code></pre> <p>What does it mean? Is it something like "a select input box under div"? I couldn't find off...
javascript jquery
[3, 5]
3,039,504
3,039,505
Selecting all check boxes using header check box in grid of asp.net
<p>It tried many solutions but nothing worked. Please provide me jquery code to select all check boxes of current page of gridview by checking checkbox in header template. I am using asp.net 4 using c#. Any detailed guidance will be highly appreciated. </p>
c# jquery asp.net
[0, 5, 9]
4,542,233
4,542,234
simple jQuery Chaining insight
<p>I thought I understood the chaining power of jQuery, but now I'm a little confused.</p> <p>Using the example of fading out a DIV, and then removing it:</p> <ul> <li><p>By jQuery chaining logic, I should be able to do:</p> <pre><code>$(this).parent().fadeOut(500).remove(); </code></pre></li> </ul> <p>But instead ...
javascript jquery
[3, 5]
3,857,550
3,857,551
External js file not working
<p>I am trying to move all my jquery to an external file however it is not working. I am calling the external file after everything else but the jquery functions are not working. I think it may be because i have more than one function with <code>$(function() {</code> however not being proficient with jquery i do not kn...
javascript jquery
[3, 5]
1,622,430
1,622,431
Unable to replace the class of div element - no method named css
<p>I want to replace the old class of html element with the new one using jQuery. Here is what I'm doing:</p> <pre><code>var elem = $('.my_selector')[0]; elem.css('class', 'my_new_class'); </code></pre> <p>But I get the error saying "Uncaught type error: <code>Object#&lt;HtmlDivElement&gt; has no method css</code>. <...
javascript jquery
[3, 5]
435,300
435,301
Can I monitor when an app has been closed? For example when a user closes Maps(or any other app) can I make a popup come up saying "you closed maps"
<p>I basically want to add a feature to an app I am making but it would require me to know when the user closes certain apps. For example if the user closes any of the following; Maps, Firefox, Facebook, and Camera, A yes/no notification, kinda specific to the app, would come up for the user to answer.</p> <p>It's som...
java android
[1, 4]
5,845,527
5,845,528
class initialization with getting json by ajax always fails
<p>I am newbie of JavaScript. I want to make a class which communicate to Flickr Web API with Ajax when initialized.</p> <p><strong>Photo2.js</strong></p> <pre><code> var Photo2; Photo2 = (function() { Photo2.prototype.json = null; function Photo2() { $.getJSON('http://www.flickr.com/services/rest...
javascript jquery
[3, 5]
5,657,545
5,657,546
JavaScript or jQuery string ends with utility function
<p>what is the easiest way to figure out if a string ends with a certain value?</p>
javascript jquery
[3, 5]
618,657
618,658
Replacing multiple empty spaces
<pre><code>var firefoxIngs = myText.replace(/ /g,"&amp;nbsp;"); </code></pre> <p>This is my string: </p> <pre><code>"h a"//it has two empty spaces between h and a </code></pre> <p>After the code it becomes: </p> <pre><code>"h&amp;nbsp;a"//it has one empty spaces between h and a </code></pre> <p>I want it to be </...
javascript jquery
[3, 5]
3,201,956
3,201,957
Fading image inside a div
<p>I am trying to get it so when the mouse moves over the div it fades the image inside</p> <pre><code>function clickimage($imageid){ $("#image_"+imageid).hover(function(){ $(this).fadeTo("slow", 1.0); },function(){ $(this).fadeTo("slow", 0.6); }); } &lt;div id='images_$imageid'&gt; &lt;a href='?tg=phot...
javascript jquery
[3, 5]
149,750
149,751
Java move <Preference> from one PreferenceScreen to another?
<p>I'm trying to do something similar to iOS editable UITableView. I have a list of "added items" if the user clicks on "Add new item" he is taken to a PreferenceScreen with multiple <code>&lt;Preference&gt;</code> elements, onclick I remove them from this screen and add it to the "Added list" (actually a <code>&lt;Pre...
java android
[1, 4]
1,799,846
1,799,847
How to get sent data?
<p>I send data in this way:</p> <pre><code>&lt;form method="post" enctype="text/plain action="Func"&gt; </code></pre> <p>And I have a function:</p> <pre><code>protected void Func(object sender, EventArgs e) </code></pre> <p>How Can I get data which I sent?</p>
c# asp.net
[0, 9]
2,422,358
2,422,359
Modal Dialog and Form Elements
<p>I have a form that contains some fields and a recaptcha box.</p> <p>I have hidden the recaptcha box. The user clicks "create profile" and a modal dialog pops up with the recaptcha box. All fine.</p> <p>But, how do I submit that information? I am using Javascript to create the recaptcha HTML in the modal. I have a ...
javascript jquery
[3, 5]
5,671,309
5,671,310
Find object's value
<p>Is there any <strong>not loop-based</strong> approach in <strong>JavaScript</strong> or <strong>JQuery</strong> that can check presence of some VALUE from object's properties. I mean here if I have </p> <pre><code>obj = { prop1:val, prop2:val2 } </code></pre> <p>is that possible with maybe one statement check is <...
javascript jquery
[3, 5]
4,247,589
4,247,590
Do all .java files load when the app is opened?
<p>I'm just starting into Java/Android apps... I've got a few sample things up and running... but I want to organize my code in a proper manner. Are all .java files loaded when the app is opened, or do I need to tell it to load other .java files within my code...</p>
java android
[1, 4]
454,504
454,505
javascript, looping fields and validating
<p>I'm using below code to check some form fields and render datatable table on a button click. My intention is to stop the table from being rendered if any of the fields are empty. Apparently <code>return false</code> inside the loop is not working.</p> <p>Is this the correct way to accomplish? any better ways? </p> ...
javascript jquery
[3, 5]
2,387,792
2,387,793
load list of links one at a time as soon as previous finishes
<p>Similar to <a href="http://stackoverflow.com/questions/5357094/show-a-list-of-links-in-an-iframe-one-at-a-time-with-jquery">Show a list of links in an iframe one at a time with jquery</a> but without the setTimeout function - as i would rather start the next fetch once the previous document as finished loading. </p...
javascript jquery
[3, 5]
4,157,669
4,157,670
Upload and resize image in Aspx
<p>I have a page which allows the user to upload pictures. The problem is that my old users can't resize the image themselves. I want to allow them to upload any size of image and then when the server gets it, it will create a small copy of this picture.</p>
c# asp.net
[0, 9]
4,236,289
4,236,290
text from divs into array for sorting
<p>I'm trying to get all the text of a particular class into an array. </p> <p>The below works theoretically, but it puts them into an object, not an array, and .map apparently is widely unsupported in most versions of IE :(</p> <pre><code>var valuesArr = $('.'+sort_column); var valuesArr = valuesArr.map(function(){...
javascript jquery
[3, 5]
1,344,158
1,344,159
perform works before connect to database
<p>i am designing a register form for a site.in this form in html forms we have to password type and a submit button.</p> <pre><code>&lt;form action="index1.php" method="post"&gt; &lt;b&gt;pass:&lt;/b&gt; &lt;input type="password" name="pass" size="25"/&gt; &lt;b&gt;pass:&lt;/b&gt; &lt;input type="password" name="cpas...
php javascript
[2, 3]
5,130,758
5,130,759
How can I select the row with an id that's depending on a javascript variable?
<p>I have a row with the <code>id="row_4"</code></p> <p>I have a javascript variable <code>rownum</code> with a value of 4</p> <p>How can I select using jQuery this element? I tried </p> <p><code>$('#row_' + rownum)</code> </p> <p>but this doesn't seem to work.</p>
javascript jquery
[3, 5]
1,594,101
1,594,102
jQuery .prepend behaves wierd within my animation loop
<p>If you check the following link for my working example:</p> <p><a href="http://jsfiddle.net/xavi3r/Cd8cV/" rel="nofollow">http://jsfiddle.net/xavi3r/Cd8cV/</a></p> <p>You can see that when <code>prepend()</code> is invoked the positioning is lost within the animation and the order in which elements are placed seem...
javascript jquery
[3, 5]
4,147,520
4,147,521
jQuery: Checking if next element exists
<p>is there a way to check if an next element exists? Check my code:</p> <pre><code>if($("#people .making-of .mask ul li.current").next("li") != null) { alert("Exists"); } else { alert("Dont exists"); } </code></pre> <p>What im doing wrong? Thanks a lot!</p>
javascript jquery
[3, 5]
1,019,505
1,019,506
Update database information with onClick function
<p>I am trying to update a tables row <strong>site_active</strong> in mysql using an onClick function with a button.</p> <p>My button code is: </p> <pre><code>&lt;button onClick='site_active()' id='site_active'&gt;&lt;?php echo $client-&gt;site_active; ?&gt;&lt;/button&gt; </code></pre> <p>And then of course my Scri...
php javascript
[2, 3]
1,101,492
1,101,493
Exception java.lang.ClassCastException when query contacts
<p>I was trying to get the contacts using a query through the ContactsContract The following code throws an exception. java.lang.ClassCastException.</p> <pre><code>public class ContactManager extends Activity{ ArrayList&lt;String&gt; contactsList = new ArrayList&lt;String&gt;(); @Override public void onCr...
java android
[1, 4]
4,481,081
4,481,082
Need some detail on usage of <% in aspx page
<p>I am a beginner level programmer. I was using C# variable in the aspx page.</p> <p>I have seen the usage of <strong>&lt;%</strong> in the aspx page alot.</p> <p>I need the detail of when to use &lt;% in what requirement like</p> <pre><code>&lt;% 'When to use this?' %&gt; &lt;%= 'When to use this?' %&gt; &lt;%@ 'W...
c# asp.net
[0, 9]
178,638
178,639
How to get the values from a text box
<p>My web page looks like this</p> <pre><code>name(textbox1) email(textbox2) age(textbox3) phoneno(textbox4) submit(button) showfile(hyperlink) </code></pre> <p>How can I get the values of textboxes saved in "showfile" web page after <code>onclick</code> in the submit button? Can anyone he...
c# asp.net
[0, 9]
1,336,220
1,336,221
Add external javascript to user control... but put the file reference at the bottom of the page
<p>I need to be able to add an external js file for a user control (using</p> <pre><code> this.Page.ClientScript.RegisterClientScriptInclude("SuggestionSearch", "~/Secure/Shared/SuggestionSearch.js"); </code></pre> <p>syntax)</p> <p>But it puts the javascript file on the page too early... is there a way to put t...
javascript asp.net
[3, 9]
1,175,090
1,175,091
How to do a precompiled web application
<p>I have a webapplication that uses a master page. When I publish the site in vs2010 (running framework 4), and then I navigate to the default.aspx page I get a parser error that the masterpage's codebehind file does not exist.</p> <p>I know that a website can be precompiled and then deployed which means there would ...
c# asp.net
[0, 9]
2,840,191
2,840,192
Can anyone explain what is happening in this bit of Javascript?
<p>I was looking through a jQuery smooth-scrolling tutorial, and trying to figure out how it worked, when I hit this line of code:</p> <pre><code> $target = $target.length &amp;&amp; $target || $('[name=' + this.hash.slice(1) +']'); </code></pre> <p>I can't figure out what it does. It looks like the guy is assigning ...
javascript jquery
[3, 5]
3,644,221
3,644,222
convert time string format
<p>I want to convert a almost any kind of time format to the format <code>HH:mm:ss</code> in javacript. I've got problem with the commented below.</p> <pre><code>function parseTime(timeString){ var timeString = timeString.toLowerCase(); timeString = $.trim(timeString); var regEx = /^([0-9]|1[0-9]|2[0-3])...
javascript jquery
[3, 5]
372,571
372,572
DOs and DON'Ts of a programming class?
<p>Disclaimer: I apologize if this is too subjective and perhaps it may be better suited for <code>programmers.stackexchange</code> but I'll try my luck here first. </p> <hr> <p>I'm in need of some advice that has made you successful in a college-level programming course (in my case, C++ and Java). <strong>I would es...
java c++
[1, 6]
1,183,000
1,183,001
Why isn't PHP processing my PHP script?
<p>I am trying to include a calendar into my website that I am designing. Not really knowing how to create an event calendar, I chanced upon this calendar that was created using javascript. However, I can't seem to get it working.</p> <p>Here is the code, in a file with an extension of .html:</p> <pre><code>&lt;head&...
php javascript
[2, 3]
5,499,036
5,499,037
jQuery replace text on submit
<p>I have a file upload form on a site and i'd like to replace the form with the text "uploading..." whilst the file uploads. so far i have:</p> <pre><code>$( document ).ready(function(){ $(form).submit(function(){ $('#key').html("Uploading..."); }); }); </code></pre> <p>the submit part works because ...
javascript jquery
[3, 5]
4,785,372
4,785,373
jQuery General Question (cycle plugin)
<p>Currently this does work except slide.src is undefined because by default slide.src is looking for an image src tag first, but the image src tag is now inside the div properties.</p> <p>So how can i change the javascript + slide.src + to be(or get) the image inside the div properties.</p> <p>View</p> <pre><code>&...
javascript jquery
[3, 5]
2,894,691
2,894,692
How to check if all checkboxes inside a div are checked using jQuery?
<p>this fails:</p> <pre><code>var all_checkboxes = $('#myDiv input[type="checkbox"]'); if (all_checkboxes.is(':checked')) { alert('they are all checked'); } </code></pre> <p>it alerts they are all checked even if just one and not all is checked.</p>
javascript jquery
[3, 5]
3,720,991
3,720,992
jQuery plugin scope issue
<p>I'm overlooking something here with scope resolution in this jQuery plugin. Here is a simplified example of what I'm trying to achieve:</p> <pre><code>(function($) { $.fn.dashboard = function(options) { this.onClick = function(e) { alert("do something"); return false; }; ...
javascript jquery
[3, 5]
1,734,320
1,734,321
Make a hyper link on Html link with Jquery
<p>I have Html contents like</p> <pre><code>&lt;span&gt; http://j.mp/eUcRNK &lt;/span&gt; </code></pre> <p>I want to hyperlink on above html text like this</p> <pre><code>&lt;span&gt; &lt;a href="http://j.mp/eUcRNK" class="link" target="_blank"&gt; http://j.mp/eUcRNK &lt;/a&gt; &lt;/span&gt; </code></p...
javascript jquery
[3, 5]
2,879,990
2,879,991
How can I get an array of all elements within a specific class using javascript and/or jQuery?
<p>I'm trying to get an array of all elements with the class "sampleclass". For example, withing my document I have three divs:</p> <pre><code>&lt;div class="aclass"&gt;&lt;/div&gt; &lt;div class="sampleclass"&gt;&lt;/div&gt; &lt;div class="anotheraclass"&gt;&lt;/div&gt; &lt;div class="sampleclass"&gt;&lt;/div&gt; </c...
javascript jquery
[3, 5]
2,449,179
2,449,180
Showing Who is online in ASP.NET
<p>what is the best simple way to show who is online in c# without using membership control? Is the only way is using session ?</p>
c# asp.net
[0, 9]
5,364,340
5,364,341
relpace textarea in jquery
<p>I'm trying to Replace a %%%VERSION%%% text, the text is coming from an tinyMCE editor. </p> <p>looks like this. </p> <pre><code>$("#description textarea").val($("#description textarea").val().replace(/%%%VERSION%%%/g, STAT_VERSION_INFO)); </code></pre> <p>The value of the textearea is:</p> <pre><code>&lt;textare...
javascript jquery
[3, 5]
6,001,307
6,001,308
I want to add smiley on add to cart pop up window using Jquery or JavaScript
<p>please check this link:</p> <p><a href="http://wzfxp.felau.servertrust.com/SearchResults.asp?Cat=1817" rel="nofollow">http://wzfxp.felau.servertrust.com/SearchResults.asp?Cat=1817</a></p> <p>click on add to cart button.</p> <p>the it show add to cart popup window.I want to add smiley face on that popup.Remember I...
javascript jquery
[3, 5]
5,352,009
5,352,010
How to access some row databound functions in row updating event
<p>I have this code in row data bound event :</p> <pre><code> if (e.Row.RowType == DataControlRowType.DataRow &amp;&amp; (e.Row.RowState &amp; DataControlRowState.Edit) == DataControlRowState.Edit) { string CCC = (string)DataBinder.Eval(e.Row.DataItem, "COLUMN"); DropDownList DropDownList1 = (DropD...
c# asp.net
[0, 9]
5,783,718
5,783,719
Enter keyword in search box of any website using php script
<p>I am a beginner and i was wondering can we write a code in PHP by which we can enter keyword in search box of any website and submit.</p> <p>so there will be 2 inputs to this php function:</p> <pre><code>function enter_keyword($website_url, $keyword) { } function enter_keyword($website_url, $keyword) { } </code>...
php javascript
[2, 3]
3,997,686
3,997,687
Problems with list<T> in Asp.Net c#
<p>I'm making a web app in Asp.Net using c# that lets you add items into the list.</p> <p>My problem is that each time that i click the button to add a new item into the list , its just shows me the last item and the list counter shows me only 1 .</p> <p>What am I doing wrong??</p> <p>Here is the code : </p> <pre><...
c# asp.net
[0, 9]
4,672,172
4,672,173
How can I make my variable used throughout my application?
<p>How can I get the returned <code>memberID</code> variable inserted back in the other SQL stored proc?</p> <pre><code> protected void imgBtnActivate_onClick(object sender, EventArgs e) { // Inserts Member record try { Database db = DatabaseFactory.CreateDatabase(ConfigManager.AppSettings["Conne...
c# asp.net
[0, 9]
859,945
859,946
addView equivalente but adding Preference to PreferenceScreen?
<p>I had recently had to do add a view to a LinearLayout programatically, I have to do the same for a for a PreferenceScreen but I don't know how. This is how it was done for a LinearLayout:</p> <pre><code> LayoutInflater localLayoutInflater = (LayoutInflater)getBaseContext().getSystemService("layout_inflater"); ...
java android
[1, 4]
344,814
344,815
jQuery returns short hand CSS for style attribute
<p>Why is it that jQuery returns short hand CSS when I try the following:</p> <pre><code>alert($('#t1').attr('style')); </code></pre> <p>On this html:</p> <pre><code>&lt;div id="t1" style="border-style: solid; border-width: 10px; border-color: red; height: 100px; width: 100px;"&gt;Hello&lt;/div&gt; </code></pre> <p...
javascript jquery
[3, 5]
4,522,853
4,522,854
Is it possible to Embed a PDF as HTML in an email?
<p>Basically i have a PDF and either want to frame it or convert it to HTML and display it within an email. I haven't found a working solution.</p> <p>The following is an example that i am looking for, this works in a browser, but not email. Thanks</p> <pre><code>&lt;object data="MyPDF.pdf" type="application/pdf" wid...
c# asp.net
[0, 9]
1,221,092
1,221,093
Get data array from checkbox list in jquery
<p>I have multiple checkbox list that can be selected </p> <pre><code>name="campaign_ids" </code></pre> <p>I have a function setup in jquery that looks like this:</p> <pre><code>&lt;script&gt; $('form#manage_campaigns').submit(function(){ var formData = $(this); $.post(site_url + 'm/affiliates/ajax?action=sa...
php javascript jquery
[2, 3, 5]
506,837
506,838
Exception on Response.End();
<p>I got exception on <code>Response.End();</code> and the error was:</p> <blockquote> <p>Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack</p> </blockquote> <p>Any idea to handle this? I am using VS2008, thanks.</p>
c# asp.net
[0, 9]
5,088,353
5,088,354
binding in Repeater control with restricted records and ohter data on background process from database
<p>I have repeater control under the marquee tag. I want to bind only 10 record first from database and other data on background process so user can not fill that data is loading and my page also get load fast.</p> <p>As marquee pass 10 records then next 10 records is loaded and so on. Is it possible to do so ? </p>
c# asp.net
[0, 9]
3,190,907
3,190,908
Appending a css class to a textbox javascript
<p>Is it possible to add the css class named <strong>color</strong> to the textbox define inside the javascript below?</p> <pre><code>&lt;script type="text/javascript"&gt; newTextBoxDiv.after().html('&lt;label&gt;Colors and price: #'+ counter + ' : &lt;/label&gt;' + '&lt;input name="colors[]" value="" &gt;'); &lt;/...
php javascript
[2, 3]
3,293,186
3,293,187
Class variable in javascript class
<p>The solution to this <a href="http://stackoverflow.com/questions/84716/is-there-a-better-way-to-create-an-object-oriented-class-with-jquery" rel="nofollow" title="question">question</a> suggested the use of John Resig's class implementation. This solution covers all my needs except:</p> <p>How to declare a public g...
javascript jquery
[3, 5]
3,451,816
3,451,817
FadeIn and FadeOut when dynamically loading with php
<p>I want to fadeOut the current big picture in the #inner_left div by clicking one of the thumb pics in the #photo1 div.The thumb images are loaded with php.Currently the loading of the pictures works on click normally but I want them to fadeout and fadeIn when clicked on the next thumb.For now this is what I have in ...
php jquery
[2, 5]
2,527,334
2,527,335
safari on ipad form get methode give white page
<p>I’m new member and not very familiar with web developing.. The purpose is to make a user interface on an industrial machine that support JavaScript, JQuery and Ajax. With a FORM GET method I can set parameters and start a program on the machine. The machine returns code 204 This works well when access the webpage by...
javascript iphone
[3, 8]
2,221,626
2,221,627
bind two column into a dropdown
<p>I want to bind two column from database into dropdownlist. Here's my code:</p> <pre><code>SqlConnection con=new SqlConnection(CommonRefference.Constr()); string query = "Select Id,Name+' ('+Distribution_name+') 'as Name1 from BR_supervisor "; SqlCommand cmd = new SqlCommand(query,con); con.Open(); SqlDataReader ...
c# asp.net
[0, 9]