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,003,024
3,003,025
Accessing SessionState in IHttpModule after 404?
<p>Is it possible to access SessionState in the Error event handler of a HttpModule following a 404?</p> <p>Im trying to implement a consistent error handling mechanism for both full and partial postbacks using the technique described in this blog post,</p> <p><a href="http://blogs.microsoft.co.il/blogs/oshvartz/arch...
c# asp.net
[0, 9]
3,053,818
3,053,819
Replacing occurence of character in a string with jquery
<p>I need to replace occurrence of very <code>\</code> with <code>-</code> in a string. I am using the following code but it replace only for once occruence:</p> <pre><code>var start = '1/1/12'; startNew = start.replace('/', "-"); </code></pre> <p>Result i am getting is: <code>1-1/12</code></p> <p>Result i want is:...
javascript jquery
[3, 5]
5,257,963
5,257,964
Where is the other half of the _Default partial class that is created when you create a webform?
<p>When you add a webform, you get a file called Default.aspx.cs </p> <pre><code>public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } </code></pre> <p>Where is the other half of it?</p>
c# asp.net
[0, 9]
5,013,275
5,013,276
Prevent calling a function
<p>I have two parts of scripts.</p> <hr> <pre><code>Part 1 : $("mySelector").click(function() { alert('you call me'); }) </code></pre> <hr> <pre><code>Part 2 : $("mySelector").click(function() { if(myCondition) { //how can i prevent calling the first function from here ??? } }) </code></pre...
javascript jquery
[3, 5]
1,324,441
1,324,442
How to display image based on variable in url
<p>I am using gallerific <a href="http://www.twospy.com/galleriffic/" rel="nofollow">http://www.twospy.com/galleriffic/</a> to display thumbnails and large images when a user clicks a thumbnail. You can see it in action here <a href="http://kimmelkids.com/kimmelkids/gallery/view-gallery/" rel="nofollow">http://kimmelki...
javascript jquery
[3, 5]
4,773,197
4,773,198
Getting value from JS to PHP
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1599675/how-to-pass-value-from-javascript-to-php-and-get-return-of-php-back-to-javascript">How to pass value from Javascript to PHP and get return of PHP back to Javascript</a> </p> </blockquote> <p>how to get v...
php jquery
[2, 5]
5,430,789
5,430,790
Single page temporary PHP file upload
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery">How can I upload files asynchronously with JQuery?</a> </p> </blockquote> <p>What are the best practices (if any) for allowing a user to select a file an...
php javascript jquery
[2, 3, 5]
5,722,335
5,722,336
Javascript Class - Cannot set a property
<p>I have the below code to create a class in javascript.... Now i will only pass the ID of the 'website' and then via an ajax call i will get the rest of the information from the database (JSON ENCODED).</p> <p>Now my only problem is that when i see whats in the object at the end its only showing the id.</p> <p>The ...
javascript jquery
[3, 5]
5,280,271
5,280,272
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]
4,108,070
4,108,071
how to serialize HashSet
<p>i'm building an android app and i want to add a history function. I heard that i can serialize a list to be able to save and retrieve data instead of using a Database, i have no idea how it works so i come here and ask for advice, is there somewhere i could get started with this. Some good links could be useful. </p...
java android
[1, 4]
2,388,945
2,388,946
two JS variables refer to same Json object how to keep one constant?
<p>I have </p> <pre><code> $.getJSON('json.ashx?mode=Gender', function (data) { memberInfo = data[1]; options.series = data; originalData = data[0]; ... ... }); </code></pre> <p>which returns</p> <pre><code>[ {"type" : "pie","name" : "Gender", "data...
javascript jquery
[3, 5]
1,169,795
1,169,796
java generic how to use generic in constructor
<pre><code>public class DbManager&lt;T extends Dao&gt; { public DbManager(Context c) { setCreateDatabaseScript(T); } public void setCreateDatabaseScript(T dao) { this.createDatabaseScript = ((Dao)dao).createTable(); } //.. } </code></pre> <p>how can I inside constructor call setC...
java android
[1, 4]
147,090
147,091
jquery exclude data out of object when sending via ajax
<p>I am sending post data via ajax, and that data looks like this:</p> <pre><code>var cardProperties = { container: $("#cardContainer"), elementsWrapper: $("#cardElementsWrapperBorder"), size: 0, //0 -&gt; (90x50mm &lt;-&gt; 510px x 283px), 1-&gt; (85x55mm &lt;-&gt; 482px x 312px) position: "h", //defa...
javascript jquery
[3, 5]
3,820,020
3,820,021
How to pass javascript object from one page to other
<p>I want to pass javascript object from one page to other page so anyone can tell me how to do it?</p> <p>Is that possible to do so using jQuery?</p>
javascript jquery
[3, 5]
795,233
795,234
How can I pass Collection to modal dialog window?
<p>I want to know, if its possible to pass collection between pages. I mean to say i have a client-side JavaScript modal dialog on which I want to use my collection. Earlier I was using Session[] to share the value, but its becoming evil for me, as it always displays the first value. Any change in value in not updated....
c# javascript asp.net
[0, 3, 9]
5,368,160
5,368,161
How can we use JQuery in asp.net pages?
<p>How can we use JQuery in asp.net pages?</p>
asp.net jquery
[9, 5]
679,447
679,448
insertAdjacentHtml in jquery
<p>for some reason when using insertAdjacentHtml function in FF I am getting insertAdjacentHTMl is not a function error, is there an alternative to this in jQuery or some other alternative javascript function?</p>
javascript jquery
[3, 5]
5,152,042
5,152,043
Advance search system in asp.net web pages
<p>Is it possible to create advance search option like that of google page in asp web pages. To be more clear. il give the example of my requirement.</p> <p>In google home page. if in the textbox you type IN.. below you will get various options that start with IN like INDIA,INNOVA etc.</p> <p>Is it possible to do in ...
c# asp.net
[0, 9]
2,790,692
2,790,693
PHP command shell_exec() not working for my custom Java app5
<p>I have made a custom java program to output a license and am trying to run it in php.</p> <pre><code>$deviceid="12345"; $command_app = 'java -jar /home/myname/secure/mycommand.jar '; $privateKey = 'QEFAASCAmEwggJdAgE'; $command_app_args = "\"$privateKey\" deviceid=$deviceid"; $command=$command_app.$command_app_args...
java php
[1, 2]
81,443
81,444
frame by frame animation not running
<p>well,i am a newbie to android..and i dont know whats wrong in my code..</p> <p>this is my xml file</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;animation-list xmlns:android="http://schemas.android.com/apk/res/android" id="selected" android:oneshot="false"&gt; &lt;item android:drawable="@...
java android
[1, 4]
2,452,116
2,452,117
Is it good to switch from c# to python?
<p>Currently I am developing in the .Net environment using C# but I want to know whether it is worth learning python. I'm thinking of learning the Django framework. What is better?</p>
c# python
[0, 7]
1,136,654
1,136,655
access HttpPostedFile without saving, get error "Request for the permission of type 'System.Security.Permissions.FileIOPermission..."
<p>Can we access HttpPostedFile's uploaded file without saving the file. I am trying to read file's name and size but get error <strong>"Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.</strong>"</p> <...
c# asp.net
[0, 9]
2,311,446
2,311,447
$.ajax and ashx page
<p>I am using the following code to store values in aspx session.</p> <p>Code:</p> <pre><code> $("div.menu_body a").click(function() { var linkHeaderID = $(this).parent().attr("id"); $.ajax({ type: "GET", url: "SessionHandler.ashx", data: "headerLink=" ...
c# asp.net jquery
[0, 9, 5]
974,397
974,398
Change text of link
<p>I have a following HTML</p> <pre><code>&lt;h2&gt; &lt;a href="Controller/Method" onclick="Increment_Visits(10)"&gt;ABC&lt;/a&gt; &lt;/h2&gt; &lt;a href="#" id="10"&gt;Visits(10)&lt;/a&gt; </code></pre> <p>And following is JS</p> <pre><code>function Increment_Visits(id) { var element = document.getElementB...
javascript asp.net
[3, 9]
4,748,782
4,748,783
Move cursor at the end of the input
<p>This is my little jquery plugin that replaces each english symbol with other symbols while typing. Everything works fine here except when I type a long word, longer than the input itself, the cursor goes outside the input the the last part of the word isn't visible. Just visit the link bellow and type something (wit...
javascript jquery
[3, 5]
2,833,964
2,833,965
JavaScript: Get full path of an uploaded file
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4851595/how-to-resolve-the-c-fakepath">how to resolve the C:\fakepath?</a> </p> </blockquote> <p>Can I get full path of an uploaded file using JavaScript? I tried asyncfileuploder but I am getting file name only...
javascript asp.net
[3, 9]
2,022,181
2,022,182
javascript: alt attribute with special characters
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2775328/alt-attribute-encoding-with-javascript">Alt attribute encoding with JavaScript</a> </p> </blockquote> <p>I can't seem to assign special characters using javascript in alt tags and have them render in any...
javascript jquery
[3, 5]
24,881
24,882
In JavaScript is it possible to add to a callback function instead of overwriting it?
<p>I don't know if I'm saying this right, so I'll just ask by explaining with an example. </p> <p>Let's say I've written a jQuery plugin with an <code>onShowEdit</code> callback.</p> <p>I later use my plugin and add a bunch of other default functions/methods to the event:</p> <pre><code>$('.editable_module:not(.cust...
javascript jquery
[3, 5]
3,420,611
3,420,612
How to send, receive and store references to external Methods
<p>In a custom Class I'm trying to execute functions that are given externally via parameters.</p> <p>It is important for me not to have to store any reference to parent classes or such, only the methods/functions to be called.</p> <p>I tried sending a Method as a parameter but it isn't working.</p> <pre><code>class...
java android
[1, 4]
5,240,429
5,240,430
How to generate c# class file from c# code behind?
<p>Is it possible to create a class (classname.cs) file at runtime and use the class runtime. If it is then how to implement. please help.</p>
c# asp.net
[0, 9]
3,974,073
3,974,074
Style property of custom asp.net control throws exception when set
<p>I have written custom control that inherits from System.Web.UI.Control. I have added Style property like this:</p> <pre><code>public class MyControl : Control { public CssStyleCollection Style { get { return ViewState["Style"] as CssStyleCollection; } set { ViewState["Style"] = value; } ...
c# asp.net
[0, 9]
4,146,623
4,146,624
How does jquery return functions like success and error
<p>I've looked though the jquery code, and it's not clear to me. How do I make my own function return success or error like in the following code:</p> <pre><code> $.ajax({ type: "GET", url: "/some.xml", success: function() { /** found! **/}, error: function(xhr, status, error) { ...
javascript jquery
[3, 5]
1,599,307
1,599,308
jQuery error blocking another script from firing in asp.net
<p>I am using fancybox script as a widget to show videos as modal for "Most Popular" Widget section of the website.</p> <p>Script used for this widget is creating problems for another on almost all the page &amp; block jquery plugin from shows multiple image as slider (<a href="http://showcase.awkwardgroup.com/" rel="...
jquery asp.net
[5, 9]
4,734,789
4,734,790
JQuery 1.3 upgrade considerations
<p>I hear nothing but great things about the newest version of jQuery 1.3. Has anyone experienced any problems upgrading from 1.2.6? I would love to use it but I want to know if there are any gotchas first.</p> <p>EDIT: 1.3.1 is out. </p>
javascript jquery
[3, 5]
3,400,842
3,400,843
How do I use "this" as a part of a selector?
<p>I tried to do it this:</p> <pre><code>$(this + ' li:not(:nth-last-child(2)):not(:last-child)').hide() </code></pre> <p>Full code sample:</p> <pre><code>$('.comments').each(function(){ $(this + ' li:not(:nth-last-child(2)):not(:last-child)').hide() var template = $('#expand').html(); $(this).prepend(te...
javascript jquery
[3, 5]
3,568,087
3,568,088
Is there a way to execute a block of code during any uncaught exception?
<p>I realize this is a shot in the dark and not the best practice or way of going about it, but I want to do specific logging information as the exception is thrown. It is important that the state of the web form does not change. </p>
c# asp.net
[0, 9]
4,803,223
4,803,224
Using jQuery to clone form elements with dynamically added values
<p>I have a form that is similar to this:</p> <pre><code>&lt;fieldset id="user"&gt; &lt;input type="text" id="firstName"&gt; &lt;input type="text" id="lastName"&gt; &lt;/fieldset&gt; </code></pre> <p>Then I do an Ajax call to fill the values of those two fields. At this point I want to save the current state of t...
javascript jquery
[3, 5]
4,463,581
4,463,582
How to call javascript function from code behind?
<p>I want to execute javascript function from code behind page.</p> <p>I have two way that first that I can call javascript of html page in my code behind.</p> <p>second is that i can write javascript function in to my code behind.</p> <p>but i am not which one is better and how can i do this.</p> <p>Please tell me...
asp.net javascript
[9, 3]
4,707,363
4,707,364
Create an image cloud
<p>I want to create an image cloud where images are stacked with each other and resize according to the number of times the image has been seen. </p> <p>The cloud probably takes a predefined space too. Is it possible with javascript or do I need to go for SVG/Canvas?? </p> <p>Something similar to this: <a href="http:...
javascript jquery
[3, 5]
1,170,136
1,170,137
Removing and then adding item to div forces page view back to top
<p>A (hopefully) quick question: I'm trying to remove an element from the page, and then add a new element back in it's place.</p> <pre><code>jQuery("#branding").fadeOut("slow", function() { jQuery("#branding").empty(); jQuery("#branding").append("&lt;a class='headerimg' href='/'&gt;&lt;/a&gt;"); jQuery("#...
javascript jquery
[3, 5]
2,941,415
2,941,416
Asp.net + C#: Copy DataColumn from tableA to table B
<p>I would like to copy DataColumn from tableA to table B:</p> <p>As I think it should be like this:</p> <blockquote> <p>TableA in perdefined.</p> <p>DataColumn[] dataColum = new DataColumn[TableA .Columns.Count];</p> <p>TableA .Columns.CopyTo(dataColum, 0);</p> <p>DataTable TableB = new DataTable(...
c# asp.net
[0, 9]
5,385,375
5,385,376
window.onbeforeunload: Is it possible to get any details about how the window was unloaded?
<p>I'm developing one of those warning windows that tells the user that they may have unsaved data, but I only need it to warn them if they're leaving the page. Currently it does so on refreshes, postbacks, etc. I was wondering if there was any way to tell how the page was unloaded or otherwise get more details about w...
javascript jquery
[3, 5]
2,804,093
2,804,094
jquery capture the word value
<p>Is there a way to capture word value with jquery or javascript? in the example :</p> <p>Search: Quotes of the Month for May</p> <p>When I click "Search:" or "Quotes" or any word, that I alert that word text?</p> <p><strong>Update :</strong></p> <p>This is what I meant :</p> <p><a href="http://jsfiddle.net/BE68L...
javascript jquery
[3, 5]
1,457,336
1,457,337
Find user-control's control from another user-control in same page
<p>I have created an <code>usercontrol</code> that has <code>treeview</code> inside.<br/><br/> Now I have placed it in an <code>aspx page</code> twice with some different <code>Id</code> let us say <code>usercontrolA</code> and <code>usercontrolB</code>.<br/><br/> Both of them are loaded in to page one by one.<br/> Now...
c# asp.net
[0, 9]
600,956
600,957
how do not duplicate a action in jquery
<p>js:</p> <pre><code> $(".test").focusout(function(){ var qtdCont = parseInt($(this).val()); if(qtdCont &gt; 0) { var qtdProd = $(".value").val(); var qtdProdInt = parseInt(qtdProd); var qtdProdTot = qtdProd-qtdCont; $(".value").val(qtdProdTot); } }); <...
javascript jquery
[3, 5]
5,862,735
5,862,736
Deciding on User Control to Use at Runtime
<p>I have 2 user controls defined on a page:</p> <pre><code>&lt;%@ Register Src="Foo.ascx" TagName="FooControl" TagPrefix="acme" %&gt; &lt;%@ Register Src="Bar.ascx" TagName="BarControl" TagPrefix="acme" %&gt; . . . &lt;acme:FooControl ID="myFoo" runat="server" Visible="false" /&gt; &lt;acme:BarControl ID="myBar" runa...
c# asp.net
[0, 9]
345,792
345,793
Wait for file to exist in ASP.NET
<p>I have an ASP.NET page, where the user is able to trigger a console app on our server, which generates a file. What I want is the user to see a message that states 'Requesting file', then as soon as the file becomes available (i.e. <code>File.Exists</code> for the file returns true), the Requesting file message will...
c# javascript asp.net
[0, 3, 9]
981,831
981,832
Generate 3 dimension dynamic array in jquery
<p>How can I generate 3 dimension dynamic array in jquery, ( the length if the array should be dynamic and feed in from a variable )?</p>
javascript jquery
[3, 5]
5,953,641
5,953,642
Inputing results to inArray from .html (or innerHtml) and making it work
<pre><code>$("form").submit(function () { if ($.inArray($("input:first").val().toUpperCase(), ["UNITED STATES", "USA", "AMERICA"]) &gt; -1) { //function here }); &lt;div class="answers"&gt;"UNITED STATES", "USA", "AMERICA"&lt;/div&gt; $("form").submit(function () { if ($.inArray($("input:first").val().toUpperCase(), ...
javascript jquery
[3, 5]
3,652,688
3,652,689
Using global resource in JavaScript
<p>I want to use global resource in my javascript code. Normally, when the code is inside the ASP code, I use <code>&lt;%=GetGlobalResourceObject("Resource", "MONTHS_SHORT1") %&gt;</code> and it works. But, when the javascript code is not inside the ASP code, for example in a folder as calendar.js, it does not work. ...
javascript asp.net
[3, 9]
2,561,771
2,561,772
How to access my form values in document.ready
<p>I am new to javascript and have a very basic question:</p> <p>I have this in my HTML</p> <pre><code>Total Cost: &lt;input type="text" name="total" id="total" class="MyInput" /&gt; </code></pre> <p>I want to assign a value to this textbox at the program startup, for that I am using <code>document.ready</code>, b...
javascript jquery
[3, 5]
3,971,780
3,971,781
find id of tr in datalist
<p>I had table indatalist and I had to find id of tr in table I did my code but error apeared (object refrence...).</p> <p>aspx:</p> <pre><code>&lt;asp:DataList ID="DataList2" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" onitemdatabound="DataList2_ItemDataBound"&gt; &lt;ItemTemplate&gt; ...
c# asp.net
[0, 9]
24,418
24,419
Replace contents of a script block using jQuery
<p>I've a script block in HTML which basically has some JSON content. I would like to replace contents inside it using jQuery. I did something like this:</p> <pre><code>$("#data").html(newjson); </code></pre> <p>Above statement only works with Firefox. It does not work with IE? How do I make this work in IE.</p>
javascript jquery
[3, 5]
1,898,802
1,898,803
Extending Python with C++ no SWIG
<p>OK so I have a C++ function with a header like this:</p> <pre><code>int myfunc(vector&lt;int&gt; a, vector&lt;mystruct&gt; b, vector&lt;int&gt; c) </code></pre> <p>I have written the wrapper code (using Python.h as I have done many times with C, which translates the Python data types into the vector datatypes and ...
c++ python
[6, 7]
2,417,806
2,417,807
auto calculate total value
<p>i have form as shown in picture</p> <p><img src="http://i.stack.imgur.com/kSYcR.jpg" alt="enter image description here"></p> <p>what i need is, when i type/ change value in amount, it auto calculate sum at the bottom</p> <p>also i don't want to let add any character...</p> <p>Thanks</p>
javascript jquery
[3, 5]
1,101,337
1,101,338
Autocomplete from php source file requerying source page rather than call PHP Source file
<p>I am trying to use the JQuery Autocomplete with PHP source file, but when I check with FIREBUG I see on change of the Input field, the page is just requerying itself rather than call my source PHP file</p> <p>Code Segment</p> <pre><code>$().ready(function() { $("#item_name").autocomplete("./utilities.php?op=au...
php jquery
[2, 5]
1,172,383
1,172,384
Error when execute Response.End()
<p>I got a following error when<br> <code>Response.End();</code><br> is execute.<br><img src="http://i.stack.imgur.com/pifF2.png" alt="enter image description here"></p> <p>Its look like a <code>threading error</code> but unable to handle it.Any body know about the error and how to fix it?.I am using <code>VS2008</cod...
c# asp.net
[0, 9]
5,364,205
5,364,206
Sorting a data table based on sort order from another data table
<p>I have 2 data tables, one in which i have my data(D1) with a unique data Id and in another data table(D2) i have the Ids of all the records of my data table(D1) in a particular order.How can i sort my data table(D1) based on the order of Ids in D2.I am using c# asp.net </p>
c# asp.net
[0, 9]
1,833,037
1,833,038
How to read/parse article content from link to string
<p>I was in need of help. How do I get content on article websites with java or android?</p>
java android
[1, 4]
665,283
665,284
C# and ASP.Net. Guidance required
<p>I am a student and do my work and projects in c#.. I have not experienced WEB still. The question I wish to ask is that whenever in or near future if I wish to switch onto developing WEB Applications on ASP.Net, will I experience any difference ?? excluding any syntax changes.. I mean in C# the way do Add Update and...
c# asp.net
[0, 9]
4,475,684
4,475,685
PHP Variable in Echoing JavaScript
<p>I have an php script that is echoing JavaScript, in the JavaScript there are PHP variables </p> <pre><code>echo '&lt;script type="text/javascript"&gt; FB.init({ appId: "myid", channelUrl: "//mysite/channel.html", status: true, // check login status cookie: true, // enable cookies to allow the ...
php javascript
[2, 3]
4,502,241
4,502,242
Getting the application roots
<p>I am trying to get the my application's physical and relative root programatically, but I am having some problems. I was easily able to get the physical path using <code>HttpContext.Current.Server.MapPath("~/")</code>, but the relative root is proving tricky.</p> <p>I tried the recommended solution of doing:</p> <...
c# asp.net
[0, 9]
1,308,732
1,308,733
Calling an ASP generated button click from a javascript
<p>I've following button on my web control,</p> <pre><code>&lt;asp:Button runat="server" ID="btnSave" Text="Save" onclick="btnSave_Click" OnClientClick="myShowWaitScreenWithNoClose('Processing...', 'Saving survey.Please wait it may take minutes..');" CssClass="buttons" Height="46px" Width="212px" Visible="false" /&g...
c# javascript asp.net
[0, 3, 9]
2,192,059
2,192,060
setTimeout on Asynchronous function
<p>I have a asynchronous function that I want to have a 5000ms delay before being fired. I am trying to use <code>setTimeout()</code> to achieve this. This async function occurs in a loop that runs several times, with the async function being passed different data each time, thus <code>setInterval()</code> cannot be us...
javascript jquery
[3, 5]
2,347,258
2,347,259
Rename the uploading Image
<p>i am uploading the image into the server , need to place the _ in place of gap in the image. Like if the name of image is Stack Flow.jpg, i need to send it as Stack_Flow.jpg in the directory as well in the email. HOw could be possible with the following code. i have tried but no success.. I am sending the 4 files in...
php javascript
[2, 3]
5,061,105
5,061,106
Is there a way to ignore a mouse event?
<p>When I hover over a div (assume it has id=div-CON), I have another div, positioned absolute, that pops up and follows the mouse while I am within div-CON. When the mouse leaves div-CON, the floating div disappears.</p> <p>Now, there are instances where if the browser is slow or lagging, the floating div does not up...
javascript jquery
[3, 5]
4,620,385
4,620,386
call js script on every change state
<p>i have big table with many html items such as select, textbox, radio-button, checkbox. also i have some function. i want to call this function on every change in item. for example select was changed, or some text type in textbox, or click radiobutton. how can i simply subscribes and call my js function? i can insert...
javascript jquery
[3, 5]
3,271,916
3,271,917
using Jquery to show one error message at a time
<p>I'm trying to show one error message at a time and then once that error has been corrected to show the next error.</p> <p>For example there is validation on three textbox (Date, Month &amp; Year) once the date textbox is valid then the month error message choudl show.</p> <p>The code I have so far for this is: </p...
javascript jquery
[3, 5]
4,968,917
4,968,918
Php redirect to one server to another sever php page
<p>I have two server A and B and both server are same script but i want redirect page when i login to server A login page then the page is automatic redirect to server B login page is it possible?</p>
php javascript
[2, 3]
6,009,986
6,009,987
Response.WriteFile stopping previous request
<p>I have a button that calls a click event to download a picture. In my click event I have some code to change my display as the Save dialog pops up. The issue I am having is that when the dialog comes up it stops the previous line of code from executing. How can I check to see that my code has executed before calling...
c# asp.net
[0, 9]
4,558,101
4,558,102
Whenever I am running my android app, it says "XYZ is not responding"
<p>It was running perfectly fine till yesterday... I am new to android programming , Any help would be great.. In my app I am parsing a downloaded xml file and then creating a dynamic UI... Here is a snippet of my code..</p> <pre><code>private class ParseXML extends AsyncTask&lt;Integer, Integer, Document&gt;{ pu...
java android
[1, 4]
5,694,579
5,694,580
jQuery .hover(function{}) only on actual hover
<p>I'm familiar with jQuery but i have one little setback. I would like the function to be called only when i just hover the element, and not when im already hovering it and i slightly move the mouse.</p> <p>I simply want the function to be called only if i'm entering the area of the element from outside of it.</p> <...
javascript jquery
[3, 5]
2,523,088
2,523,089
Choosing Object in For Loop based on Input
<p>I want to populate select options based on the value of the previously selected option.</p> <pre><code> &lt;label for="state" class="block"&gt;State:*&lt;/label&gt; &lt;select name="state" id="state" tabindex="1"&gt; &lt;option value="Arizona"&gt;Arizona&lt;/option&gt; ...
javascript jquery
[3, 5]
1,774,779
1,774,780
How can I put the index number as a value in a foreach?
<p>I have the following code:</p> <pre><code>foreach (var SubTopic in Model.SubTopic.Description) { &lt;option value="xxx"&gt;SubTopic&lt;/option&gt; } </code></pre> <p>I would like to find a way to insert the index number into xxx as value. 01 for the first, 02 for the second option line etc. </p> <p>Is there an e...
c# asp.net
[0, 9]
254,236
254,237
how to select drop down list based on <p> value
<p>Click form edit has trouble on drop down list</p> <p>Dropdown list shows first item. I need to select value based on <code>&lt;p&gt;Professor&lt;p/&gt;</code></p> <p>html</p> <pre><code>&lt;p&gt;Title&lt;/p&gt; &lt;p class='title'&gt;Professor&lt;/p&gt; </code></pre> <p>JQuery </p> <pre><code>$('.title').click(...
javascript jquery
[3, 5]
4,302,170
4,302,171
How to draw a graph in asp.net 2.0
<p>I want to represent a Graphical analysis in a web application which is being developed in .net 2.0. I refereed some of the jquery plugin but did not find appropriate.</p> <p>I want to present a graph similar to reputation section of stack overflow if you've seen. Please help to find such a graph plugin.</p>
jquery asp.net
[5, 9]
531,653
531,654
How can I redirect based on a selection of a DropDownList
<p>I have a <code>TextBox1</code> and a Search button in my application with this following code:</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("~\\searchpage.aspx?PatientNRIC=" + TextBox1.Text); } </code></pre> <p>Which means, if the user type ONLY <code>IC NO:S12345...
c# asp.net
[0, 9]
352,162
352,163
Post to Get method Conversion Vulnerability in ASP.net application
<p>How can an Asp.Net web application be prevented from accepting Post to Get method conversion. More precisely, how can 'GET' requests be rejected where a 'POST' data is expected. I will greatly appreciate clarification on how this VULNERABILITY occurs and how it can be prevented. Thanks.</p>
c# asp.net
[0, 9]
1,734,348
1,734,349
Web Application Authentication
<p>I have two questions concerning authentication of a intranet website and how to go about doing it.</p> <ol> <li>I want the first page the user comes to, to be the login page. I could have sworn there was a tag, something like [Authorize] that you put in your C# code that did this for you but I can't find it anymor...
c# asp.net
[0, 9]
399,651
399,652
javascript detect browser close tab/close browser
<p>any cross browser javascript/jquery to detect if browser is closing tab or closed browser ? and should not activate event when go to other link? </p>
javascript jquery
[3, 5]
1,519,584
1,519,585
Javascript validation
<p>I have a form that people can click and add fields to the form and I need to have it validate the values in those fields if it is clicked. </p> <p>So say I click it twice and get the 2 separate sets of fields and I need the rotation % to make sure it equals 100 at the time of save. </p> <p>I have put in this funct...
javascript jquery
[3, 5]
4,886,523
4,886,524
ASP.NET: Insert Multiple Values from a Dropdownlist into Database
<p>How can I insert two different values into columns of a table in a database when both values come from the same DropDownList? For example one value is 'name' and the other is 'id'. </p>
c# asp.net
[0, 9]
4,031,774
4,031,775
Setting focus on top of the page on click of asp.net link button
<p>I've a asp.net datagrid which shows customer order details. Pagination at the bottom of the grid is done using datalist and asp.net Linkbutton controls. Here is the code:</p> <pre><code> &lt;asp:DataList ID="DataList2" runat="server" CellPadding="1" CellSpacing="1" OnItemCommand="DataList2_ItemCommand" ...
c# asp.net
[0, 9]
4,154,980
4,154,981
jQuery: Timeout after trigger()
<p>I using a mesh of organic tabs and a image rotator. When the user clicks on one of the thumbnails, the image rotator stops auto-advancing. When the user clicks on a tab, the auto-advance starts again. However, without a timeout or pause, the auto-advance may change simultaniously when the user clicks on a tab.</p> ...
javascript jquery
[3, 5]
3,285,709
3,285,710
jQuery get the id from the parent selector?
<p>I have the following code and this is getting the id attribute of the 'a' element. However, I'd like to get the id attribute of the original '.panel' class.</p> <p>Any ideas how to do this? Thank you!</p> <p>jQuery:</p> <pre><code>$('.panel .panel_content a').click(function(){ alert($(this).attr('id')); });...
javascript jquery
[3, 5]
3,227,427
3,227,428
string indexer works localy but not when site is hosted
<p>I have following problem with java script.</p> <p>I have <em>jQuery</em> object. Locally getting i-th symbol of its value i use following code $(this).val()[i];</p> <p>When i deployed this code in server this line started throwing exception saying that $(this).val()[i] is undefined and instead of it i used $(this)...
javascript jquery
[3, 5]
3,741,719
3,741,720
JavaScript variable value to a PHP
<p>I know that the following question has been asked many times:</p> <pre><code>&lt;script&gt; var myVar = 123; &lt;?php $what_is_myVar = myVar ; ?&gt; &lt;/script&gt; </code></pre> <p>My searching results for this question were: </p> <ul> <li>PHP runs on the server, JavaScript runs on the client…</li> <li>Need ...
php javascript
[2, 3]
2,113,739
2,113,740
echo javacript form value
<p>I have this script.</p> <pre><code>&lt;head&gt; &lt;script type="text/javascript" src="sha1.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;?php $A= 'TEST01'; $B= '059B8125F'; $C= '20061123_003'; $D= '100.00'; $E= '50126'; ?&gt; &lt;form name="checkout" method="post" action=""&gt; &lt;input type="hidden" na...
php javascript
[2, 3]
3,335,924
3,335,925
jquery & php: saving some data without reload
<p>I have three buttons and need to save some data. I have a idea, I have to set an ID to every button and then let the JS determinate witch button that has been pressed, like:</p> <pre><code>$("#mySpecifikButton").click(function() { ....some code here... }); </code></pre> <p>but then Im stuck. For example I have 9 u...
php jquery
[2, 5]
3,188,610
3,188,611
Asp net grid view select row using jquery
<p>I have a normal gridview on asp.net web page... I want to select a row using jquery and then pressing a button to send the id and descripcion columns to a web service...</p> <p>My question is how can I select the row and get the information I want... all using jquery.</p>
jquery asp.net
[5, 9]
1,120,851
1,120,852
How to format a dollar?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/149055/how-can-i-format-numbers-as-money-in-javascript">How can I format numbers as money in JavaScript?</a> </p> </blockquote> <p>I am doing a divide and multiply to figure out the value of a field and the valu...
javascript jquery
[3, 5]
1,750,384
1,750,385
Help with ternary operator
<p>I don't think I am using the ternary operator correctly as I am not getting the results am I after:</p> <pre><code>buildHTML.push("&lt;a href='http://mysite/user?screen_name=" + data.friend == null ? data.user.me : data.friend + "'&gt;" + data.friend == null ? data.user.me : data.friend + "&lt;/a&gt;"); </code></pr...
javascript jquery
[3, 5]
2,905,161
2,905,162
How to add a field validator and set it programmatically
<p>I need to add a field validator, the admin of the website sets the number of characters of a textbox in admin and then... in the front side users can only type upto the number of characters specified by the admin.</p> <p>In the fron end i aleady pull the number from the database but now i am not sure how to create ...
c# asp.net
[0, 9]
2,001,342
2,001,343
What is the equivalent of the C++ Pair<L,R> in Java?
<p>Is there a good reason why there is no Pair in Java? What would be the equivalent of this C++ construct? I would rather avoid reimplementing my own.</p> <p>It seems that 1.6 is providing something similar (AbstractMap.SimpleEntry), but this looks quite convoluted.</p>
java c++
[1, 6]
1,093,278
1,093,279
How to properly make a Ken Burns effect using JQuery
<p>I recently tried the Ken Burns effect with this little jQuery plugin: <a href="http://tobia.github.com/CrossSlide/" rel="nofollow">CrossSlide</a>.</p> <p>The problem with that plugin is that when the motion is too slow it looks really bad. This is due to the fact that the image can only move 1 pixel at the time...<...
javascript jquery
[3, 5]
612,375
612,376
how to set Assembly version to the web application?
<p>i have developed the application in ASP.NET with C#. i want to set the Assembly version to this project but in property page this option can not be displayed .how to set Assembly version to the web application ? </p>
c# asp.net
[0, 9]
4,762,496
4,762,497
jquery - make a div appear where I click?
<p>Hey, I'm trying to make a little feature where I can click on an icon, and a box will appear that is similar to lightbox, but anchored on the icon. Is there a way to </p> <ol> <li>Tell where the icon is on the screen, and then </li> <li>Have the top left corner of my box placed where the icon is, and then </li> <l...
javascript jquery
[3, 5]
2,130,429
2,130,430
Need to view the thumbnail of the word Document
<p>If i browse the word file through file upload control in html, i want to view the thumbnail of the document(first page is enough) as an image in the right to my control..How to do it programmatically..please suggest..Thanks in advance...</p>
java javascript
[1, 3]
5,400,419
5,400,420
Jquery handle global variable
<p>I am having problem with the following code :</p> <pre><code>var pageviews = [ [1, 0] ]; $.get("http://bla..bla", function(res){ pageviews.push([2, res.value]); }, "json"); </code></pre> <p>I've checked the pageviews variable but the array is not updated. I can see the "res.value...
javascript jquery
[3, 5]
669,823
669,824
Where can I find a Java to C# converter?
<p>I needed to convert a Java 1.5se app to C# 2.0.</p> <p>Does anyone know of a tool (preferably free/open source) to do this?</p>
c# java
[0, 1]