Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
5,278,225
5,278,226
jquery select remove undefined?
<p>I using jquery how do i remove the one of the elements of the select dropdown where the value</p> <pre><code>&lt;option value=" "&gt;undefined&lt;/option&gt; </code></pre> <p>i tried </p> <pre><code>$("#subType option[value=' ']").remove(); $("#subType option[value='']").remove(); </code></pre> <p>None of them w...
javascript jquery
[3, 5]
1,356,655
1,356,656
How to get input value to modal box jquery UI
<pre><code>&lt;div id="befor-box"&gt; &lt;form id="newsletter-form" name="newsletter-form" action="/sub/" method="post"&gt;{% csrf_token %} &lt;input name="email" type="text" value="Enter your Email here" class="text"/&gt; &lt;input class="submit" onclick="showDialog();" value="Subscribe!" /&gt; &lt;...
javascript jquery
[3, 5]
4,931,042
4,931,043
to pass values (data) from our application to native app in android?
<p>i am developing program for union and intersection of two strings in android, i also calculate number of character in union as well intersect results individually?the results values (union&amp;intersect) should pass to native calculator and the result will shown in calculator?</p> <p>i have to pass the that result ...
java android
[1, 4]
5,376,492
5,376,493
Rendering javascript code in php document
<p>I'm a beginner to PHP and I have a quick question. Is it possible to have javscript code injected into a document through php?</p> <p>For example, suppose I wanted to inject a button that called a function after a form is filled out:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type = text/javascript&gt; ...
php javascript
[2, 3]
2,086,132
2,086,133
How to have custom object listen for child custom object's events?
<p>I am trying to create a couple of custom objects in JavaScript and I am unsure if I am going about things the proper way.</p> <p>I have two objects: 'UserInterface' and 'VolumeSlider'. Up until a moment ago these two objects were independent, but coupled through methods. I decided that UserInterface should instead ...
javascript jquery
[3, 5]
5,760,581
5,760,582
Using JavaScript to switch through tabs without changing layout?
<p>My webpage is at <a href="http://sarahjanetrading.com/js/j/index.html" rel="nofollow">http://sarahjanetrading.com/js/j/index.html</a></p> <p>I have done all the layout and coding. I want the tabs to toggle when clicked over them. I tried google but was in vain. I am willing to achieve the effect using either JavaSc...
javascript jquery
[3, 5]
3,409,684
3,409,685
how to use different sender than credentials use in smtp configuration in asp.net
<p>Hi in my web application we are sending mail to the person who<code>s birthday is in current week, so while sending mail i don</code>t want sender as email id which is used in smtp configuration i want to use different email id as sender,</p> <p>Can any one tell me how i can achieve this,</p>
c# asp.net
[0, 9]
335,966
335,967
Selecting readOnly textboxes with JQuery
<p>In my ASP.NET MVC project i need to select all text boxes that have attributed "readOnly" in current page and show modal Jquery dialog in keypress on the disabled text box.Any help appreciated.</p>
javascript jquery
[3, 5]
210,883
210,884
How to send selected information from Android phone to Hotel Management Software
<p>I am developing my first android application for restaurant in which i want to the customer to select the recipes from menu. Now as per my need i have to send the order from particular customer to the Hotel Management Software running on the Reception. I am stuck with the following concerns:</p> <ol> <li><p>How to ...
java android
[1, 4]
5,511,861
5,511,862
How can I submit a web form by clicking keyboard button?
<pre><code>&lt;form action="page.php" method="post"&gt; &lt;input type="text" name="some_text" /&gt; &lt;input type="submit" name="some_submit" / &lt;/form&gt; </code></pre> <p>I want to submit this form by pressing defined keyboard button. I wonder how to do it. If it was just an <code>&lt;a&gt;</code> elemen...
php javascript
[2, 3]
3,445,802
3,445,803
Page postback even though validate function returns true
<p>I am using ASP.NET 4.0, JS, and Jquery for some validation. My js is throwing this error after my validation runs and returns false. It also is allowing for a post back to occur. </p> <p>JS excerpt throwing the error:</p> <pre><code> var eventArgs = new Sys.WebForms.EndRequestEventArgs(error, data ? data.dataItems...
javascript jquery asp.net
[3, 5, 9]
1,316,206
1,316,207
Efficiently Composing a Dialog using BlockUI and jQuery
<p>I am creating a small wrapper for the fantastic <a href="http://jquery.malsup.com/block/" rel="nofollow">BlockUI</a> plugin used in my application to easily create dialogs that meet my needs.</p> <p>Sometimes I am a bit jQuery retarded and would like to know from any of the aficionados out there how they would do t...
javascript jquery
[3, 5]
802,864
802,865
Passing an object's hierarchy as an argument to it's parent function
<p>I have an Object called <code>html</code> inside a Function called <code>tpl()</code>.</p> <pre><code>html = { intro: ['intro', 'html'], common: { header: ['common', 'header', 'html'] }, more:{ header: { link: ['hello', 'world'] } } }; </code></pre> <p>I am trying to access <code>html</code>'s values b...
javascript jquery
[3, 5]
4,020
4,021
How to retrive "Last Modified Date" of uploaded file in ASP.Net
<p>I am developing a website, in which client uploads some document files like doc, docx, htm, html, txt, pdf etc. I want to retrieve last modified date of an uploaded file. I have created one handler(.ashx) which does the job of saving the files.</p> <pre><code>Following is the code: HttpPostedFile file = context.Req...
c# asp.net
[0, 9]
5,899,346
5,899,347
How to run onclick event in asp.net from another button's javascript?
<p>Void button has a confirm box after receiving true, expecting running another button's click event however, Void2_Button_Click not run, where is wrong?</p> <pre><code>protected void Void2_Button_Click(object sender, EventArgs e) { // do something } Void_Button.Attributes.Add("onclick", "var agree=conf...
c# asp.net
[0, 9]
2,814,298
2,814,299
How to design with Paging of Gridview with additional options
<p>I have a problem that I want to design a gridview with additional options with paging in a different way which is shown in below images. I can implement simple paging concept in GridView but that will not shown like this which I desired as in images. This will show Records Per Page options also. Please suggest me an...
c# asp.net
[0, 9]
1,021,259
1,021,260
How to programmatically get session cookie name?
<p>The default cookie name for the Session Id in ASP.NET is <code>ASP.NET_SessionId</code>. It's also possible to change this name to something else like <code>&lt;sessionState cookieName="FooBar" /&gt;</code>. </p> <p>Is there a member to easily access this name like with <code>FormsAuthentication.FormsCookieName</co...
c# asp.net
[0, 9]
3,321,567
3,321,568
How to convert asp:label to asp:texbox in asp.net?
<p>On the <code>page_load</code> event I am checking if the authorization is <code>Admin</code> or not. If they are not in the <code>Admin</code> role then I have to change the available <code>**asp:label**</code> control to an <code>**asp:textbox**</code> control in the UI.</p> <p>1) Will it be possible to dynamical...
c# asp.net
[0, 9]
3,133,853
3,133,854
How to merge mutiple tables into one, with same schema and column names
<p>I have 3 collection datatable that shows in this below</p> <pre><code>Month: January ID NAME Absent 001 John 3 002 Travis 0 Month: February ID NAME Absent 001 John 18 002 Travis 14 Month: March ID NAME Absent 001 John 10 002 Travis 5 </...
c# asp.net
[0, 9]
2,998,105
2,998,106
Issue with writeCapture in safari 5.1 , while loading banner ad
<p>I am, using <a href="https://github.com/iamnoah/writeCapture" rel="nofollow">writeCapture</a> to display ads , its working in every browser except safari 5.1. <br>Its just loading ad's noscroipt code &amp; empty saying ,</p> <pre><code>&lt;div style="margin:0px;padding:0px;border:none;" id="atm_div_0.5912452735938...
php javascript jquery
[2, 3, 5]
5,401,265
5,401,266
Using SimpleDateFormat in a for loop on a list of objects
<p>My app crashes whenever I try to do this:</p> <pre><code>for (CalendarEvent event : this.ListofEvents){ String myDate = new String(event.getDate()); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); try { theDat...
java android
[1, 4]
1,307,275
1,307,276
My Return false is not working in this code..using jquery
<pre><code>$(function () { $('#form4').submit(function () { var val = $("#txtNewServiceTypeCategory").val(); $("#ServiceTypeCategoryName").children("option").each(function () { var $this = $(this); if (val == $this.val()) { alert("ServiceTypeCategory Name is ...
javascript asp.net jquery
[3, 9, 5]
5,543,077
5,543,078
jquery - button in ajax respone - no response to click
<p>jquery;</p> <p>Situation - just upgrading from pure javascript to jquery - prompted by browser inconsistencies.</p> <p>On load, a page displays, in a div, the result of an ajax request, which includes an OK button, <code>&lt;input name="srd_button_ok" type="button" value="OK"&gt;</code> at the bottom.</p> <p>Clic...
javascript jquery
[3, 5]
5,299,539
5,299,540
How to create own jQuery-like function in JavaScript?
<p>How can i create a function which looks like the jquery callback $</p> <p>Say i want to call a element with id= "mydiv".</p> <p>i want to be able to call it like </p> <pre><code>var div = $("mydiv").value; </code></pre> <p>i think the function should look like </p> <pre><code>function $(element) { return doc...
javascript jquery
[3, 5]
4,840,642
4,840,643
How can I target an element's 'parent'
<p>I have some <code>&lt;TD&gt;s</code> without unique names. Inside them there are spans with unique classnames so I have no problem targetting the spans. How can I target the parent <code>&lt;td&gt;</code> so I can change its class?</p> <p>I want to do something like <code>$(".classname").parent("TD").className="ne...
javascript jquery
[3, 5]
1,940,938
1,940,939
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]
1,624,521
1,624,522
How to create object attribute with name from input id?
<pre><code>&lt;input id="some_id" value="some_value"&gt; </code></pre> <p>I need to create <code>{some_id: some_value}</code> (in other words i need to use as name of the attribute value of id) from upper input. </p> <p>I tried:</p> <pre><code>jQuery('[name="page-numbers[]"]').map(function () { return { jQuery(thi...
javascript jquery
[3, 5]
5,903,739
5,903,740
How to manage multiple versions of same class file for different SDK targets?
<p>This is for an Android application but I'm broadening the question to Java as I don't know how this is usually implemented.</p> <p>Assuming you have a project that targets a specific SDK version. A new release of the SDK is backward incompatible and requires changing three lines in one class.</p> <p>How is this ma...
java android
[1, 4]
3,100,247
3,100,248
Action bar has dissappeared
<p>I am new to android development and seem to be stuck at the moment. Whenever I compile and test my app on a device I getting a fatal error message:</p> <pre><code>=1: thread exiting with uncaught exception (group=0x4137d930) 12-10 22:07:28.423: E/AndroidRuntime(20961): FATAL EXCEPTION: main 12-10 22:07:28.423: E/An...
java android
[1, 4]
3,845,884
3,845,885
asp.net - displaying a dictionary with a list as the value?
<p>I'm seeking advice as to what would be the best way to do this in ASP.Net (C#).</p> <p>I'm trying to create a page that lists a all the staff in our office, and had a summary of 4 weeks worth of their timesheets.</p> <p>I have a timesheet object for each week which can do all of that, and I figure I can return a D...
c# asp.net
[0, 9]
119,666
119,667
regular expression validator
<pre><code>&lt;asp:RegularExpressionValidator id="RegularExpressionValidator1" ControlToValidate="toAmountTextBox" ValidationExpression="^\d*[1-9]\d*(\.\d+)?$" Display="Dynamic" EnableClientScript="true" Text="* Please Enter valid amount" runat="server" /&gt; </code></pre> <p...
c# asp.net
[0, 9]
907,248
907,249
Opening the webpage as if a link has been clicked from webpage
<p>There is a webpage at this URL:</p> <p><a href="http://www.vankampen.com/Products/529Portfolios" rel="nofollow">http://www.vankampen.com/Products/529Portfolios</a></p> <p>This webpage opens with default option "With Sales Charge". There is a link "Without Sales Charge" on this webpage. When we click on this link t...
asp.net javascript
[9, 3]
2,192,764
2,192,765
jQuery: running youtube videos in for loop, plays last video
<p>I have <code>jQuery</code> function as</p> <pre><code>function play_queue_video() { var queue_videos = $('.queue_list .view-item'); for (var i = 0; i &lt; queue_videos.length; i++) { console.log('id - ' + queue_videos[i].id); play_video(queue_videos[i].id, true); } } </code></pre> <p>If...
javascript jquery
[3, 5]
2,399,006
2,399,007
Textbox value onclick onblur issue
<pre><code>&lt;asp:TextBox ID="TxtBOX" runat="server" CssClass="text" Height="32px" Width="360px" TextMode=MultiLine TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" onclick="if(this.value='&...
javascript asp.net
[3, 9]
5,500,695
5,500,696
Python and Android
<p><a href="http://code.google.com/p/android-scripting/" rel="nofollow">This</a> link says that it is indeed possible to write code in <strong>Python</strong> and use it for app development in <strong>android</strong> platform. I would like to know what the catch is when using Python and not Java. Is there any comprom...
android python
[4, 7]
664,718
664,719
Parse HTML Code
<p>On input we have HTML like:</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;img ...&gt; &lt;/td&gt; &lt;td&gt; &lt;img ...&gt; &lt;/td&gt; ... &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>But in last td:</p> <pre><code>&lt;td&gt; ...
php javascript
[2, 3]
1,032,717
1,032,718
jQuery and Unicode characters
<p>I am calling a .txt file from a jquery ajax call. It has some special characters like <code>±</code>. This <code>±</code> is a delimiter for a set of array; data I want to split out and push into a JavaScript array.</p> <p>It is not treated as <code>±</code> symbol when interpreted like this.</p> <p>How do I get t...
javascript jquery
[3, 5]
2,489,823
2,489,824
Mixing php and javascript -- under what conditions?
<p>Under what conditions can I put PHP into Javascript code? Is it always ok? Is it just a bad idea? I am surprised I have not seen it more. </p> <p>For example, I came across this..</p> <pre><code>$('#thumbnail').imgAreaSelect({aspectRatio: '&lt;?php echo $thumb_height/$thumb_width;?&gt;', onSelectChange:preview});...
php javascript
[2, 3]
5,444,223
5,444,224
RSA decrypt in ANdroid
<p>I am using RSA modulus and encrypting a data with modulus and trying to decrypt it with private key of RSA ..i m using RSA/ECB/PKCS1Padding at the decrypt end </p> <p>Thnx in advance </p>
java android
[1, 4]
4,132,157
4,132,158
What is the best first-step to start building android applications?
<p>Sorry for asking this beginner's question and I know I may get down-votes but please guide me here.</p> <p>What is the best first-step to start building android applications? I feel the need to start doing so, however I have no clue whatsoever how to start. All I know (and heard from people) is that android applica...
java android c++
[1, 4, 6]
896,733
896,734
button click focus text on textarea
<p><img src="http://i.stack.imgur.com/nY3nl.png" alt="enter image description here">i am working on this project where i press a button that will look for specific words in the textarea(may be move the cursor to that specific word). i tried many things but so far no luck. here what i am trying to do.</p> <pre><code>$l...
php javascript
[2, 3]
856,931
856,932
passing multivariables to new page via gridview select
<p>I have a gridview where i want to pass two different ID when i select a row to a new page. I need them to be two different variables so i dont want to bind them together.</p> <p>Currently, the way i am doing it with link select the values of SUBMITTEDJOBAPPLICATION &amp; the JOBAPPLICATIONID variables are the same(...
c# asp.net
[0, 9]
3,901,865
3,901,866
How to improve RandomAccessFile usage?
<p>I'm using a <code>RandomAccessFile</code> to <strong>rw</strong> data to it constantly. The size of the file can range from 5MB up to 200MB. This file is used as a <strong>circular buffer</strong>. </p> <p>My main concern is the constant seek before a read and write.</p> <p>What happens after seek? Does part of t...
java android
[1, 4]
2,453,181
2,453,182
Accepting a serialized form from jquery in asp.net
<p>In asp.net mvc it's pretty easy to receive a form collection in a ajax page webmethod like:</p> <pre><code>public bool AddSomething(FormCollection form) { return true; } </code></pre> <p>How do I receive serialized data in an asp.net page method:</p> <pre><code> [WebMethod] public static string AddSomething...
jquery asp.net
[5, 9]
2,433,246
2,433,247
how convert date(02/07/2012) to Tuesday, Febraury 7, 2012
<p>Can any one please help me how to convert date(02/07/2012) to Tuesday, Febraury 7, 2012. And how can i relate it to datepicker.</p> <p>OR</p> <p>is there any date picker which provides date like Tuesday, Febraury 7, 2012 ,when user selects date from datepicker.And how can i add next and previous buttons to the dat...
php javascript jquery
[2, 3, 5]
1,190,931
1,190,932
How to redirect after File upload?
<p>I have a File.aspx form where I display all the files.</p> <p>When I upload a file I am using a upload.aspx file to run c# code to upload the file.</p> <p>The thing is that at the end , I want to refresh the page automatically to display the new file upload but apparently it's not redirecting even if all the param...
c# asp.net
[0, 9]
207,045
207,046
createuserwizard adding roles to users
<p>Hi I have a createuserwizard controls and I would like assign ROLES when creating a user.</p> <p>Any idea how to do it? Thanks</p> <p>Here my code C#</p> <pre><code> &lt;asp:CreateUserWizard ID="uxCreateUserWizardInput" runat="server" LoginCreatedUser="False"&gt; &lt;WizardSteps&gt; &lt;asp:Cr...
c# asp.net
[0, 9]
3,836,000
3,836,001
How to apply a function to two elements?
<p>I have two elements <code>#DateTimeStart</code>, <code>#DateTimeEnd</code>, I would like apply my <code>datetimepicker</code> to both.</p> <p>With this code I cannot have the result.. any idea what I am doing wrong here?</p> <pre><code>$(document).ready(function () { // This does not work $('#DateTimeStar...
javascript jquery
[3, 5]
2,791,013
2,791,014
Associating unique properties to anonymous functions in JavaScript
<p>What's a standard way of associating unique properties to anonymous JavaScript functions while creating them so that these properties can be accessed within the functions themselves when they are executed (i.e. run time)?</p> <p>A scenario is this:</p> <p><em>Say I have events which I want to bind to dynamically g...
javascript jquery
[3, 5]
4,689,523
4,689,524
Android - TouchDrag moves image within view, but need entire view to move
<p>My image simply moves within my image view based upon the touch location. I need the entire view to move (not just the image in it).</p> <p>Here is my code in onTouch:</p> <pre><code>ImageView image = (ImageView)v; switch (event.getAction() &amp; MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOW...
java android
[1, 4]
2,879,077
2,879,078
After upgrading to Visual Studio 2010 - The type or namespace name 'xxxxxxxxx_ascx' does not exist in the namespace 'ASP'
<p>We recently upgraded our website project to Visual Studio 2010.</p> <p>I am now getting this error whenever I try to Publish the Website with the "Allow this precompiled site to be updatable" checked.</p> <p>This worked previously using Visual Studio 2008 so I am not sure why it is not working now.</p> <pre><code...
c# asp.net
[0, 9]
1,311,416
1,311,417
Confirmation before deleting (jquery)
<p>I would like to show a simple confirmation dialog box show before running a delete function.</p> <p>Here is what I have so far</p> <p>HTML:</p> <pre><code>&lt;!-- Delete Confirmation Dialog Box --&gt; &lt;div id="confirm" style="display:none;"&gt; &lt;div class="message"&gt;Are you sure you want to delete?&lt;/...
javascript jquery
[3, 5]
5,893,068
5,893,069
how to catch key event on textbox?
<p>if i have focus on textbox and i press enter or Esc</p> <p>how to catch this event ?</p>
c# asp.net
[0, 9]
1,035,249
1,035,250
Jquery window.location not redirecting but refreshing page
<p>I have the following Jquery snippet </p> <pre><code>// General search $j(".search").each(function () { var baseURL = "/search.aspx?c=Entire%20Site&amp;q="; var searchBox = $j(this); searchBox.find("input").keypress(function (e) { if (e.keyCode == 13) { submitSearchValueFromTextBox(se...
javascript jquery
[3, 5]
5,812,919
5,812,920
handling more than one divisions in javascript
<p>In my program I have 3 divisions with class 'information', 'interest' and 'wall'. I want this divisions to change their color when a a user clicks on it. Initially all 3 division classes have same color <code>#dcdcdc</code>. When user clicks on 1 of them I want to change its color to <code>#999</code>, but color of ...
javascript jquery
[3, 5]
4,342,725
4,342,726
focusout jquery not work
<p>i want #result will hide on send click outside #search_form. i try use focusout but it not work.</p> <pre><code>&lt;div id="search_form"&gt; &lt;form method="post" onsubmit="return checkForm(this.form)"&gt; &lt;div class="search padding"&gt; &lt;input type="text" id="searchbox" name="manga_n...
javascript jquery
[3, 5]
4,817,942
4,817,943
<option> tag, display:none and jquery
<p>I have a <code>div</code> that is being used as a dialog with jQuery's <code>.dialog()</code>. This div has a select box with options. The options the user has already selected are displayed on the main page. They can remove options from the main page and can open the dialog multiple times to add more options.</p> ...
javascript jquery
[3, 5]
3,431,826
3,431,827
Inside OnClickListener I cannot access a lot of things - how to approach?
<p>Inside an OnClickListener I cannot access most variables "outside" of the scope, like this:</p> <pre><code>findViewById(R.id.Button01).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent mainApps = new Intent(Intent.AC...
java android
[1, 4]
2,893,848
2,893,849
What is the most idomatic way to index a list of objects by coordinates
<p>I have a strong python background and a total newbie with Java, so I try to do things in <em>Pythonic</em> way in java and end up struggling. Currently I have a problem to figure out how to do store objects, indexed by coordinates, so that they are iterable. I <em>could</em> create an 2-dimensional array of the obje...
java python
[1, 7]
2,233,890
2,233,891
Is there any reason to use Server.MapPath() to reference a file store?
<p>I have seen several developers perform:</p> <pre><code>string fileStore = Server.MapPath(@"~\someDirectory"); File.Create(fileStore + "someFileName.xxx"); </code></pre> <p>I find that this makes unit testing difficult. Since I test with MSTest, there's no HTTP context, so this code just flat out fails.</p> <p>In...
c# asp.net
[0, 9]
2,563,537
2,563,538
javascript countdown timer new date
<p>I am using javascript for a count down timer</p> <pre><code>&lt;script type="text/javascript"&gt; $(function() { var newYear = $(".HF").val(); alert('hehe' + newYear); $('#countdown').countdown({ until:newYear, format: 'DHMS', layout: '&lt;div id="timer"&gt;' + '&lt;hr /&gt;'...
javascript asp.net
[3, 9]
1,578,760
1,578,761
How to remount /sdcard directory to read/write on emulator?
<p>Can you please tell me how to remount /sdcard directory to read/write on emulator?</p> <p>I read <a href="http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html" rel="nofollow">this</a></p> <p>But I don't know how to apply that to remount /sdcard directory in read-write mode?</p>
java android
[1, 4]
5,993,531
5,993,532
android object/ class structure for graphing
<p>Am currently developing an android application that requires real time data viewing with achartengine: still in the application design:</p> <p>My data will be presented in two types:</p> <ol> <li>plain data</li> <li>charts - using achartengine in this category i will have several graph types like line chart,...
java android
[1, 4]
2,110,208
2,110,209
jquery change event without postback
<p>I have a listbox and on a particular selected value i want to display a dropdown and on selection of a value from the dropdown i want to display another dropdown.</p> <p>I have achieved this using jquery but the dropdowns are displayed only after postback. How to avoid the postbacks ?</p> <p>This is my jquery code...
jquery asp.net
[5, 9]
5,918,967
5,918,968
Get client certificate in asp.net c# browser application using server side coding
<p>Problem to get client certificate in ASP.NET browser application. Main problem is that we need to get the client certificate from the client machine in browser application.</p> <p>I use this code to do that</p> <pre><code>X509Certificate2 certificate = new X509Certificate2(Page.Request.Cl...
c# asp.net
[0, 9]
2,503,220
2,503,221
Removal of multiple fields and labels
<p>I'm very new to jQuery and have been stumped by particular issue. I am dynamically adding 2 checkbox fields to a screen form using the code below:</p> <pre><code>var summon_search = "&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;label for='summon_search'&gt;Search this resource from compatible products*&lt;/label&gt;&lt;input ...
javascript jquery
[3, 5]
4,310,194
4,310,195
An equivalent of javascript unload for PHP
<p>For javascript there is an unload function, when a page closes, do something. Is there the same for php?</p> <p>Thanks Jean</p>
php javascript
[2, 3]
2,110,366
2,110,367
jQuery "load()" Can't Load PHP "curl_exec()" Result
<p>I want an HTML file to load the result of "curl_exec()" method of a PHP file.</p> <p>The PHP file is located in localhost, and the HTML file can be anywhere.</p> <p>Eg the PHP file name is "curl.php".</p> <p>I used jQuery "load()" to load the result, but it doesn't work, even after I upload the files to a web ser...
php javascript jquery
[2, 3, 5]
160,826
160,827
Detect external link Click?
<p><strong>How can i detect external link click?</strong></p> <p>I have a simple question, which may or may not have an simple answer. I need to detect if some of my page's user's have clicked an external link, an ad for example. </p> <p>My first tought was that i would place an random number of transparent div's ove...
javascript jquery
[3, 5]
209,043
209,044
how can i make my webpage load faster with or without jquery and php
<p>i was wondering about fast page load for google and facebook. how it is possible... If we say they have high quilified servers then visit <a href="http://www.iconarchive.com/" rel="nofollow">http://www.iconarchive.com/</a> and type some thing in its search box and hit enter and see the same load time as google and f...
php jquery
[2, 5]
340,467
340,468
setting a class to a menu depending of the url link
<p>Here is my scenario, my sub pages are not recognizing the parent, probably cause I set the structure bad, however going to back to fix that is not an option for now, problem the menu parent is getting the parent class in the wrong places....</p> <p>So what I need to achieve...</p> <p>if I have this url structure: ...
javascript jquery
[3, 5]
936,283
936,284
history.go(-1) function not working for dropdown
<p>i am using the function history.go(-1) function on my button to go back. but i am getting a prob in value selected in dropdown. </p> <p>the sourceview is showing the original value selected but on UI its showing the previous value</p> <p>means when i click on back button,</p> <p>UI shows the same value but when i...
javascript asp.net
[3, 9]
5,264,066
5,264,067
Debug jquery in asp. Net app
<p>I have a Web app that calls <em>jQuery</em> somewhere to show a <code>&lt;div&gt;</code>. Anyone know of a way to intercept that call, see exactly what is calling that <code>&lt;div&gt;</code> to appear? </p> <p>I need to make that div appear on another button and the original button that makes that <code>&lt;div&...
c# jquery asp.net
[0, 5, 9]
1,984,367
1,984,368
Easy way to pass node reference via post data?
<p>I have a list of input objects in my DOM, each with a button. When the user clicks one of the buttons, a dialog box is AJAXed. I would like to pass a reference to one of the input objects, depending on which button is clicked, to the dialog box. This way when the dialog box "Okay" button is clicked, it knows which i...
javascript jquery
[3, 5]
3,487,263
3,487,264
How to correctly position popup of selectmenu in IE and Chrome
<p>I don't have this problem in firefox. But in IE and Chrome. as figure below shows, top of the popup of the dropdownlist appears in the middle of folded box. It should be positioned right after the folded box. This will mess user interaction. For example, if user clicks the dropdownbox, the popup will close as soon a...
javascript jquery
[3, 5]
2,713,879
2,713,880
how to use the window object (or better way) to make dynamic property names
<p>I read <a href="http://stackoverflow.com/a/5117153/1252748">here</a> that the window object can be used to dynamically make a property name within an object. What is the way this is done</p> <p>I have a function like</p> <pre><code>function storeValues(){ var info = {}; $('.class1').each(function(index1, ...
javascript jquery
[3, 5]
625,205
625,206
Append Order - jQuery
<p>I am trying to get the string to order by how it is displayed (red,blue,orange,black). For some reason, it will append the order randomly. For Example: it would output (blue,orange,red,black). Any help would be great. Thanks.</p> <pre><code>var tCookie = "red,blue,orange,black"; var Cookies = tCookie.split(','); i...
javascript jquery
[3, 5]
1,028,655
1,028,656
Simple javascript issue
<p>It turns out this does exactly what I want it to do. But HTML does not replace the function call with a value, which is why I got confused. The correct value IS passed into the array though. I am leaving this question here in case others have the same issue.</p> <p>I have some javascript:</p> <pre><code>&lt;script...
javascript jquery
[3, 5]
866,825
866,826
Difference between element.each and .each(element) in jquery
<p>What is the difference between </p> <pre><code>$(element).each(function(){ }); </code></pre> <p>And </p> <pre><code>$.each("element",function(){ }); </code></pre>
javascript jquery
[3, 5]
3,737,623
3,737,624
use javascript variable into python Block
<p>I want to use JavaScript variable into python Block.</p> <pre><code>&lt;script&gt; $(document).ready(function() { $("#WO_cpp_id").change(function() { id = this.selectedIndex; ajax('{{=URL(r=request,f='get_CIs',vars={'CPP_Id':'#here I want to use id variable')}}', ['WO_cpp_id'], 'WO_ci_id'); }) .change(); }...
javascript jquery python
[3, 5, 7]
3,992,058
3,992,059
extract addresses from google map
<p>how can i extract all addresses,corresponding latitude &amp; longitude of a city(eg:Bangalore) from google map using php/js and store in mysql table .can anyone help me.Its urgent.Thank Yo</p>
php javascript
[2, 3]
3,708,926
3,708,927
How to open image href on a aspx page
<p>When the thumbnail is clicked I would like the full size image to open on http//example.com/image.aspx instead of http//example.com/images/image.jpeg without creating an individual page for each image and editing each href. I know that this is possible with php but I was wondering if there was some way of doing it w...
php javascript jquery asp.net
[2, 3, 5, 9]
1,846,201
1,846,202
JQuery, how to access click object after ajax call?
<p>this seems like it should be straightforward, but I'm having trouble getting it to work.</p> <p>I have a .click bind to many buttons of a certain class. When that button is clicked, it passes its id to a $.post call for processing.</p> <p>When the $.post call returns successfully, I'd like to remove the button and...
javascript jquery
[3, 5]
4,925,091
4,925,092
How to move to privious visited page with the current URL
<p>How to move to privious visited page with the current UR. Previous URL was has some diffrent parameters and current page have some different,</p>
javascript jquery
[3, 5]
2,643,904
2,643,905
How to hide an dom element after creating it on the fly with Jquery?
<p>I am trying to build a form where users can add a text field by clicking on a "add option" button. They can also remove added fields by a "remove option" link created on the fly by Jquery, along with the text field. My code looks like this :</p> <pre><code>$(document).ready(function(){ $("#add_option").click...
javascript jquery
[3, 5]
5,276,876
5,276,877
Accessing html controls within an #include html file, from server side c#
<p>Following code is an example, I just want to know if this can be done.</p> <p>I have an test.aspx file with this server side include tag;</p> <pre><code>&lt;!--#include file="listOfCountries.htm" --&gt; </code></pre> <p>Within listOfCountries.htm, I have:</p> <pre><code>&lt;html&gt; &lt;div&gt; &lt;select id="co...
c# asp.net
[0, 9]
5,977,721
5,977,722
How can I load data on a page based on this being added into the URL #a=1380369&i=23007472
<p>On a php page with javascript (jquery) in the urel I would like to have something like this<br> idex.php?var=something*<em>#a=1380369&amp;i=23007472</em>* </p> <p>The page will load photos and have a next and previous link, when this is clicked on it will use ajax to load the new image into the page but I need to ...
php javascript jquery
[2, 3, 5]
5,968,541
5,968,542
csv file upload on asp.net
<p>User need to upload 30,000 csv values, these values may contain 16 digit numbers or zipcodes.</p> <p>Now our asp.net project doesn't use AJAX tool kit controls or jquery or any other 3rd party controls or open source code. This is restriction as per companies privacy policy.</p> <p>So I have to come with a best wa...
c# asp.net
[0, 9]
941,033
941,034
How to get windows logged in user id from ASP.NET with anonymous access
<p>I have a web application which is set on forms and anonymous access. I have a default page on which I want to get the current windows logged in user, it's an ASP.Net application.</p> <p>How can I do this?</p>
c# asp.net
[0, 9]
1,784,731
1,784,732
What does it mean "No Launcher activity found! and The launch will only sync the application package on the device!"
<p>I got this warning from console when running my application on emulator No Launcher activity found! The launch will only sync the application package on the device!</p> <p>In fact i have declared two activities as the GMapsActivity and MainActivity launcher in AndroidManifest.xml file</p> <pre><code>&lt;?x...
java android
[1, 4]
3,326,268
3,326,269
returning incorrect floating point value
<p>I have a method getFar() which should return 5.1f:</p> <pre><code> float far = 5.1f; public float getFar() {return far;} </code></pre> <p>But when I call it from another class </p> <pre><code> System.out.println("Far: "+ mRenderer.getFar()); </code></pre> <p>it returns different values every time. In one run...
java android
[1, 4]
694,862
694,863
Close currently opened tab
<p>I've tried <code>window.close();</code> to close the currently opened tab but it does not seem to work. What am I doing wrong? My scope is to run a JavaScript script that automatically closes a manually opened tab. </p> <p>Thanks.</p>
javascript jquery
[3, 5]
1,265,638
1,265,639
execute javascript before dom is loading
<p>i want to develop a handle javascript class that handle used frameworks, among other things.</p> <p>For example:</p> <pre><code>myClass.addFramework('jQuery'); // just an example </code></pre> <p>It works fine and my class add the framework - but if there any jQuery code in it, it wouldnt work, because the framew...
javascript jquery
[3, 5]
5,200,981
5,200,982
How to generate sequence of numbers/chars in javascript?
<p>Is there a way to generate sequence of characters or numbers in javascript?</p> <p>For example, I want to create array that contains eight 1s. I can do it with for loop, but wondering whether there is a jQuery library or javascript function that can do it for me?</p> <p>Thank you</p>
javascript jquery
[3, 5]
1,266,598
1,266,599
clearInterval() Undefined Error After Using setInterval()
<p>I know this isn't supposed to be inline, but YUI library's dialogs force me to. My issue is that whenever I hover over this div, the margin-left scroll activated but it does not stop when I move the mouse out of the div. The JS console reports that:</p> <blockquote> <p>Uncaught ReferenceError: timerID is not defi...
javascript jquery
[3, 5]
4,030,220
4,030,221
embed php in c++ application or any way can it be done?
<p>i was looking for way to embed php script into c++ windows application . i found old facebook project that i dont know how much good it is or how to use it in windows app if any . is there any way to embed php in a Windows application?</p>
php c++
[2, 6]
579,192
579,193
Checkbox uncheck if other checkbox is selected
<p>I have many city input checkboxes. I have given the first checkbox the name <strong>All</strong>; if the user selects that then only <strong>All</strong> checkbox gets selected, and not the other city checkboxes.</p> <p>If the user checks any other city, then the <strong>All</strong> checkbox should automatically b...
javascript jquery
[3, 5]
4,299,081
4,299,082
webview never call ShuldOverrideUrlloading in webviewclient in android
<p>I have a webview and a link on the URL that I have loaded on that webview, I want such like that if user clicks in this link the app will go to the background and open that link with the default web browser of that device. To do this I have done the following:</p> <pre><code>web = (WebView) findViewById(R.id.webvie...
java android
[1, 4]
5,002,151
5,002,152
How do I add controls dynamically to a dynamically created panel?
<p>I have a repeater that creates n-number of panels. I am trying to dynamically add different controls to each of the panels. I may very well be going about this the wrong way.</p> <p>My code is more or less:</p> <p>.aspx:</p> <pre><code> &lt;asp:Repeater ID="Repeater1" runat="server"&gt; &lt;ItemTemplate&gt...
c# asp.net
[0, 9]
955,017
955,018
android is my application still running?
<p>i have this thread which run as a service:</p> <pre><code> public void run() { try { while(true) { Thread.sleep(timeInterval); results = sendGetMessage(); b.putString("results", results); receiver.send(2, b); } ...
java android
[1, 4]