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
4,034,322
4,034,323
Jquery slider value not zero
<p>You can see the code live here: <a href="http://jsfiddle.net/z3xV3/50/" rel="nofollow">http://jsfiddle.net/z3xV3/50/</a></p> <p>My HTML:</p> <pre><code>&lt;div id="slider"&gt;&lt;/div&gt; &lt;input id="sliderValue" /&gt; &lt;div id="boksTimer"&gt;&lt;/div&gt; </code></pre> <p>My JQUERY:</p> <pre><code>$(document...
javascript jquery
[3, 5]
1,527,746
1,527,747
How to overwrite (NOT append) a text file in ASP.NET using C#
<p>I have included a text file in my website with multiple lines. I have put a textbox (Multimode=true) and a button in the page. On Page_Load the content from the textFile should be displayed in the textbox. Then the user can edit the textbox. On button click the current content of TextBox should be overwritten in tha...
c# asp.net
[0, 9]
433,060
433,061
Javascript - Object loses its value on function exit
<p>I've got this strange problem. In my code, I have a variable named <code>val1</code> which gets a value after a jQuery call, but after exiting the jQuery function it loses its value.</p> <p>Here's the code:</p> <pre><code>var val1; $.getJSON('some address', null, function (result) { val1 = result.names[0].name...
javascript jquery
[3, 5]
3,560,444
3,560,445
jQuery issue in IE
<p>Hello I'm using this function as an address book module, for selecting any employee from the sidebar it display all the content of the employee. It works fine in Chrome but not in IE. I'm not able to run the src variables declared in this function in IE. Please suggest me some other ways to declare these type of var...
javascript jquery
[3, 5]
2,279,985
2,279,986
Checkbox to Control Button Enabled Property - ASP.NET
<p>I would like to know how I can control the 'Enabled' property of a button based on the 'checked' value of a checkbox:</p> <pre><code>&lt;asp:CheckBox ID="chkEnableButton" runat="server" /&gt; &lt;asp:Button ID="btnLoadForm" runat="server" /&gt; </code></pre> <p>I can do this very easily on the server side - but I ...
c# asp.net javascript
[0, 9, 3]
4,900,518
4,900,519
How to convert this jquery code to "raw" javascript
<p>Can someone help me convert this jquery code into javascript (that doesn't require the jquery library)?</p> <pre><code>var console={ panel:$(parent.document.body), log:function(m){ this.panel.find("#something").append(m) } }; </code></pre>
javascript jquery
[3, 5]
5,087,195
5,087,196
Changing an ID using JQuery
<p>I'm trying to change the ID of an element here:</p> <p><a href="http://moemonty.com/chirp/CHIRP-JSON-test.html" rel="nofollow">http://moemonty.com/chirp/CHIRP-JSON-test.html</a></p> <p>By using this line:</p> <pre><code>$('.databaseID').attr('id', 'test'); </code></pre> <p>I would like to change the id of this l...
javascript jquery
[3, 5]
887,634
887,635
jquery id getting help
<p>i want to put the id into the colorbox below this code nom works but the page with the link on it is </p> <pre><code>$("#recent_activity").load("activity.php?id="+id+"&amp;random=" +unique_requestid()); </code></pre> <p>thats how it calls the page and the link is on that page.</p> <pre><code>var id = $.query.ge...
javascript jquery
[3, 5]
2,373,715
2,373,716
how to make a process run on iis?
<p>Dear all, i have following code to open a file on click of a button</p> <blockquote> <p>System.Diagnostics.Process.Start("soffice.exe",filepath);</p> </blockquote> <p><strong>soffice.exe</strong> is to open .odt files &amp; <strong>filepath</strong> is containing the complete path of the file which i want to ope...
c# asp.net
[0, 9]
2,136,949
2,136,950
data manipulate on tree structure by jQuery
<p>Below is tree structure and i want to have second tree structure by jquery.</p> <pre><code>&lt;ul&gt; &lt;li data-id="1"&gt; &lt;ul&gt; &lt;li data-id="2"&gt; &lt;ul&gt; &lt;li data-id="6"&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; ...
javascript jquery
[3, 5]
2,872,009
2,872,010
Test if a DOM element or JSON
<p>Suppose a function accepts one argument that is whether a DOM element or JSON that are wrapped in jQuery object or not, so how to tell one from the other?</p>
javascript jquery
[3, 5]
2,091,594
2,091,595
alert shows undefined in javascript when passed value form aspx.cs page
<pre><code> string locationName = "Mumbai"; Page.ClientScript.RegisterStartupScript(Type.GetType ("System.String"), "addScript", "PassValues(" + locationName + ")", true); </code></pre> <p>in javascript my code contains</p> <pre><code>&lt;script language="javascript" type="text/javascript"&gt; functio...
c# javascript asp.net
[0, 3, 9]
1,146,396
1,146,397
How to use the select menu value in the specific DIV jQuery
<p>I have the following code to get the selected item value and post it to a DIV. That is okay, it is working fine, my DIV shows the selected value. But my question is how can I use that value in the DIV ? so that I can create a php msyql query.</p> <pre><code>&lt;head&gt; &lt;style&gt; .response { padding:10px; ...
php jquery
[2, 5]
1,620,636
1,620,637
what's the different between live and delegate
<p>like the title said , this two function is in jquery :)</p>
javascript jquery
[3, 5]
2,473,830
2,473,831
difference between timer and alarmmanager
<p>I am a bit confused about <code>Timer</code> and <code>AlarmManager</code> used in Android. </p> <p><em>What are the main differences between them</em>? </p> <p>They are both scheduling a task to run at every A seconds. And what is the main scenario that they are preferred to be used?</p> <p>For example, for X si...
java android
[1, 4]
2,599,682
2,599,683
Implementing option menu one time for several activities
<p>I am trying to implement an options menu for my app and the same menu is used in different activities. In the <a href="http://developer.android.com/guide/topics/ui/menus.html" rel="nofollow">Android developers site</a>, it says the following:</p> <blockquote> <p>Tip: If your application contains multiple activiti...
java android
[1, 4]
3,740,785
3,740,786
jquery insert-before to text in the same DOM
<p>Hi I'm working on inserting a text to this DOM but my try did not work like I expecting.</p> <pre><code> &lt;p class="doing"&gt;Peter are &lt;a href="mysite.com"&gt;here&lt;/a&gt;&lt;/p&gt; &lt;script&gt;$("p.doing").before("I and ");&lt;/script&gt; </code></pre> <p>I'm expecting to have result:</p> <pre><code>&l...
javascript jquery
[3, 5]
5,839,077
5,839,078
Are there any good reasons NOT to use jQuery instead of plain old JavaScript?
<p>I recently discovered jQuery, and I can immediately see how useful and elegant it is.</p> <p>I'm curious, though - are there any reasons NOT to use it (and just use plain old JavaScript instead)? If there aren't any reasons, should it not be integrated fully into the JavaScript language?</p>
javascript jquery
[3, 5]
33,526
33,527
How do I render User Control children at a specific location?
<p>I have a very simplistic user control that looks like this:</p> <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wfWindow.ascx.cs" Inherits="webfanatix.co.za.wfWindow" %&gt; &lt;div&gt;Just a test...[x]&lt;/div&gt; </code></pre> <p>with this code behind:</p> <pre><code>[ParseChildren(fal...
c# asp.net
[0, 9]
4,878,881
4,878,882
What is the right way to load the values from the database to label?
<h2>Admin.aspx</h2> <pre><code> &lt;div id="valueIntroduction" class="labelarea" runat="server"&gt; &lt;/div&gt; &lt;div class="line"&gt;&lt;/div&gt; </code></pre> <h2>Admin.aspx.cs</h2> <pre><code> SqlConnection NewConn = new SqlConnection(ConfigurationManager.ConnectionStrings["SoicConnectio...
c# asp.net
[0, 9]
4,911,927
4,911,928
Basic 2 image slideshow in Jquery
<p>I'm trying to create a basic jquery 2 image slideshow. I don't want the images to fade into eachother, they should just simply change every second. In the jquery code I have below, the code includes fading. What would be the correct code without fading?</p> <pre><code>&lt;div id="manwrapper"&gt; &lt;div&gt; ...
javascript jquery
[3, 5]
3,612,354
3,612,355
How to tell if a function is blank?
<p>I am writing a web app (and honestly I dont know what I would do without stackoverflow), but here is what I am doing. </p> <p>My users can define custom functions, Well right off the bat someone pointed out to me there should be a way to warn the user that the function is blank.</p> <p>for example a user may write...
javascript jquery
[3, 5]
2,259,429
2,259,430
how to use alert in php and js combined
<p>have a need to alert through php,<br> I have the code below. Problem is that it works as long as I dont use header redirect. But as soon as I use it..I loose alert.</p> <pre><code>echo "I will do some functions here in php"; if($value == 1){ alert('ok working'); } header(location: 'someOtherpagethanthis.p...
php javascript
[2, 3]
4,606,986
4,606,987
ASP.NET C# - A function with arguments to write dropdownlist
<p>I am new to ASP.NET and C#. </p> <p>What I am trying to do is some type of function where I can feed some argumennts, which will generate a dropdown list box for me. I know ASP.NET is much better, but I couldn't figure out how to accomplish similar or even better.</p> <p>When I've done before with classic ASP/VB...
c# asp.net
[0, 9]
5,946,494
5,946,495
Open a window behind the current window using Javascript/jQuery
<p>I want to open a window on click, but I want to open it behind the current window, or when the new window opens it should minimize itself. I have made a function but it actually did not work.</p> <pre><code>&lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Untitle...
javascript jquery
[3, 5]
823,932
823,933
interface type method parameter implementation c#
<p>Is it possible to do like this </p> <pre><code>interface IDBBase { DataTable getDataTableSql(DataTable curTable,IDbCommand cmd); ... } class DBBase : IDBBase { public DataTable getDataTableSql(DataTable curTable, SqlCommand cmd) { ... } } </code></pre>
c# asp.net
[0, 9]
1,001,197
1,001,198
PHP packing some data
<p>c++ struct:</p> <pre><code>struct Data { unsigned char a; unsigned char b; unsigned char c; UCHAR result; short Number; char Id[10]; int Admin; int Blocked; char Proj[13]; }; </code></pre> <p>I maked this with php:</p> <pre><code>pack("C4sc10iic13", /** **/); </code></pre> <p>...
php c++
[2, 6]
20,856
20,857
Why do Android callback methods' name start with 'on'?
<p>I'm just curious. (Maybe not only in Android)</p>
java android
[1, 4]
4,619,303
4,619,304
How to get print screen data
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/757675/website-screenshots-using-php">Website screenshots using PHP</a><br> <a href="http://stackoverflow.com/questions/6333814/how-does-the-paste-image-from-clipboard-functionality-work-in-gmail-and-google-c">How...
php javascript
[2, 3]
906,571
906,572
Javascript inside PHP - Quote problems
<p>I need to include some javascript in my php file but im having difficulty with the quotes inside the javascript </p> <p><b>This is the javascript:</b></p> <pre><code>&lt;scripttype="text/javascript"&gt; var sc_project = $$$$; var sc_invisible = $; var sc_security = "$$$$$$$"; var scJsHost = (("...
php javascript
[2, 3]
5,335,193
5,335,194
Get X,Y position of div
<p>I have 3x3 list of jQuery divs like so :</p> <pre><code>div1 div2 div3 div4 div5 div6 div7 div8 div9 </code></pre> <p>When a div is dragged &amp; dropped I would like to get its X &amp; Y position in relation to the other div elements. so if div1 is dragged to div3 position I need to retrieve the postion 0,3 which...
javascript jquery
[3, 5]
4,227,515
4,227,516
authorization via url checking
<p>i have a table <strong>USERS</strong> with 3 columns: <strong>userid,username,password</strong>.</p> <p>Then table <strong>Menu</strong> with columns: <strong>id,url,canview</strong></p> <p>How do i check a url on page load to verify if a user is allowed to view that url in asp.net &amp; C#? i.e if canview = yes ...
c# asp.net
[0, 9]
2,779,673
2,779,674
Study Schedule Using Genetic Algorithm to be deployed as web, iphone and Android mobile app
<p>I am working on a study schedule using genetic algorithm as a desktop application and I know it can be made as a web application. Is it possible to make it as an iphone and Android mobile app with facebook integration (e.g. login)? Is it a good idea? </p>
java php iphone c++ android
[1, 2, 8, 6, 4]
2,588,727
2,588,728
Fading slideshow not cycling?
<p>Im trying to make a fading slideshow only I cant seem to get it to fade...</p> <p><a href="http://jsfiddle.net/FGb6L/" rel="nofollow">http://jsfiddle.net/FGb6L/</a></p>
javascript jquery
[3, 5]
929,397
929,398
suggest some online compiler for c/c++
<p>I am developing a website for which I need an online C/C++ compiler for testing code online.</p> <p>Is there any possible and feasible solution for this.</p> <p>I need this compiler so that students can test their code online.</p> <p>Thnx in avance</p>
php c++
[2, 6]
5,118,899
5,118,900
How to make a DIV always at the bottom of the page when scrolling
<p>I am using the below code to make a DIV always at the bottom of the page when scrolled. But this is not working and goes on increasing the Page height. </p> <pre><code>var LSscrollingDiv = $("#LightSwitchMenuIt"); $(window).scroll(function(){ LSscrollingDiv .stop() .animate({"marginTop": ($(window).s...
javascript jquery
[3, 5]
5,407,308
5,407,309
syntax error T_PAAMAYIM_NEKUDOTAYIM!
<p>buy.php:</p> <pre><code>&lt;form action="cart.php" method="post"&gt; &lt;?php foreach($product['varieties'] as $variety): ?&gt; &lt;input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="&lt;?php echo $variety['price'] . '_' . $variety['size']; ?&gt;" /&gt;'; &lt;?php end foreach; ?&...
php javascript
[2, 3]
797,323
797,324
How do I use JQuery or JavaScript to remove all links in a table?
<p>I have a table that I would like to export to Excel but I don't want any of the hyperlinks to come through. Is that possible?</p> <p>I noticed that something similar was being done in the thread <a href="http://stackoverflow.com/questions/6098958/jquery-remove-images">JQuery remove images</a> but I don't thing it ...
javascript jquery
[3, 5]
3,907,034
3,907,035
Append 'Read More' link after a certain number of characters and hide the rest
<p>In jQuery how can I append a "Read More" link after about 162 char's, hide the rest and once the read more link is clicked, show it, clicked it... hide it.</p> <p>I've looked at other questions, but the answers are having another div that has the rest of the text in it. I don't want to do that, really.</p> <p>I am...
javascript jquery
[3, 5]
1,568,070
1,568,071
How should I initialize jQuery?
<p>I have seen this (I'm also using it):</p> <pre><code>$(document).ready(function(){ // do jQuery }) </code></pre> <p>and also this (I have tried lately):</p> <pre><code>(function(){ // do jQuery })(jQuery) </code></pre> <p>both works fine.<br /> My question is what is the difference of the two ( except on h...
javascript jquery
[3, 5]
1,769,369
1,769,370
Whether it is fine to use class name like UserCreate or CreateUser?
<p>I need to use a class name of one application. I need to ask whether I can use a class name like UserCreate or CreateUser.</p>
c# java
[0, 1]
1,456,864
1,456,865
How to pass TextBox value to DynamicPopulateExtender query?
<p>Hi I am trying to do DynamicPopulate on DropDownList2 when the value of textbox2 changes, how can I pass the value to TextBox2 to the sql query of DynamicPopulate. </p> <pre><code>&lt;asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource1" onselectedindexchanged="Drop...
c# javascript asp.net
[0, 3, 9]
3,697,576
3,697,577
Data option change isn't picked by jquery
<p>I've got div like this :</p> <pre><code>&lt;div id="something-1" data-options='{"pause":"YES","delete":"NO", "kill":"NO"}'&gt;&lt;/div&gt; </code></pre> <p>What I got going on is some ajax request and changes the data options like this :</p> <pre><code>$('#something-1' + item.id).attr("data-options", '{"pause":"Y...
javascript jquery
[3, 5]
3,473,207
3,473,208
JavaScript Function Return Scope
<p>A function triggers a database call which returns some Json. This CID is then used to stamp the newly added DOM element.</p> <p>I need to retrieve / return the value of "cid" which exists within ajax success block, it will be used to update attribute.</p> <p>Error <strong>cid is not defined</strong></p> <pre><cod...
javascript jquery
[3, 5]
5,492,370
5,492,371
GridView DataFormatString problems. convert Doudle to TimeStamp
<p>Need some help with DataFormatString in GridView. I have a Double value that needs to be shown as TimeSpan. I have tried DataFormatString="{0:HH:mm:ss}". This did not work. </p> <p>Tested it a bit in C# and there I would do:</p> <pre><code>TimeSpan.FromHours(16.7358217592592).ToString() </code></pre> <p>This give...
c# asp.net
[0, 9]
3,069,843
3,069,844
How to embed a C# User Control into Windows Explorer?
<p>Is it a way to embed my User Control into Windows Explorer? Please tell me if you have any resources about this. </p> <p>Thanks, Weipeng</p>
c# c++
[0, 6]
6,024,584
6,024,585
serialize an object similar to $.param but do not call contained methods
<p>So I have an object that I would like to serialize, however the object contains non-idempotent methods. Is there a built in jQuery method to handle this, or do I need to build something custom?</p> <p>This question will actually answer <a href="http://stackoverflow.com/questions/15779574/resource-update-method-beha...
javascript jquery
[3, 5]
4,230,604
4,230,605
DropDownList in item template row comparison with in a GridView
<p>I have a <code>Dropdownlist</code> with in a <code>gridview</code>, in my grid I have 10 records, my dropdown values are 1,2,3...10. In first record drop down value is 1, second record dropdown value is 2....</p> <ol> <li><p>now I changed the 5 drop down value to 2, then second drop value is changed to 3 and 3 drop...
c# asp.net
[0, 9]
5,127,253
5,127,254
Visit Tracking - server-side / client-side
<p>I have an asp.net (webforms) application and I would like to track user visits to the site. I have the DB, objects, basic idea down.</p> <p>My goal is to track a user from the first time he enters the site and up until he creates an account. So I can trace back where this user came from in his initial visit (Organi...
c# asp.net
[0, 9]
3,004,500
3,004,501
Minimalizing namespaces for custom functions
<p>I have a StringUtilities.cs file in the CommonFunctions Project that holds a UppercaseFirst function that Uppercases the first word in a string. Currently in the .aspx.cs in a separate Project (in the same Solution) that is utilizing this function is called using <strong>MyProject.CommonFunctions.StringUtilities.Up...
c# asp.net
[0, 9]
198,674
198,675
How to create a DataTable and filling it with a data from the database using the DataView?
<p>I am a new ASP.NET developer and I want to create a table programmatically using <code>HtmlTable</code> or <code>DataTable</code> and then filling this table with the data from the database using <code>DataView</code>. </p> <p>I could be able to create a table using <code>HtmlTable</code> but when I did a search re...
c# asp.net
[0, 9]
1,020,339
1,020,340
Download file by Jquery
<p>i search google and got a code snippet for downloading file by jquery. the syntax is like below</p> <pre><code>var downloadURL = function(url) { var iframe; iframe = document.getElementById("hiddenDownloader"); if (iframe === null) { iframe = document.createElement('iframe'); ifram...
javascript jquery
[3, 5]
689,889
689,890
Disable alert();
<p>Code that is generated on my page that I cannot control contains an alert. Is there a jQuery or other way to disable alert() from working?</p> <p>The javascript that is being generated that I want to disable/modify is:</p> <pre><code>function fndropdownurl(val) 1317 { var target_url 1318 target_url = document.getE...
javascript jquery
[3, 5]
4,322,920
4,322,921
Event when IFrame has posted back?
<p>I have some code that closes a modal in the parent when an IFrame's button is pressed.</p> <p>This works well, but my problem is I need the IFrame to be fully postbacked before executing the close method.</p> <pre><code>var $MyFrame = $("#editScheduleFrame"); // You need to wait for the iFrame content to load fir...
javascript jquery
[3, 5]
849,487
849,488
javascript process explain
<p>I found this js some page sources.actually what does this java script do?</p> <pre><code>&lt;script type="text/javascript"&gt; var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20823326-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/jav...
javascript jquery
[3, 5]
5,193,712
5,193,713
clear a form without refresh
<p>am working with a form that has recaptcha and its validated with jquery, everything works perfectly fine *the info is sent to my email and all required field are checked before been send)</p> <p>the only one problem am facing is that once the info is sent and all fields are reset the error messages are visible onl...
php jquery
[2, 5]
3,043,730
3,043,731
What are the fundamental differences between ASP.net and PHP?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/606419/net-asp-vs-php">.NET &amp; ASP vs PHP</a> </p> </blockquote> <p>Are there speed differences, performance issues, and what reasons do businesses have when they choose one or the other, is the learning cur...
php asp.net
[2, 9]
5,748,770
5,748,771
How to count number of character which is entered in textbox?
<p>I have a label <code>lblCountCharacter</code> with text "4000" and a textbox <code>txtAddNote</code> where users can enter text. </p> <p>On entering one character in <code>txtAddNote</code>, the label text is decreased by one.</p> <p>Please help me write a function for this in asp.net using C#.</p>
c# asp.net
[0, 9]
3,691,273
3,691,274
jquery not seeing new html loaded into dialogue box
<p>I am having some trouble with getting jquery to recognize classes/ids of content that has been loaded into a dialogue box. All the jquery code (including the code that deals with the as yet unloaded classes) is loaded before the dialogue box is created, however the html that eventually goes into the dialogue box is ...
javascript jquery
[3, 5]
5,183,253
5,183,254
null object reference in master pages
<p>I have some controls inside my master page, and i want to acces them from its related c# clas..</p> <p>For instance i have:</p> <pre><code>&lt;asp:DropDownList ID="ddlSearch" runat="server" onselectedindexchanged="ddlSearch_SelectedIndexChanged" AutoPostBack="True"&gt; ...
c# asp.net
[0, 9]
1,972,521
1,972,522
preventDefault does not work on focus event
<p>I am trying to design a form such that if it has a certain class, the user should not be able to interact with any of the inputs. For various reasons, I would like to avoid using the "disabled" attribute. I am trying to prevent the default on the focus event and it is not working. I tested this in recent versions of...
javascript jquery
[3, 5]
4,885,001
4,885,002
how can i convert this code into android phone which have written in java?
<p>I want to convert this code to Android (for a phone) please guide me. </p> <pre><code>import javax.swing.*; public class Irr { public static void main(String[] args) { String s1=JOptionPane.showInputDialog(null,"Enter the value of i for +ve NPV without % ="); String snpv1=JOptionPane....
java android
[1, 4]
4,691,309
4,691,310
How to Overwrite first some bytes of a file with different bytes in android
<p>I have a problem that I want to overwrite first 2^21 bytes of a video file with another 2^21 bytes, but I don't know how to do that? Please suggest me the right solution for the same.</p> <p>Thanks in advance.</p>
java android
[1, 4]
829,985
829,986
Datagrid refresh not working
<p>I have a datagrid to display some information from a SQL table, and then a simple textbox and button to allow users to add records to the database. Problem is, when the user clicks Add, the datagrid SHOULD update, but it doesn't, any ideas? The code in question is as follows:</p> <pre><code>protected void Page_Load...
c# asp.net
[0, 9]
4,864,192
4,864,193
Prevent user from chaning tokens within input box
<p>How to prevent the change of certain elements, tokens, within a textarea with javascript or jquery? For instance I have this string in an input</p> <p>this is normal text {this can't be changed 1}. This is more text. {This can't be changed 2 }. And some more text</p> <p>If a user tries to change text within th...
javascript jquery
[3, 5]
4,956,328
4,956,329
jQuery: Using Selectors on HTML from an Attribute
<p>I have some HTML that is stored as an attribute on a tag. I can access it in jQuery using </p> <pre><code>$("input[id$='_myField_hiddenSpanData']").attr("value") </code></pre> <p>This looks like this:</p> <p><code>"&lt;span id='spantest\user' tabindex='-1' contentEditable='false' class='ms-entity-resolved' title=...
javascript jquery
[3, 5]
4,866,585
4,866,586
Javascript link with onClick event
<p>I am using a third-party shopping cart from <a href="http://simplecartjs.com/" rel="nofollow">http://simplecartjs.com/</a> . For a normal checkout I can use:</p> <pre><code>&lt;a href="javascript:;" class="simpleCart_checkout" &gt;Checkout&lt;/a&gt; </code></pre> <p>And it works. But I need to add some server-side...
c# javascript asp.net
[0, 3, 9]
1,640,182
1,640,183
Asp.Net Button postback keeps firing
<p>For some reason the postback event keeps firing for my button. If I place a break point on the function(e) part with Firebug, the code just skips right over the function. Return false does not work either.</p> <pre><code>&lt;script&gt; $(document).ready ( $('#&lt;%:FilterButton.ClientID %&gt;').click ( funct...
javascript jquery asp.net
[3, 5, 9]
518,244
518,245
need help speeding up tag cloud filter for IE
<p>Any ideas on how to speed this up in IE (the filtering process performs decent in Firefox, but almost unusable in IE). Basically, it's a tag cloud with a filter text box to filter the cloud.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="jquery-1.3.2.min.js"&gt;&lt;/script&gt; &lt...
javascript jquery
[3, 5]
3,437,463
3,437,464
How to access object name for their value using jquery
<p>I have on object and I want to print their name and property name. How can I do that. I can access their properties value. Like I want print object name like 'first' and 'second' and their properties like 'value' and 'text' dont want to print value</p> <pre><code>&lt;head&gt; &lt;meta http-equiv="Content-Type" ...
javascript jquery
[3, 5]
4,795,479
4,795,480
How to call div content in widows.open()
<p>Actually i have a asp:LinkButton in aspx page and i just want that whenever user clicks on asp:LinkButton open popup on dat asp:LinkButton its already done and i have given another link to it(its ur website's link only) and its working fine, but the problem is now i want to open a popup with checkboxes with the citi...
javascript asp.net
[3, 9]
4,001,581
4,001,582
Referencing variables on another page using Javascript.
<p>I'm currently working on a sort of Administration method to be able to save certain text and to display this on another page. </p> <p>Currently, the defaults in the "Admin" page are to be referenced from the other page. It's a simple page: </p> <pre><code>&lt;asp:TextBox Text="Testing jQuery method" ID="TextBox"...
javascript jquery asp.net
[3, 5, 9]
1,266,178
1,266,179
Detect a click on DIVs with unpredictable IDs in jQuery
<p>I have several div tags and I'm trying to detect which one clicked. Each result has a unique title, but the same id. How do I use .click() to know which one was clicked so I can get it's ID and use it?</p>
javascript jquery
[3, 5]
72,043
72,044
Increment value to attr using jquery
<p>I want to increment the value of i . The "for" loop does not work. </p> <pre><code>$("a[href$='.xls']").appendTo(".xl1").attr('id','xl'+i); </code></pre> <p>I search all excel files and places them in a container and increment the value of their id.</p> <p>Thanks Jean</p>
php jquery
[2, 5]
2,313,294
2,313,295
Filter options of one SELECT control according to another SELECT control options with asp.net
<p>I have two select controls . the first one contains names of countries and the another one contains cities names . I need to make the second one display names of the cities of selected country from the first one.</p>
c# asp.net
[0, 9]
1,780,580
1,780,581
How to detect running ASP.NET version
<p>How can I see the version of .net framework which renders my aspx page on remote server?</p>
c# asp.net
[0, 9]
1,915,035
1,915,036
The operation has timed out after upload a file using upload control in c#
<p>I have a problem in file upload control in asp.net when I upload a file 4.72MB and after this I use smpt for send a mail then I got time out expire error</p> <p>Thanks in advance</p>
c# asp.net
[0, 9]
4,383,135
4,383,136
CRIR & jQuery - hooking up a method to fire after CRIR loads?
<p>I have a JSP that uses jQuery and <a href="http://www.chriserwin.com/scripts/crir/" rel="nofollow">CRIR</a> to display a form with radio buttons. I'm using CRIR to style the radio buttons to give them a custom look.</p> <p>CRIR appears to <a href="http://www.chriserwin.com/scripts/crir/crir/crir.js" rel="nofollow">...
javascript jquery
[3, 5]
4,982,115
4,982,116
IMAGE_CAPTURE Intent never returns to onActivityResult(int, int, Intent);
<p>I start an <code>IMAGE_CAPTURE</code> Intent like this, and my activity's <code>onActivityResult()</code> get called:</p> <pre><code>Intent i = new Intent (android.provider.MediaStore.ACTION_IMAGE_CAPTURE, null); i.putExtra("return-data", true); startActivityForResult(i, PICK_ICON_FROM_CAMERA_ID); </code></pre> <p...
java android
[1, 4]
1,124,281
1,124,282
How easy/difficult it is to create app to send text field to sql for Android?
<p>I have basic knowledge of Java but have never developed for Android. A friend asked me for an app that seems easy enough to develop but I would need some help for Android. All the app needs to do is send a text field (for example license plate number) to a predetermined SQL Server database. Is this easy in Android a...
java android
[1, 4]
4,964,610
4,964,611
jQuery's problem with the position method
<p>If I have the following markup:</p> <pre><code>&lt;div id="parent" style="width: 300px; height: 300px;"&gt; &lt;div id="child" style="position: relative; left: 0; top: 0; width: 100px; height: 100px;"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>and I want to get the position of the child relative to its parent...
javascript jquery
[3, 5]
5,659,453
5,659,454
How do I call a defined variable with jQuery?
<p>I'm kinda stuck.</p> <p>I defined three variables:<pre><code>var part1 = &quot;&lt;form&gt;&lt;input type='button' value='Open Window' onclick='window.open('http://jsfiddle.net/ &quot;; var part2=&quot;5Xket,&quot; var part3 = &quot;'toolbar=no',menubar='no')&gt;&lt;/form&gt;&quot;;</code></pre></p> <p>My aim is t...
javascript jquery
[3, 5]
3,617,382
3,617,383
Get parameters from TD of checked TR
<pre><code>&lt;table id="tab"&gt; &lt;tr&gt;&lt;td&gt;&lt;input type="checkbox"&gt;&lt;/td&gt;&lt;td aaa="111"&gt;sdf&lt;/td&gt;&lt;td bbb="222"&gt;sdfsd&lt;/td&gt;&lt;td ccc="333"&gt;trs&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;input type="checkbox"&gt;&lt;/td&gt;&lt;td aaa="342"&gt;hjk&lt;/td&gt;&lt;td b...
javascript jquery
[3, 5]
5,825,049
5,825,050
How do i ensure my asp.net validators fire before i call client side javascript
<p>I have an asp.net application with basic CRUD functionality. On a page where i am capturing customer details i have several asp.net validators to required fields. I have attached a JS confirm box on the asp.net save button for the form. The trouble is that when the user leaves required fields unfilled and clicks the...
javascript asp.net
[3, 9]
4,169,529
4,169,530
Coding in javascript: a mix of standard javascript and jquery? any issues?
<p>are there any problems mixing my code with standard javascript and jquery? Will things conflict? Would I be unable to use standard javascript within jquery calls?</p>
javascript jquery
[3, 5]
185,741
185,742
JQuery: get a child as you append it
<p>I am appending p tags to a div as I process a json request and would liek to style it according to what is in the request.</p> <pre><code>$(document).ready(function() { function populatePage() { var numberOfEntries = 0; var total = 0; var retrieveVal = "http://www.reddit.com/" + $("#addr...
javascript jquery
[3, 5]
3,502,973
3,502,974
In an asp.net project, how can I submit javascript objects?
<p>I have an array of javascript objects and I want to press a submit button and 'send' them much like I can access a textbox or listbox's members - ie. the page posts back and I can put some code in the button's submit method. Is there a way of doing this? Or do I have to put them into a control?</p>
javascript asp.net
[3, 9]
297,625
297,626
jQuery - go back button or wait and you get auto redirected - advanced go back button
<p>I used this button for a while:</p> <pre><code>&lt;input type="button" class="button" onclick="javascript:history.go(-1)" value="Go back to previus page" /&gt; </code></pre> <p>And I would like to add feature to it, but I have no clue, since im javascript newb, so please give me some tips or even solution.</p> <p...
javascript jquery
[3, 5]
117,837
117,838
__EVENTTARGET not populating after button click + C#/ASP.NET
<p>I have an asp button that produces this html: </p> <pre><code>&lt;input type="submit" name="ctl00$m$g_a2ba5666_c8e9_4bd7_a44a_f9407dbe2199$ctl00$btnAddWebPart" value="Add Report" id="ctl00_m_g_a2ba5666_c8e9_4bd7_a44a_f9407dbe2199_ctl00_btnAddWebPart" /&gt; </code></pre> <p>When the button is submitted and the page...
c# asp.net
[0, 9]
1,819,448
1,819,449
Change the style of one dynamically created LinkButton while not affecting others?
<p>I have a method that loops through a list and creates Links using the LinkButton control. For the purpose of this question, assume that it is a list of colors and that I have 5 colors: red, green, blue, red, and yellow. Here is a code snippet of how I am creating the links and adding the event handler.</p> <pre><...
c# asp.net
[0, 9]
3,735,773
3,735,774
How can I restart my application after rebooting of device?
<p>I have made Android application which uses one background service. It works good, but if user reboot his device that my application will be stopped. How can I fix it, i.e. how can I restart my application after rebooting of device?</p>
java android
[1, 4]
3,956,357
3,956,358
How to retrieve a value from <input> using jQuery?
<p>I have to hidden input fields such as:</p> <pre><code>&lt;input name="foo" value="bar"&gt; &lt;input name="foo1" value="bar1"&gt; </code></pre> <p>I'd like to retrieve both of those values and POST them to the server using jQuery. How does one use the jQuery selector engine to grab those values?</p>
javascript jquery
[3, 5]
4,082,672
4,082,673
Radio Buttons in ASP.NET
<p>I'm bit new to .NET. I am using Radio buttons inside a panel in a web page. (Since group boxes are not there). But when I click on each radio button they all are checked. They are not acting as a group but single units.</p> <p>Do I need to remove the panel here? Please help me.</p>
c# asp.net
[0, 9]
4,302,174
4,302,175
Saving a File on Android
<p>I'm sure this has been asked hundreds of times, but I just can't point myself to the right direction.</p> <p>I'm working on an app that after the first startup, generates an instance of a class that takes and saves user input. After that first startup, on every consecutive startup, I want to read that same instance...
java android
[1, 4]
2,766,927
2,766,928
jQuery logical operators for flow control instead of using if statement
<p>For some reason I can't get the succinct flow control syntax to work with jQuery. The following throws an error:</p> <pre><code>$(this).hasClass('expanded') &amp;&amp; return </code></pre> <p>Whereas this longer version works fine:</p> <pre><code>if ($(this).hasClass('expanded')) { return} </code></pre> <p>Any i...
javascript jquery
[3, 5]
2,821,387
2,821,388
Use Javascript/Jquery to to strip down a dynamic URL
<p>I have this function:</p> <pre><code>popstate = function(url){ $('#ajaxloadcontent').load(url+"#ajaxloadcontent &gt; *"); } </code></pre> <p>I need it to get the current page URL, lets just call that: "http://www.pearlsquirrel.com/index.php"</p> <p>I then need to somehow use jquery and strip down the URL to just...
javascript jquery
[3, 5]
5,023,700
5,023,701
Jquery How to use history plugin?
<p>In my web application I am using ajax and now I'd like the back and forward browser buttons to work. So I went looking for a jquery history plugin and found this one: <a href="http://stilbuero.de/jquery/history/" rel="nofollow">http://stilbuero.de/jquery/history</a></p> <p>In my code I use a function to load a page...
javascript jquery
[3, 5]
5,725,946
5,725,947
How do I make an applcation's launch icon run the preferences activity?
<p>I would like an app's launch icon run the app's preferences activity (as it has no Activities, only a Service).</p> <p>The preferences are defined in res/xml/preferences.xml.</p> <p>Please help me regarding this.</p>
java android
[1, 4]
2,710,928
2,710,929
Javascript in browser bar vs in content script - 'die' doesn't work
<p>I'm trying to run a javascript command in a content script using Personalized-Web (a Chrome extension). I'm new to javascript &amp; jquery, but I've found that entering this code:</p> <pre><code>javascript:jQuery("div.photo-container").die(); </code></pre> <p>into my browser bar on a particular page achieves the ...
javascript jquery
[3, 5]
866,373
866,374
Converting double to string
<p>I am not sure it is me or what but I am having a problem converting a double to string.</p> <p>here is my code:</p> <pre><code>double total = 44; String total2 = Double.toString(total); </code></pre> <p>Am i doing something wrong or am i missing a step here.</p> <p>I get error <code>NumberFormatException</code> ...
java android
[1, 4]