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
2,330,209
2,330,210
Bind gridview on user control
<p>I have a 2 usercontrol on a aspx page. 1 control is having search creteria and search button and 2nd usercontrol is having gridview.</p> <p>How do I bind gridview when user enter creteria and click on search button.</p>
c# asp.net
[0, 9]
3,488,045
3,488,046
Pop up onload for scamming mirror domain
<p>Is there a way to have a popup show up on a site that's mirroring a site I control, but not show up on the site that I control?</p> <p>Background info:</p> <p>A site I work on, Safam.com, is being mirrored by another site, greaseonbroadway.com. I assume this is some sort of odd mistake, but the fact is that grease...
javascript jquery
[3, 5]
4,446,598
4,446,599
How to Compile projects in another console application
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3297427/place-all-output-dlls-in-common-directory-from-visual-studio">Place all output dlls in common directory from Visual Studio</a> </p> </blockquote> <p>I have a solution which is having 15 projects. Now i w...
c# asp.net
[0, 9]
4,688,572
4,688,573
Generate my links automatically
<p>I would like to generate my links automatically via a static class in each of my aspx pages (or in a common BasePage).</p> <p>Currently I use this:</p> <pre><code>private const string TEMPLATE = "~/One.aspx"; public static string Link () ( string link = String.Format(TEMPLATE); return link; ) </code><...
c# asp.net
[0, 9]
1,684,802
1,684,803
jQuery authoring and closure
<p>I'm reading about writting <a href="http://docs.jquery.com/Plugins/Authoring" rel="nofollow">jQuery plugins</a> an there is a section that talks about preserving dollar sign notation so that it doesn't collide with other libraries that use it. </p> <p>It says: </p> <blockquote> <p>it's a best practice to pass ...
javascript jquery
[3, 5]
504,042
504,043
Auto fade/show between multiple divs
<p>What's a simple jQuery script I can load on my webpage that will auto fade between each of the three "box" divs, and repeat? I'd like it to show a div for 5 seconds while hiding the other two, then run a 1 second fade transition into the next.</p> <p>The three div's are currently stacked on top of each other.</p> ...
javascript jquery
[3, 5]
698,171
698,172
Jquery animate on background position not working
<p>Can anybody tell me why this jquery isnt working?</p> <p>I have a list like so:</p> <pre><code> &lt;div id="services"&gt; &lt;h1&gt;Services&lt;/h1&gt; &lt;ul&gt; &lt;li class="menu"&gt;&lt;a href="#"&gt;menu item1&lt;/a&gt;&lt;/li&gt; &lt;li class="menu...
javascript jquery
[3, 5]
327,348
327,349
Type mismatch: cannot convert from StringBuilder to String
<p>This method returns the source of the given URL. </p> <pre><code> private static String getUrlSource(String url) { try { URL localUrl = null; localUrl = new URL(url); URLConnection conn = localUrl.openConnection(); BufferedReader reader = new BufferedReader( ...
java android
[1, 4]
4,322,037
4,322,038
How I can execute a javascript function by placing it inside head tag with runat="server" attribute in page having Master pagewith head tag
<p>How I can execute a javascript function by placing it inside head tag with runat="server" attribute. My page is using Master Page that already contains head tag with runat="server" attribute. As obvious I can use just head in my page but not with runat="server" attribute. Is it possible to execute the javascript...
c# javascript asp.net
[0, 3, 9]
3,614,487
3,614,488
jquery editable extra button/link
<p>I am using jquery's editable and with submit and cancel I also want to 1 extra button for other functionality... can anyone help?</p>
javascript jquery
[3, 5]
5,108,656
5,108,657
clientid is not found in javascript
<p>am getting error like this:</p> <p><code>'System.Web.UI.WebControls.TextBox'</code> does not contain a definition for <code>'ClentID'</code> and no extension method <code>'ClentID'</code> accepting a first argument of type <code>'System.Web.UI.WebControls.TextBox'</code> could be found (are you missing a using dire...
javascript asp.net
[3, 9]
4,081,545
4,081,546
How to apply javascript on <asp:Buttonfield>?
<p>I want to apply javascript on <code>asp:buttonfield</code> , when click on button then display message. Like Delete Button confirm message. </p>
javascript asp.net
[3, 9]
4,843,425
4,843,426
What is the difference between Extends Application and Extends Activity in Android?
<p>I am confused as to the difference between the two. In my application I have just used Extends Activity and the application is working perfectly, so what is the purpose of Extends Application?. </p> <p>Would you use it on the first class you create in the Android application?</p> <p>Thanks.</p>
java android
[1, 4]
5,310,901
5,310,902
Jquery: pass attr, destroy attr
<p>How do I turn this: </p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href="Menu1"&gt;Menu 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="Menu2"&gt;Menu 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="Menu3"&gt;Menu 3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>Into this:</p> <pre><code>&lt;ul&gt; &lt;l...
javascript jquery
[3, 5]
2,146,338
2,146,339
Passing additional arguments into the OnClick event handler of a LinkButton using Javascript
<p>I have a ASP.NET Website, where, in a GridView item template, automatically populated by a LinqDataSource, there is a LinkButton defined as follows:</p> <pre><code>&lt;asp:LinkButton ID="RemoveLinkButton" runat="server" CommandName="Remove" CommandArgument='&lt;%# DataBinder.GetPropertyValue(GetData...
asp.net javascript
[9, 3]
521,489
521,490
Jquery disable button until ready
<p>I am in the middle of this site here <a href="http://offline.raileisure.com/" rel="nofollow">http://offline.raileisure.com/</a></p> <p>the booking section on the right hand side, I need to be able to disable the book now button until the date,duration and adult and children numbers are set..</p> <p>I can't work ou...
javascript jquery
[3, 5]
4,537,880
4,537,881
Failing to set multiple attributes using .attr()
<p>how can I set the <code>.attr()</code> of my <code>iframe</code> by using the variable <code>attrs</code> made below ?</p> <pre><code>iosocket.on('content', function (object) { var attrs = ''; for (var key in object) { attrs = attrs.concat(",'" + key + "':'" + object[key] + "'"); } attrs = '...
javascript jquery
[3, 5]
4,420,782
4,420,783
Input controls wont disable in FireFox, but do in Chrome?
<p>I'm using jQuery 1.6.2 and calling a function to disable some html text input controls, based on a date. The code works as expected in Google Chrome, but not in Firefox. I was using .attr, but switched it to .prop. It still works in Chrome, but not Firefox.</p> <p>Here is my jQuery code.</p> <pre><code> // Get th...
javascript jquery
[3, 5]
3,768,977
3,768,978
Why is this script failing to run?
<p>For whatever reason ths works when run from console:</p> <pre><code>var wh=window.innerHeight; var h= wh-345; $('.hidehome').attr('style', 'display:block;height:'+h+'px;width:100%'); </code></pre> <p>but this doesn't:</p> <pre><code>$(document).ready(function() { var wh=window.innerHeight; var h= wh-345; $('.hide...
javascript jquery
[3, 5]
3,612,446
3,612,447
Android unexcpected error
<p>I am a beginner of Android and i need a bit hints and help. I am using following code</p> <pre><code> public class WifiHotSpotActivity extends Activity { private Button adnew = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
java android
[1, 4]
3,232,633
3,232,634
jquery display an alert after each 50 seconds, how to?
<p>anybody knows an easy way to display an alert after each 50 seconds in jquery (infinite loop)</p>
javascript jquery
[3, 5]
2,490,985
2,490,986
Android Disable all buttons
<p>I programmatically am creating buttons as depending on certain factors their will either be 3 or 4 buttons.</p> <p>In some instances I would like to create all of the buttons but disable them all. At the moment the problem I have is that I cannot access the buttons from outside of this loop</p> <pre><code> if (...
java android
[1, 4]
1,924,920
1,924,921
jQuery shorthand
<p>Is there any more elegant way to write that? :</p> <pre><code>var AllOperation = $('#menu &gt; li.operation'); var Operation1= AllOperation[0]; $(Operation1).addClass('operation-first'); </code></pre>
javascript jquery
[3, 5]
4,898,132
4,898,133
word counter Javascript function call
<p>Wanted to have a word counter next to a input textbox on the website</p> <p>Got it working to show the count when the user click or modify the text but I wanted to load up straight away when the page finish loading.</p> <pre><code>$(document).ready(function() { $("#product_name").change(displayText).keyup(displ...
javascript jquery
[3, 5]
3,472,551
3,472,552
Do i need to close a MySqlConnection in asp.net?
<p>I've read that in PHP non-persistent open links are automatically closed at the end of the script's execution. So what's up with asp.net?</p>
c# asp.net
[0, 9]
4,615,725
4,615,726
Moving a Div to the Y position of a hovered Div (JQuery)
<p>My question is simple..</p> <p>I have a grid of images on the left, and on the right, I have a "slider box".</p> <p>When I hover over an image on the grid, I want the slider box to move to the Y position of the image I've hovered over, so they line up horizontally. What would be the best way to achieve this?</p>
javascript jquery
[3, 5]
4,067,751
4,067,752
A very basic JavaScript question about the document.write function
<p>I'm new to JavaScript as well as jQuery. This is the only code I have on an otherwise blank page:</p> <pre><code>&lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { document.write('Hello World'); ...
javascript jquery
[3, 5]
1,064,574
1,064,575
Can't put a inline tag inside of a html input tag
<p>I have a input tag like:</p> <pre><code>&lt;input src="..." title="&lt;%= SomeResource.Label1 %&gt;" /&gt; </code></pre> <p>It is not rending the text, it is rendering the actual value in the title attribute:</p> <pre><code>&lt;%= SomeResource.SoeLabelInMyResourceFile%&gt; </code></pre> <p>I tried single quote...
c# asp.net
[0, 9]
4,777,286
4,777,287
ASP.net page_load doesn't detect session
<p>I have a problem with using <code>session</code> variable in the <code>page_load</code>. I have a page (<code>members.aspx</code>) which is a members area. </p> <p>If the user isn't <code>logged</code> in, it will display a form asking them to login. The form submits their details, checks if ok then sets <code>sess...
c# asp.net
[0, 9]
1,546,897
1,546,898
how can i print a web page in asp.net
<p>i am trying to convert and download webpage to a pdf file, but i am getting some error to download,my code is here,i do not have any problem if i remove image means their is no problem</p> <pre><code>protected void btnPDF_Click(object sender, EventArgs e) { Response.ContentType = "application/pdf"; Respons...
c# asp.net
[0, 9]
5,041,036
5,041,037
Jquery - wait until one movement is complete until the next fires?
<p>hope your all good... Another question :/</p> <p>Heres the page im working on:</p> <p><a href="http://beelinetest.site50.net/uw_virtual_tour.html#" rel="nofollow">http://beelinetest.site50.net/uw_virtual_tour.html#</a></p> <p>Its not a huge problem, but if you press the tabs quickly- two will shoot up- what can i...
javascript jquery
[3, 5]
5,560,905
5,560,906
select an input by value?
<p>I have a bunch of hidden inputs on a page...</p> <pre><code>&lt;input type='hidden' name='thing' value='' /&gt;; &lt;input type='hidden' name='thing' value='' /&gt;; &lt;input type='hidden' name='thing' value='' /&gt;; </code></pre> <p>Etc...</p> <p>Each input can have an arbitrary value.</p> <p>In jquery, what ...
javascript jquery
[3, 5]
3,395,721
3,395,722
Displaying a list of images based on a folder
<p>I am so rusty and looking for assistance. I have loaded a few image files into a folder on my web server (So, uploaded them). I now want to simply display them, one underneath each other on as aspx page. So, I want to iterate through all image files in a folder, and display them on a page.</p> <p>The easiest way wo...
c# asp.net
[0, 9]
755,195
755,196
how to create jquery function using onstart and oncomplete
<p>I'm trying to create my own jquery function, I know how to add options but don't know how to add 'onStart' or 'onComplete' functionality.</p> <p>this is what I know so far:</p> <pre><code>jQuery.somefunctionname = function (options) { var settings = {}, defaults = { 'someoption': 'somevalue', '...
javascript jquery
[3, 5]
4,444,823
4,444,824
Get hidden field text to appear in textbox
<p>I encountered a problem. I wish to get a hidden field text to appear in a textbox when I click on a button so I can show the user what the input is. It is necessary for me to use a hidden field, as I'm getting the hidden field value via javascript.</p>
c# asp.net
[0, 9]
5,614,787
5,614,788
How to create Multi language website in aspx with database
<p>How to create Multi language website in aspx where database store translations? I search many articles but there is not uniq solution.</p> <p>Anyone have good isea or know any good article?</p>
c# asp.net
[0, 9]
811,561
811,562
JQuery - generating a grid from a list of words
<p>Currently this script takes the words from the list and generates a grid, giving the words random positions each time. When the words are generated I want them to be split into individual characters, into cells next to each other so the word still makes sense - how do I do this? </p> <pre><code> var listOfWords = ...
javascript jquery
[3, 5]
173,059
173,060
get first occurred only in an array
<p>i have an arrayX of three elements , and i'm using $.inArray() to search for this three element in another arrayY ... and returning the location for each X element in Y</p> <pre><code>X = [1,2,3] ; y = [1,5,6,1,6,9,3,2] ; </code></pre> <p>But there is duplication in <code>y</code>, 1 occurred twice in <code>y[0]</...
javascript jquery
[3, 5]
333,613
333,614
jQuery/Javascript will chaining be the solution?
<p>dummy.html:</p> <pre><code>&lt;button id="do"&gt;Do&lt;/button&gt; </code></pre> <p>external.js:</p> <pre><code>$("#do").click(function() { history.go(-1); alert('One page back'); history.go(1); alert('back from were you started'); }); </code></pre> <p>Will execute history.go(-1); and end.</p> <p>In the...
javascript jquery
[3, 5]
3,076,900
3,076,901
How to check if either none or all textboxes in an ASP.NET page have text entered?
<p>I am creating an invoice application and in the section where the user can enter line items, some of the fields will include: Quantity, Price, Extended Price, Description, etc.</p> <p>If the user enters something into any of the fields, the corresponding fields are required, but if no data is entered into any field...
c# asp.net
[0, 9]
2,112,683
2,112,684
Can't get index of element
<p>I'm trying to get the index of the current item <code>&lt;p&gt;</code> but I have nothing. I get only the index of the first element <a href="http://jsfiddle.net/T4uVG/7/" rel="nofollow">http://jsfiddle.net/T4uVG/7/</a></p>
javascript jquery
[3, 5]
4,739,495
4,739,496
Getting "Too much recursion" error while using jQuery form plugin
<p>I am using jQuery form plugin to submit my form. It has a file element and when I am submitting it I am getting "too much recursion" in Firefox. It looks fine in IE 8. It works fine if I submit the form without selecting any file. Any idea?</p> <p>I am calling <code>ajaxForm()</code> method this way. <code>jQuery("...
javascript jquery
[3, 5]
550,749
550,750
display 1st image inside id
<p>Interested to know if I can use jQuery to find the first image on the page and display it inside a resized to a thumbnail with click to enlarge. For example, on this particular blog, when the client adds an image to the post, jQuery will find the first image, display it as a clickable thumbnail in a particular loca...
javascript jquery
[3, 5]
5,683,798
5,683,799
Regarding soapfault error while developing android application
<p>I am getting soap fault error as </p> <blockquote> <p>SoapFault - faultcode:'soapenv.Server',faultstring:'2'faultfactor:'null'detail:org.kxml2.kdom.Node@40d45cc8</p> </blockquote> <p>will u please anyone help me to get rid of this error?</p> <p>I am posting my code here</p>
java android
[1, 4]
5,743,435
5,743,436
Android: Download Object
<p>So I am trying to download and load an object from a file stored on a webserver. The code I use is inside a try-catch block in an AsyncTask:</p> <pre><code>URL url = new URL("http://www.mydomain.com/thefileIwant"); URLConnection urlConn = url.openConnection(); ObjectInputStream ois = new ObjectInputStream(urlConn.g...
java android
[1, 4]
5,407,902
5,407,903
need to get value from the database and populate a drop down list using jquery
<p>hi i need to populate a drop down list when i select a certain value , and the options need to be queried from the database ..</p> <p>can i achieve this from jquery ? if i can then please i would appreciate any help..</p>
php javascript jquery
[2, 3, 5]
5,079,574
5,079,575
jQuery CSS animation for background image
<p>I have this javascript code :</p> <pre><code>$(".linksColl a li").hover(function () { $(this).css({ "background-image" : "url(images/links/linkHover1.png)", "background-position" : "center center", "background-repeat" : "no-repeat"}); ...
javascript jquery
[3, 5]
309,471
309,472
javascript: hacking a string to be sent in a jQuery post (form serialization)
<p>I am using serialize() in an ajax() call. However, I only want to send some fields - more specifically, I don't want to send the content field - as this contains a lot of verbose text - and is not needed.</p> <p>I tried using <strong>$('#elem_id').serialize()</strong></p> <p>but that returned an empty array (yes '...
javascript jquery
[3, 5]
4,027,230
4,027,231
Path problem with javascript/php
<p>I've been developing my site with the site directory structure as</p> <pre><code>www img javascript include index.php </code></pre> <p>Now I want to change it to</p> <pre><code>www index.php dir1 dir2 ... themes theme1 img javascript include in...
php javascript
[2, 3]
1,862,507
1,862,508
How can I stop a repeating function when the mouse is clicked?
<p>I could really use some help. I have a javascript / jquery slider below that repeats over and over. I would like it to stop repeating when a specific button is clicked if possible. I am a complete novice and it took a lot to get to this point! Any help would be greatly appreciated.</p> <pre><code>$(document).ready(...
javascript jquery
[3, 5]
2,497,709
2,497,710
Is there an event that occurs after paste?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3211505/detect-pasted-text-with-ctrlv-or-right-click-paste">Detect pasted text with ctrl+v or right click -&gt; paste</a> </p> </blockquote> <p>I'm coding a js editor now. I want to do something (detect pasted t...
javascript jquery
[3, 5]
5,783,843
5,783,844
html() and click handler
<p>I initially got this code and all works well:</p> <pre><code>&lt;div class="rm"&gt; &lt;button id="sub" type="submit"&gt; &lt;span&gt;Registo&lt;/span&gt; &lt;/button&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $(".rm&gt;#sub"...
javascript jquery
[3, 5]
494,523
494,524
jQuery: Use of undefined constant data assumed 'data'
<p>I am trying to use jQuery to make a synchronous AJAX post to a server, and get a JSON response back.</p> <p>I want to set a javascript variable msg upon successful return</p> <p>This is what my code looks like:</p> <pre><code>$(document).ready(function(){ $('#test').click(function(){ alert('called!'); ...
php jquery
[2, 5]
5,025,294
5,025,295
Get selected row id
<p>I am using below jquery to get selected row id</p> <pre><code>&lt;script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; //MainContent_tbl $(document).ready(function () { $('#MainContent_tbl tr').click(funct...
jquery asp.net
[5, 9]
516,485
516,486
A general question about javascript
<p>[s]I have some javascript scripts running on my server[/s] that i am using to track user information (IP/usernames etc). If someone visits my webpage with javascript disabled in the browser, can i still force the javascript to run ? </p> <p>If not, can I put any php code instead to grab the username? Sorry I am new...
php javascript
[2, 3]
1,759,567
1,759,568
Creating a for each loop on multitple letters using jquery
<p>im working on an mobile web application, which uses data from a .jsp page in the same directory. I made it possible to get formdata and put it in a variable using jQuery's .val().</p> <p>now i have created an array of the input, and want to loop it using the $.each. Only problem is when i try to create the loop, it...
javascript jquery
[3, 5]
647,186
647,187
finding whether a value exists in a javascript object with jquery
<p>I am trying to determine whether a object contains a specific value so that I can be sure not append the value I am looking for more than once and prevent recursion.</p> <p>I have tried lots of methods but can't get any of them to work:</p> <pre><code>data = [ {val:'xxx',txt:'yyy'}, {val:'yyy',txt:'aaa'}, {v...
javascript jquery
[3, 5]
5,777,944
5,777,945
jQuery, next, prev, cycling to first and last
<p>Sorry for this confusing title. What i'm trying to do is a function (or just a simple way), which will do simple <strong>.next()</strong>, but if there's no next element, match first. And the same for <strong>.prev()</strong> - if there's no previous element, match last. So i made it this way:</p> <pre><code>var cu...
javascript jquery
[3, 5]
3,485,382
3,485,383
Piggybacking JS on a plugin's original
<p>I have a plugin that uses the .live method (now deprecated) to execute code on a particular link. What's the best way to piggyback more javascript onto this method without modifying the plugin's original JS file?</p> <p>I'd like to keep my changes as separated as possible so that updated the plugin is less of a he...
javascript jquery
[3, 5]
4,706,138
4,706,139
access other properties of a databound repeater in codebehind
<p>I have a repeater bound to a datasource, in the itemtemplate for the repeater i have a link button</p> <p>im using stuff like: <p>&lt;%# Eval("myfield") %></p> to get data for the item.</p> <p>i need a linkbutton in there that when clicked I can access all the properties relevant to that item in the onclick event...
c# asp.net
[0, 9]
761,410
761,411
When a mouse over the link ,create a preview of a website?
<p>I am using tiptip and there is option of create a box when a link is mouseover.</p> <p>So, the only way to do this is to get a screenshot of the html (how?) and using tiptip to do the popup preview, are there any way to do it more directly? </p> <p>Since there are >30 html website i need to create a preview, than...
php jquery
[2, 5]
195,324
195,325
How to locate a file on multiple directories using C#
<p>I am searching for a file say "abc.txt" on multiple directories. These directories are comma seperated values like </p> <pre><code>string paths= 'C:/hello,D:/Hello'; </code></pre> <p>How can I search for "abc.txt" using the above comma seperated directories?</p> <p>Thanks.</p>
c# asp.net
[0, 9]
3,241,133
3,241,134
format number to price
<p>I have seen a few of these jquery things going on, and just wondered if there was a simple number formatting script.</p> <p>Essentially, all we wish to do, is format ( client side ) for checking purposes only, the number entered in a field. To show somewhere else on the page ( presumably in a div ) the formatted pr...
javascript jquery
[3, 5]
730,755
730,756
Calling a jquery function on row click of Asp.Net Gridview
<p>I am using <code>Asp.Net/C#</code> in my project , in one of my pages I have a <code>GridView</code> and I am using the following line to handle row click </p> <pre><code>e.Row.Attributes.Add("onclick", "location='Default.aspx?id=" + e.Row.Cells[0].Text + "'"); </code></pre> <p>This is working fine , however I hav...
jquery asp.net
[5, 9]
3,632,959
3,632,960
How to fix IllegalStateException error when trying to update a listview?
<p>I am trying to get this code to run, but I get an IllegalStateException when I run this code saying that the content of the listview wasn't notified, yet I have a notification upon updating the data. This is a custom listview adapter. Here is the relevant part of my code:</p> <pre><code>class LoadingThread extend...
java android
[1, 4]
2,869,015
2,869,016
Efficent function replaceWith for multiple classes
<p>The second "click" function of this script doesn't work, I think it's simply a syntax issue. I'm quite new to this. But I need to find a simple way call the live "click" function once for an array of vars.</p> <p>The script works, just not the second part.</p> <p>I'm looking for an efficient way to replaceWith an ...
javascript jquery
[3, 5]
632,486
632,487
Jquery and PHP rating function problem
<p>I know that I was already posted similar question but I just can't find the answer and figure it out how to solve this problem.</p> <p>I'm trying to customize Jquery Star Rating plugin (<a href="http://php.scripts.psu.edu/rja171/widgets/rating.php" rel="nofollow">link text</a>) but I do not know what to do to show ...
php jquery
[2, 5]
4,660,960
4,660,961
Get ID of filtered element
<p>I have multiple elements that share a class. At any given time, one of them may be visible. I can determine that one of them is visible, but how do I get it's ID?</p> <p>n is the ID of an element that has been clicked, 1-4. I want to see if n matches the ID of the visible element so that no action is taken if the m...
javascript jquery
[3, 5]
3,710,704
3,710,705
The false element in a Logical operation
<p>I wish to know if there's some way to know which is the elemnet of a logic operation is false?<br> Example. </p> <pre><code>if( String.IsNullOrEmpty(obj1) || (String.IsNullOrEmpty(obj2) ) throw("..............."); </code></pre> <p>How can I kown which one of those is the empty one? </p>
java c#
[1, 0]
5,948,237
5,948,238
Which language is most suitable for an efficient web-crawler?
<p>i need to write an web crawler and i need need which is best language for performance like memory and performance ..</p> <p><strong>Edit:</strong> Original title was "which language is optimized for speed and perfomance c++ or C#"</p>
c# c++
[0, 6]
3,483,594
3,483,595
Return array from JSON file with JQuery?
<p>I have a JSON file that contains the following: [{name:joe,number:4},{name:ralph,number:76}]</p> <p>Simply put, I'm trying to create a function that returns that as an array:</p> <pre><code>function createArray(){ x = $.getJSON("/names.json", function(json) { var myArray = []; $.each(json, func...
javascript jquery
[3, 5]
767,008
767,009
Edit serverside files in JS
<p>i am making some script for some personal use. Now i tend to keep my CD collection list in a html file which has some sleek design, but i am tired of editing the list by "hand" and that means that i don't want to edit the code everytime i add new CD. So is there a way that i can use JS or JQuery so i could add/read ...
javascript jquery
[3, 5]
326,605
326,606
How to get the id of the checkbox that has just been checked by the user using jQuery?
<p>I have an asp.net repeater which binds the memberid to the id of the checkbox wrapped in a fieldcontain of jquery mobile.</p> <pre><code>&lt;div data-role="fieldcontain" style="margin: 0px"&gt; &lt;fieldset data-role="controlgroup"&gt; &lt;asp:Repeater ID="rpt" runat="server"&gt; &lt;ItemTem...
c# jquery asp.net
[0, 5, 9]
3,784,280
3,784,281
Android UI - align buttons in the centre, order vertically
<p>I'm trying to create a UI that has a banner on the top but one table row below has a list of buttons ordered vertically, but aligned horizontally...</p> <p>My code so far is...</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p> </p> <pre><code>&lt;Button android:id="@+id/button1" andro...
java android
[1, 4]
4,400,768
4,400,769
How do I get a Font from a string?
<p>In the the <code>System.Web.UI.DataVisualization.Charting.Chart</code> control a font can be set by referring Font by it's family name. How do I do something similar in code?</p> <pre><code> &lt;asp:Chart runat="server"&gt; &lt;legends&gt; &lt;asp:Legend Font="Microsoft Sans Serif, 8.25pt, style=Bold"...
c# asp.net
[0, 9]
287,720
287,721
How to make a button in an iframe trigger a function on a specific object in the parent window?
<p>I have the following 2 html files, INDEX.HTML and FRAME.HTML, which is shown in an iframe on INDEX.HTML. When I click button1, I get the alert "action1: your value 1". A click on button2 shows the alert "action1: your value 2".</p> <p>My question is, how can I make an onclick on button3 that triggers action2 on the...
javascript jquery
[3, 5]
1,119,602
1,119,603
which is the best way to show a status message in asp.net
<p>Which is the best way to show a status message in asp.net. For example, after saving data to DB I want to show a message like 'Data Saved Successfully". I would like to know which is the best way to show this kind of status message in asp.net.</p> <p>Thanks All.</p>
javascript asp.net
[3, 9]
2,690,524
2,690,525
Using jQuery for alternating png transition
<p>Very basic question. I have a very simple web design utilizing a png with transparency, overlaying another base image. The idea here is that it cycles visibility continously, fading in quickly, displaying for a longer interval, fading out quickly, and remaining invisible for an equal longer interval, basically repli...
javascript jquery
[3, 5]
1,686,073
1,686,074
New page - no ajax? but ajax?
<p>Look at this page: <a href="https://github.com/mozilla/chromeless/tree/master/examples/first_browser" rel="nofollow">https://github.com/mozilla/chromeless/tree/master/examples/first_browser</a></p> <p>When I browse between the folders and files, my browser changes the complete url. No Hashtag found like in other jQ...
javascript jquery
[3, 5]
1,581,538
1,581,539
Encrypt and decrypt
<p>I wrote Decrypt and Encrypt with C# and used it in my project, and right now it works But I am wondering that I have to write Decrypt and Encrypt with JavaScript for Sniff or it is enough?</p>
c# javascript
[0, 3]
4,343,833
4,343,834
Is JavaScript multithreaded?
<p>Here's my issue - I need to dynamically download several scripts using jQuery.getScript() and execute certain <a href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a> code after all the scripts were loaded, so my plan was to do something like this:</p> <pre><code>function GetScripts(scripts, callback) { v...
javascript jquery
[3, 5]
363,538
363,539
Uploading multiple files when user clicks on [add more]
<p>I have a wizard, in some steps I want the user to be able to upload multiple files (no limit) each with description. by default one <code>FileUpload</code> control should be visible, and by clicking (add more) new once are created.</p> <p>I need something like <a href="http://geekswithblogs.net/QuandaryPhase/archiv...
c# asp.net
[0, 9]
5,986,349
5,986,350
How to bind data dynamically to RadioButtonList in asp:repeater using c#?
<p>i want to make a MCQ test paper like following:</p> <ol> <li>question1</li> </ol> <p>radiobuttonlist with values ans1,ans2,ans3,ans4</p> <ol> <li>question2</li> </ol> <p>radiobuttonlist with values ans5,ans6,ans7,ans8</p> <p>all the values of answers and questions must be retrieved from database.</p> <p>please...
c# asp.net
[0, 9]
2,922,722
2,922,723
How do I change button Text on Click MVC?
<p>I have a toggle button, with a show/hide feature in javascript. How do I change the text when the button is clicked? </p> <pre><code>&lt;button id="ShowHide"&gt;Show&lt;/button&gt; </code></pre>
javascript jquery
[3, 5]
2,950,493
2,950,494
jquery select li element in hierarchical menu
<p>I need to be able to get the text from the certain <code>li</code> when it is clicked on, code is below:</p> <pre><code>&lt;div&gt; &lt;ul&gt; &lt;li&gt;list item 1&lt;/li&gt; &lt;li&gt;list item 2&lt;/li&gt; &lt;li&gt; &lt;ul&gt; &lt;li&gt;list item 3&lt;/li&gt; &lt;li&gt;list item ...
javascript jquery
[3, 5]
813,145
813,146
Web application to accept Tamil font
<p>I am just developing a web application using ASP.Net, which accepts TAMIL font. Here, if I type something in the textbox in tamil, it should be getting saved with the same values whatever I type in it. </p> <p>For this I just changed the font style of that textbox to BAMINI, with this BAMINI style I can type the wo...
c# asp.net
[0, 9]
3,568,482
3,568,483
Find object's value
<p>Is there any <strong>not loop-based</strong> approach in <strong>JavaScript</strong> or <strong>JQuery</strong> that can check presence of some VALUE from object's properties. I mean here if I have </p> <pre><code>obj = { prop1:val, prop2:val2 } </code></pre> <p>is that possible with maybe one statement check is <...
javascript jquery
[3, 5]
5,057,778
5,057,779
Javascript get output from separate php script
<p>I want javascript to be able to call a php script (which just echos a string) using jQuery.</p> <p>I think <code>$.get</code> is the right way, but not too sure.</p> <p>I then want to use the returned string as a javascript variable.</p>
php javascript jquery
[2, 3, 5]
4,157,139
4,157,140
jQuery scrolling by mouse position
<p>is there a jQuery plugin, that does something like on this website: <a href="http://tympanus.net/Tutorials/ThumbnailsNavigationGallery/" rel="nofollow">http://tympanus.net/Tutorials/ThumbnailsNavigationGallery/</a> ?????</p> <p>I'm looking for script, which will scroll content depending on where mouse is. For exam...
javascript jquery
[3, 5]
1,168,175
1,168,176
Jquery Time difference of utc offSets
<p>I just want to find time difference between user's time and server side time. like what time is user having on his system and what's the value coming from database. i have got it approximately. but now my problem is what if user is from difference time zone rather then the value is coming from database? So now i jus...
javascript jquery
[3, 5]
5,782,790
5,782,791
Shopping cart Asp.net
<p>i have a aspx page and inside i have called a .ascx page which is the shopping cart , on the aspx page i have a lot of links to the books and we can add the books to the shopping cart. On clicking the add button i store the bookid,name,price in a cookie and on the ascx page i get the copy and paste the value in the ...
javascript asp.net
[3, 9]
3,610,308
3,610,309
How can I check for IsPostBack in JavaScript?
<p>I need to run a JavaScript function onLoad(), but only do it if the page loaded the first time (i.e. is not the result of a postback).</p> <p>Basically, I need to check for IsPostBack in JavaScript.</p> <p>Thank you.</p>
asp.net javascript
[9, 3]
1,760,457
1,760,458
Selecting the first img from div
<p>I have the following html. </p> <pre><code>&lt;div&gt; &lt;img class="foo"&gt; &lt;a href="#" onClick="changeImage(this, param1, param2)"&gt;sth&lt;/a&gt; &lt;/div&gt; </code></pre> <p>I want to change the class of image (remove <code>foo</code>, add <code>bar</code>) when user clicks on the link. However, I...
javascript jquery
[3, 5]
3,279,131
3,279,132
Learning Java and Python
<p>I've been learning Java for a while now, however, I just found these lessons: <a href="http://www.udacity.com/" rel="nofollow">http://www.udacity.com/</a> . I don't know any Python, but I still want to learn it. however, I've been learning Java for the past month or so, so I'm not sure if I could learn two languages...
java python
[1, 7]
2,312,943
2,312,944
How to select the text of a span on click?
<p>I am looking for a way to select the text inside a span using jquery when the text is clicked on.</p> <p>For example in the html snippet below, I want the text "\apples\oranges\pears" to become selected when it is clicked on.</p> <pre><code>&lt;p&gt;Fruit &lt;span class="unc_path"&gt;\\apples\oranges\pears&lt;/sp...
javascript jquery
[3, 5]
5,421,131
5,421,132
Converting javascript in C# function as a argument
<p>In bing map AJAX api v7 there is a method for eventhandling in Events object:</p> <pre><code>addHandler(target:object, eventName:string, handler:function); </code></pre> <p>which is used like this:</p> <pre><code>Microsoft.Maps.Events.addHandler(pin2, 'mousedown', mouseDownHandler); </code></pre> <p>how can i wr...
c# javascript
[0, 3]
3,931,216
3,931,217
image preloader not working in IE
<p>I have the following code to preload images:</p> <pre><code>preloader : function(images) { var imgCount = images.length; var counter = 0; $.each(images, function(i, n) { alert('hi'); // load each image $("&lt;img /&gt;").attr("src", n).load(function() { ...
javascript jquery
[3, 5]
704,922
704,923
Assign Resulted Value to Third TextBox Using jQuery
<p>i have three textboxes. I want to get the value from the first 2 textboxes, calculate the value and then assign the result to the 3rd textbox. To achieve this, i have done something like following in jquery;</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function myfunction() { $(...
javascript jquery
[3, 5]
711,766
711,767
Closing lightbox permanently for a user on close button click
<p>I am using a jquery plugin ( lightbox) on my asp.net page(http://www.ericmmartin.com/projects/simplemodal/#demo). This lightbox loads a page using Iframe in this lightbox. this lightbox has an image for closing popup.</p> <p></p> <p>I want that when user clicks this image and loads page again then this pop up does...
javascript jquery asp.net
[3, 5, 9]
2,842,582
2,842,583
How make a select dropdown to select an option value based on current time
<p>I have a select dropdown with times in 30 min intervals like</p> <pre><code>11:00 AM, 11:30 AM, 12:00 PM, 12:30 PM, 1:00 PM </code></pre> <p>beginning from 0:00 AM and ending with 11:30 PM</p> <pre><code>&lt;select id='time'&gt; &lt;option value="11:30 AM"&gt;11:30 AM&lt;/option&gt; &lt;option value="12:00 P...
javascript jquery
[3, 5]