Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
3,979,186
3,979,187
Show the server-side generated HTML in a new window
<p>What is the best way to show the server-side generated HTML (full page) into a new popup window? It should be triggered upon clicking a button (causing a postback to the server).</p> <p>Thanks</p> <p>Edited:</p> <p>The HTML content are dynamically generated in the code behind and the content is full page (<code>&...
c# javascript asp.net
[0, 3, 9]
2,852,313
2,852,314
How to disable the back button in browser when user logout in asp.net c#
<p>Our problem is we are able to clear session on logout.</p> <p>But if a user clicks the back button then he/she can go through all previous screens.</p> <p>But the advantage is that on a single click on any of of such previously surf page bring user to login page back ,we had done that. But our requirement is we sh...
c# asp.net
[0, 9]
1,960,113
1,960,114
up and down arrow is not working for list item. onkey input search
<p>/* up and down arrow is not working for list item. on key input search */ </p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;input type="text" id="input1" value="" /&gt; </code></pre> <p>/* up and down arrow is not working for list item. on key input search */ </...
javascript jquery
[3, 5]
2,941,440
2,941,441
jquery or js code to obtain exact node data for currently selected form item/text/image in a web page
<p>I want to obtain the exact details for the item on a web page that has been clicked on, using jquery.</p> <p>That item can be a form item (like a checkbox, text box, text area etc) or section of text (in a paragraph or div or other) or list or image ...</p> <p>What I figured out is the following--</p> <pre><code>...
javascript jquery
[3, 5]
2,854,286
2,854,287
handling event bubling in jquery
<p>iam having links as shown below</p> <pre><code>&lt;a item='1' href='javascript:void(0)'&gt;&lt;img class='icon1' /&gt;&lt;span&gt;text1&lt;/span&gt;&lt;/a&gt; &lt;a item='1' href='javascript:void(0)'&gt;&lt;img class='icon2' /&gt;&lt;span&gt;text2&lt;/span&gt;&lt;/a&gt; &lt;a item='1' href='javascript:void(0)'&gt;&...
javascript jquery
[3, 5]
4,167,826
4,167,827
URL Rewriting in Response Filter
<p>We are attempting to rewrite some URLs in our response for an outside proxy server. We noticed that the response is being broken up as it goes through the response filter. We then use regular expressions to locate the URLs and rewrite them. The issue we ran into is that the way that it is broken up (not exactly sur...
c# asp.net
[0, 9]
611,529
611,530
jQuery html() doesn't work well in IE9
<p>I use jquery to request data and then fill them to a table whose id is 'mresholder', it works in webkit and ff but it doesn't work well in IE. It will append those data behind <code>&lt;/table&gt;</code>.<br> How to solve this or what's the alternative way to do this?</p> <pre><code>for(i=0;i&lt;length;i++) { so...
javascript jquery
[3, 5]
4,726,241
4,726,242
Using Linq to aggregate from array to single var
<p>I have an accordion that binds data for each item from an array. I want that for every time that I bound the data I will loop through all of the array and aggregate all of the items with the same id and create a long string with a name from a cell. In the code the name <code>oneJob.order_id</code> does not exist and...
c# asp.net
[0, 9]
669,530
669,531
how to add new datatable to dataset at first position
<p>i have one dataset with 3 data tables again i have to add one more data table in same dataset at first position(Ex:mydataset.tables[0]th position) .can any one help me regarding this.</p>
c# asp.net
[0, 9]
1,346,996
1,346,997
How can a block diagram be dynamically generated in ASP.NET?
<p>Based on the data, I need to dynamically generate a graphic in my ASP.NET page. What is the best way to do this. Is this easier to implement in Silverlight.</p>
c# asp.net
[0, 9]
5,146,589
5,146,590
Sequential AJAX request processing and storage
<p>I'm trying to write a script to sequentially pull data from printers that have a web interface. There are over 500 on a large local network, hence the reason I'd like to call out to the next one once the previous returns (successful or not). I'm having difficulties wrapping my head around callbacks ...if that's the ...
javascript jquery
[3, 5]
592,049
592,050
dynamic data one by one
<p>I'm displaying dynamic data in slider can any one tell me how can i show them one by one. I want to show data of first cell first and then it's fade in and then I want to show data of second cell after fade out on left under testimonial. Here is link <a href="http://184.173.9.8/~intellis/sifrek/services.php" rel="...
php javascript jquery
[2, 3, 5]
2,515,538
2,515,539
How can i change the background color or apply an color to an Item in Drop down list
<p>Hi all i am having a drop down list with some items now while checking the items from the list and if that item exists in the drop down i would like to apply color for that particular item.</p> <p>Assume i have my drop down as follows</p> <pre><code> 123 1234 12345 </code></pre> <p>Now if i found <code...
c# asp.net
[0, 9]
5,177,426
5,177,427
Excuting Javascript Commands From Cs
<p>Is there a way that I can call a function like (fadeIn or fadeOut) from the .cs?</p> <p>So thats my situation - I have a datalist of stuff. When A user clicks something on the list, it gives him some details about the thing he clicked and if he wants it, he clicks it again.</p> <p>now, on the first click I changed...
c# javascript jquery asp.net
[0, 3, 5, 9]
5,445,771
5,445,772
Jquery modification to add 1 and save the number in a txt file on every click
<p>I am using the following click function for a purpose. What can I add so it will add 1 in a txt file when it is clicked? Like a counter on how many times it was clicked.</p> <p>Thank you</p> <pre><code>$("#clearme").click(function(e) { e.preventDefault(); // i have some stuff here }); </code></pre>
javascript jquery
[3, 5]
2,673,485
2,673,486
Disabled JavaScript in IE6 still not able to see the script code?
<p>I m a beginner. This is more related to different options i was trying to learn.</p> <p>I just took example </p> <pre><code> &lt;!-- document.write("&lt;h1&gt;Hello World&lt;/h1&gt;"); //--&gt; </code></pre> <p>It was stated that we should use this tags to avoid the script display in browser if javasc...
javascript asp.net
[3, 9]
2,579,735
2,579,736
Calling a javascript function on a php variable
<p>Javascript:</p> <pre><code>function capitalizeFL(string) { return string.charAt(0).toUpperCase() + string.slice(1); } </code></pre> <p>PHP:</p> <pre><code>echo "You have chosen a &lt;script&gt;document.write(capitalizeFL(".$race."));&lt;/script&gt;"; </code></pre> <p><code>$race</code> contains a string. Wh...
php javascript
[2, 3]
4,415,525
4,415,526
Handling files uploaded with a size greater than maxRequestLength in web.config
<p>In my web.config, I have the file upload size limited to 10 MB:</p> <pre><code>&lt;httpRuntime maxRequestLength="10000" /&gt; &lt;!-- file size limit in KB --&gt; </code></pre> <p>On my page, I'm checking to see that the user doesn't upload a file larger than 5 MB:</p> <pre><code>protected void cvImageSize_Server...
c# asp.net
[0, 9]
137,885
137,886
printing a hidden tag on the page with jquery
<p>i have some tr tags with a checkbox in each and when the user clicks on any of the checkboxes i want the content from that tr to be written anywhere on the page</p> <p>Here is the HTML:</p> <pre><code>&lt;tr class="gradeA odd"&gt; &lt;td&gt;&lt;input id="instance_selected0" name="instance_selected0" value="2" typ...
javascript jquery
[3, 5]
658,351
658,352
Why are backward slashes removed from querystring - ASP.NET & Javascript
<p>I am trying to generate a URL that contains a UNC path as one of the query string variables. The URL will open in a pop up window when an ASP.NET button control is clicked by the user. When the clicks the button, the backwards slashes are removed from the UNC path causing the page to break.</p> <p>The button rend...
c# asp.net javascript
[0, 9, 3]
5,498,911
5,498,912
simple javascript "feature" panel
<p>I'm working on a free template which has a featured Div...</p> <p>www.subigya.com/test/durbarsquare</p> <p>"In the Spotlight" is the featured div.</p> <p>I have simple jQuery js in there to switch the images. How do I switch the heading &amp; <p> related to each div in the switch. Right now, only the images switc...
javascript jquery
[3, 5]
5,606,695
5,606,696
creating Web User Control and adding it to tool box
<p>I'm trying to learn how create a web user control so i can use in diffrent projects. I created a simple control just to see how it worked; after I created it, I could add it to any page on the current project and it worked fine. </p> <p>My problem is how can I add this control to the tool box so I can use it in d...
c# asp.net
[0, 9]
4,459,627
4,459,628
How do I enable chrome debugging when inserting a script tag into the head using jquery
<p>I came across this case while trying to dynamicly load a bunch of script files, and where I was getting no errors returned when the JavaScript was failing. This will hopefully save someone a lot of time.</p> <p>How do I enable chrome debugging when inserting a script tag into the head using jquery. This does not al...
javascript jquery
[3, 5]
4,235,812
4,235,813
ASP.NET validate
<p>I want to validate an asp.net texbox with min char=3, max=10 and no special characters. I do not want to use a plugin of jQuery but plain jQuery</p> <pre><code>&lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt; </code></pre> <p>How do I about it. </p> <p>P.S - I asked the question earlier then e...
asp.net jquery
[9, 5]
1,552,871
1,552,872
refer to an image with an array content
<p>how is it possible to refer to an image with an array index at the end of the image name? Here is the code i would like to work (doesnt though...:()</p> <pre><code>for (int i = 0; i &lt; melodiToner.length; i++) setImageResource(R.drawable.gronpil+melodiToner[i]); </code></pre> <p>i.e I would like to load image <...
java android
[1, 4]
1,098,985
1,098,986
Why does a dialog seemingly have its one thread?
<p>I'm new to advanced programming - but from what I've read, all my android programs are on one thread. </p> <p>This means, only one line of code or method/function can be executed at a time before moving on to the next line (that's what I thought anyway). </p> <p>However, I'm using a custom dialog to develop this a...
java android
[1, 4]
6,000,920
6,000,921
I want to use 2 dropdown list in a way so that second dropdown list show remaining items of the first dropdown list except the selected one
<p>I want to use 2 dropdown list in a way so that second dropdown list show remaining items of the first dropdown list except the selected one. if u have the solution please send to me at rsolanki2008@gmail.com as soon as possible. </p>
c# asp.net
[0, 9]
4,260,679
4,260,680
jQuery simple modification to disable click on image when it was clicked once
<p>jQuery simple modification to disable clicking</p> <p>The following jQuery make use of an image submit button of a the JqPostForm form to post. </p> <p>How to change the image from image1.png to image3.png when clicked and disable further clicking ? and how to remove the Thank you message after 2 sec ?</p> <p>The...
javascript jquery
[3, 5]
3,369,614
3,369,615
Pros and cons of using a Thread or TimerTask for an Android game
<p>Many Android game examples utilize a Thread to run a game engine on a particular interval. However, I've seen some other examples that use a TimerTask to run the game engine interval as well. I'm curious as to what other developers think the pros and cons of each approach are.</p>
java android
[1, 4]
4,992,961
4,992,962
Jquery selector data retrival in variable, in another different page
<p>How can we use Jquery to read certain page content in a variable on a different page? If for example we want to read div.tag1 from a page into another page but in a variable( ie i dont want to load it into the page but manipulate it so store it in variable)</p> <p>Eg: file1.html have(say)</p> <pre><code>&lt;div c...
javascript jquery
[3, 5]
2,066,634
2,066,635
where can I find the slider in http://www.pipilika.com/home.php?
<p>what is the name of the slider used under the horizontal menu in <a href="http://www.pipilika.com/home.php" rel="nofollow">http://www.pipilika.com/home.php</a> ?</p> <p>where can I find it plz?</p> <p>thanks in advance</p>
php javascript jquery
[2, 3, 5]
5,373,188
5,373,189
How to get alert message when user click on outside panel in asp.net
<p>I have form in which I have several controls. My concern is that when I filling values in Panel1 , &amp; click on any other control or space outside panel1 .How can I get alert message. I am working in asp.net</p>
c# javascript asp.net
[0, 3, 9]
6,002,973
6,002,974
javascript date + 1
<p>How do I take today's date and add 1 day to it?</p> <p>If possible, inline please?</p>
javascript jquery
[3, 5]
1,761,198
1,761,199
How to block a php script from being executed directly from address bar?
<p>I have something like this:</p> <pre><code>$.getJSON('/scripts/commons/theScriptDoTravelBackInTime.php',{ }, function(){ // etc.. etc... } }); </code></pre> <p>Is there a way to stop the php script from being executed simply by a direct call in the address bar like <a href="http://www.myserver/scripts/commons/t...
php jquery
[2, 5]
5,690,233
5,690,234
How to call a function in jquery?
<p>I wanted to my code a bit cleaner so I wanted to put a very long function in it's own method.</p> <p>Right now I have</p> <pre><code>$('#Id').submit(function() { // lots of code here }); </code></pre> <p>now I wanted to break it up like</p> <pre><code> $('#Id').submit(MyFunction); function MyFunct...
javascript jquery
[3, 5]
476,400
476,401
Custom Membership Provider for asp.net using c#
<p>How i can realise my own Membership Provider for my social network example project where i want to use more extended registration with new fields? Thanks. </p>
c# asp.net
[0, 9]
5,806,339
5,806,340
ASP.NET 1.1 issue
<p>For some reason I cannot add a server control onto a specific asp.net form. If I make an attempt to do this, I get the following error when selecting from the datagrid: Index was out of range. Must be non-negative and less than the size of the collection </p> <p>I have checked the values and they are all non negati...
c# asp.net
[0, 9]
4,507,440
4,507,441
Replace last occurence of character in string
<p>Is there an easy way in jQuery to replace the last occurence of an '_' (underscore) in a given string?</p>
javascript jquery
[3, 5]
3,625,761
3,625,762
How to get the simple name of the ZipEntry?
<p>I would know if is it possible to get the simple name from a <code>ZipEntry</code>...</p> <p>When I invoke the <code>getName()</code> of the Entry, I get a full path name.</p> <p>I need get only the file's name.</p> <p>Here I need get the simple name instead the full name with its root.</p> <pre><code>public cla...
java android
[1, 4]
1,457,449
1,457,450
How to handle global state with clean up in android
<p>I am working on an android app which has some global state (including several <code>SoundPool</code>s, which take a while to load) and I'm looking to find the best way of managing this. So far I can see two options, neither of which are perfect:</p> <ol> <li><p>Store the state in my main <code>Activity</code> - thi...
java android
[1, 4]
4,305,750
4,305,751
How to detect when certain div is out of view
<p>I just saw something very interesting in vk.com</p> <p>Basically in profile page the right column is changing its width when the left column is gone of the view.</p> <p>Example : <a href="http://vk.com/durov" rel="nofollow">http://vk.com/durov</a></p> <p>Just scroll down a little bit to see it.</p>
javascript jquery
[3, 5]
1,396,791
1,396,792
I want to display a circular progress indicator using jquery in asp.net when textbox textchange event occurs
<p>I want to display a circular progress indicator using jquery in asp.net when textbox textchange event occurs. When user enters some value in a textbox and textchange event occurs or when user loses the focus on that textbox, system checks values in databases. I want to give user a progress indicator type when query ...
asp.net jquery
[9, 5]
3,372,114
3,372,115
VideoView in ListView
<p>Is it possible to use the VideoVideo with the ListView as an item. Has anyone done this? Are there any issues I should be aware of?</p>
java android
[1, 4]
3,406,587
3,406,588
Dynamic calculate values from inputs
<p>I've a script calculates my dynimic buy form. Everything works fine but when I add quantity input script takes only first value. I want to it takes every next value from "value" (each). I will be glad for help.</p> <pre><code>$(function() { $("#sumuj").click(function() { var add = 0; var add2 = ...
javascript jquery
[3, 5]
4,344,082
4,344,083
Write a file "on-the-fly" to the client with C#
<p>I'm using C# and ASP.NET 2.5.</p> <p>I want a simple way to generate a "file" on-the-fly (let's say a csv file for this example) and transmit it to the client without actually writing it to the server file system. </p>
c# asp.net
[0, 9]
2,150,949
2,150,950
How do I execute functions one after the other?
<p>Maybe I'm using it wrong, but I want to chain 3 functions, with the second function starting when the first function completes and the third function starting when the second function completes. According to the <a href="http://api.jquery.com/jQuery.when/" rel="nofollow">docs</a> I should be able to do it like this:...
javascript jquery
[3, 5]
1,251,800
1,251,801
how show image when click value in combox using jquery and php?
<p>how show image when click value in combox using jquery and php ?</p>
php jquery
[2, 5]
5,497,323
5,497,324
how to detect change for a radio button list
<pre><code>&lt;ul id='theList'&gt; &lt;li&gt;&lt;input type='radio' name='foo' val='1' /&gt;&lt;/li&gt; &lt;li&gt;&lt;input type='radio' name='foo' val='2' /&gt;&lt;/li&gt; &lt;li&gt;&lt;input type='radio' name='foo' val='3' /&gt;&lt;/li&gt; &lt;li&gt;&lt;input type='radio' name='foo' val='4' /&gt;&lt;/li&gt; &lt;li&gt...
javascript jquery
[3, 5]
4,812,149
4,812,150
How to reset a list
<p>It might be a silly question but still i am facing problem with this.</p> <pre><code> var eformDetailIds = []; eformDetailIds=$("[name=eform_id]").map(function(){ return $(this).val() }).get(); </code></pre> <p>this is the code that i have written in js function and calling this function on button click.</p>...
javascript jquery
[3, 5]
4,664,602
4,664,603
How can I redirect to a page when the user session expires?
<p>I am currently working on an web application that uses ASP.NET 2.0 framework. I need to redirect to a certain page, say SessionExpired.aspx, when the user session expires. There are lot of pages in the project, so adding code to every page of the site is not really a good solution. I have MasterPages though, which I...
c# asp.net
[0, 9]
3,668,979
3,668,980
Create string from exsting string in which every character is represented by * and only space represented by space
<p>I want to generate a new string from an existing string.<code>javascript</code> In the new generated string all characters would be presented by '*' except ' ' (space). For example if existing string is </p> <p><BR>"hide me"<BR></p> <p>then new genrated string would be</p> <p><BR> <code>"**** **"</code><BR></p> ...
javascript jquery
[3, 5]
1,391,081
1,391,082
Using sessions in classes
<p>I have code that's using session variables; it's both in the master page code behind and in the code behind of some aspx files. I wanted to put this code in a function that's in a different file but when I did that, the statement Session["VariableName"] became underlined in red on the word session. What am I missing...
c# asp.net
[0, 9]
2,518,634
2,518,635
What's the best way to send JavaScript array to PHP script using GET?
<p>I have an interactive web application powered by jQuery where users can manipulate visual objects on the screen. When done, the "state" of JavaScript objects should be sent to PHP to store into database. I'd prefer to use GET for this, but solution that uses POST to submit the data is also viable. </p> <p>I'm curre...
php javascript jquery
[2, 3, 5]
922,462
922,463
Creating a temporary element X made up of other elements?
<p>I am using a jquery print plugin that has the capability to print out particular elements from the page. </p> <p>If I call <code>$('.main-container').print();</code> it will print out all elements within the main container.</p> <p>However, there are many elements within the 'main-container' that I would not like t...
javascript jquery
[3, 5]
5,068,802
5,068,803
Does jQuery have a built in function to return the rootURL?
<p>I typically use the below function to return the root URL if I ever need this, but thought to ask if jQuery had a "one liner" way to do this ...</p> <pre><code>function getRootURL() { var baseURL = location.href; var rootURL = baseURL.substring(0, baseURL.indexOf('/', 7)); ...
javascript jquery
[3, 5]
5,329,131
5,329,132
Asp.Net Javascript compilation Error: "Identifier Expected"
<p>I am having problem with following code. Its showing compliation error:- "Identifier Expected".</p> <pre><code>&lt;script type="text/javascript" runat = "server"&gt; function isOverElement(currentElement, targetId) { while (currentElement) { if (currentElement.id == t...
javascript asp.net
[3, 9]
5,869,557
5,869,558
jQuery wrap() is wrapping every assigned object on click
<p>I have a form that creates a div when you enter a name and click "add". I want to wrap this div in an li but when I do this it wraps every created div with the same class name in an li therefore I end up with multiple levels of li's around the div. Is there a way to only target the div that is created on that click?...
javascript jquery
[3, 5]
1,322,911
1,322,912
strange issue with js in updatePanel
<p>I have a link <strong>in an update panel</strong> which calls a js method to do printing of the current window:</p> <pre><code>&lt;a href="javascript:print()" id="cpMain_popupCouponDescriptionControl_hrefPrint"&gt;Print Coupon&lt;/a&gt; </code></pre> <p>where the js method is called on Page_Load event:</p> <pre><...
javascript asp.net
[3, 9]
516,782
516,783
Printing text inside scrollable element
<p>I have a multiline textbox inside a aspx page.When printing the page contents inside the scroll textbox(non-visible part) were missing in print.Is there is any way to handle this in javasript or asp.net serverside?</p>
javascript asp.net
[3, 9]
4,535,165
4,535,166
Call java method from javascript
<p>I have a web jsp web application. In one page I need two dropdownlist. When I will select a value from dd1 then second dropdown will be fill according this value. How I can call java function from dropdown 1 change event in javascript or jqury? I got example but that is calling jsp page but I need to java method an...
java javascript
[1, 3]
4,551,003
4,551,004
Index of div element jquery
<p>I have following html:</p> <pre><code>&lt;div class="rows"&gt; &lt;div class="row"&gt;&lt;input type="text" onchange="javascript:getIndex(this);" value="" /&gt;&lt;/div&gt; &lt;div class="row"&gt;&lt;input type="text" onchange="javascript:getIndex(this);" value="" /&gt;&lt;/div&gt; &lt;div class="row"&gt;&lt;...
javascript jquery
[3, 5]
830,509
830,510
put two shorts to a byte array
<p>I need a byte array with 4 bytes which contains 2 shorts. I have now this:</p> <pre><code>MemoryStream str = new MemoryStream(); using (BinaryWriter writer = new BinaryWriter(stream)) { writer.Write((short) printscreen.Width); writer.Write((short) printscreen.Height); } byte[] bytes = str.ToArray(); </cod...
c# java
[0, 1]
40,707
40,708
has no method 'replace' jquery error
<p>I got the following js code which is erroing in the console and i'm not too sure of what i'm doing wrong. Basically i'm trying to get a list of fields so i can do some calcs on.</p> <pre><code>var LabourItems = { rate: null, hours: null, total: null, init: function(object) { var rate = $(obj...
javascript jquery
[3, 5]
4,520,893
4,520,894
jquery documentready
<p>hi guys I wanted to know, is there a way to not display my webs content scattered before the jquery document ready is finished? I saw it on a site somewhere and I cannot find it now, forgot to bookmark the site. Does anyone have a clue?</p>
javascript jquery
[3, 5]
648,068
648,069
Stop window.event with Javascript window.confirm?
<p>I am trying to have a confirm box come up when the viewer tries to close the window, that allows the user to stay on the current page (by click Cancel), or continue closing the window (by click OK).</p> <p>My code is as follows...</p> <pre><code>&lt;script&gt; function confirm_exit(){ var message ...
javascript jquery
[3, 5]
3,202,829
3,202,830
Why $.extend(window, window, someobject) triggers page refresh?
<p>I have object like this:</p> <pre><code>var example = { test1: 10, test2: 20, test3: 30 } </code></pre> <p>For some reason, I wanted to use <code>test#</code> variables without <code>example</code>, so I extended <code>window</code> object like this(using jQuery):</p> <pre><code>$.extend(window, windo...
javascript jquery
[3, 5]
1,445,914
1,445,915
Submit username and password javascript (not a form)
<p>I have a popup which asks the user for login information, which means two input text fields for password and username. </p> <p>Now as I will be verifying the information using ajax I didn't wrap the elements on a because form always needs a php action, correct? or am I missing something?</p> <p>So I'd like to kno...
javascript jquery
[3, 5]
555,314
555,315
Dynamically changing layout in application
<p>I want my users to have the ability to choose a few buttons which would be transferred to a different page, like a "favourite buttons" page. To do this, I need to change the layout from the app. I would like the modified layout to persist even after closing the app. Is it possible to do this?</p>
java android
[1, 4]
4,327,163
4,327,164
make append happen only the first time
<p>i have on a list a button that fire this event:</p> <p><strong>js:</strong></p> <pre><code>$(this).parents('tr') .find('.class') .append("&lt;input type='text' size='5'/&gt;"); </code></pre> <p>its possible to make this append happen just in the first time? </p> <p>like a <code>return false</code>,...
javascript jquery
[3, 5]
246,501
246,502
UserControl, Child Master Page and Parent Master Page (How to call function form User Control)
<p>Basically I have a userControl.ascx with a lot of code... this user control is used in the Child.MasterPage and the Child.MasterPage inherits from a Parent.MasterPage.</p> <p>In the Parent.MasterPage I have a method in the .cs file, this method accepts a string and passes it to a literal.</p> <p>The problem:</p> ...
c# asp.net
[0, 9]
3,891,907
3,891,908
Read and then write .pcm files using Java
<p>How can I read and then write <code>.pcm</code> files using Java on Android, which I just recorded using the microphone at different frequencies?</p> <pre><code>// TODO Auto-generated method stub File fileForSaving = new File(Environment. getExternalStorageDirectory(),recordings/" + name + ".pcm...
java android
[1, 4]
4,811,775
4,811,776
ScriptManager.RegisterClientScriptBlock being returned in response but not being run by the browser
<p>I'm using the following to try and execute some JavaScript when an update panel has completed its request:</p> <pre><code>script = String.Format("SparkBase.Html.ScrollToElment('{0}');", clientID) System.Web.UI.ScriptManager.RegisterClientScriptBlock(Me, Me.GetType, "Focus_" &amp; clientID, script, True) </code></pr...
javascript asp.net
[3, 9]
1,593,187
1,593,188
events not firing for "input" in chrome jquery
<p>I can't get any key events to fire on an input element with jquery. Given the following code:</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt; &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="./js/jquery-1.5.1.min.js"&gt;&lt;/script&gt; &lt;scr...
javascript jquery
[3, 5]
5,617,011
5,617,012
Can this be written much more simplistically using a foreach?
<pre><code>function GetDiagrams(componentID) { $.getJSON("../PlanView/GetDiagrams", { ComponentID: componentID }, function (diagrams) { for (var i = 0; i &lt; diagrams.length; i++) { PaintDiagram(diagrams[i]); } }); } </code></pre> <p>All I am doing is calling PaintDiagram on each e...
javascript jquery
[3, 5]
2,348,088
2,348,089
Function that dropdowns list of option in "select" element
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/249192/how-can-you-programmatically-tell-an-html-select-to-drop-down-for-example-due">How can you programmatically tell an HTML SELECT to drop down (for example, due to mouseover)?</a><br> <a href="http://stackove...
javascript jquery
[3, 5]
4,162,450
4,162,451
Jquery list within a list menu
<p>So I would like to build a unsorted list and and another unsorted list within it so there is a basic menu functionality.</p> <p>I basically need to know how to have Jquery access the elements so when a main level item is clicked, its children show.</p> <p>So for example:</p> <pre><code>&lt;ul class="category-link...
javascript jquery
[3, 5]
2,844,602
2,844,603
how to send table value to printer?
<p>I want to send table values to printer.That table contails more than 50 records.so there is scrollbar or pagination on that table.Below the printer there print button, if click the button those all values should go to printer.</p> <pre><code>function print(){ window.print(); window.opener.document.location ...
javascript jquery
[3, 5]
2,339,786
2,339,787
Failing to identify right click event in Mozilla Firefox
<p>I'm trying to add some behavior for the right click event. Weirdly I simply cannot make the event handling work.</p> <p>This is the jQuery code:</p> <pre><code>$('body').on('click', '#wrapper', null, function(ev){ if (ev.which === 2 || ev.which === 3){ alert("Here!"); } }); </code></pre> <p>I thin...
javascript jquery
[3, 5]
4,742,647
4,742,648
More than one crop boxes on image using jquery
<p>I am looking for out of box solution to have more than one crop boxes on the image. jcrop and imageareaselect pulgins dont seem to be supporting it. </p> <p>any hack or other ideas i can support multiple image crop boxes on an image in browser.</p>
javascript jquery
[3, 5]
1,983,418
1,983,419
How to call JQuery CheckBox Changed Event inside a Jquery Accordion Header?
<p>Thanks for all your valuable responses to the questions that I have asked before, those suggestions helped me a lot. I have one more question here. I am using a JQuery accordion control in my page,and the accordion header contains a checkbox, Based on the checkbox selection, I need to retrieve some date from the DB....
c# jquery asp.net
[0, 5, 9]
4,407,526
4,407,527
How to renable document.write after jQuery ajax has completed
<p>I have to grab a snippet of JS that has document.write in it - this causes the page to go blank once the document.write renders. I was able to work around this by redefining document.write and pass the response of the script to a function that I use to output the response from the getScript() jQuery function. I am h...
javascript jquery
[3, 5]
38,149
38,150
Delete image from Folder/Database using RowCommand/RowDeleting events
<p>I am uploading images and display them in a <code>Gridview</code>.I save the images in a folder and the name in the database.Now I want if I uploaded 3 pictures and have to delete one which I select.So I have picture 1 2 3. When I select picture 2 than this will be deleted..How can I do that? This is my code to uplo...
c# asp.net
[0, 9]
825,566
825,567
Creating events in JavaScript like C#
<p>I primarily write code in C#. However, I'm working with some JavaScript. I have defined a class in JavaScript as shown here:</p> <pre><code>function Item(id, name) { this.ID = id; this.Name = name; // define event submitCompleted this.submit = function() { // When the submission is completed,...
c# javascript
[0, 3]
818,519
818,520
android ensuring safety
<p>I am making app, which would send value to php script. Then php script would conncect to Mysql database and return JSON array. And then the app would read it. How to ensure safety? For now I am not using any safety measures.</p>
java php android
[1, 2, 4]
3,348,868
3,348,869
scroll down to position
<p>I have this code to make page scroll up and down,Please tell me how to make it back to scroll postion instead of down page when i click down?</p> <pre><code>&lt;a href="javascript://" id="toDown"&gt;Down&lt;/a&gt; &lt;a href="javascript://" id="toTop"&gt;Top&lt;/a&gt; &lt;script type="text/javascript"&gt; jQuery.n...
javascript jquery
[3, 5]
1,540,817
1,540,818
javascript jquery checkbox
<p>I'm working on a piece of JavaScript. I'm completely new to JS, But I have a group of checkboxes part of the domainchkb class and with the name, all with different values. I am trying to group those into an array to format into JSON. When executing the code the debugger stops at <code>return this.parent().text();</c...
javascript jquery
[3, 5]
409,641
409,642
when i click on anchor i need to enable text field
<p>I have a anchor tag, with id="click_me". When i click on this i should enable input text (<code>&lt;input type="text" id="summary" class="summary"&gt;</code>), which is disabled first.</p> <p>even i can do it using javascript function, by calling these javascript function() using onclick in the tag; but in my appl...
php javascript jquery
[2, 3, 5]
389,196
389,197
Ldap SASL with unboundID
<p>I am developing an android app in which using unboundedID.jar I have implemented SSL TLS but no idea about SASL can you give me some idea. Some sample code.How to implement SASL with unbound id</p>
java android
[1, 4]
4,071,417
4,071,418
C++ PHP Programmer Struggling With C++
<p>I have been working with PHP almost daily for the past year and a half. From the first hello world example, it just clicked and I understood the concept of it straight away ie how it interacts with databases,forms, and other servers via HTTP and how it returns HTML, or whatever markup you specify. I am by no means ...
php c++
[2, 6]
3,513,617
3,513,618
Converting code from JS to Jquery
<p>I found a bit of code to run a tool bar and need a bit of help converting it to jquery so I can use my existing code with it.</p> <pre><code>scroll_final=document.body.scrollTop; scroll_final=document.documentElement.scrollTop; var toolbarid=document.getElementById('toolbar'); toolbarid.style.visibility='hidden';...
javascript jquery
[3, 5]
2,574,987
2,574,988
why does this on() trigger right away instead of just binding?
<p>Im having some problems with <code>.on()</code> and how to use it instead of <code>.bind()</code> in this situation. What im trying to do here is i click a link and that is supose to bind another click event, but instead it triggers that event right away. I looked in the documentation/jquery.js file and this is how...
javascript jquery
[3, 5]
3,565,468
3,565,469
object instance not set on page load?
<p>I am trying to load my website and it says object instance not found. What do i do??</p>
c# asp.net
[0, 9]
5,133,687
5,133,688
How to close an iframe from inside that iframe
<p>I have a an iframe with content from another PHP page on my server inside a modal window. I would like to figure out a way how to close the modal box with the iframe from inside the iframe.</p> <p>I am using this modal window plugin: <a href="http://opensource.steffenhollstein.de/templates/modalbox/" rel="nofollow"...
javascript jquery
[3, 5]
3,350,874
3,350,875
Get contents of a div from a URL
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/26947/how-to-implement-a-web-scraper-in-php">How to implement a web scraper in PHP?</a><br> <a href="http://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php">How to parse and process HTML...
php javascript jquery
[2, 3, 5]
2,497,542
2,497,543
putting source of all images into an array
<p>What is the cleanest way to put the source attribute string of all images within a div into an array?</p> <p>I was hoping this would work - </p> <pre><code>var imageSourceArray = $("#leDiv img").attr('src'); alert(imageSourceArray[3]); //not alerting the source, boo hoo. </code></pre> <p>Do I need to loop throug...
javascript jquery
[3, 5]
5,275,890
5,275,891
PHP passing a class as a reference?
<p>in Python, you could do something like this:</p> <pre><code>class SomeClass(object): pass s = SomeClass someClassInstance = s() </code></pre> <p>How could you accomplish the same effect in PHP? From what I understand, you cannot do this? Is this true?</p>
php python
[2, 7]
2,407,120
2,407,121
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]
3,429,461
3,429,462
is there any way to get the index of an Item from a DataTable inside of a Repeater?
<p>I am trying to get the index of the DataItem from the DataTable and insert that into the repeater. I tried this solution: <a href="http://stackoverflow.com/questions/1722486/inject-index-of-current-item-when-binding-to-a-repeater">http://stackoverflow.com/questions/1722486/inject-index-of-current-item-when-binding-t...
c# asp.net
[0, 9]
4,215,742
4,215,743
Tab 'a' click issue
<p>I've a simple tab script with scroll plugin, When I click on each tab, the scroll of that tab will be activated, but there is a problem because if you click two times on each tab you will have two instance of scroll on your page! here is my code, Any ideas?</p> <p><strong>P.S I using mCustomScrollbar plugin.</stron...
javascript jquery
[3, 5]
107,130
107,131
multiple selectors not seems to work
<p>I have following HTML </p> <pre><code>&lt;div id="finalTree"&gt; &lt;ul&gt; &lt;li class="last" style="display: list-item;"&gt; &lt;a id="DataSheets" href="#"&gt;Data Sheets&lt;/a&gt; &lt;/li&gt;&lt;/u&gt;...........&lt;/div&gt; </code></pre> <p>and I am first hiding all these li and then trying to show t...
javascript jquery
[3, 5]