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
3,888,166
3,888,167
Custom logging in a N-Tier Application
<p>I have an N-tier application, ASP.Net front end, then a .Net C# Business and Data Access Layer. I have created a simple custom logging library. This logging library is then used throughout my application i.e. Log.LogException and Log.LogMessage.</p> <p>For this logging library I want to define the custom path for t...
c# asp.net
[0, 9]
5,972,674
5,972,675
Mobile Application design: Menu Driven vs Tab Control
<p>iPhone does not have Menus AFAIK; most of the stuff is driven by on screen controls and widgets. Android has menus, ofcourse. I am working on porting an iPhone application on Android platform.</p> <p>What are the advantages and disadvantages of the Menu driven approach?</p>
iphone android
[8, 4]
3,630,869
3,630,870
File upload returns incomplete (IE7,8,9) when using mod_rewrite on url with jQuery File Upload
<p>When uploading a file in internet explorer through jQuery File Upload (using the auto submit code found on the git page) on pages the where the url is rewritten via .htaccess, the file is uploaded correctly however appears with no link size or delete button until the page is refreshed. It then appears correctly.</p...
php jquery
[2, 5]
4,765,778
4,765,779
jquery find() method
<p>Please consider the following code :</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;style&gt; p{ width:200px; } &lt;/style&gt; &lt;head&gt; &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt;&lt;span&gt;Hello&lt;/span&gt;, how are you?&lt;...
javascript jquery
[3, 5]
3,030,515
3,030,516
How similar is C# to C++
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/291513/differences-between-c-and-c-net">Differences between C++ and C#/.Net</a> </p> </blockquote> <p>I am reading <a href="http://ssw.jku.at/Teaching/Lectures/CSharp/Tutorial/Part1.pdf" rel="nofollow">this C# t...
c# c++
[0, 6]
3,887,896
3,887,897
Change an image for a second
<pre><code> ImageView image = (ImageView) findViewById(R.id.imageview); image.setImageResource(drawable.image1); SystemClock.sleep(1000); image.setImageResource(drawable.image2); </code></pre> <p>I am trying to change the image for a second, my code above doesn't work but not sure why? Should I be ...
java android
[1, 4]
2,482,670
2,482,671
adding unique class for new div
<p>I want add a unique class for each new div after input, how is it in my code?</p> <p>Add class for this: <code>&lt;div class="thing"&gt;&lt;/div&gt;</code></p> <p><strong>DEMO:</strong> <a href="http://jsfiddle.net/wAwyR/2/" rel="nofollow">http://jsfiddle.net/wAwyR/2/</a> => please in here(field) typing a number f...
javascript jquery
[3, 5]
2,915,411
2,915,412
When a text box contains the <BR/>, Button is not getting clicked
<p>I have web application in ASP.NET</p> <p>In application I have web page contains a text box for Book Details to entered.</p> <p>I want user to enter <code>&lt;BR/&gt;</code> in that TextBox.</p> <p>When a text box contains the <code>&lt;BR/&gt;</code> string a Button which submit data to server is not getting cli...
c# asp.net
[0, 9]
5,295,475
5,295,476
Javascript / jQuery: Only fire animation if mouse isn't over the element after page load
<p>I have a slider on a page and a function that fades out the previous/next arrows after a few seconds, and then when the user hovers over the slider they fade back in. The only issue is that when the slider loads and the user has their mouse hovering over it, the arrows still fade out, and the user has to move the mo...
javascript jquery
[3, 5]
5,076,926
5,076,927
jQuery Image Gallery stops working in IE7&8 after using for small period of time
<p>I have the following code I am using for a photo gallery. In Internet Explorer 7 &amp; 8 the gallery stops working. The image fades out after several clicks and the new image does not fade in. After this occurrence happens (about 6 or so clicks) the gallery does not function at all. All other browsers work flawl...
javascript jquery
[3, 5]
2,011,310
2,011,311
Trying to setup binding to a callback with different values
<p>I am trying to build a jquery function that builds a series of buttons and binds them to the callback with different argument values. The issue I am having is that the callback is always called with the argument value of the last buttons[] value "cancel" no matter which button is clicked. </p> <pre><code>var butto...
javascript jquery
[3, 5]
837,862
837,863
Getting part of referring url with jquery
<p>I'm trying to set a cookie with a value that is made up of part of a referring url. The referring url looks something like:</p> <pre><code>http://webct.university.ac.uk/webct/urw/lc715920578061.tp721521425061/courseMenu.dowebct? </code></pre> <p>and I need to extract:</p> <pre><code>lc715920578061.tp721521425061 ...
javascript jquery
[3, 5]
2,814,588
2,814,589
Am I using the correct naming for my javascript?
<p>I have the following and I am putting it in a directory called Prototypes:</p> <pre><code>$.fn.buildTableOfContent = function () { "use strict"; var h2 = this.find('h2'); if (h2.length &gt; 0) { var h1 = this.find('h1:first'); if (h1.length === 0) { h1 = this.prepend('&lt;h1&...
javascript jquery
[3, 5]
2,987,822
2,987,823
How to set the year of a date based on value from drop down
<p>I have a drop down that has the years basically 2011,2010,2009 etc... and there is a date that i need to append the year selected to, basically I want to check todays date</p> <pre><code>DateTime dt = DateTime.Today; </code></pre> <p>and then change the year of dt to the value selected of my drop down</p> <p><cod...
c# asp.net
[0, 9]
796,518
796,519
Which PHP-template to load depends on javascript support
<p>I have the following scenario:</p> <p>A multiple step registration procedure. Let's say it's 4 steps, and each step depends on previous input. This could be solved with or without Javascript.</p> <p>Without JS: A "proceed"-button is attached to each step With JS: The next part is automatically revealed to the user...
php javascript
[2, 3]
576,811
576,812
Simple android app to print text
<p>I recently started watching youtube videos about android development. I watched a few and tried to write my own app. Basically what it does is, the user enters a text in the text field and when the user presses the click button, the entered value is displayed on a text view. </p> <p>I am very confused as to where I...
java android
[1, 4]
1,083,060
1,083,061
string to array format using asp.net in c#
<pre class="lang-none prettyprint-override"><code>[RESPONSE] code = 211 description = Domain name not available queuetime = 0 runtime = 0.004 EOF </code></pre> <p>I need the above response in the following output format in ASP.NET:</p> <pre class="lang-none prettyprint-override"><code>code = 211 description = Domai...
c# asp.net
[0, 9]
4,285,601
4,285,602
setTimeout delay not functioning - what have I done wrong?
<p>I've put together a piece of code for a drop-down menu, bound to <code>.hover()</code>, however unfortunately the delay on <code>setTimeout()</code> doesn't seem to work and as soon as the mouse is moved from <code>.button</code>, it sets the display property of <code>#sub-nav</code> to <code>none</code>.</p> <p>Dr...
javascript jquery
[3, 5]
4,088,278
4,088,279
.NET Framework equivalent of Python's imghdr.what function
<p>Does .NET Framework have a function similar to Python's imghdr.what function to determine what type of image a file (or stream) is? I can't find anything.</p>
c# python
[0, 7]
1,399,711
1,399,712
Calling the inline JavaScript on a link using jQuery
<p>I am modifying an ancient table which has inline JavaScript in the form of <code>&lt;a href="javascript:&lt;lots of shit&gt;"&gt;</code>. The inline JavaScript works, but it would take months to rewrite it so that it fits my assignment, which is when an outer element is clicked the inline JavaScript should be execut...
javascript jquery
[3, 5]
1,769,929
1,769,930
jQuery slideToggle callback function and toggleclass
<p>HTML</p> <pre><code>&lt;div class="a"&gt; &lt;div class="b"&gt;CLICK&lt;/div&gt; &lt;div class="c"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="a"&gt; &lt;div class="b"&gt;CLICK&lt;/div&gt; &lt;div class="c"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="a"&gt; &lt;div class="b"&gt;CLICK&lt;/div&gt;...
javascript jquery
[3, 5]
2,411,340
2,411,341
expert system android
<p>I want to create a program of expert systems in Eclipe android, but I do not understand what is needed, for example looks like this</p> <p><img src="http://i.stack.imgur.com/PzVVJ.png" alt="diagnosis system"></p> <p>and its diagnostic results such as the following view</p> <p><img src="http://i.stack.imgur.com/tb...
java android
[1, 4]
283,927
283,928
Emulate drag-and-drop using JavaScript
<p>I know that jQuery can programmatically trigger events on DOM elements that are listening to those events. For example <code>$el.click()</code> will trigger a click event on <code>$el</code> without having to physically click <code>$el</code> with the mouse.</p> <p>Given two DOM elements <code>dom1</code> and <code...
javascript jquery
[3, 5]
3,007,412
3,007,413
ajax multiple file upload
<p>im trying to build a ajax multiple file upload because i found every plugin too complicated to configure, i started with a multi file upload in php, but i see that if i have too many file to upload at once when i submit the form it will take too much time to end, how is this latence handled? is this handled with jqu...
php jquery
[2, 5]
4,693,051
4,693,052
jQuery - watch for element height change
<p>I have a element, which is absolute positioned and has a fixed height.</p> <p>This element has a lot of child elements, which could change their contents, and in consequence their height. The problem is that the container element doesn't auto expand to fit its children (because of it's fixed height and absolute pos...
javascript jquery
[3, 5]
57,280
57,281
Figuring out that value of input field has changed
<p>I'm using this plugin in my project :</p> <p><a href="https://github.com/bseth99/jquery-ui-extensions" rel="nofollow">https://github.com/bseth99/jquery-ui-extensions</a></p> <p><a href="https://raw.github.com/bseth99/jquery-ui-extensions/master/bseth99-jquery-ui.js" rel="nofollow">https://raw.github.com/bseth99/jq...
javascript jquery
[3, 5]
736,728
736,729
How to get the index of a particular element
<p>I got the following code from the designer:</p> <pre><code>&lt;table class="items"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th id="name"&gt;name&lt;/th&gt; &lt;th id="category"&gt;category&lt;/th&gt; &lt;th id="zip"&gt;zip&lt;/th&gt; &lt;th id="city"&gt;city&lt;/th&gt; &lt;th...
javascript jquery
[3, 5]
3,963,223
3,963,224
How to create a dictionary can be created to exchange languages ​​and translations?
<p>I would like to make a simple dictionary application on android, I plan to make a simple dictionary like google translate, which can be used also for exchange of language in translation, so far I could make a dictionary to translate English into Indonesian, which I want to ask is how to swap the two languages ​​and ...
java android
[1, 4]
4,060,343
4,060,344
How do I copy all elements and children between two elements into a temp element?
<pre><code>context = document.createElement("span"); start_element = my_start_element; end_element = my_end_element; // some how iterate through here (assuming start and end are different elements) [start_element .. end_element].each(function(current_element){ context.append(current_element); }); </code></pre> <p>...
javascript jquery
[3, 5]
4,865,295
4,865,296
Key things to learn to be a senior developer under the MS platform
<p>I know the following:</p> <p>asp.net webforms, mvc, sql server 2005/2008, web services, and windows services.</p> <p>I want to expand so I can be a little more versatile.</p> <p>What things should I be focusing on? (this is general guidance, with a web focus)</p> <p>I am thinking:</p> <p>SSIS windows workflow s...
c# asp.net
[0, 9]
5,485,890
5,485,891
General jquery function for form submission
<p>I have this small tabbed system developed in PHP/JavaScript.</p> <p>For form submissioni, I bind a JQuery function to the 'submit' event that sends an Ajax query to the server, avoiding to reload the page (and losing other tabs). I have coded one function for every form, but realized that they are the same (take th...
javascript jquery
[3, 5]
1,608,389
1,608,390
Contact us section
<p>I am having problems with my asp.net application i can run the program with no errors when i fill in the boxes on the contact us section i then get a error saying.</p> <blockquote> <p>SMTPException was unhanded by user code</p> </blockquote> <p>Here is my code</p> <pre><code>using System; using System.Collectio...
c# asp.net
[0, 9]
2,734,097
2,734,098
Using User Control in Master Page - Need Focus
<p>This is the scenario:</p> <p>I have a Master Page, In the Master Page I have a user control In the User Control there is a code that looks like this</p> <pre><code>&lt;div&gt; &lt;a id="p1" runat="server"&gt; &lt;asp:Image ID="Img" runat="server" ImageAlign="AbsMiddle" Style="position:relative; bottom:...
c# asp.net
[0, 9]
958,170
958,171
How can we return the css attributes of an element with jQuery?
<p>One of the most powerful things of jQuery is to select any item on a page like this:</p> <pre><code>$(".block").css("border","3px solid red"); </code></pre> <p>How can I also get the values of the selected items like width height and top left offset?</p>
javascript jquery
[3, 5]
3,777,131
3,777,132
Loading a JSON file with jQuery.getJSON
<p>I am a newbie in JS and I am trying to do something very simple.</p> <p>I have a JSON file named "data.json" and I want to load it, so, I do this:</p> <pre><code>$.getJSON("data.json",function(data){ console.log(data); }); </code></pre> <p>And then I pass that loaded JSON to a function in library that does th...
javascript jquery
[3, 5]
73,282
73,283
Finding a visible div that is not hidden Jquery/Javascript
<p>Ok so i have two div's which are hidden using jquery's <code>.hide();</code> onload</p> <p>I have two function to <code>.show();</code> them</p> <pre><code>function showIncorrectChar() { $("#csq-incorrect-characters").show(); } function showMinChar() { $("#csq-min-characters").show(); } </code></pre> <p>Using...
javascript jquery
[3, 5]
5,548,121
5,548,122
Open login page , insert logon information and click loginbutton
<p>I want to open a logon page like www.site.com/login.php</p> <p>insert username and password </p> <p>and login button be invoke .</p> <p>All of this should be done progroamlly in a server (not in a browser )</p> <p>is it possible to do thsi ?</p>
c# asp.net
[0, 9]
4,938,293
4,938,294
Iterate through databound listbox
<p>My listbox is getting its items from a sql database and I'm trying to loop through it and perform an action based on a certain condition. I've done this before but not when it was attached to a db. This is the code I'm using (that doesnt work):</p> <pre><code>foreach (object o in arrList) { foreach (ListItem i ...
c# asp.net
[0, 9]
3,083,473
3,083,474
FindControl inside Repeater
<p>I am trying to find a Label inside a Repeater, I am using:</p> <pre><code> protected void lnkbtnEditRecord_Click(object sender, EventArgs e) { salesEditPanel.Visible = true; resultPanel.Visible = false; zipPanel.Visible = false; ddlPanel.Visible = false; topPanel.Visib...
c# asp.net
[0, 9]
5,362,169
5,362,170
Show thumbnails and select the cover photo
<p>We need to display all the thumbnails in one folder (e.g. c:/photos/101/tn/ folder) and then select one image as cover photo. Once the editor clicks on the "Set Cover Image" button, grab the select photo ID. Once the id is grabbed, I will store the info in the database.</p>
c# asp.net
[0, 9]
2,797,625
2,797,626
ASP.Net: Programatic runat="server" and onclick
<p>I am trying to edit a control which doesn't have an .ascx page, it was done completely in code. I am trying to add an optional delegate to be called from an ImageButton which was previously completely handled at the client. So I would like to set runat="server". However, I don't see this property exposed programatic...
c# asp.net
[0, 9]
3,459,780
3,459,781
Javascript repeat/loop help needed
<p>I have the following javascript</p> <pre><code>$('.goto1').click(function() { $('#mttslider').cycle(0); return false; }); </code></pre> <p>What I would like is for it to repeat like so:</p> <pre><code>$('.goto1').click(function() { $('#mttslider').cycle(0); return false; }); $('.goto2').c...
javascript jquery
[3, 5]
2,195,549
2,195,550
Javascript function can write to console but not returning value
<p>I have a function in javascript which can write the output to the console but it is unable to return the value.. </p> <pre><code>fetchData: function(dateToFetch){ if (mP.viewMode == 1){ $.each(mealData.DailymPs, function(k, item){ if( item.Date == formatDate(mP.chosen...
javascript jquery
[3, 5]
2,462,382
2,462,383
manipulating jquery options on-the-fly
<p>i use a jquery plugin and want the user to be able to manipulate an option (LENGTH parameter) him/her-self. </p> <pre><code>$(document).ready(function() { $('#green').smartpaginator({ totalrecords: &lt;? echo $count;?&gt;, length: 3, recordsperpage: 3, datacontainer:...
javascript jquery
[3, 5]
2,413,753
2,413,754
Set default value for jQuery slider and override when needed
<p><strong>Background:</strong> I currently have a <strong>working</strong> jQuery slider on my website inside my .js file</p> <pre><code>$( "#slider-range-min" ).slider({ range: "min", value: 100, min: 1, max: 100, }); </code></pre> <p>I need to be able to override the "Value" from 100 to...
javascript jquery
[3, 5]
614,775
614,776
How to use string as a object method?
<p>I am trying to use an element class name and call it as a method for my object.</p> <pre><code> var thisClass=$this.attr('class') //thisClass = 'call' obj.thisClass(ID); </code></pre> <p>My codes don't work as I wanted to be. Are there anyways to solve this? Thanks a lot!</p>
javascript jquery
[3, 5]
3,943,779
3,943,780
I retrieved a date from my database using jQuery. The retrieved value is "2012-01-10 00:00:00" (quotes included)
<p>I was unable to perform date comparison operations because it was being retrieved as a string. How can I do that. I tried using below syntax, but it didn't work. </p> <pre><code>DateUtils.convertFormat(emp_date_start,"MM/dd/yyyy","yyyy-MM-dd"); </code></pre>
javascript jquery
[3, 5]
328,073
328,074
jQuery MouseEnter Error
<p>As I am writing an plugin for websites which uses jQuery I am wondering, why some of the sites which are using the script get the error:</p> <pre><code>Uncaught TypeError: Object #&lt;Object&gt; has no method 'mouseenter' </code></pre> <p>The code:</p> <pre><code>plugin.setBehavior = function() { jQuery('#div...
javascript jquery
[3, 5]
2,445,511
2,445,512
Javascript error ( missing } )
<p>Just checking my JS and I have an error, but I cannot see where. WOnder if you can ?</p> <pre><code>$(document).ready(function(){ $('input').hover(function() { $(this).popover('show') }); $("#loginnow").validate({ rules:{ username:{ ...
javascript jquery
[3, 5]
5,747,435
5,747,436
Copy-Paste from MS Excel fails with IE but works with Firefox
<p>I built a very simple app using a PHP form with a bit of Javascript.</p> <p>In my form, I have a text input which I used to run a database search. In case I have multiple values, I have a bit of code that puts a comma in between each.</p> <p>The weird part is this:</p> <p>In Firefox, I can go do MS Excel, copy 5 ...
php javascript
[2, 3]
3,490,290
3,490,291
FadeIn and FadeOut effect weird
<p>I am using JQuery and what I want to happen is: div fades out using <code>fadeOut()</code>. It then loads content from a url using the <code>load()</code>. Then once content loaded it fades back in using <code>fadeIn()</code>. However it does not work,it flashes then loads out then loads in. I think the problem is t...
javascript jquery
[3, 5]
4,414,393
4,414,394
Handler to grab variable values from another function
<p>This is what I have so far </p> <pre><code>//file uploader /////////////////////////// function uploader(){ var file = $(this).val() var error = $(this).next('.req-error') var fileLimit = $(this).attr('maxlength')-1 var uploadedFiles = $(this).siblings('.uploaded-file').length //make uploaded...
javascript jquery
[3, 5]
1,807,886
1,807,887
Error retrieving information from user cookie
<p>When I run the project, I get this line highlighted with an error:</p> <pre><code>string cartID = context.Request.Cookies["Cinemax_CartID"].Value; </code></pre> <p>The message is as follows:</p> <pre><code>Object reference not set to an instance of an object. </code></pre> <p>Thanks for any suggestions! </p>
c# asp.net
[0, 9]
3,366,481
3,366,482
how do I convert special characters for storage in database
<p>I have a textarea, and sometimes people use special characters like</p> <pre><code>à </code></pre> <p>These are stored in a database, but wrong, the value in the database is this:</p> <pre><code>Ã </code></pre> <p>or something like that. What do I have to do to preserve the character?</p>
php jquery
[2, 5]
2,237,167
2,237,168
VariableDeclaratorId and misplace
<p>I'm new to JAva and Android, and I'm working on my first test app.</p> <p>I have this code (This is the whole code):</p> <pre><code>package test.test; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.widget.TextView; public class MainActivity extends Activity { ...
java android
[1, 4]
5,598,234
5,598,235
Jquery: clearInterval inside ajax response after removing target element
<p>I'm facing a problem in using ajax requests in <a href="http://dillon-sellars.github.com/BeautyTips/" rel="nofollow">jquery bt tooltip plugin</a> , this is the function which i use:</p> <pre><code>$('.button-class').bt({ ajaxPath: 'get_data.php', ajaxCache: false, fill: '#fff', width...
javascript jquery
[3, 5]
3,299,039
3,299,040
How to show a list below an input test?
<p>How could I show a list (like Google does with keywords) below an input text?</p> <p>Thanks</p>
javascript jquery
[3, 5]
727,759
727,760
jQuery .change() only fires once
<p>I have a DropDownList called "ddlCaseFiles". I then have a script which I import that contains the jQuery .change() function to capture the event. Then I have 3 radio buttons which sorts the dropDownList. When the default radio button is loaded, then the event fires. But as soon as I select another radio button, the...
javascript jquery asp.net
[3, 5, 9]
3,571,252
3,571,253
How to manage generated files, how long to keep them using asp.net
<p>I have a web application that generates excel files from a template.</p> <p>When the new file is streamed to the client I deleted the file. This works fine in my computer, but for whatever reason, when accesing the website from another computer, the file is deleted before streamed to the client, so the file is alwa...
c# asp.net
[0, 9]
1,711,248
1,711,249
find length of visable/hidden list items faster
<p>I am a jquery newbie and have been adding alert timestamps into my html file to find what lines of code are making things slow. I have found the main bottleneck and am looking for help to know how to change these 2 lines to be faster.</p> <p>My html file has about 600 list items in it. If the file only had 6 list...
javascript jquery
[3, 5]
3,840,893
3,840,894
Animating list item with more efficiency
<p>I want to bump up a li on hover and let it get to original state when the mouse leaves. This works but does the hover animat(up) another time when the mouse is leaving which gives me a delay and inefficient code. Do you guys have some suggestions for me to make this more efficient?</p> <pre><code>function HoverList...
javascript jquery
[3, 5]
640,659
640,660
Access to HTML tags
<p>How can I get access to every HTML tag one after another like collections' syntaxes(from JS)? Is it possible?</p>
javascript jquery
[3, 5]
4,415,871
4,415,872
Replacement of the complex character string
<p>The string is "hi\how \ r\ u\" and need to replace "\" with the space.</p> <p>String stringToModify = "hi\how \ r\ u\";</p> <p>stringToModify = stringToModify .replace("\\", "");</p> <p>System.out.println(stringToModify ); </p>
java android
[1, 4]
1,444,140
1,444,141
How to call a javascript function directly from an activity in Android?
<p>I wanted to know if there is any way that I can call a JavaScript function from native Android Activity. </p> <p>I came across: </p> <pre><code>webView.loadUrl("javascript:hello()"); </code></pre> <p>But it did not work for me. </p> <p>Also, how will Android know in which html page does this JavaScript functio...
javascript android
[3, 4]
4,218,428
4,218,429
Sum the contents of divs when their corresponding checkbox is clicked
<p>I have the following code in a loop reading the contents of a folder:</p> <pre><code>&lt;div class="oddrow"&gt; &lt;span class="title"&gt;1 - 1215 - Magna Carta&lt;/span&gt;&lt;br/&gt; &lt;span class="size"&gt;size: 229.1 MB&lt;/span&gt; &lt;input name="1215 - Magna Carta" type="checkbox"&gt; &lt;div&gt...
javascript jquery
[3, 5]
4,591,348
4,591,349
How might you grab information from a page that only populates AFTER that page executes javascript? (C#)
<p>Hey there. I have a CE program which needs to get information from a website. I can't simply grab the source code, because the information is only displayed after the page's javascript is executed. Is there a way to view a page's information/source/links after javascript has fully load the information? Thanks! ...
c# javascript
[0, 3]
588,736
588,737
Equivalent of PHP's 'array_splice' in java
<p>How can I implement <code>array_splice()</code> in java</p> <pre><code>$input = array("red", "green", "blue", "yellow"); array_splice($input, 2); // $input is now array("red", "green") </code></pre> <p><a href="http://php.net/array_splice" rel="nofollow">http://php.net/array_splice</a></p>
java php
[1, 2]
2,871,665
2,871,666
problem with jquery's "live" function
<h2>the problem</h2> <p>this works fine:</p> <pre><code>$('#edit_curriculum .generated').children().blur(function(){ console.log(this); }); </code></pre> <p>but this doesn't:</p> <pre><code>$('#edit_curriculum .generated').children().live('blur', function(){ console.log(this); }); </code></pre> <p><strong>...
javascript jquery
[3, 5]
1,751,923
1,751,924
DataGrid Row checkbox filed Not updated in asp.net
<p>hi i m having one datagrid...that have one check box field...whenever i check the check box that time that row will be inserted in database...but check box value is not set true value...it always return false value...i m using C# asp.net 2003 version..please help me...</p>
c# asp.net
[0, 9]
4,481,012
4,481,013
About binding record to gridview from 2 tables in asp.net c#
<p>I have one gridview. I have one table(source) that contains fields like sourceid, name and another table(target) that contains fields like targetid, from, to,date. In that target table from &amp; to fields are ids refer to source table's sourceid's. So i have to bind record of target table i.e to bind fields : from ...
c# asp.net
[0, 9]
5,001,600
5,001,601
jquery click question
<p>i have an issue.</p> <p>the code is this:</p> <pre><code>$("#button").click(function(event){ $("#threads").html("hi"); }); </code></pre> <p>when i click the button, the text "hi" is just shown in 1 sec. then it disappear. i want it to always be shown after i have clicked. how can i do this?</p>
javascript jquery
[3, 5]
3,721,910
3,721,911
Load new page on postback
<p>I have a master page that has a usercontrol on the left side of the page with a dropdown. When the user selects a value from the dropdown I need to load a different aspx page. The new page has a similar (but not the same) looking usercontrol on the left and different content on the right. How can I do this? Also, ...
c# asp.net
[0, 9]
5,831,867
5,831,868
Autoscrolling a DIV element
<p>I have an auto overflowed DIV on my page, what i want to do is to make it start scrolling slowly towards the end of items of the DIV on page onload. </p> <p>is that easy u think ?</p>
javascript jquery
[3, 5]
834,298
834,299
.NET website lightweight framework
<p>I'm looking for lightweight framework to build my custom website. Originally I'd love to get a platform that implements user registration, login, logout and probably account management at some point. The thing is I don't want to have any "extras" there and I don't want to develop sign-up/login part again...</p> <p>...
c# asp.net
[0, 9]
3,082,617
3,082,618
"Magic" constants in C# like PHP has?
<p>I am building a logging control for a C# project and would like to be able to call it with the name of the current source code File, Line, Class, Function, etc. PHP uses "magic constants" that have all of this info: <a href="http://php.net/manual/en/language.constants.predefined.php" rel="nofollow">http://php.net/ma...
c# php
[0, 2]
3,313,722
3,313,723
Can I reduce this jquery script down to one line?
<p>I have written this code</p> <pre><code>if (forw == true) { if ($('.tickertape li.active')[0] != $('.tickertape li').last()[0]) { $('.tickertape li.active').removeClass('active').next().addClass('active'); } else { $('.tickertape li.active').removeClass('active');...
javascript jquery
[3, 5]
5,816,187
5,816,188
Javascript events
<p>I am completely confused here. So I am looking for a solution for the following problem:</p> <p>I want to trigger some function(for now an alert box) using jQuery on an input field. Conditions are:</p> <ul> <li>Input field always maintains the focus.</li> <li>Input is fed from a USB device, which acts just like a ...
javascript jquery
[3, 5]
2,506,307
2,506,308
Creating a widget
<p>Hi i want to create a widget which can be embedded on other websites similar to the twitter profile widget, an example is here;</p> <p><a href="http://twitter.com/about/resources/widgets/widget_profile" rel="nofollow">http://twitter.com/about/resources/widgets/widget_profile</a></p> <p>The way i would approach thi...
c# jquery asp.net
[0, 5, 9]
4,355,985
4,355,986
How to return an Array or an Element all from the same Object? (jQuery)
<p>I am trying to cut down jQuery to a very specific set of functions to use in a product (as well as my general learning). Looking through the source, this seems to be the main structure behind the jQuery library. And it works fantastically. </p> <p>The big part i can't get my head around, is how jQuery can return ...
javascript jquery
[3, 5]
3,972,283
3,972,284
Hacking Some js
<p>So, I'm using Jilion's Sublime's <a href="http://sublimevideo.net/" rel="nofollow">HTML5 Video Player</a> on my site. And was wondering if there was a way to use some jQuery to animate my video player when certain events are triggered via the player?</p> <p>For example when the play button is hit, the video player ...
javascript jquery
[3, 5]
123,346
123,347
Problem with adding and removing classes with jQuery when hovering over a list item
<p>I want to add a class to a list item when I hover over it, and then remove it and add it to a different list item if a different list item is hovered over.</p> <p>Here's what I tried:</p> <p>jQuery - </p> <pre><code>$(document).ready(function() { $("#results").text("Tournaments"); $("#Tournaments"...
javascript jquery
[3, 5]
3,184,528
3,184,529
How to popup a Alert on Button Click from code behind in Asp.net 2.0?
<p>I tried this code but is not working ..</p> <pre><code>protected void btnAbc_Click(object sender, EventArgs e) { string script = "&amp;lt;script language='javascript'&amp;gt;alert('abc');&amp;lt;/script&amp;gt;";" ClientScript.RegisterClientScriptBlock(this.GetType(), "Alert", script,true); } </code></pre> ...
c# asp.net
[0, 9]
362,135
362,136
JS & PHP - Change dropdown value if other fields are filled
<p>I have a PHP application form for medical health plans where the user fills in his details and selects some options from various controls, one of which is the plan type (private of family plan). Sometimes, although the user fills in his siblings/spouse details, they forget to also select the 'family' option and leav...
php javascript
[2, 3]
5,011,774
5,011,775
Use jquery to generate an arbitrarily deep list
<p>In javascript, I have an array of objects that represents an arbitrarily deep list...</p> <pre><code>data = [ { title, depth }, { title, depth }, { title, depth }, { title, depth }, ] </code></pre> <p>...where depth is how deep in the list the element is.</p> <p>I want to convert this data into html.</p> <...
javascript jquery
[3, 5]
3,938,424
3,938,425
Set a js variable in a html include
<p>I have a ASP.NET page that uses the include method for header. I am adding a JS variable that I access from JS functions</p> <p>In <code>head.htm</code></p> <pre><code>&lt;script language="javascript" type="text/javascript"&gt; var render=&lt;%= RenderProperty %&gt;; &lt;/script&gt; </code></pre> <p>The <code...
c# asp.net javascript
[0, 9, 3]
5,859,188
5,859,189
Android must have Expandableview whose id is
<blockquote> <p>Your content must have a ExpandableView whose id is attribute is 'android.R.list'</p> </blockquote> <p>This is the error message I am getting from Logcat. Which is confusing me as my XML is this</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://sche...
java android
[1, 4]
94,607
94,608
How to stop control creation inside a repeater based on a condtition?
<p>Here is the control i want to be created only if the condition is true. How do I do that using say the "Visible" attribute or something easy like that?</p> <pre><code> &lt;p&gt;&lt;%# (GetAnswer(Eval("AnsQID"))) != 1 ? (Eval("AText")) : ""%&gt;&lt;/p&gt; </code></pre>
c# asp.net
[0, 9]
4,522,242
4,522,243
using multiple id in jquery
<p>I made little jquery script for checking if input box value bigger than 5 .but I have 2 tag with an id and only one of them works.</p> <pre><code>&lt;div id="register"&gt; &lt;form id="register"&gt; &lt;input id="first" type="text" /&gt; &lt;a id="first" &gt;&lt;/a&gt; &lt;br /&gt; &lt;input id="second" ty...
javascript jquery
[3, 5]
4,709,991
4,709,992
jQuery .live('click') seems to only bind to the first element
<p>So I have a bunch of buttons on a page, interspersed with other HTML, that look like this:</p> <pre><code>&lt;input class="add_new_task" type="submit" value="Add New Task"&gt; &lt;input class="add_new_task" type="submit" value="Add New Task"&gt; &lt;input class="add_new_task" type="submit" value="Add New Task"&gt; ...
javascript jquery
[3, 5]
400,500
400,501
display content depending on which user in asp.net
<p>i have four differnet data entry users that will be using four different forms on my asp.net application to enter data into a database. </p> <p>i currently have windows authentication so that the user will not see the other user's form.</p> <p>my question is how can i send all the four groups the same link <a href...
c# asp.net
[0, 9]
3,136,700
3,136,701
Can someone explain what the syntax means when defining a jQuery plugin?
<p>I am reading up on creating custom jQuery plugins and am a little confused as to the meaning of the following syntax:</p> <pre><code>(function($){ $.fn.truncate = function() { return this.each(function() { }); }; })(jQuery); </code></pre> <p>I understand that function($) is an anonymo...
javascript jquery
[3, 5]
4,703,693
4,703,694
Get the html (source code) index of a selection?
<p>If I have</p> <pre><code>&lt;div&gt; hello &lt;/div&gt; </code></pre> <p>and I select 'hello' with my cursor, the start index is 6, end is 11 (inclusive).</p> <p>Is there a way to get this information cross-browser with JavaScript or jQuery?</p>
javascript jquery
[3, 5]
4,748,305
4,748,306
jquery append() doesn't preserve data or click handlers
<p>I am trying to append some links with data and a click handler to a containing div. </p> <p>jQuery 1.4.3</p> <p>Fails in FireFox 5.0/Chrome 13.0.782, but works in IE9</p> <p>I first create the element as a jQuery object, then add the data and click handler. Then I use .append() to append it to the container:</p...
javascript jquery
[3, 5]
4,252,924
4,252,925
how to make a "Tr" visiable and invisable based on radio buttonlist click
<p>i have an <strong>2 "tr"</strong> under </p> <ol> <li>tr one have an file upload control</li> <li><p>tr two have an textbox control.</p> <p>so i have an radio button list woth three values 1:image 2:video 3:Audio by default i need to show file upload control visiable that is the <strong>1"tr".</...
asp.net javascript jquery
[9, 3, 5]
2,418,340
2,418,341
jQuery merge objects and json_encode
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically">How can I merge properties of two JavaScript objects dynamically?</a> </p> </blockquote> <p>I am trying to merge two objects in jQuery.</p...
javascript jquery
[3, 5]
1,397,329
1,397,330
How to assign a dynamic textbox value to a label control
<p>dropdown event code..... </p> <pre><code> foreach (var res in result) { count = +1; Table tbl = new Table(); TableRow row = new TableRow(); TableCell cell = new TableCell(); TableCell cells = new TableCell(); TextBox tx = new Tex...
c# asp.net
[0, 9]
5,145,487
5,145,488
How to check for undefined type in javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5515310/is-there-a-standard-function-to-check-for-null-undefined-or-blank-variables-in">Is there a standard function to check for null, undefined, or blank variables in JavaScript?</a> </p> </blockquote> <p>What...
javascript jquery
[3, 5]
4,823,302
4,823,303
Cannot display image
<p>I had Image control and I added code to display images But there is not any image displayed</p> <p>ASPX:</p> <pre><code>&lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;div dir='&lt;%= sDirection %&gt;'&gt; &lt;div id="ContentImage" runat="server"&gt; &lt;asp:Image ID="Image2" r...
c# asp.net
[0, 9]
5,779,859
5,779,860
jquery draggable/droppable issue
<p>Hey guys I have a drag and drop function that <strong>does not fully work</strong>. What I want to do is be able to drag and drop a picture into a div and have that picture pop up in the div. I have a list of 2 pictures right now, so I have the following function echoed for each picture. Both pictures are draggable ...
php jquery
[2, 5]
3,359,794
3,359,795
jquery search each table row for a particular td
<p>Consider there's a table with rows to which a <code>td</code> with class <code>x</code> is added by jqeury on the fly (during DOM manipulation). Later when the user sumbit's this table (table being part of a form), i want to search all the rows for existence of this particular <code>td</code>. If this <code>td</code...
javascript jquery
[3, 5]