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,582,588
1,582,589
How to return local date in another language?
<p>How can I return local date string in some other language and not in english?</p> <p>I am using this:</p> <pre><code>new Date().toLocaleDateString() </code></pre>
javascript jquery
[3, 5]
3,477,112
3,477,113
jQuery animation timeout
<p>I have an animation script implemented with jQuery. The issue is that it does not complete the animation before returning to the parent function. To clarify: the js changes a background color, the js function calls the animate function, the animation function begins, before it finishes it has already returned to the...
javascript jquery
[3, 5]
4,132,588
4,132,589
Display server side data in C#
<p>I develop a project in that when the user select a particluar radio button I need to display some data in a listbox [these data come from a database]. I allow the user to select one item. This thing will happen in div.</p> <p>How do I proceed?</p>
c# asp.net
[0, 9]
5,395,511
5,395,512
Need help with this error ::Invalid token '=' in class, struct, or interface member declaration
<p>trying to hide a panel of Master Page in my content page using the following code</p> <pre><code> Panel p = this.Master.FindControl("panel1") as Panel; p.Visible = false; //Error is showing on this line </code></pre> <p>Why this error ? Plz help..thnx</p>
c# asp.net
[0, 9]
2,132,811
2,132,812
Select elements whose children don't contain specific elements in jQuery
<p>I want to select all divs on a page whose children <strong>don't</strong> contain an element with a specific class. </p> <p>I can select elements whose descendants <strong>do</strong> contain the class with: </p> <pre> $('div').has('.myClass'); </pre> <p>So I just want the inverse of this. </p>
javascript jquery
[3, 5]
2,029,054
2,029,055
jquery star rating vertical
<p>I'm using the jquery star rating plugin by fyneworks. The problem is that about 5% of the time (and on the initial page load), the stars stack vertically instead of horizontally!?</p> <p>When you refresh the page, they are fine - which is really odd. <a href="http://www.nacremedia.com/stars/stars.html" rel="nofollo...
javascript jquery
[3, 5]
3,335,743
3,335,744
Use a function to set a variable with Javascript?
<p>I am trying to use javascript and jquery to build an HTML table based on information returned from a database. I have the JSON and the database hit working properly, but I am unable to show the data on my page.</p> <p>This is code to display the data</p> <pre><code>var temp; var init = function() { $(_getMark...
javascript jquery
[3, 5]
462,636
462,637
Check Object Exists throws Object Required Error
<p>I have a web form for data entry. The page requires an ID to be passed via query string. In the code behind I check the ID has been supplied. If it hasn't the form (in a panel) is hidden and an error message is displayed.</p> <p>In the html I have a JQuery script block that attaches an event (downloaded date pick...
c# jquery asp.net
[0, 5, 9]
3,987,177
3,987,178
jQuery find/each script not working
<p>there must be something small ive overlooked here. I'm simply trying to select all DT elements in a DL and insert some HTML and add a click event, however it only seems to be applying to the first DT.</p> <p>Here's the snippet from my plugin: </p> <pre><code> return this.each(function(){ var questions...
javascript jquery
[3, 5]
3,435,017
3,435,018
submit onChange using pretty url's
<p>i've already opened a question for this problem, but it was very bad formulated and because of that i did not get a good response.... so heres another try... hope it's ok</p> <hr> <p>i have a form with a selected tag and some options inside</p> <pre><code>&lt;form&gt; &lt;select&gt; &lt;option selected="se...
php jquery
[2, 5]
5,976,457
5,976,458
My android service causes the app to crash
<p>I'm trying to call a method of another class but this causes my app to crash.</p> <p>This is what I'm doing to run it on boot</p> <pre><code>public class BootReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { MyApp test = new MyApp(); te...
java android
[1, 4]
1,711,897
1,711,898
Adding a div label to all blockquote elements with jQuery
<p>The html:</p> <pre><code> &lt;blockquote&gt; test,test &lt;/blockquote&gt; &lt;p&gt;test tow&lt;/p&gt; &lt;blockquote&gt; test2,test3 &lt;/blockquote&gt; </code></pre> <p>I want to make the html to the folowing by jQuery:</p> <pre><code> &lt;div class="quote"&gt; &lt;blockquote&gt; test,test &...
javascript jquery
[3, 5]
3,682,385
3,682,386
Add simple text to panel control
<p>I have a panel in C#:</p> <pre><code> Panel aspPanel = new Panel(); Button aspbutton = new Button(); aspbutton.Text = "Download PDF"; aspbutton.Click += initDownload; aspPanel.Controls.Add(aspbutton);` </code></pre> <p>I have added Attributes and buttons and all kinds of cool dynamic stuff. But ...
c# asp.net
[0, 9]
2,083,197
2,083,198
In Java, what does a reference to Class.class do?
<p>I'm building a small Android application, but this is more of a Java question than an android question. Looking through the tutorials there are lines that look like:</p> <pre><code>startService(new Intent(this, MyService.class)); </code></pre> <p>what exactly does the "MyService.class" field represent? Is that ju...
java android
[1, 4]
1,818,879
1,818,880
non-final variable inside an inner class
<p>I try to create dynamically a ImageView and I want to pass this imageView as a parameter to a method into the listener.</p> <pre><code> ImageView imageView1 = new ImageView(LookActivity.this); imageView1.setOnTouchListener(new OnTouchListener() { @Override ...
java android
[1, 4]
2,870,909
2,870,910
Does jQuery have a method for checking all values of an array to see if they meet some criteria?
<p>I'm looking for something similar to Groovy's <a href="http://groovy.codehaus.org/groovy-jdk/java/lang/Object.html#every%28%29" rel="nofollow">every()</a> method, which tests every element of a list if it meets some criteria. If they all meet the criteria, the function returns true. Otherwise, false. I've tried s...
javascript jquery
[3, 5]
2,008,318
2,008,319
how to download a file from server, using asp.net website
<p>I am trying to download a file from the server, I am getting access denied error, the path is different from what I am giving as input, how can I pass the correct path</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { string FileLoc = @"~/Upload/1984_Apple_Macintosh_Commercial.mp4"; Do...
c# asp.net
[0, 9]
1,881,737
1,881,738
bxSlider plugin not loading the classes
<p>I am using bxSlider plugin on my site it is working fine on my local machine but on my staging server it is not working the problem is i think it is not loading the classes because I cant see the bx-wrapper, bx-window etc classes on my staging server while these class comes on my local machine. The jquery.bxSlider.m...
php jquery
[2, 5]
634,502
634,503
Clicking a Dynamically Generated div that opens another dynamically generated Div
<p>ok, Im going to pass on submitting how I would do this...because I dont want a patch to an otherwise crappy piece of code. Heres what Im trying to do: I use php to output some divs. A corresponding set of divs is generated with the first divs. The whole idea is that when the first div is clicked, the corresponding...
php jquery
[2, 5]
3,149,690
3,149,691
Adding,removing array elements and accessing via php
<p>I have the following codes. Each time a user click on a photo, its title is pushed into an array. If he clicks again, the title is removed. I want to be able to access the array later on with php so i can populate a database.</p> <pre><code>function highlight(elem) { var e = array(); if (elem.style.border =...
php javascript
[2, 3]
2,140,538
2,140,539
jQuery Remove specific span based on id
<p>I want to be able to remove only spans which has an id that stars with the key word "junk_"</p> <p>for example if I have </p> <pre><code>&lt;span id="junk_8345"&gt;A&lt;/span&gt; &lt;span id="valid_2972"&gt;B&lt;/span&gt; &lt;span id="junk_9249"&gt;C&lt;/span&gt; </code></pre> <p>The output should look like</p> ...
javascript jquery
[3, 5]
3,914,142
3,914,143
Jquery - Grab Variable from Another Function
<p>I have two functions on my page. I am trying to find a way to access a variable in function 1 inside function 2:</p> <pre><code>$(function() { $('a[id=1]').live("click", function(event) { event.preventDefault(); var Var1 = "something1"; }); }); $(function() { $('a[id=2]').live("click...
javascript jquery
[3, 5]
5,931,508
5,931,509
How to disable sorting on column in jQuery.tablesorter?
<p><br><br>i try to find a way how to disable sorting on column. I use jquery tablesorter. And by default if you click on header cell it sort column data, but what i need to do if i don't need to use sorting on one or two column in four columns table. <br><br> Thanks in advanced.</p>
javascript jquery
[3, 5]
3,190,322
3,190,323
Caching asp.net pages
<p>I am bulding an app and I tried YSlow and got Grade F on most of my practices. I have loads of jscript that am working on reducing. I want to be able to cache some of these because the pages get called many times.</p> <p>I have one master age and I wanted to cache the scripts and css files.</p> <p>How do I achieve...
c# asp.net
[0, 9]
1,194,900
1,194,901
PHP script sample for iPhone hi-score/survey uploading?
<p>I am looking for a PHP example/tutorial which can accept hi-scores/survey upload from an iPhone. Hopefully, the PHP script:</p> <ul> <li>accepts POST, in additional to GET</li> <li>works over SSL (https)</li> <li>connects to MySQL</li> </ul> <p>In addition, it'd best the iPhone can get a session from the server a...
php iphone
[2, 8]
4,514,282
4,514,283
PopUp at the end of button's operations
<p>in my aspx page I have a button that save several values in the database. </p> <p>I need to insert a popuup at the end of the operation. </p> <p>At the moment the code is: </p> <pre><code>protected void btnSendRequest_Click(object sender, EventArgs e) { var myDbAccess = new DBAccess(); Event newEvent = (E...
c# asp.net
[0, 9]
5,745,766
5,745,767
parse a password protected json url using jquery
<p>I have a json url that can be accessed after authentication of username and password.How to put authentication dynamically while parsing the url?</p>
javascript jquery
[3, 5]
2,838,701
2,838,702
Reset the Value of a Select Box
<p>I'm trying to reset the value of two select fields, structured like this,</p> <pre><code>&lt;select&gt; &lt;option&gt;&lt;/option&gt; &lt;option&gt;&lt;/option&gt; &lt;option&gt;&lt;/option&gt; &lt;/select&gt; &lt;select&gt; &lt;option&gt;&lt;/option&gt; &lt;option&gt;&lt;/option&gt; &lt;option&gt;&lt;...
javascript jquery
[3, 5]
5,350,005
5,350,006
How to create subscription in Google Calendar?
<p>Previously I've created a subscription using GData and myService.insert(feedUrl, calendarEntry); But GData is not supported for Android - one should use google-api-java-client.</p> <p>How can I create a subscription to an existing caledar using google-api-java-client library?</p>
java android
[1, 4]
4,292,870
4,292,871
jquery, how to use trigger?
<p>i have this situation:</p> <pre><code>if(isset($_POST["sm"]){ print "&lt;br&gt;&lt;div id=\"redirect\"&gt;success&lt;/div&gt;"; } </code></pre> <p>in javascript i have:</p> <pre><code>$('#redirect').delay(2000).fadeOut('slow'); </code></pre> <p>what happens is that if the form is submitted that div shows up for ...
php jquery
[2, 5]
4,211,575
4,211,576
Value cannot be null. Parameter name: type : ASPnet Error after deploy
<p>Working local when deployed fails.</p> <p>Error :</p> <blockquote> <p>MESSAGE: Value cannot be null. Parameter name: type</p> <p>SOURCE: mscorlib</p> <p>TARGET SITE: CreateInstance</p> <p>STACK TRACE: System.Activator.CreateInstance(Type type, Boolean nonPublic) System.Activator.CreateInstance(T...
c# asp.net
[0, 9]
1,476,091
1,476,092
How to differentiate the request from Web View or normal browser
<p>We have developed a HTML5 application. We have to show the application in both the normal browser and in the iphone web view. We have done the implementation for the webview. Now we just want to differentiate whether the request is coming from the normal browser or webview. Any solution in c# .net or javascript</p> ...
c# iphone asp.net
[0, 8, 9]
1,657,336
1,657,337
What does the $ sign mean in Jquery or JavaScript?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1150381/what-is-the-meaning-of-sign-in-javascript">What is the meaning of &ldquo;$&rdquo; sign in javascript</a> </p> </blockquote> <p>Now this must seem to be an easy and stupid question to ask but I must know ...
javascript jquery
[3, 5]
1,460,321
1,460,322
How can I Enable\Disable all subcontrols of a table?
<p>I have a checkBox, which when it's checked i want to enable a table and its subcontrols and when it's disabled I want to do the opposite.</p> <p>I have already understand that I have to iterate all subControls of the table, and my question is if there is any nice and generic way of doing it.</p> <p>Thanks in advan...
c# javascript
[0, 3]
5,374,041
5,374,042
How to use data created by JS in PHP?
<p>This is my code</p> <pre><code>&lt;script type="text/javascript"&gt; function countNumber(){ var number = 10; document.getElementById("n").innerHTML=number; } &lt;/script&gt; &lt;body onload="countNumber()"&gt; &lt;?php $a = "?"; //&lt;-- here i want to get the innerHtml of the "n"-id-element echo $a+1; ?&gt; &...
php javascript
[2, 3]
3,164,890
3,164,891
Javascript find text on page
<p>I need to run a search and replace on HTML similar to the following... I need to have "Find Next" "Replace" and "Replace All" options.... the trick is that I need to run an AJAX request to update the values in the database for each field once the value is replaced.</p> <p>The only trouble I'm running into is that I...
javascript jquery
[3, 5]
1,068,949
1,068,950
Toggle element visibility with jQuery!
<p>I have the following markup:</p> <pre><code>&lt;div class="header"&gt;Text&lt;/div&gt; &lt;div class="hiddenArea"&gt;sdsada&lt;/div&gt; &lt;div class="header"&gt;Text2&lt;/div&gt; &lt;div class="hiddenArea"&gt;sdsada&lt;/div&gt; </code></pre> <p>and the following jQuery:</p> <pre><code>$('.header').click(functio...
javascript jquery
[3, 5]
545,836
545,837
How to convert .pdf to .png
<p>Using ImageMagick I can convert any pdf document into images by using command "convert":</p> <pre><code>convert abc.pdf abc.png </code></pre> <p>This will convert all pdf pages to png images.</p> <p>How can I implement this using PHP or Java so that I can provide this functionality on my website to enable users t...
java php
[1, 2]
5,156,375
5,156,376
Load user control data after page postback?
<p>I have a page where a user can update their user information (like their first name). I also have a user control on this page that displays a lot of information, including the user's first name.</p> <p>My problem I'm having is that when I change the first name on this page, the user control isn't updated after I sa...
c# asp.net
[0, 9]
383,656
383,657
get id of first div in page loaded via ajax
<p>I'm using $.get function for loading partial view:</p> <pre><code>$.get('/desk/nextstep', function (data) { var ids = $(data).filter(':first').attr('id'); alert(ids); }); </code></pre> <p>I want to get <code>id</code> of first(root) div, but this code not works:</p> <pre><c...
javascript jquery
[3, 5]
4,161,683
4,161,684
jQuery load an image and swap by click
<p>I have the following code on start to call the main image:</p> <pre><code>$(function () { var img = new Image(); $(img).load(function () { //$(this).fadeOut('normal'); $('#bg div table tr td').removeClass('loading').append(this); $(this).fadeIn(); }).attr('src', 'images/home.jpg'); });...
javascript jquery
[3, 5]
3,310,303
3,310,304
How do I denied user access script directly in URL
<p>I have a jQuery script using <code>.live()</code> to load it's page content.</p> <pre><code>$('#content').load("content.php?" + id); </code></pre> <p>Question: How can I deny a user from accessing the file <code>content.php</code> directly via a URL?</p> <p>I tried to put this code on top of <code>content.php</co...
php jquery
[2, 5]
5,296,385
5,296,386
WVGA800 (480x800) & Density ANDROID
<p>Table 3 on this page: <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow">http://developer.android.com/guide/practices/screens_support.html</a></p> <p>shows that WVGA800 (480x800) is available with 3 Densities. Does this mean that for each density the game will be loaded with ...
java android
[1, 4]
2,215,431
2,215,432
confusion in jquery parents selector with hasClass function
<pre><code>var allChecked = $('.inboxCheckbox:checked'); if(allChecked.length &gt; 0){ var messageIds = new Array(); var parentRow = null; allChecked.each( function(){ parentRow = $(this).parents('tr'); if(!(parentRow.hasClass('gradeA'))){ parentRow.addClass...
javascript jquery
[3, 5]
1,466,034
1,466,035
Uploading multiple files with size restriction in Javascript
<p>Can anybody tell me how i can upload multiple files with size restriction in javascript.</p>
javascript python
[3, 7]
1,675,489
1,675,490
Object reference not set to an instance of an object for repeater
<p>Basically I wish to get my dynamic <code>CheckboxList.SelectedItem.Text</code> but I failed to do so. When I checked one of the items in CheckboxList, it can't detect that I am checked the item.</p> <p><strong>my checkboxlist item</strong></p> <p>A</p> <p>B</p> <p>C</p> <p>D</p> <p><strong>output(after checked...
c# asp.net
[0, 9]
4,601,760
4,601,761
Any jQuery plugin like the Yahoo Profile?
<p>I am creating a website that user must add some data like date, place e.t.c. and I saw Yahoo Profile having this cool thing where you can add for example your name by just clicking on that specific area. My question is if anyone knows a similar plugin or how should I start to build this?</p> <p>My goal is to let us...
javascript jquery
[3, 5]
3,369,777
3,369,778
Make div toUpperCase()
<p>I've been looking for a script that makes all text in every div to uppercase letters. I found this script:</p> <pre><code>&lt;script type="text/javascript" src="Script/jquery-1.3.2.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function(){ $("div").text($("div")...
javascript jquery
[3, 5]
5,595,663
5,595,664
live search jquery (searching in li title)
<p>I try to search with an input field a list of items,</p> <pre><code>&lt;ul class="display"&gt; &lt;li title="Pizza Otto"&gt;some divs&lt;/li&gt; &lt;li title="Pizza Prono"&gt;some divs&lt;/li&gt; &lt;li title="Pizza David"&gt;some divs&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>The code below works fine for words ...
javascript jquery
[3, 5]
2,048,690
2,048,691
Adjusting jQuery script to add height to parent element
<p>I'm using Soh Tanaka's script to toggle open and closed div content in the accordion style.</p> <pre><code>&lt;script language="javascript" type="text/javascript"&gt; $(document).ready(function(){ //Hide (Collapse) the toggle containers on load $(".toggle_container").hid...
javascript jquery
[3, 5]
4,745,341
4,745,342
How can i pass a parrameter from Asp to jquery?
<p>i have a Listview with dynamics rows that read them from database. now i want when mouse is going on one of it's data perform special work on it.(like bellow code)</p> <pre><code> $(document).ready(function(){ $("*").mouseover(function () {//this line $("*").animate({ //this line ...
jquery asp.net
[5, 9]
4,777,358
4,777,359
Accessing RepeaterItem Controls in an EventHandler
<p>I have a page with a repeater in it. I'm writing an event handler so that when the user clicks my WebControl button, the event handler for said button iterates through the items in the repeater using FindControl, then uses some of the controls' values. It seems though, that after the page is loaded, the repeater ite...
c# asp.net
[0, 9]
2,521,248
2,521,249
Splitting string with multiple delimiters into a hash table in JavaScript
<p>I'm trying to figure out how to split a string using regex while having the results placed into a hash table.</p> <p>Example:</p> <pre><code>var x = "Name: John Doe Age: 30 Birth Date: 12/12/1981"; var arr = x.split(/Name:|Age:|Birth Date:/); </code></pre> <p>However while I can spit a string the problem is I ca...
javascript jquery
[3, 5]
2,144,496
2,144,497
Something is overriding some of my jigoshop widgets
<p>I'm creating my first eCommerce wordpress website which I have work on for weeks now, I'm nearly at finished but some of the jigoshop widgets and features are not working for example the price filter is not showing up and the fancy box feature isn't showing up too.</p> <p>I have a demo of the site up at <a href="ht...
php jquery
[2, 5]
1,677,875
1,677,876
How to make a video using Intent?
<p>There is the following code for starting video recording using Intent:</p> <pre><code>startActivityForResult(new Intent(MediaStore.ACTION_VIDEO_CAPTURE), 100); </code></pre> <p>But there is some problem: it works good on my device, i.e. I recorded some video, then clicked by "complete" button in standard video rec...
java android
[1, 4]
3,358,955
3,358,956
How to delete DOM element based on attribute value
<p>I have this HTML code from Sharepoint and I was wondering if it's possible to delete this specific DOM element based only on the "text" attribute?</p> <pre><code>&lt;ie:menuitem menugroupid="200" text="new docs view" onmenuclick="window.location = '/some link/';" type="option" id="zz36_View1"&gt;&lt;/ie:menuitem&gt...
javascript jquery
[3, 5]
3,010,720
3,010,721
global variable in jquery
<p>In jQuery is it possible to create a function that sets a variable which I can then access in another function. i.e. I need a global variable that can be accessed anywhere on the page. </p> <p>Examples</p> <pre><code>$.fn.getRedemptionID = function(){ var myVar = data.DATA[0].item1; } </code></pre>
javascript jquery
[3, 5]
2,299,788
2,299,789
How to stream music in aspx
<p>I'd like to stream music with aspx, but i dont know how to start! My general idea is that users, can have their one playlists, and upload their musics, but i dont know how can they hear their own musics trough the website. The second idea is that the most voted playlist is streamed online for the people who want to ...
c# jquery asp.net
[0, 5, 9]
1,661,564
1,661,565
How to add native project and use native function in other c++ project
<p>I am working on android project.I have created a native edittext.I want use native jni function in other android c++ project for display the edittext in c++.whenever i add the headerfile of jni and edittext,then compiler does not find.</p> <p>Can you suggest me.how to add native edittext project with my own projec...
android c++
[4, 6]
2,366,367
2,366,368
Getting information from the cookie made by FormsAuthentication.RedirectFromLoginPage in C#
<p>Hi I used this in C#:</p> <pre><code>FormsAuthentication.RedirectFromLoginPage(userID, chkPersistCookie.Checked) </code></pre> <p>to create a cookie for my web app. </p> <p>I need to know how to get the userID back from the cookie?</p>
c# asp.net
[0, 9]
3,020,917
3,020,918
Javascript + jQuery, click handler returning false to stop browser from following link
<p>I'm trying to stop the browser from following certain links, rather I want to unhide some Divs when they are clicked.</p> <p>I'm having trouble just getting the links to not be followed though. </p> <p>Here's what I have:</p> <p><code>var titles = $('a.highlight'); jquery.each(titles, function(){ th...
javascript jquery
[3, 5]
5,407,940
5,407,941
jQuery - Select children with $(this)
<p>I try to count the number of children inside a div using jquery <code>$(this)</code> selector and the element's class. And the results are different. I thought jquery's <code>$(this)</code> refers to the owner object of function, is there any thing special about <code>$(this)</code> that I am missing? </p> <pre><co...
javascript jquery
[3, 5]
2,704,650
2,704,651
Create a fileDownloadCompleted event and Handling it?
<p>I've got the task to develop a Chat App using Android, things sent between users are Text and Images, when User1 sends User2 an Image File, User2 has to first accept the request, and then file will be sent.</p> <p>My Problem is, when User2 accepts the File Send Request, I still need to somehow know, that File Downl...
java android
[1, 4]
2,334,600
2,334,601
How can I create an array out of something like $("li").text()
<p>Suppose I want to get all text of each <code>li</code> and save it into an array, how might I do that. </p> <p>For example, something like ... </p> <pre><code>&lt;ul&gt; &lt;li&gt;1&lt;/li&gt; &lt;li&gt;2&lt;/li&gt; &lt;li&gt;3&lt;/li&gt; &lt;li&gt;4&lt;/li&gt; &lt;li&gt;5&lt;/li&gt; &lt;li...
javascript jquery
[3, 5]
5,237
5,238
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]
2,761,618
2,761,619
How to open just one instance of my application
<p>I found around this code</p> <pre><code>android:launchMode="singleTask" </code></pre> <p>and it's working but when I open another instance of my application the old one is deleted and the new one is created, I would like the old one to stay alive and the new one will just turn to the old one.</p>
java android
[1, 4]
2,477,926
2,477,927
How do you structure your jQuery code?
<p>Coming from mootools and JAVA, mootools class implementation is a real nice way to structure my code, plus I can have some nice features like extending, implementing and so on. Starting with jquery I found my self writing $.fn plugins that cant use code of other plugins. Plus it seems no good idea to use the plugin ...
javascript jquery
[3, 5]
4,022,195
4,022,196
How to get values from dynamically added (using javascript) elements?
<p>On my aspx page I dynamically create html controls on client side using javascript. For example, after page load you can click button in a browser, by clicking button html <em>input</em> and <em>select</em> elements appear. You may click once again, and this elements (<em>input</em> and <em>select</em>) will added a...
javascript asp.net
[3, 9]
3,105,111
3,105,112
How can I edit JS from browser?
<p>Suppose I get, on a page, this simple html/script :</p> <pre><code>&lt;a id="hey" href="#"&gt;try&lt;/a&gt; var myvar=false; $('#hey').click(function () { if(myvar) { alert("Well! You change it!"); } }); </code></pre> <p>clicking on the link, I won't never get the alert show up! So, how can I...
javascript jquery
[3, 5]
1,321,874
1,321,875
Add Html to Text without children element
<p>I am very confused on how to get this work, did a lot of research online to help find a solution to this, but got nothing. Found this link here: <a href="http://viralpatel.net/blogs/jquery-get-text-element-without-child-element/" rel="nofollow">http://viralpatel.net/blogs/jquery-get-text-element-without-child-elemen...
javascript jquery
[3, 5]
3,937,043
3,937,044
javascript return function's data as a file
<p>I have a function in javascript called <code>"dumpData"</code> which I call from a button on an html page as <code>**onlick="dumpData(dbControl);"*</code> What it does is return an xml file of the settings (to an alert box right now). I want to return it to the user as a file download. Is there a way to create a...
php javascript
[2, 3]
597,704
597,705
Intrigation Google+ to android tutorial?
<p>I want to post status in Google+ from android application. I have downloaded the following jar file.. "google-api-services-plus-v1-rev16-1.7.1-beta" Can any one provide any tutorial or instruction to add Google plus sdk to android?</p>
java android
[1, 4]
4,689,265
4,689,266
Getter function with switch case?
<pre><code>public User getByField(string field, string stringToFilter) { string fieldToReturn; switch (field) { case "id": fieldToReturn = "u.pk_user_id"; break; case "username": fieldToReturn = "u.user_username"; break; } var result =...
c# asp.net
[0, 9]
531,503
531,504
jquery selects returning undefined value - asp.net webform
<p>simple bit of jquery. I have a div with clss linklist, inside it has several linkbuttons</p> <pre><code>&lt;script type="text/javascript"&gt; $(function () { $('#linklist a').each(function () { alert(this.text); }); }); &lt;/script&gt; </c...
jquery asp.net
[5, 9]
5,177,209
5,177,210
First data global gateway webservice API Integration gives error in asp.net
<p>I have faced a problem on adding the webservice as web reference in vs10 to a project. The Webservice url is "https://ws.merchanttest.firstdataglobalgateway.com/fdggwsapi/services/order.wsdl" I have installed all the necessary files to my system and iis(windows xp-2003 sp2, X64 version). When i am trying to add this...
c# asp.net
[0, 9]
4,295,851
4,295,852
What's wrong with this syntax for getting length of longest row in table?
<p>I have a table that is populated from a JSON object. The result is a table with an uneven number of cells in each row. I'm working on a script to automatically append empty cells to each row so that there is a uniform number. My problem is figuring out the length of the longest row in the table. Below is my atte...
javascript jquery
[3, 5]
3,075,632
3,075,633
Get alert if all they(ul) are empty
<p>How can done if all tags ul in <code>.empty</code> is empty alert ok?(with jQuery)</p> <p><strong>EXAMPLE:</strong> <a href="http://jsfiddle.net/pqgGr/" rel="nofollow">http://jsfiddle.net/pqgGr/</a></p> <pre><code>&lt;div class="empty"&gt; &lt;ul&gt;1&lt;/ul&gt; &lt;ul&gt;&lt;/ul&gt; &lt;ul&gt;&lt;/ul&...
javascript jquery
[3, 5]
2,527,083
2,527,084
How to handle problem with Network Connectivity in Java
<p>I have a simple java code which gets html text from the input url:</p> <pre><code>try { URL url = new URL("www.abc.com"); // Get the response BufferedReader rd = new BufferedReader(new InputStreamReader(url.openStream())); while ((line = rd.readLine()) != null) { String code = code + li...
java android
[1, 4]
1,687,213
1,687,214
jQuery: Check for existence of BR as first or last element, including text nodes within a paragraph
<p>I wish to test in jQuery for the existence of a <code>&lt;br /></code> as the very first, or very last element (including text nodes) within a paragraph. The 2 examples below would be true:</p> <pre> <code> &lt;p> &lt;br /> Lorem ipsum dolor sit amet consectetur, adiscipling elit. &lt;/p> </code> </pre> <p...
javascript jquery
[3, 5]
5,303,790
5,303,791
On button click load UserControl without refreshing whole page
<p>Explaining my problem: </p> <p>In my ASP.NET solution i have 2 buttons:</p> <p>Button 1 and Button 2 </p> <p>I have two UserControls with totally different content</p> <p>OnClick of each of those buttons i want to load different UserControl into ContentPlaceHolder, but without reload whole page. So actually it h...
c# jquery asp.net
[0, 5, 9]
5,455,391
5,455,392
Have a child window be notified when parent window goes to a different page?
<p>i have a parent window and a child window. in javascript, i want a function in child window to be called whenever the parent window loads a new page. i'd like to use something similar to jQuery's $(document).ready() so that I don't have to worry about whether the parent is done loading yet - but ready() only appears...
javascript jquery
[3, 5]
5,864,201
5,864,202
Jquery keyup issue with dropdown menus?
<p>I have this code, basically I have <code>&lt;input id="register_username" type="text" name="username"&gt;</code> and I want to check if the users already exist in the database or not. The code works perfectly when the user type a username, but sometimes some browsers (for example Firefox) gives the user drop down me...
javascript jquery
[3, 5]
5,201,174
5,201,175
How to populate <tbody> with dynamic generated JavaScript?
<p>I get some Json response with a list of objects.</p> <pre><code> onComplete: function (id, fileName, responseJSON) { // alert(responseJSON[0].Image); } </code></pre> <p>How I can populate <code>&lt;tbody&gt;</code> with dynamic generate...
javascript jquery
[3, 5]
3,089,444
3,089,445
replace spaces with commas with javascript
<p>I have a string with keywords and I need to check if this string contains spaces and if yes replace them with commas.<br> the string can be something like "keyword1 keyword2 ,keyword3 keyword4,keyword5"<br> or any other combination of spaces and commas. the final result should be a string of keywords separated by...
javascript jquery
[3, 5]
1,418,811
1,418,812
Reusable Method to change gridview cell colour
<p>I need to change the colour of gridview cells based on the data value. I can quite easily do this using a datarow view in the Gridviews RowDataBound Event and an if statement (see below), however I need to do this on 30 columns which will be rather long winded and a pain to change if the business rules change. How c...
c# asp.net
[0, 9]
1,396,854
1,396,855
Using .Split() then adding these values to 3 php variables
<p>I have used this code on an autosuggest script to split the CSV created into 3 values in an array as such:</p> <pre><code>&lt;?php if($_POST['category_submit']){ ?&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { var arr = $(".as-values").val().split(","); var category_1=arr[0]; var category...
php jquery
[2, 5]
4,858,730
4,858,731
Making dynamic sized boxes
<p>I have a quiz that have four options to choose. Every question have different options and sometimes an option have a long text that doesn't fit in my fixed size boxes (say <code>div</code>). I don't want to have largest possible box to prevent overflow in my boxes. I want to size my box depended on longest option t...
javascript jquery
[3, 5]
1,775,473
1,775,474
Access outer variables inside dispatchMessage
<p>I'm dealing with legacy code. My task is to process the result of an async task.</p> <p>I'm stuck with getting access to outer objects inside dispatchMessage method. Are there any means achieve it or should I use Singleton or static properties ? </p> <p>So far I've made a class responsible for running in asynchron...
java android
[1, 4]
3,286,711
3,286,712
Dynamic text box list
<p>I am trying to make a text box list using jquery. What I want is to have text that changes into a textbox when clicked. Then I want it to return to text afterwords. My problem is getting the dynamically created textboxes to focus, change the textbox text, be removed and change the text. This is my code:</p> <pre><c...
javascript jquery
[3, 5]
1,599,534
1,599,535
Retrieve JSON data from a hidden input
<p>I store JSON data in HTML hidden fields on the server side. Then I'd like to retrieve that data using Javascript and JQuery on the client side. The problem is that I get a JSON string instead of a JSON object.</p> <p>This is my code on the server side:</p> <pre><code>&lt;form id="data" style="display: none;"&gt; ...
javascript jquery
[3, 5]
5,835,300
5,835,301
Why is typeof my variable an object, and not a number
<p>I have a table which has a couple cells that contain simple numbers (IE: 1.00, 1000.00, 10000.00). I'm trying to format the cell contents using the 'format' function below. I have had success with this function in a different area of my code, but for whatever reason (the reason why I'm here) when I try to feed the c...
javascript jquery
[3, 5]
14,953
14,954
How to alter the Browser's Refresh Event and trigger a custom function?
<p>As you all know, when we hit the refresh button, the entire page starts to reload. But I dont that, I only want to refresh some portions, which need to be refresh in case of a need. </p> <p>I know, I can use ajax to reload a piece of content. But I want to attach this ajax function while the user clicks the refresh...
javascript jquery
[3, 5]
892,721
892,722
Android Button Onclick
<p>OK i'm new to android dev's and java so im having problems with on click method heres my code i know ive gotta be close thanks in advance all i want my button to do is when its clicked on the phone to swith the layout view from main.xml to xx.xml</p> <pre><code> package my.project; import android.app.Activity; i...
java android
[1, 4]
4,029,694
4,029,695
Advice needed from experts about ASP.NET UserControl usage
<p>I need some advice here. I have a bunch of 10 products and every product has <strong>atleast 200 different pages</strong> associated with it, with varying details about the product. That makes around 2000 pages. </p> <p>The structure of each page is as follows:</p> <p>**Product Name<br> Details About the product ...
c# asp.net
[0, 9]
2,453,097
2,453,098
Replace first occurance in class
<pre><code>&lt;div class="section truck edit-track truck-army truck-ambulance"&gt;&lt;/div&gt; </code></pre> <p>How do I replace only first <code>truck</code> to <code>truck garage-active</code>?</p> <p>We should get this:</p> <pre><code>&lt;div class="section truck garage-active edit-track truck-army truck-ambulanc...
javascript jquery
[3, 5]
3,625,756
3,625,757
How to access repeater items from JavaScript
<p>I've got a hidden control inside a repeater. How can I access this from JavaScript?</p>
c# asp.net
[0, 9]
3,271,953
3,271,954
Add class active to the <li> tag
<p>I want to add class active to the <code>&lt;li&gt;</code> whenever specific url is accessed?</p> <p>my code look like this,</p> <pre><code>&lt;ul&gt; &lt;li&gt; &lt;a href="link1"&gt;Link1&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="link2"&gt;Link2&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="link3"&g...
php javascript
[2, 3]
772,593
772,594
How to set up a "settimeout" properly for a jQuery function?
<p>I hope I can get some help. I'm new to Jquery and JavaScript and I got stuck with a "setTimeout" function. I'm working on my navigation bar and basically I need a div(sub menu) to fade in when "click" on an anchor tag, fade it out if you move the mouse to a different navigation link and hide it all together if the m...
javascript jquery
[3, 5]
2,427,200
2,427,201
read css file specific property
<p>I have a JSP page with jQuery included.</p> <p>I have a CSS file with a good load of lines in, I would like to read some specific styles for a given element(eg: header/footer) from the external CSS file into my jsp page using jquery.</p>
javascript jquery
[3, 5]
4,212,350
4,212,351
How to offset window top 50%
<p><a href="http://jsfiddle.net/motocomdigital/dKDJz/6/" rel="nofollow">http://jsfiddle.net/motocomdigital/dKDJz/6/</a></p> <p>I'm trying to fix position a div to top 50% off my window height. Which I can do fine with CSS.</p> <p>But the original position of this 'div.slider-button' is absolute positioned further dow...
javascript jquery
[3, 5]