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
5,342,982
5,342,983
How to block form submission when the enter key or return key is pressed?
<p>I have a form that I use JQuery, I don't think I need to put code in this post, the question is pretty basic.</p> <p>But I would like to block the form from submitting when people press the Enter Key or the Return Key.</p> <p>At the same time, I have textareas, where the user will need to be able to press the Ente...
javascript jquery
[3, 5]
930,269
930,270
Retrieving ListView using FindControl
<p>I am trying to retrieve two listviews from an ascx control for the purpose of saving them to a PDF file: </p> <pre><code>&lt;TagCloud:TagCloudControl ID="TagCloudControl1" runat="server" /&gt; </code></pre> <p>I get the following error: TagCloudControl1 is a field but is used like a type and an object reference is...
c# asp.net
[0, 9]
4,925,664
4,925,665
java: determine ratio, from multiple inputs and duplicate input
<p>I would like to determine the ratio of how many times a costcentre appears in that asset</p> <p>might be easier to show than explain</p> <p><strong>Input File</strong></p> <pre><code>asset_id|employee_id|costcentre_id 1|123|2 1|342|2 1|122|3 2|231|4 2|232|3 </code></pre> <p>which should return</p> <pre><c...
java javascript
[1, 3]
3,692,598
3,692,599
how to check javascript array equals?
<pre><code>var a=[1,2,3]; var b=[3,2,1]; var c=new Array(1,2,3); alert(a==b+"|"+b==c); </code></pre> <p><a href="http://jsfiddle.net/YrMyc/3/">demo</a></p> <p>How to check these array, and get true from equals method?</p> <p>Under jQuery, has any methods for this?</p>
javascript jquery
[3, 5]
1,815,194
1,815,195
jquery or js: replace a link site-wide with another AND change to https
<p>I want to change every instance of</p> <pre><code>http[s]://www.mydomain.com/test/index.php?this_page=foo </code></pre> <p>to</p> <pre><code>https://www.mydomain.com/test/index.php?this_page=bar </code></pre> <p>I think its must be able to be done with <code>attr.replace</code> but I can't figure out the notatio...
javascript jquery
[3, 5]
2,566,686
2,566,687
How to raise custom event from a Static Class
<p>I have a static class that I would like to raise an event as part of a try catch block within a static method of that class.</p> <p>For example in this method I would like to raise a custom event in the catch. </p> <pre><code>public static void saveMyMessage(String message) { try { //Do Database s...
c# asp.net
[0, 9]
3,966,473
3,966,474
Scaling images on android
<p>I read that when scaling do not use real pixels. Is the only reason for this that the images will look blurry? If yes, so why the screens are categorized for Android into density categories. Now I could find 2 480x800 screens one with high density and other with low. So When I supply 2 different images One will have...
java android
[1, 4]
4,795,113
4,795,114
jQuery: Fire click on event on a span
<p>I saw a post earlier today and have been playing around with: <a href="http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html" rel="nofollow">http://arashkarimzadeh.com/index.php/jquery/7-editable-jquery-plugin.html</a></p> <p>What I'd like to be able to do is when a span gets clicked, to fire th...
javascript jquery
[3, 5]
5,402,329
5,402,330
JS Jquery Namespace Calling Functions
<p>Ok terrible title but I couldn't think of another description.</p> <p>I have the following code:</p> <pre><code>jQuery( document ).ready( function( $ ) { $.myNamespace = { init: function() { $('.button').click(function() { this.anotherFunction(); ...
javascript jquery
[3, 5]
3,543,630
3,543,631
Jquery .serialize isn't registering the values of the input-fileds
<p>I am trying to serialize some data from a form. </p> <p>The html:</p> <pre><code>&lt;form class="span5 login navbar-form pull-right"&gt; &lt;input class="span2" type="text" placeholder="E-mail" /&gt; &lt;input class="last span2" type="password" placeholder="Lösenord" /&gt; &lt;a class="loginbutton span...
javascript jquery
[3, 5]
2,851,519
2,851,520
Unable to return boolean from GPS check
<p>Im trying to detect if the GPS on my device is turned on.</p> <p>Currently i am simply returning a boolean true or false value that then either proceeds with my code, or directs the users to the GPS settings.</p> <p>At the moment when i return the boolean value my code is crashing. I have debugged it but still can...
java android
[1, 4]
4,168,335
4,168,336
Layout weight not changing in xml
<p>I have a XML code here:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:weightSum="100" &...
java android
[1, 4]
4,721,935
4,721,936
Fadein effect on page load
<p>Is there any way to use the fade in/out effect of jQuery while loading a page? I don't want to have hidden div and I call the fadeIn() method to show those divs. I want the pages to load with such effect. Any solution to that? So much appreciated !</p>
javascript jquery
[3, 5]
224,999
225,000
Hiding, displaying and focusing editText's in Android
<p>I've two linked questions.</p> <p>I'm applying a slide translation on an editText and it's button. I've created two buttons, one visible and one invisible, for obvious reasons. In order to hide the one that was visible and show the one that was invisiable I'm using this code:</p> <pre><code>public void onAnimation...
java android
[1, 4]
2,614,599
2,614,600
Do we 'declare' jQuery or we simply use it?
<p>I was asked in an interview that how do you <em>'declare'</em> jQuery? He did not mean a jQuery variable or a <code>$(func())</code>. In case you find this question weird, please do not penalize me for this as I'm enquiring just cause I was asked. :)</p>
javascript jquery
[3, 5]
5,530,487
5,530,488
Page jumps when fadeIn() and fadeOut() of two overlapping elements occurs
<p>I've created something in jQuery, I have a problem when clicking the images though. If you scroll down entirely to the bottom of the page and then click, you'll see it jumps. I've tried multiple methods to prevent jumping but its not working.</p> <p>Here is my code:</p> <pre><code>$('.author').click(function(e) { ...
javascript jquery
[3, 5]
2,793,479
2,793,480
HTML File Upload Control Problem in Asp.net 2003
<p>hi im using html File Upload Control in Asp.net 2003 version...whenever I try to upload the file its working fine...but suppose I upload the file then I click any radio button or any other button, fileupload control value is automatically erased..so I cannot upload the file successfully...anybody help me...</p>
c# asp.net
[0, 9]
4,862,460
4,862,461
tagName is null or not an object -- error msg in IE7 using latest version of jQuery (1.2.6)
<p>has anyone else seen this error message. a quick check with google doesn't show me much.</p>
asp.net javascript jquery
[9, 3, 5]
4,364,707
4,364,708
Binding Events rather than using onclick
<p>I have been told its better to bind events to elements rather than having <code>onclick</code>s with functions everywhere. I agree with this as it devolves more from the HTML which means cleaner and easier to debug code. </p> <p>But I am having trouble doing this! I loop through some data with PHP (see below) and I...
javascript jquery
[3, 5]
4,310,019
4,310,020
Making Subids And Postback Tracking Work
<p>I am coding a Bounty Script in Php. (Reward Script),using open source code from Prosper202.Trying to track leads with Subids and Postbacks.I am not able to get this stuff to work. Example.</p> <p>I would like to append Unique id at end of url. Like <code>http://google.com/c3={unique_id}</code></p> <p>Here Unique i...
php javascript jquery
[2, 3, 5]
2,674,772
2,674,773
how/where to store the page numbers when navigating to other page / portal
<p>I'm using an usercontrol (*.ascx) in a CMS system C#.NET </p> <p>I've got a Gridview which displays address. You hav a link on the line items and you can click on the items (link) which navigates to other page with querystring info and displays the detail information. When the user clicks on cancel/back it returns...
c# asp.net
[0, 9]
2,052,963
2,052,964
Why isn't my modified JavaScript showing up in the debugger?
<p>I have started my web application as website. I am calling JavaScript in it. Problem is in the script: the first time through, the script is working while debugging, but if I make any modification to the script and then try to debug it, control is moved to old lines and not new lines. I tried to rebuild, but still g...
asp.net javascript
[9, 3]
171,441
171,442
Is there an event that fires when an element's `class` attribute changes?
<p>I have a <code>&lt;ul&gt;</code> element on my page with a few children. A <code>class</code> attribute will be added to these children at some point, </p> <p>Before</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;/ul&gt; </code></pre> <p>After</p> <pre><...
javascript jquery
[3, 5]
2,387,859
2,387,860
Jquery: Add class unless there is a child of certain class
<p>I want to do an addclass, but only if it doesn't have a child of a certain class.</p> <pre><code>$selector.addClass('addthisclass'); </code></pre> <p>So I want:</p> <pre><code>&lt;div class="addthisclass"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt; </code></pre> <p>And nothing on here.</p> <pre><code>&lt;div&gt;&l...
javascript jquery
[3, 5]
2,702,544
2,702,545
Python to Javascript
<p>are there any tools for Windows to convert python to javascript?</p> <p>regards</p> <p>Alberto</p>
javascript python
[3, 7]
5,430,761
5,430,762
How to set input type="number" on dynamic textbox in c# codebehind
<p>I have a dynamically created textbox in a c#/asp.net web page that I want to adapt to mobile browsers. </p> <blockquote> <p>TextBox qtybox = new TextBox();<br> qtybox.ID="qtybox";<br> qtybox.Text = "0";<br> qtybox.Width = 30;<br> container.Controls.Add(qtybox);</p> </blockquote> <p>I see that on a I ca...
c# asp.net
[0, 9]
64,837
64,838
jQuery live hover
<p>I can't seem to convert the following into a live hover</p> <pre><code>$("li.favorite_item").hover( function () { $(this).append($(" &lt;a href='#' class='button'&gt;x&lt;/a&gt;")); }, function () { $(this).find("a:last").remove(); } ); </code></pre> <p>I've tried:</p> <pre><code>...
javascript jquery
[3, 5]
668,067
668,068
How get a real path value to file that store local on HDD from input or FileUpload?
<p>I have two file uploaders:</p> <pre><code>&lt;input name="targetFile" runat="server" id="File1" type="file" /&gt; &lt;asp:FileUpload ID="FileUpload1" runat="server" /&gt; </code></pre> <p>When I click to choose file (for example D:\Test.txt) the way to file appears on control, but when I get value control in java...
javascript asp.net
[3, 9]
3,134,038
3,134,039
Add/remove divs using jquery
<p>I changed my code to the following:</p> <pre><code>$(document).ready(function () { $('#add').on('click', function () { var $contacts = $(".contact"); $("&lt;div/&gt;").append($("&lt;input&gt;", { "type": "text", "name": "contact[" + $co...
javascript jquery
[3, 5]
5,948,456
5,948,457
jQuery -hot key combinations
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6655335/how-can-i-check-with-jquery-if-a-certain-word-is-typed-in-the-browser">How can I check with JQuery, if a certain word is typed in the Browser?</a> </p> </blockquote> <p>Ok, I have found this great plugin...
php jquery
[2, 5]
3,540,148
3,540,149
What number does 8e3 evaluate to?
<p>I encountered this code today:</p> <pre><code>b = setTimeout(function () { // do some javascript stuff here }, 8e3) </code></pre> <p>The timeout is set to <code>8e3</code>. What time does this equate to in milliseconds, and why would anyone choose this strange notation? The code appears to be fully functiona...
javascript jquery
[3, 5]
4,983,607
4,983,608
Selecting radial button according to its value jQuery / Javascript
<p>what im trying to achieve might be very simple but im stuck. Im tiring to select few radial buttons dynamically with its values by retrieving it from an object when the page loads. Here is what im trying:</p> <pre><code>var t_info = obj.tinfo; var h_info = obj.hinfo; $('input[value='+ t_info +']').attr('checked', ...
javascript jquery
[3, 5]
3,293,675
3,293,676
Adding different classed through looping
<p>I have a number of <code>li</code> elements, and I need to a class to the 1st, 4th and 7th, the 2nd, 5th and 8th, and the 3rd, 6th and 9th.</p> <p>Can this be done?</p>
javascript jquery
[3, 5]
2,750,077
2,750,078
jQuery add id to an element that is being appended to the body
<p>I have the following function:</p> <pre><code>simpleModal: function (data, id) { var responseHtml = data; // Append the modal HTML to the DOM var modalInstance = $('body').append(modalHtml); $(modalInstance).attr('id', id); $(id).find('.uiModalContent').width(480); ...
javascript jquery
[3, 5]
2,749,879
2,749,880
Change text on link while loading
<p>I have a asp button that while processing i would like the text on it.. How could achieve that?</p> <pre><code>&lt;asp:LinkButton ID="loadImages" runat="server" CssClass="button" onclick="loadImages_Click"&gt;Load Images&lt;/asp:LinkButton&gt; </code></pre> <p>So when I click, it will change the Load Images...
c# asp.net
[0, 9]
6,018,437
6,018,438
Check window's width function in resize()
<p>I want to check window's width in user visit url and if browser resize then do it again.<p> <br> Q1. If I only call the function <code>setcolamt()</code> in <code>resize()</code> it won't do anything <code>colmat</code>'s value same as before, I don't know why? I have to pull all code again just like the <code>comme...
javascript jquery
[3, 5]
1,824,711
1,824,712
Validation summary not showing
<p>Why my validation summary not show after i click ligin button in my login control. It supposed to show an error message if i leave it blank in username n password box right? Can you guys tell me what should i do? Im using a master page. Thank you.</p> <pre><code> &lt;asp:Login ID="Login1" runat="server" BackColo...
c# asp.net
[0, 9]
5,381,309
5,381,310
How to get checkbox preference value?
<p>I have checkbox in preferences. I want to keep screen on if checkbox is checked and not to keep screen on if checkbox is not checked.</p> <p>I want something like this:</p> <pre><code>boolean keepScreen = sharedPrefs.getBoolean("chck_screen", false); if (keepScreen.equals(false)) { getWindow().addFlags(Window...
java android
[1, 4]
763,606
763,607
How can I use a JavaScript file in my ASP.NET project?
<p>I want to use a JavaScript file, lying in the root folder. How can I include that JS file?</p>
asp.net javascript
[9, 3]
273,283
273,284
How can i extract the data that required from web page
<p>Hi all as per the requirement i am having i would like to extract the data from this site</p> <p><a href="http://loving1.tea.state.tx.us/lonestar/Menu_dist.aspx?parameter=101902" rel="nofollow">http://loving1.tea.state.tx.us/lonestar/Menu_dist.aspx?parameter=101902</a></p> <p>I would like to extract the data that ...
c# asp.net
[0, 9]
1,700,591
1,700,592
Add image to LinkButton programmatically
<p>I want to insert an image to a LinkButton programmatically like the following aspx code:</p> <pre><code> &lt;asp:LinkButton runat="server" &gt;&lt;img src="NewImages/tick.jpg" runat= "server" /&gt;&lt;/asp:Linkbutton&gt; </code></pre> <p>I am trying the following code:</p> <pre><code> LinkButton bb = (System.Web....
c# asp.net
[0, 9]
4,053,729
4,053,730
JQuery blockUI and ASP.Net?
<p>Well im using jQuery and blockUI in asp.net i love jquery and blockUI but i found a problem when displaying a panel with a asp.net button in them the actual button is moved out of the <strong>form</strong> tag, so when you click the button nothing happens..</p> <p>is there any way to configure blockUI to place its ...
jquery asp.net
[5, 9]
898,374
898,375
How to in case of timeout to execute method again and again until it completes successfully?
<p>I have asp.net application. All business logic in business layer.</p> <p>Here is the example of the method</p> <pre><code>public void DoSomething() { PersonClass pc = new PersonClass(); pc.CreatePerson(); pc.AssignBasicTask(); pc.ChangePersonsStatus(); pc.CreateDefaultSetti...
c# asp.net
[0, 9]
2,501,011
2,501,012
How to determine which page opened a class in another project?
<p>I use a separate project for my data layer and call one class within it clsData.cs. I'd like to know which page from the Presentation Layer (in another project within the solution) has referenced it from the clsData side, if that's possible</p>
c# asp.net
[0, 9]
2,875,372
2,875,373
replace.() does not work. Jquery
<p>I simply try to use the <code>.replace()</code> Jquery function. And it does not work.</p> <p>html: </p> <pre><code>&lt;div class="try"&gt; &lt;/div&gt; </code></pre> <p>js:</p> <pre><code>var valr='r'; valr.replace('r', 't'); $('.try').prepend('&lt;div&gt; ' + valr + '&lt;/div&gt;'); </code></pre> <p>Result...
javascript jquery
[3, 5]
2,726,207
2,726,208
Multiple js with (document).ready(function()
<p>I have on my page a search system , a slideshow and a carousel running with js, but the carousel doesn't run :</p> <p>The search begins with :</p> <pre><code>$('document').ready( function() { $("#search_query_top") </code></pre> <p>The slideshow begins with : </p> <pre><code>$(window).load(function()...
javascript jquery
[3, 5]
1,941,534
1,941,535
Handling page-specific JavaScript in PHP header files
<p>When designing a website in PHP, you typically have a <code>header.php</code> file that you include in every page on the site. The <code>header.php</code> file would include the <code>&lt;head&gt;</code> tag (among other things). However, I often find that I need to put page-specific JavaScript within the <code>&lt;...
php javascript
[2, 3]
2,739,508
2,739,509
How to grab an image tag from html via jquery
<p>So I have a data set that is returning something like this in the variable entry.content:</p> <pre><code>&lt;p style="float:right;margin:0 0 10px 15px;width:240px"&gt; &lt;img src="http://citysportsblog.com/wp-content/uploads/2011/09/RagnarNE.jpg" width="240"&gt; &lt;/p&gt;&lt;p&gt;Have you heard of the epic advent...
javascript jquery
[3, 5]
1,607,424
1,607,425
Set Activity title ellipse to middle?
<p>I have an Activity whose title keeps change, but sometimes its long and get ellipses by end. Can I set ellipse to middle ?</p>
java android
[1, 4]
2,625,432
2,625,433
Jquery accessing divs problem
<pre><code>$('div#searchResult &gt; div#searchResultItem &gt; div#item').hover(function() { alert($(this).text()); }); </code></pre> <p>Hi guys. Im doing a quick application on what i have learned on a tutorial site for jquery. I think of other ways on applying the functionality and came up with this code. The ...
javascript jquery
[3, 5]
2,209,851
2,209,852
Java webpage from a java class or method
<p>Say I have a java class with a method in that class which returns an integer. Now I want to have a webpage (Eg. HTML page) which would access this class and then method and display the result. </p> <p>how do I do this? What do i learn to do it? first of all what's this called? servlet? applet? what?</p> <p>Sorry. ...
java javascript
[1, 3]
2,347,338
2,347,339
Merge and bind two lists to a gridview
<p>I have two list of different objects :</p> <pre><code>List&lt;Report&gt; List&lt;Newsletter&gt; </code></pre> <p>each having a 'created date' property. I need to sort the created date of both lists in descending order and bind it to a gridview. </p> <p>How can this be done, as i can provide only one datasource? <...
c# asp.net
[0, 9]
4,566,833
4,566,834
How to run an array of function inside an array variable
<p>I'm trying to run series of functions i placed on a variable. </p> <p>Here's a (<strong><a href="http://jsfiddle.net/fGaHR/5/" rel="nofollow">demo</a></strong>)</p> <p><strong>Code:</strong></p> <pre><code>function pass_me(x) { alert(x); }; var colors = new Array(); var colors = ["pass_me('yellow');"...
javascript jquery
[3, 5]
5,307,057
5,307,058
in asp.net how can I dynamically hide one field based off anothers value?
<p>I have 4 asp:Textbox fields on a form. IDs being A1, A2 and B1, B2 for simplicity. If any one of the As or Bs is populated, I need to hide the other one. So I enter something in A1, hide A2, enter something in B2, hide B1.</p> <p>I thought I could use a javascript OnBlur event to do this but it doesn't do anythin...
javascript asp.net
[3, 9]
3,566,269
3,566,270
how to read web page without reading images , scripts , files
<p>how to read a web page without reading or requesting images , scripts , or files that used in web page.</p> <p>I want to do this with C# in a aps.net on a server .</p>
c# asp.net
[0, 9]
2,249,488
2,249,489
How to change javascript code to Jquery?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/10828381/how-to-convert-javascript-code-to-jquery-code">How to convert Javascript code to Jquery code?</a> </p> </blockquote> <p>I need to convert this javascript code to Jquery?</p> <p><code>eval("document.for...
javascript jquery
[3, 5]
64,636
64,637
Large amount of database shown on the webform
<p>I have a webform that gets the data from Microsoft Access, I built a dynamic table that has two for loops, lable control and image control. the table contain 4 columns. the problem is the stored database on Access table are too large for showing them on one web page. this is my c# code that was saved on filename.asp...
c# asp.net
[0, 9]
4,102,577
4,102,578
echo javascript funtion with php variables as arguments
<p>In test.php:</p> <pre><code>&lt;?php $result = "test"; echo '&lt;script type="text/javascript"&gt;parent.showThanksDiv(\"&lt;?php echo $result;?&gt;\");&lt;/script&gt;'; ?&gt; </code></pre> <p>and in test.html</p> <pre><code> &lt;script type="text/javascript"&gt; function showThanksDiv(text){ document.get...
php javascript
[2, 3]
4,533,484
4,533,485
What is Control's DesignMode property and how to use it?
<p><br> what is DesignMode property? When it is useful? I don't understand it from msdn definition <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.control.designmode.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.web.ui.control.designmode.aspx</a></p> <p>Some example? Thanks for ans...
c# asp.net
[0, 9]
828,007
828,008
Accesing the id attribute of the select tag from jquery
<p>I am looking for a way to access the id attribute of the select tag from jquery.</p> <p>say i have a select tag on the form : form.php</p> <pre><code>&lt;select id="testid"&gt; &lt;option value="1"&gt;1&lt;/option&gt; &lt;option value="2"&gt;2&lt;/option&gt; &lt;/select&gt; </code></pre> <p>from jquery I can acce...
php jquery
[2, 5]
4,578,213
4,578,214
Data underlyng e GridView
<p>I have a GridView. At event _RowDataBound I need take the underlying value from every single Field (ex let immagine FirstName), apply some logic to it, and display the field modify to a Textbox.</p> <p>My problem is I do not the syntax to get the values connected with the e.Row.DataItmem for a single row.</p> <p>A...
c# asp.net
[0, 9]
2,831,246
2,831,247
How to get the link dynamicallY?
<p>I have one problem.I have some directories which contain text files.I have read the full path of the directory and got the last one which contain the text file.Now I have dynamically ctreated the link to this directories and displayed them on the page.Now my problem is how to fetch the data from the text file contai...
c# asp.net
[0, 9]
2,451,369
2,451,370
How to add caption and sum a column?
<p>i want give caption DATE,PRICE1, PRICE2 and i also show sum of price1, price2 in the footer. how can i do this? </p> <pre><code>&lt;asp:Repeater ID="rptCari" runat="server"&gt; &lt;ItemTemplate&gt; &lt;div&gt; &lt;tr&gt; &lt;t...
c# asp.net
[0, 9]
2,687,336
2,687,337
Preload php dynamic images
<p>I have a php file that generates images (it puts an watermark on images) called image.php that receives and id <a href="http://localhost/image.php?id=1" rel="nofollow">http://localhost/image.php?id=1</a>. </p> <p>Does anybody know of a way to preload this images using javascript / jQuery?</p> <p>I tried the normal...
php javascript jquery
[2, 3, 5]
362,358
362,359
Changing the title of a link in jQuery
<p>I have a link with id "helpTopicAnchorId".</p> <p>I want to change its text in jQuery.</p> <p>How do I do this?</p>
javascript jquery
[3, 5]
1,144,326
1,144,327
Positioning of elements
<p>In my web app I have a line which looks like this:</p> <pre><code>small textbox large textbox select list </code></pre> <p>I have a method which is boolean. If it returns false, I need to make the upper line look like this:</p> <pre><code>small textbox select list large textbox </code></pre>...
javascript jquery
[3, 5]
4,580,369
4,580,370
Trouble with Web Deployment Project?
<p>I made an msi of the web application.When i deploy on the server its working perfectly fine.But for some reason its creating the App_Data folder with two files.i don't know why its getting created automatically ?Did any one face such situation ?</p>
c# asp.net
[0, 9]
3,120,962
3,120,963
Fade effect with timer?
<p>How to set a timer for a fade effect? Say text1 will fade out in 5 seconds, then text2 will appear, then it will fade out after 5 seconds, then text3 will appear. I'm not knowledgeable in jQuery. </p> <p>Say I have 3 texts:</p> <pre><code>&lt;div class= "text1&gt;Text 1&lt;/div&gt; &lt;div class= "text1&gt;Text 2&...
javascript jquery
[3, 5]
2,266,569
2,266,570
How to append check box in jquery
<p>How I add checkbox after span in below code.</p> <pre><code>var aaa = $('&lt;a/&gt;') .html("&lt;span&gt;" "&lt;/span &gt;" + " &lt;span&gt;""&lt;/span&gt; ") .attr('data-transition', 'slide') .appendTo(li); </code></pre>
javascript jquery
[3, 5]
1,173,242
1,173,243
How to call jquery function in a class file
<p>Hi all I have created a javascript which I want to use in my entire application, so I have created a class which returns string as follows</p> <pre><code> public static string ShowAlert(string pHeader, string pMessage) { StringBuilder sb = new StringBuilder(); sb.Append("&lt;script language='Jav...
c# javascript jquery asp.net
[0, 3, 5, 9]
2,965,403
2,965,404
JavaScript Closures and Memory Leaks
<p>I read in Jquery in Action that memory leaks can result from javascript closures.</p> <p>"Unintended closures can have unintended consequences. For example, circular references can lead to memory leaks. A classic example of this is the creation of DOM elements that refer back to closure variables, preventing those ...
javascript jquery
[3, 5]
2,477,196
2,477,197
How to change the name of the image that is being uploaded?
<p>I want to change the name of the image in file uploader using jquery.is there any chance to do that please let me know.I am struggling with that.</p> <p>I am using the regular html file uploader</p> <p></p> <p>Thanks, Sravz</p>
javascript jquery
[3, 5]
1,479,475
1,479,476
Passing variables to a PHP file through jQuery
<p>Really not familiar with jQuery. Is there anyway I can pass form data to a PHP file using jQuery?</p> <p>FORM:</p> <pre><code>&lt;div id="dialog-form" title="Fill in your details!"&gt; &lt;form&gt; &lt;fieldset&gt; &lt;label for="name"&gt;Name&lt;/label&gt; &lt;input type="text" name="name" id="name"/&gt; ...
php jquery
[2, 5]
2,029,825
2,029,826
Force download file with jquery and asp.net server side function call
<p>i have one image and i was just trying to show save as dialog box for downloading that image by jquery ajax call. when some one will click on button then a client side code run and here code as follows</p> <pre><code>$("#btnSaveAsImage").click(function () { if (_TrackNumber == '') { alert('Track Number ...
jquery asp.net
[5, 9]
3,803,942
3,803,943
JQuery - Javascript - .hasData() not working for me
<p>I am trying to check if an object with class sourceFocus has data in it. However when I check it, it does not have data when it should. What am I doing wrong here?</p> <pre><code>$('.source').click(function() { $('.source').removeClass('sourceFocus'); $(this).addClass('sourceFocus'); $(this).data('sou...
javascript jquery
[3, 5]
1,336,906
1,336,907
Get jquery formatted value
<p>I have a div like this : </p> <pre><code>&lt;td id="length" data-length=&lt;?php echo $length;?&gt; &gt; </code></pre> <p>And I want to get the value of my php variable ($length) in a jquery script.</p> <p>After that I have to format it to replace the comma with point.</p> <p>With this snippet : </p> <pre><code...
javascript jquery
[3, 5]
4,823,568
4,823,569
Getting reference to form with no id or name
<p>I am working on a project where I need to recall the fields entered in a form so I can repopulate them later. When a form has a name, I can remember it and then later use some JavaScript (document.getElementsByName(...)[0]) to access it. However, if there is no name...I'm at a loss for how to get a reference to it...
javascript jquery
[3, 5]
305,054
305,055
opacity in jQuery
<p>I want to make the opacity black ( if possible )</p> <p>My jQuery is:</p> <pre><code>jQuery('#list a[rel^="myPhoto"]').my422PortfolioThumbsHover({ defaultOpacity: 1, onMouseOverOpacity: 0.6, speed: 300, zoomImg: 'zoom.png' }); </code></pre> <p>I tried adding:</p> <p>background-color: #000000, int...
javascript jquery
[3, 5]
3,965,233
3,965,234
I need to fill text field programatically in a web page opened inside a WebView. How To?
<p>I have created a WebView and opened up a web page in it that contains a form. I need to fill that form programmatically (need to get some data form sqlite database and fill it). </p> <p>how i can do that ? can anyone please help me out.</p> <p>EDIT : the web page is a sign-up form and i do not own that web page.. ...
java android
[1, 4]
2,864,550
2,864,551
Using Alert in Response.Write Function in ASP.NET
<p>I have database code like this </p> <pre><code>try { string strConnectionString = ConfigurationManager.ConnectionStrings["SqlServerCstr"].ConnectionString; SqlConnection myConnection = new SqlConnection(strConnectionString); myConnection.Open(); string hesap = Label1.Text; string musteriadi = ...
c# javascript asp.net
[0, 3, 9]
5,223,473
5,223,474
jQuery function when one list item has the active class, I want all other list items to automatically not have the active class ?
<p>My webpage is at <a href="http://www.sarahjanetrading.com/js/status" rel="nofollow">http://www.sarahjanetrading.com/js/status</a></p> <p>All the HTML, CSS and jQuery code + images are available there for anyone to access.</p> <p>My issue is that currently the jQuery code I have only makes the active states toggle ...
javascript jquery
[3, 5]
5,314,452
5,314,453
List iterator causes heap allocations?
<p>I'm profiling my android game and surprised to see that:</p> <pre><code>for(O o : myArrayList) { } </code></pre> <p>Creates a bunch of heap allocations.</p> <p>Aside from using a numeric <code>i++</code> for loop, is there a better way to get around this problem? Can I preallocate my iterators or something?</p>
java android
[1, 4]
2,892,335
2,892,336
Update the database asynchronously
<p>I have a ListView in ASP.NET where one column consists checkBoxes. I want the user to be able to these CheckBoxes directly in the list (without having to go into edit mode). How I do that, I have received answers in <a href="http://stackoverflow.com/questions/5983132/get-database-id-from-a-row-in-listview-in-asp-net...
c# asp.net
[0, 9]
3,102,307
3,102,308
Create Google Image effect
<p>I am trying to create images effect just like when you search on Google images engine (like <a href="https://www.google.com/search?num=10&amp;hl=en&amp;site=imghp&amp;tbm=isch&amp;source=hp&amp;biw=1280&amp;bih=866&amp;q=seattle&amp;oq=seattle&amp;gs_l=img.3..0l2j0i3j0l7.959.2209.0.2359.7.5.0.2.2.0.141.538.1j4.5.0.....
javascript jquery
[3, 5]
5,869,786
5,869,787
PHP array to echo javascript array that I can access?
<p>I have a php array called $user.</p> <p>At the minute I am getting the variables across to javascript by manually adding them like so.</p> <pre><code>var username = ' . $user['username'] . '; </code></pre> <p>And so on is there a way I can make php echo a javascript array that I can access?</p>
php javascript
[2, 3]
4,743,410
4,743,411
How to make drop down menu enable with only one value
<p>I have a drop down menu that retrieved ID from database and four labels. From the user id, the labels will display data that belongs to the ID. In my case, the ID only has 1 value which it makes the auto post back not refresh the page. Is there any ways to make the labels show the data?</p> <pre><code> &lt;asp:Dro...
c# asp.net
[0, 9]
3,472,149
3,472,150
accessing one window from another
<p>Say we have got 2 windows:<br /> 1) the main one;<br /> 2) pop uped;</p> <p>Is it possible to change the DOM of the first window after the second window was closed?<br /> <strong>N.B.</strong> In second window(the pop-up) were some redirection(with full page reload).</p> <p><strong>P.S.</strong><br /> <s>I've put ...
javascript jquery
[3, 5]
4,491,959
4,491,960
Settings Selector Dynamically in JQuery
<p>I have a table whose values are being generated dynamically with PHP, including the id and name attributes (e.g. id="question_".</p> <p>How can I set an element attribute with this in mind? For example, I have a div whose text will change after a successful ajax call, but the id is dynamic. </p> <p>I have tried ma...
php jquery
[2, 5]
1,296,380
1,296,381
Creating product relations using PHP/Ajax/jQuery
<p>I'm working on a self-made e-shop CMS and in the backend and I need to be able to create relations between products. When adding a new product I want to be able to open a popup window in which I can select the related products and then, when I close the window, I need the selected items to be sent back to a field on...
php javascript jquery
[2, 3, 5]
4,865,640
4,865,641
How to run asp.net application
<p>How to run asp.net application with encrypted web.config ,is it possible note that ASP.NET application have a database with encrypted connectionstring and a "cannot read connection string " message is generated </p>
c# asp.net
[0, 9]
2,306,544
2,306,545
Setting a textbox value by JQuery
<p>I am setting a <code>TextBox</code> controls value via an ajax post.</p> <pre><code>$('#txtSite').val(msg.d.SiteName); </code></pre> <p>This is working and the value of the <code>TextBox</code> is altered correctly. But, when I come to posting the information to the database, the <code>txtSite.Text</code> value i...
jquery asp.net
[5, 9]
4,755,931
4,755,932
section of n number of items from a list
<p>I need to select three li on each click function. I need to hide all lis except first three. And on a click function I need to hide the first three li and need to show the next 3 items. How it is possible?</p>
javascript jquery
[3, 5]
3,159,208
3,159,209
multiple functions in the document.ready function
<p>here's my code:</p> <pre><code>$(document).ready(function () { $('.flip1').click(function () { $('.panel1').slideToggle("slow"); }); $('.flip2').click(function () { $('.panel2').slideToggle("slow"); }); $('.flip3').click(function () { $('.panel3').slideToggle("slow"); ...
javascript asp.net jquery
[3, 9, 5]
2,818,937
2,818,938
Display Machine name on a label on master page
<p>I have a label on master page on which I want to display the machine name. I am using this but its not working: </p> <pre><code>&lt;asp:Label ID="Label1" style="font-size: large; color: #009999" runat="server" Text= 'MACHINE NAME IS &lt;%# Environment.MachineName %&gt;' &gt;&lt;/asp:Label&gt; </code></pre> <p>H...
c# asp.net
[0, 9]
1,575,148
1,575,149
JavaScript to add class not working?
<p>I have the following JS function:</p> <pre><code>function addTopLinks() { $('#calendar .fc-view-resourceNextWeeks thead th .fc-resourceName') .addClass('top-cell'); }; </code></pre> <p>It is not adding the class.</p> <p>I have another:</p> <pre><code>function addDayClass() { $('#calendar .fc-view-resou...
javascript jquery
[3, 5]
3,800,834
3,800,835
setText("test") is freezing UI
<p>I dont understand</p> <p>I have a background thread which gets cpu load and then set it to text view</p> <p>Problem is when setText() method is executed UI freezes for a second, i can feel it when scrolling through other elements of ui</p> <pre><code>Runnable runnable = new Runnable() { @Override ...
java android
[1, 4]
195,700
195,701
how to update the every sec in jquery
<p>I am trying to get the data from the php file and update every second so when the information changes in the php file it will auto update </p> <pre><code> $(document).ready(function() { $.ajaxSetup ({ cache: false }); $("#hidden").hide(); $("#textfield").val(""); $("#textarea").val(""); var hol=$(th...
php jquery
[2, 5]
1,307,778
1,307,779
Jquery to javascript for small device, light code needed
<p>Okay so I'm new to javascript but I can handle jquery quite well... but jquery on a small mobile web experience is realy heavy... some time it's even too mutch.</p> <p>so I have this code that simply pop's up my menu bar and i wondered if there was any light way of geting this?</p> <pre><code>$(function() { $(...
javascript jquery
[3, 5]
5,000,574
5,000,575
Problem in using float on Android
<p>I am going to develop a calculator on android platform, it is fine in calculating numbers less than 1000000, when I tried to add 1000000 with 0, the result is "1.0000E7"?! I try to change the type of result from float to double, but the problem is still here, I try to use long, result becomes normal, but it cannot c...
java android
[1, 4]
6,014,317
6,014,318
Foreach loop javascript failing
<p>Why does this each statement cause my code to break? Also do I have to set an index with javascript?</p> <pre><code>var email = []; email['update'] = true; email['e_case_id'] = $("#e_case").val(); var i = 0; $.each($('.rowChecked'), function() { email['e_attachments'][i] = $(this).attr('id'); i++; }); </...
javascript jquery
[3, 5]