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,574,262
5,574,263
Add onclick to all anchors on page except for ones with a specific class
<p>I'm sure this should be relatively easy to do with Jquery, but my attempts have not worked so far (I'm a little new at Jquery).</p> <p>Can anyone help me, please?</p> <p>Thanks!</p>
javascript jquery
[3, 5]
1,912,976
1,912,977
Javascript function work on all page except textareas, text boxes
<p>My function (which is shown below) dedicated for "copy-protecting" page.(actually it's only visual thing. Advanced user can get from source code.) What I want to do get this function work on all page parts except textareas, textboxes. How can I achieve this result?</p> <pre><code>(function($){ $.fn.ctrl = func...
javascript jquery
[3, 5]
4,279,317
4,279,318
asp.net, Gridview RowEditing event only works on first row
<p>Im working on asp.net with c#. I have a gridview with templatefield columns, data comes from an sql database. I have linkbutton on the item template, the linkbutton calls the Rowediting event to enable the editing. This works fine on the first row. But when I click on any of the other rows nothing happens, the event...
c# asp.net
[0, 9]
102,546
102,547
Anyone know how to use the jQuery Gallery View Plugin?
<p>I found the <a href="http://spaceforaname.com/galleryview" rel="nofollow">jQuery Gallery View plugin</a> because I was looking for a good way to cycle through pictures including text and one that was well designed. This plugin does not seem to be updated anymore and does not have much documentation so I am having di...
javascript jquery
[3, 5]
3,077,142
3,077,143
How to create a custom JSON based on form values?
<p>I am creating a JSON based on a dynamic form values below, when the user submits, i am displaying the json feed in #results</p> <p>Is it also possible to get all the values in the form when generating the JSON, I want to get the </p> <ul> <li>name, ids, </li> <li>title information,</li> <li><p>input value etc</p>...
javascript jquery
[3, 5]
4,359,281
4,359,282
At what point in the control life cycle does Control.Visible stop rendering?
<p>I am trying to write a simple utility webcontrol to display one-line messages inside a web page - status updates, error messages, etc. The messages will come from other controls on the page, by calling a method on the webcontrol. If the control doesn't have any messages by the time it gets to pre-render, I don't wan...
c# asp.net
[0, 9]
4,750,047
4,750,048
How can I run some code only after all callbacks complete on a jQuery animation?
<p>I have some animation code with a callback. I need a piece of code to run only after that callback has completed. I do not want to modify the animation code or callback. How can I make sure all callbacks have run before running some additional code. Should I be looking at the queue? When an animation completes b...
javascript jquery
[3, 5]
426,339
426,340
JavaScript and PHP in code - whats the difference?
<p>I have this code in my JavaScript part:</p> <pre><code>var opConfig = new Product.Options(&lt;?php echo $this-&gt;getJsonConfig(); ?&gt;); </code></pre> <p>The PHP call returns me some string, to make it easy, lets say the string is <em>abcd</em>. So this code results in:</p> <pre><code>var opConfig = new Product...
php javascript
[2, 3]
1,304,294
1,304,295
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]
4,961,904
4,961,905
jquery how to use..... addClass().find().text()
<p>Here's the result I want:</p> <pre><code>&lt;div id="error" class="alert warning"&gt;&lt;span class="icon"&gt;&lt;/span&gt;text here&lt;/div&gt; </code></pre> <p>I tried this:</p> <pre><code>$('#error').addClass('alert error').find('span').addClass('icon').text('text here');` </code></pre> <p>which results in t...
javascript jquery
[3, 5]
5,947,566
5,947,567
Why is Context needed for getRelativeTimeSpanString?
<p>I was wondering why <a href="http://developer.android.com/reference/android/text/format/DateUtils.html#getRelativeTimeSpanString%28android.content.Context,%20long,%20boolean%29" rel="nofollow"><code>getRelativeTimeSpanString</code></a> needs a context? (leaving the puns aside)</p> <pre><code>public static CharSeque...
java android
[1, 4]
440,070
440,071
Auto hide element by jquery - code not work
<p>I have an element in aspx page with class= "._aHide" it carrying a message, And it is shown repeatedly.</p> <pre><code>&lt;div id="Message1" class="._aHide" runat="server" visible="true"&gt;&lt;p&gt;My Message&lt;/p&gt;&lt;/div&gt; </code></pre> <ul> <li>aspx server side elements not created when page load if it'...
javascript jquery
[3, 5]
3,206,732
3,206,733
Call function from parent
<p>Page A has iframe B. In iframe B, I have a var store a function name of page A. How to call that function from iframe B? (Both in a same domain)</p> <p>I try this in iframe B</p> <pre><code>eval("window.parent." + func_name + "('"+param1+"', '"+param2+"');"); </code></pre> <p>It work well but I ask for a better s...
javascript jquery
[3, 5]
2,837,448
2,837,449
Form not submitting on text click
<p>This isthe form which i am submitting it through on click on text, but the values are not passing on the action page.</p> <pre><code> &lt;form action="forget_pass.php" method="post" id="new_user" name="new_user"&gt; &lt;ul class="inputlist"&gt; &lt;li&gt;&lt;span class="redcolor"&gt;*&lt;/span&gt;Email Addre...
php javascript
[2, 3]
565,264
565,265
use a if condition to find which page redirects to current page in asp.net
<p>I am redirecting to sendmessage page from group page and user page. In the sendmessage server side code how can I find which page redirected to send message page. since I have different code for each page i need to use a if condition to determine it. how to code the if condition.</p> <p>From user page </p> <pre><c...
c# asp.net
[0, 9]
3,699,662
3,699,663
JQuery Datepicker with generated DOM elements
<p>I have a website that uses JQuery to construct a rather large table. When I try to select a set of input elements created this way by class and add a datepicker to them, nothing happens. The table is generated durinng document.ready(); is there a certain time I have to execute $('.date_pick').datepicker(); in orde...
javascript jquery
[3, 5]
3,545,894
3,545,895
JQuery: Select Elements changes tracked but not their values!
<p>I have just got a questioned answered and have fallen into another trap!</p> <p>I have a form which is in a <a href="http://fancybox.net/js/fancybox/jquery.fancybox-1.2.1.js" rel="nofollow">lightbox</a> and I want to track every change in the select elements. When they change I want to get the value of each of the ...
javascript jquery
[3, 5]
5,652,547
5,652,548
Find control of child gridview in a dropdown selected index change event
<p>i have a two gridview Gv1 which is parent and gv2 which is nested inside Gv1 and i want to find the control of child gridview as well as the label which is placed inside the itemtemplate of childgridview in the selectedindexchange of dropdownlist which is placed outside the both grids</p> <p>i have used this code i...
c# asp.net
[0, 9]
3,373,889
3,373,890
How to upload an image in folder with database in asp.net on remote server?
<p>I face this problem on uploading time:</p> <blockquote> <p>Access to the path 'D:\inetpub\vhosts\rajschool.com\httpdocs\Photo\3d_529 - Copy.jpg' is denied.</p> </blockquote> <p>My code for uploading image is:</p> <pre><code>protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string...
c# asp.net
[0, 9]
137,732
137,733
Is this the correct way to set an id for an element that doesn't have an id yet in jQuery?
<pre><code>$("a[href*='http://www.google.com']").attr('id','newId'); </code></pre> <p>Can only reference it by <code>href</code>.</p>
javascript jquery
[3, 5]
2,728,915
2,728,916
Where is the Component Initialize Method in Asp.NET 3.5
<p>I want to create my own naming convention for page events rather than AutoEventWireUp but I couldn't find Component Initialize methods any where ? Should I override it ? But in which class it is defined ?</p> <p>Thanks...</p> <p><strong>Edit :</strong></p> <p>For example : I don't want to use <code>Page_Load</cod...
c# asp.net
[0, 9]
5,167,678
5,167,679
How come mousdown doesn't work on <html>-tag?
<p>The mousedown-event only works if I click an elemnt, not the html-element. Why and What can I do about it? </p> <pre><code>var curFocus; $(document.body).delegate('*','mousedown', function(){ if ((this != curFocus) &amp;&amp; // don't bother if this was the previous active element ($(c...
javascript jquery
[3, 5]
1,828,539
1,828,540
I am using formsauthentication in my application but it is not working
<p>Below is my code for forms authentication in asp.net but some time it is not working means some time user is not logged in</p> <p>FormsAuthentication.SetAuthCookie(authentificationString, rememberLogin);</p> <pre><code> string cookieName = FormsAuthentication.FormsCookieName; HttpCookie authCookie =...
c# asp.net
[0, 9]
1,819,140
1,819,141
From full path to file, to only displaying filename
<p>How can I convert a full path</p> <pre><code>C:\some folder\another folder\my-picture.jpg </code></pre> <p>To:</p> <pre><code>my-picture.jpg </code></pre> <p>??</p> <p>Thank you in advance.</p>
javascript jquery
[3, 5]
2,142,471
2,142,472
Which query is good to display results on search
<p>Let's say I have form looks like </p> <p><img src="http://i.stack.imgur.com/ALQdh.png" alt="alt text"></p> <p>First: Use jQuery to display data like auto submit on every select field</p> <pre><code>$('#region,#categories,#types').change(function () { $(this).closest("form").submit(); }); </code></pre> <p>Sec...
php jquery
[2, 5]
5,311,720
5,311,721
How to set Textbox value at page load?
<p>I have to set asp.net TextBox’s value at page load using JQuery.<br/> Can somebody give me example ?</p>
jquery asp.net
[5, 9]
5,700,699
5,700,700
Android using intents to control media player?
<p>I want to send a broadcast (or is it an intent?) from my app that will go to the next track of a music player if something is playing, or play/pause, etc. Here is the code that I have so far: </p> <pre><code> final Intent i = new Intent(Intent.ACTION_MEDIA_BUTTON); i.putExtra(Intent.EXTRA_KEY_EVENT, KeyEvent...
java android
[1, 4]
1,465,401
1,465,402
Convert characters to asterisks in Javascript
<p>Im trying to write a function that will convert all charactewrs after the first word into asterisks, </p> <p>Say I have MYFIRSTWORD MYSECONDWORD, id want it to convert to asterisks on Keyup, but only for the second word, rendering it as so...</p> <p>MYFIRSTWORD <strong><em>*</em>**</strong></p> <p>I've been using...
javascript jquery
[3, 5]
5,446,670
5,446,671
How to get the mousdown cursor to apply if cursor is outside of an element?
<p>In this fiddle you can grab and drag the black box around a circle</p> <p><a href="http://jsfiddle.net/S5AT6/" rel="nofollow">http://jsfiddle.net/S5AT6/</a></p> <p>How do I get mousedown cursor(closedhand) to be displayed instead of the default cursor, when the user has grabbed the black box, but their cursor is o...
javascript jquery
[3, 5]
275,592
275,593
Open login page , insert logon information and click loginbutton
<p>I want to open a logon page like www.site.com/login.php</p> <p>insert username and password </p> <p>and login button be invoke .</p> <p>All of this should be done progroamlly in a server (not in a browser )</p> <p>is it possible to do thsi ?</p>
c# asp.net
[0, 9]
2,211,240
2,211,241
allowing to update gridview depending on user authentication asp.net
<p>i have a web app in asp.net running on windows authentication</p> <p>i want only a specific user to be able to update, while the other users will only be able to view.</p> <p>how do customize the gridview so that only a specific user has the option to update?</p>
c# asp.net
[0, 9]
3,134,637
3,134,638
Hide form with php on submit?
<p>I have a simple php - password protecton / login based on a form which works. PHP-code is in page "secure.php" and includes the html-file "accessed.html" when user + pass is correct.</p> <p>But i want the form to hide when hidden page (accessed.html) is shown. I have tried wrapping the form in a div and using java...
php javascript
[2, 3]
1,129,784
1,129,785
Not work my function after click?
<p>I not know why not work following code for my function(<code>alert()</code>) and is run my function(<code>alert()</code>) after tow times click on button, did you can guide me?</p> <p><strong>Demo:(Here see my full code)</strong> <a href="http://jsfiddle.net/pRXQ7/1/" rel="nofollow">http://jsfiddle.net/pRXQ7/1/</a>...
javascript jquery
[3, 5]
1,889,563
1,889,564
Jquery simple slider problem when browser tab not active
<p>I wrote a simple jquery slider that basically goes through 3 divs, hidding one and then fadeIn the next and so on using <code>setInterval()</code></p> <p>The slider works just fine for my purposes, but when I open other tabs and then come back to the page's tab, all the divs are visible and then they start to disap...
javascript jquery
[3, 5]
4,660,137
4,660,138
how to wrap text in boundfield column in gridview
<p>i am having a boundfield column and in that column if i entered a string(without spaces) of length 15, there is no problem. But if the string is more than 15, the text is not wrapped. I gave the command column.ItemStyle.Wrap=true; But its not working. I have fixed the width of the column.</p> <p>How to wrap the tex...
c# asp.net
[0, 9]
5,160,708
5,160,709
jQuery - How to check for available javascript on a page?
<p>On a html page that uses $.getScript to dynamically load .js files.</p> <p>Later at some point if I wish to check whether a particular .js file is loaded. How to do this?</p> <p>Can I check using filename.js? or do I have to check for an object/function/variable in that file?</p> <p>Thanks for the answers folks...
javascript jquery
[3, 5]
5,876,911
5,876,912
Need help regards copy image to clipboard in website using ASP.Net or JavaScript?
<p>I need a help regards copy image to clipboard in website. The image is dynamically created one.</p> <p>I found two solutions</p> <p>Solution 1 : </p> <pre><code>using System.Windows.Forms; Bitmap bitmapImage ; protected void buttonClipboard_Click(object sender, System.Web.UI.ImageClickEventArgs e) { MemoryS...
javascript asp.net
[3, 9]
1,676,406
1,676,407
how to destroy session when window close?
<p>I want to destroy session when i close window so i am using a code </p> <p>java script code:</p> <pre><code>&lt;script&gt; function killSession() { location = 'index.php?destroySession=true'; } &lt;/script&gt; </code></pre> <p>php code:</p> <pre><code>&lt;?php if (isset($_GET['destroySession']) &amp;&...
php javascript
[2, 3]
2,271
2,272
How did you learn the .NET Library?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/387181/getting-started-with-net">Getting started with .NET</a> </p> </blockquote> <p>Hello, I am a junior .NET/C# developer and wanted to gauge how fellow developers learned .NET. I've been learning ASP.NET but ...
c# asp.net
[0, 9]
2,138,524
2,138,525
jQuery find - What order does it return elements in?
<p>I have been using jQuery's <code>find</code> method and it's been very useful. </p> <p>However, I came across an example where the <code>find</code> seemed to be duplicating things and not returning elements in the order they appeared in the document. (I'm not sure if find is supposed to do this - I doubt it). </p>...
javascript jquery
[3, 5]
4,762,021
4,762,022
PDFLib dll not working in .net4.0
<p>I was converted my .net2.0 project into .net4.0.</p> <p>Now I could use pdflib.dll. I recieved the below error.</p> <blockquote> <p>"Declaration referenced in a method implementation cannot be a final method. Type: 'PDFLibNet.xPDFBinaryReader'. Assembly: 'PDFLibNet, Version=1.0.6.6, Culture=neutral, PublicKeyT...
c# asp.net
[0, 9]
4,845,499
4,845,500
alert msg onclick event
<p>I am trying to invoke a button click from inside a .cshtml file:</p> <pre><code> &lt;input type="button" id="ImageHosting" value="To Image Hosting" onclick="ImageHosting_Click()"/&gt; </code></pre> <p>This is the .js file:</p> <pre><code> function ImageHosting_Click() { $("#ImageHosting").click(f...
javascript jquery
[3, 5]
1,297,034
1,297,035
How can i close all the IE browser windows that I opened in JavaScript
<p>How can i close all the IE browser window in asp.net,</p> <p>I am opening many windows..from javascript by window.open()... I need to close all the windows by clicking the button in main page(parent window).</p> <p>some times we have open in in c# it self</p> <pre><code>btnShow.Attributes.Add("onclick", @"var win...
asp.net javascript
[9, 3]
2,999,716
2,999,717
How to define a property instead of public variable in C#
<pre><code>public static string SEARCH_STRING = "searchkey"; string key=Request.QueryString.Get(SEARCH_STRING); </code></pre> <p>How to change the above code to make SEARCH_STRING be accessed using a Property(get; set;) instead of a public variable</p>
c# asp.net
[0, 9]
4,664,989
4,664,990
Trying to get DAY_OF_WEEK from calendar cause Resoure Not Found
<p>I am trying to find the the day of the week by: </p> <pre><code>Calendar cd = Calendar.getInstance(); int dow = cd.get(Calendar.DAY_OF_WEEK); </code></pre> <p>But whenever I load the program I get a </p> <pre><code>Unable to Start Activity android.content.res.Resources$NotFound Exception: String resource ID #0x5 ...
java android
[1, 4]
1,157,725
1,157,726
receiving response from page method using jquery
<p>I am calling page method using jquery. In examples every one receives a reply using result.d</p> <p>for example:</p> <pre><code> function onSuccess(msg) { alert("suc" + msg.d); } </code></pre> <p>Please guide me what is this .d ? </p>
jquery asp.net
[5, 9]
2,340,126
2,340,127
Change javascript code to jquery code, How is it?
<p>I want change following javascript code to jquery code, How is it?</p> <p>With done change <code>hourOffset</code> in date <code>3, 21</code> and <code>9, 22</code>.</p> <p><strong>DEMO:</strong> <a href="http://jsfiddle.net/zJRDC/" rel="nofollow">http://jsfiddle.net/zJRDC/</a></p> <pre><code>&lt;script type="tex...
javascript jquery
[3, 5]
5,749,855
5,749,856
How to write a function in jquery/javascript to add new html TDs?
<p>Assume I have an array "numbers" that contains numbers from 1 to 97 and the following table where each row can only have 4 tds:</p> <pre><code>&lt;table id="mytable"&gt; &lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;...
javascript jquery
[3, 5]
5,216,441
5,216,442
$.get and get value
<pre><code> function get(){ $.get('/get.php', function(data) { alert('one: ' + data) return data; }); } var test = get(); alert('two:' + test); </code></pre> <p>In get.php is:</p> <pre><code>&lt;?php echo "number"; ?&gt; </code></pre> <p>why one alert show me <strong>one: numbe...
javascript jquery
[3, 5]
5,039,578
5,039,579
Display all my site pages from a timed loop controlled by php
<p>Bottom line, I want to display each page of our church website on a remote monitor for about 30 seconds then move to the next page, The timer control would be in a php page as the controlling page. I can figure most of it out except how to keep control in php so when the timer times out we go back to php for call to...
php javascript
[2, 3]
2,973,032
2,973,033
ASP.Net: GridView control and combobox woes part 2
<p>This is a follow up to: <a href="http://stackoverflow.com/questions/7637920/asp-net-gridview-control-and-combobox-woes">ASP.Net: GridView control and combobox woes</a></p> <p>I've implemented my code as kd7 has answered but I'm getting a "System.NullReferenceException: Object reference not set to an instance of an ...
c# asp.net
[0, 9]
5,675,782
5,675,783
Getting the a text from EditText (but a Number)
<p>I know that you can get a normal text like this:</p> <pre><code>EditText input = (EditText) findViewById(R.id.input); String value = input.getText().toString(); </code></pre> <p>but now I need a to an input like this: 0xFFFFFF (a Hex-Color), an Integer... But value is only a String and I don't know how to convert ...
java android
[1, 4]
3,411,274
3,411,275
The Jar file ../android-8/android.jar has no source attachment
<p>I came across this no source attachment problem when I was debugging the project, but when I run the android program without debugging enabled, the program would run without any trouble. Even after I attached the jar file manually, it still reported that properties.class could not be found! What should I do with th...
java android
[1, 4]
2,543,843
2,543,844
media player equalizer
<p>I am developing an android media player application. Can you anyone tell me please how can I assign the preset value to the songs and play it.</p> <p>Could you please give me the solution?</p> <p>The below is the code which am using ,</p> <pre><code>equalizer = new Equalizer(1, audioSessionId); equalizer...
java android
[1, 4]
4,358,047
4,358,048
C# oncheckedchanged event handler of aspcheckbox does not fire when checkbox is unc
<p>Hey could you look at this code: I get this error:</p> <blockquote> <p>Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in ...
c# asp.net
[0, 9]
1,196,027
1,196,028
JQuery plugins stop working on appending querystring parameters
<p>I'm new with Javascript programming, I need to insert this code in the body of a page, I take some Get parameters from URL and I attach them to the iframe string:</p> <pre><code>&lt;script&gt; document.write("&lt;iframe width='700' height='500' frameborder='0' src=https://www.mysite.com/abs/indexabs.php?stid=261&am...
javascript jquery
[3, 5]
137,125
137,126
Javascript Typewriter effect PAUSE/STOP button
<p>I've this script below allows me to play the text with a type writer effect when the button is clicked. But how can I change the code that allow me the pause or stop the script when the button is clicked again. </p> <p>HTML</p> <pre><code> &lt;div ID="textDestination" class="news"&gt;&lt;/div&gt; &lt;div ...
javascript jquery
[3, 5]
202,062
202,063
Android - contacts picker , too many results... names only list , how?
<p>Here is the code i use to open contacts picker:</p> <pre><code>public void doLaunchContactPicker(View view) { Intent contactPickerIntent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); startActivityForResult(contactPickerIntent, CONTACT_PICKER_RESULT); </code></pre> <p>}</p> <p>How can I open this...
java android
[1, 4]
1,720,856
1,720,857
c# code in control attribute in aspx file
<p>I'd like to change the text attribute of a button according to the session landuage. So I write:</p> <pre><code>&lt;asp:Button id="btOptIn" runat="server" Text="&lt;% = UI.Instance.TxtSubmit %&gt;" onclick="btOptIn_Click" /&gt; </code></pre> <p>This does not work. I tried several other versions (like <cod...
c# asp.net
[0, 9]
239,147
239,148
Why is the fact that Microsoft decided to support jQuery such a big deal?
<p>I don't see what all this fuss is about Microsoft's decision to support JQuery within ASP.NET MVC.</p> <p>There were signs that open-minded people are starting to have some say in the matters of marketing for a while now. And even the way MS does business has started to change. But at it's core it's still acting in...
jquery asp.net
[5, 9]
57,123
57,124
How to create table with different number of cell in each row programmatically?
<p>I am a new ASP.NET developer. I need to create a table with different number of cells in each row, so how to do that in C#?</p> <p>I googled about it but I could not be able to find clear useful resource about this issue.</p>
c# asp.net
[0, 9]
1,901,461
1,901,462
jQuery looking for scroll height code to determine when to add new items to lazy loading scrollable div [jsFiddle attached]
<p>I have a large array of items that I render with jQuery templates. I want to render 50 or so at a time, and show more when the user scrolls down. I'm trying to find the correct logic on working with the scroll bar. I am doing something like this, but the scrolling is still a bit wonky:</p> <pre><code>var listItems ...
javascript jquery
[3, 5]
1,217,795
1,217,796
wheel of fortune for selecting player in jquery
<p>I am making a game Truth and dare in android. I am using WebView and js. I want a UI that will select player for its turn for asking truth or dare. in that view i want a wheel of fortune, in that wheel name of players will be written, number of players can be dynamic. is there any code available which can help me ? ...
java javascript jquery android
[1, 3, 5, 4]
5,357,073
5,357,074
Javascript function not returning result
<p>I have a function that is not returning a value the way I would like it to. What the function does is get information that is echoed from a PHP page (the PHP page has an SQL query) and return it. Here it the code:</p> <pre><code>function getValues(var1,var2) { $.post("http://url/to/file.php", {var1:var1,var2:var2...
javascript jquery
[3, 5]
1,998,697
1,998,698
automatically authenticate user using c# membership provider
<p>I am using c# membership provider and I get the username from a query string. Now I need to check if the username exist if it does I need to automatically authenticate the user.</p> <p>How do I check if the user exists in the membership database?</p>
c# asp.net
[0, 9]
2,610,412
2,610,413
Input string was not in a correct format - Converting textbox text to Int32
<pre><code> Postalcode = Convert.ToInt32(txtcity.Text); Mobileno = Convert.ToInt32(txmobileno.Text); Phoneno = Convert.ToInt32(txtphoneno.Text); </code></pre> <p>I am getting this error please any one help</p>
c# asp.net
[0, 9]
738,822
738,823
java Script User Define $ function like jquery
<p>I'm trying to Create user define $ function as i cannot use Jquery in existing project.</p> <p>I want to get this function as work as Jquery $('ID')</p> <p>Please give me some hint Any hint OR Example for Example</p> <pre><code>function $(element) { } var value = $('elementID').value </code></pre> <p><strong>U...
javascript jquery
[3, 5]
674,154
674,155
how to a make label message disable after 10 seconds
<p>I have a form with two text boxes. Once I enter the data and click the save button, I get a message in label: indicating that it saved successfully.</p> <p>Then i am in the same form again, but when I click on the save button, I get a message telling me that it cannot be blank "as textbox value is empty this time" ...
javascript jquery
[3, 5]
5,797,311
5,797,312
Android List View set default position without animation
<p>I have a table list view in my app. and user can add more data in the list. I would like to show the default list view position at the newly added data. however, i use if i use smoothScrollToPosition, there is animation slowly scrolling down, which is not desirable. Do you guys know how to set the default position w...
java android
[1, 4]
902,115
902,116
Wire up button click events after AJAX post
<p>I have a HTML table with various rows, each have a delete button with a class. </p> <p>On the DocumentReady event I wire up all buttons with this class to handle the click event. </p> <p>On the click event it does a jQuery post which deletes data from the database and returns the table with the removed row. </p...
javascript jquery
[3, 5]
2,347,722
2,347,723
Ajax based File Uploads
<p>I'm looking for a javascript/ajax based file upload. The way it would work is this:</p> <p>1) User clicks browse</p> <p>2) User selects CTRL and selects the files he wants to upload</p> <p>3) Via Javascript the user is shown a few loading graphics (1 per each file being uploaded)</p> <p>4) After each upload fini...
javascript jquery
[3, 5]
532,639
532,640
jQuery: preview images
<p>I have a high-quality image and I want to generate <strong>img</strong> tag with this image. The problem is that it will take a lot of time to load this image. So the question is: how can I reduce image's quality without creating another one with low quality?</p>
javascript jquery
[3, 5]
2,722,968
2,722,969
Why does jQuery store an element as a function?
<p>I am calling a div with an ID of car like this:</p> <pre><code>var car = $('#car'); console.log(car); </code></pre> <p>When I log it, it comes back like this in the console:</p> <pre><code>[div#car, context: document, selector: "#car", jquery: "1.9.0", constructor: function, init: function…] </code></pre> <p>Is ...
javascript jquery
[3, 5]
2,338,401
2,338,402
javascript match() error in IE8
<p>I am having problems figuring out why IE8 doesn't like this:</p> <pre><code>//get all checked values from the checkboxes with the option_checkbox class var values = $j('input:checkbox:checked.option_checkbox').map(function () { return this.value; }).get(); if (values.length&gt;0){ for (x in values){ if(values...
javascript jquery
[3, 5]
2,027,937
2,027,938
Check if asp.net control exists with jQuery
<p>When referring asp.net control inside a MasterPage in this way:</p> <pre><code> $(function() { $('#&lt;%=txtMunicipio.ClientID%&gt;').autocomplete({ source: function(request, response) { $.ajax({ url: 'http://localhost/Autocomplete/WSAutocomplete.asmx/Pobl...
jquery asp.net
[5, 9]
1,993,760
1,993,761
Pass variable between functions
<p>I have the following line of code that is executed inside the <code>$(document).ready</code>:</p> <pre><code>$('#sliding_menu_area').toggle(effect, reAlign); </code></pre> <p><code>reAlign</code> is a function that is declared outside of the <code>$(document).ready</code> main function in my <code>.js</code> file....
javascript jquery
[3, 5]
5,230,579
5,230,580
jQuery.HTML not obeying formating within text
<p>Why dose the following not obey formating, the "li"s have no effect</p> <pre><code>&lt;script&gt; function showENQ() { jQuery('#enqtext').html("&lt;li&gt;showtext&lt;/li&gt;"); } $('#enq').live('pageshow', function () { showENQ(); }); &lt;/script&gt; &lt;ul data-role="listview" data-filter="true" data-filter...
javascript jquery
[3, 5]
5,319,846
5,319,847
Is it impossible to make an Android game stutter-free? I am going crazy here
<p>I have been working on an Android game for the past 6 months or so, and have posted on here several times about various lag issues that I cannot get rid of.</p> <p>I ended up grabbing the LunarLander example and stripping it down to its very core components to see if I could make anything at all that doesn't lag. A...
java android
[1, 4]
2,470,277
2,470,278
Is jQuery's $(selector).eq(index) and $(selector)[index] the same?
<p>What is the difference between all these ways?</p> <pre><code>//1 $('div').eq(index) //2 $('div')[index] //3 $($('div')[index] ) //4 $('div').get(1) </code></pre> <p>Are they same?</p> <p><img src="http://i.stack.imgur.com/iXlVs.png" alt="ScreenShot"></p>
javascript jquery
[3, 5]
5,295,474
5,295,475
ASP.net Get Path
<p>I have </p> <pre><code>C:\Softwares\Test\ASPnetTest\Project11\Shared\Public\Images\ </code></pre> <p>How to convert it to</p> <pre><code>Shared\Public\Images\ </code></pre> <p>Thank you.</p>
c# asp.net
[0, 9]
1,679,741
1,679,742
can not read object property in javascript
<p>Trying to hide the left / right navigation text by listening to object &amp; its properties.</p> <p>working example : <a href="http://jsfiddle.net/ylokesh/9EyEu/29/" rel="nofollow">http://jsfiddle.net/ylokesh/9EyEu/29/</a></p> <p>But, getting following error " Uncaught TypeError: Cannot call method 'hide' of undef...
javascript jquery
[3, 5]
5,351,446
5,351,447
How do I return stored preferences from another activity in Android?
<p>I cant seem to return a string to an activity in my android application from shared preferences.</p> <p>In my UI class I have this:</p> <pre><code> SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); format = preferences.getString("BallPref", "number");//not sure what needs ...
java android
[1, 4]
5,690,982
5,690,983
Handling resizing over 100,000 uploaded images per day
<p>Currently we are resizing images in real time. Our users are uploading some 50K to 100K images per day. And our server is pegged at 100% cpu usage 24/7. And page load times are slow. <strong>Ram is not an issue.</strong></p> <p>We have a <strong>Dual cpu intel xeon L5630 2.13GHz</strong> server with <strong>24 gigs...
c# asp.net
[0, 9]
5,745,543
5,745,544
Editing in Existing Pdf File in asp.net
<p>I have written this code i want to edit the existing PDF file by removing already text and want to enter new data for edit but this code not work after adding text first text not removed.</p> <pre><code>string fileName = "PdfFileDocument1.pdf"; string newFile = "File.PDF"; PdfReader reader = new PdfReader(Server.Ma...
c# asp.net
[0, 9]
4,073,860
4,073,861
Request redirection handler
<p>I have win forms client application that should communicate with third party web services. Web services requires specific authentication and I should keep it secured from win forms client. To do it, i created HttpHandler (IHttpHandler), that adds authentication header.</p> <p>Please find following workflow:</p> <o...
c# asp.net
[0, 9]
1,944,838
1,944,839
debug script loaded with getScript
<p>How do you debug a script that was loaded with the jquery getScript(), it does not show up in the google chrome scripts list ? </p>
javascript jquery
[3, 5]
1,497,006
1,497,007
Extending objects with JQuery, Object has no method error
<p>I have this javascript code:</p> <pre><code>var TodoController = { init: function() { $(this).find('input.todo_check').click(function(){ $(this).parents('li.todo').done(); }); } } var Todo = { done: function() { $(this).toggleClass('done'); } } $(document).ready(function() { $(...
javascript jquery
[3, 5]
2,963,928
2,963,929
FadeOut for same link that was clicked
<p>I want with click on each link, after click on button <code>ok</code> in <code>myalert()</code> same link is <code>fadeOut()</code>. if clicked on cancel, is not <code>fadeOut()</code>. How can fix it with use of function <code>myalert()</code> ?</p> <p><strong>Example:</strong> <a href="http://jsfiddle.net/MaGyp/1...
javascript jquery
[3, 5]
3,307,418
3,307,419
Dilemma with window.onbeforeunload and image
<p>The following is my main JS file:</p> <pre><code>window.onbeforeunload = function () { showME(); } var ShowMe = function(){ $('&lt;img src="http://cdn.sstatic.net/stackoverflow/img/sprites.png" style="position:fixed;left:0;top:0" /&gt;').appendTo('body'); } </code></pre> <p>When window.onbeforeunload gets...
javascript jquery
[3, 5]
1,015,577
1,015,578
Having Trouble Using LINQ to Objects on the Controls Collection of a Page
<p>I need to store data from a form for recovery from the session. Below is my rough first attempt for a generalized method for textboxes:</p> <p>Load Session:</p> <pre><code>Dictionary&lt;string, string&gt; AppInfo = (Dictionary&lt;string,string&gt;) Session["ApplicantionInfo"]; this.Controls.OfType&lt;TextBox&gt;()...
c# asp.net
[0, 9]
914,117
914,118
using c# variable in javascript
<p>I want to know how can I use a C# variable in javascript?</p>
c# javascript
[0, 3]
5,072,746
5,072,747
Javascript C++ binding?
<p>I have some C++ code that I want to expose to client side of a web app. Ideally, I want to write Javascript wrapper objects for my C++ classes so that I can use them clientside.</p> <p>Has this been done before?. Does anyone have a link to show how this may be achieved?</p>
javascript c++
[3, 6]
410,036
410,037
how to assign a class in jquery from a php variable?
<p>Is it possible to assign a class from a php variable to a new appended div in jquery?</p> <pre><code>$newItems = $('&lt;div class="PHP VARIABLE PRINTS HERE A CLASS"&gt;&lt;/div&gt;'); </code></pre> <p>In my case, for other things, I am defining a var to defign what I then append in jquery but I need to get the cla...
php javascript jquery
[2, 3, 5]
2,367,556
2,367,557
Disable checkboxes based on status of one checkbox
<p>if 'choose not to answer' is checked, i need to disable the other checkboxes, here is my code and html, any help as to why it's not working?</p> <p><strong>code</strong></p> <pre><code>function toggleStatus() { if ($('#toggleElement').is(':checked')) { $('#living :input').attr('disabled', true); } else { $...
javascript jquery
[3, 5]
2,365,675
2,365,676
jquery fading in from full opacity to 0.2
<p>when the page loads i would like the span overlay to fade in from full #000 to opacity 0.2 and then stay at 0.2 to which when i hover it goes to opacity 0</p> <p>this is the code i have at the moment</p> <pre><code>$(function () { $('ul li a').append('&lt;span id="load"&gt;&lt;/span&gt;'); $('span').css('d...
javascript jquery
[3, 5]
3,098,314
3,098,315
Javascript Opacity Issue
<p>Using absolute positioning, I have placed a div with opacity of 0.5 in front of an image by giving it a higher z-index. Also using absolute positioning, I want to put another smaller div in front of the first div using a higher z-index. This smaller div would show only part of the image (like a window), but have no ...
javascript jquery
[3, 5]
982,626
982,627
How to render a web page using the in-built android browser with the jdk?
<p>My app needs to use the in-built <strong>Internet Browser</strong> to render a web page.</p> <p>How to do this kind of job?</p>
java android
[1, 4]
3,919,713
3,919,714
jquery addclass error
<p>I have a little problem with jQuery:</p> <pre><code>$('#form-submit').click(function () { $('#textarea, #name').removeClass('error-state').addClass('normal-state'); var myName = $('#name').val(); var myContent = $('#textarea').val(); if ( myContent == '' || myName == '') { $('#textare...
javascript jquery
[3, 5]
2,330,230
2,330,231
The import javazoom cannot be resolved
<p>hi all i use the javazoom.jl.player.Player package but it is says The import javazoom cannot be resolved. i am using eclipse and doing Android project. i clean the project still the same error is shown. please correct me.</p>
java android
[1, 4]
2,043,191
2,043,192
creating a data grid in javascript
<p>I want to know if there is an API to create a datagrid like here:</p> <p><a href="http://socghop.appspot.com/gsoc/program/accepted_orgs/google/gsoc2010" rel="nofollow">http://socghop.appspot.com/gsoc/program/accepted_orgs/google/gsoc2010</a></p>
php javascript
[2, 3]