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,601,757
5,601,758
ASP.NET beginner question: How do I use classA's variable in classB?
<p>I want to use variable "iso3166TwoLetterCode"'s value from this class, <a href="http://stackoverflow.com/questions/3690278/fetching-ip-address-and-displaying-country-in-c-and-asp-net">Geolocation error with IP address 127.0.0.1</a></p> <p>In my new test class, how do I use it? Can I even use it? If yes, how? I need...
c# asp.net
[0, 9]
2,331,440
2,331,441
str.replace within a jquery function
<p>I have a simple jquery function as</p> <pre><code>function sendValue(str){ $.post("test.php",{ sendValue: str }, function(data){ $('#display').html(data.returnValue); }, "json"); } </code></pre> <p>I want to replace space within the string. I thought I can do this by adding</p> <pre><code>str....
javascript jquery
[3, 5]
5,282,774
5,282,775
Get the title from a popup
<p>This is a jQuery tooltip.</p> <p>In a nutshell, the jQuery creates the popup from another HTML page. </p> <p><strong>EDIT</strong> i put up an example. <a href="http://jsfiddle.net/76hSB/" rel="nofollow">HERE</a></p> <p>So I need to grab the title from the popup. When I use the <code>document.title</code> or w...
javascript jquery
[3, 5]
4,435,036
4,435,037
Collect Data from Google Result Stream
<p>I would like to have a stream: Say from google: <a href="http://news.google.com/news/search?aq=f&amp;pz=1&amp;cf=all&amp;ned=en_ke&amp;hl=en&amp;q=C#" rel="nofollow">http://news.google.com/news/search?aq=f&amp;pz=1&amp;cf=all&amp;ned=en_ke&amp;hl=en&amp;q=C#</a></p> <p>I want to be able to give the Seach Parameter:...
c# asp.net
[0, 9]
2,937,200
2,937,201
Get the next element by selecting element with a class
<p>I have a live search and a list element is given a class of <code>hover</code> I am then trying to get the next li element after the hover class upon pressing the down arrow and adding the <code>hover</code> class to that element. Here is what I have:</p> <pre><code> if(e.keyCode == 40){ var current = re...
javascript jquery
[3, 5]
4,697,818
4,697,819
Insert image in textarea when button is pressed using javascript or jquery?
<p>i have design one textarea and button in html. i want to insert image in textarea when button is pressed. how it is possible in javascript or jquery?</p>
php javascript jquery
[2, 3, 5]
2,655,490
2,655,491
How do I use a function argument for this jquery code, or is there a better solution?
<p>I have about 50 p tags and next to these are again 50 divs. on click of each p tag, its div should be shown and the rest hidden. How do i acheive this. I can use something like below:</p> <pre><code>$(function() { $('.p1').click(function(){ $('.div1').show(); $('.div2','.div3','.div4','.div5','.div6',...........
javascript jquery
[3, 5]
1,215,630
1,215,631
How do I add a php variable to this jquery url setting?
<p>I'm trying to make the URL in the following example contain a php variable like this:</p> <pre><code>http://api.crunchbase.com/v/1/company/$company.js </code></pre> <p>This is my jquery code:</p> <pre><code>$.ajax({ url: "http://api.crunchbase.com/v/1/company/airbnb.js", dataType: 'jsonp', success: function(resul...
php jquery
[2, 5]
4,925,792
4,925,793
Toggle form visibility with javascript
<p>I'm using this code to display several forms on my page based on the link chosen by the user:</p> <pre><code>&lt;ul class="nav"&gt; &lt;li&gt;&lt;a href="#" onclick="$('#more_info').toggle(); return false;"&gt; More Information&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#" onclick="$('#road_test').t...
javascript jquery
[3, 5]
2,200,357
2,200,358
How to change html class after ajax successful response?
<p>I want to toggle the voting arrow class, the same way as stackoverflow's voting arrow. For a logged in user, if already voted up, the html is:</p> <pre><code>&lt;a href="#vote" id="vote-up-%1$d" class="vote vote-up-on"&gt;&lt;/a&gt; &lt;a href="#vote" id="vote-down-%1$d" class="vote vote-down-off"&gt;&lt;/a&gt; </c...
javascript jquery
[3, 5]
677,380
677,381
jQuery selector by position on page available?
<p>Is there a selector available in jQuery to select elements which have a specific position of the page, for example all elements that have an offsetTop bigger than, say, 100px?</p> <p>I tried:</p> <pre><code>$('span[offsetTop&gt;100]') </code></pre> <p>because just as we can check if an attribute equals to some va...
javascript jquery
[3, 5]
1,035,662
1,035,663
JQuery question
<p>i want to run some code on all my treeView nodes depending on a value returned from the database and repeat this until a certain value is returned.</p> <p>I was thinking that:</p> <ol> <li>Give all my tree nodes the same css class so I can access them from JQuery</li> <li>have a timer in my JQuery function that us...
javascript jquery
[3, 5]
4,664,060
4,664,061
jQuery ie8 attr poor performance
<p>"I have some html similar to below contained within a loop where the parent id is dynamically generated,</p> <pre><code>&lt;t:loop&gt; &lt;div id="demoid-10132165498794631" class="lineItem-container"&gt; &lt;div&gt; &lt;select/&gt; &lt;/div&gt; &lt;/div&gt; &lt;/t:loop&gt; </code...
javascript jquery
[3, 5]
2,527,670
2,527,671
How to replace a page by date
<p>There is way to replace page at some date&amp;time ?</p> <p>example: i want that at friday the default.aspx will down, and other page will turn to default.aspx... and then at sunday the first default.aspx will return.</p> <p>someone have an idea? maybe will be better to change the display of the default.aspx. i ne...
c# asp.net
[0, 9]
1,627,889
1,627,890
get cookie value in the textbox using jquery or javascript
<p>I want to see cookie value in the textbox.</p> <p>I have used this </p> <pre><code>document.getElementsByName('Custom_Field_Custom2')[0].Value=$.cookie('artname',{ path:'/'}); </code></pre> <p>but that cookies value is not displaying in the textbox.</p> <p>What I need to do?</p>
javascript jquery
[3, 5]
2,972,900
2,972,901
Placing PHP within Javascript
<p>I can't seem to get the PHP to echo out within a Javascript tag:</p> <pre><code>places.push(new google.maps.LatLng("&lt;?php echo the_field('lat', 1878); ?&gt;")); </code></pre> <p>What am I doing wrong?</p>
php javascript
[2, 3]
5,562,319
5,562,320
Html editor - Remove tags
<p>I am having a html editor in my page . I want to store the text in word document with the styles like bold,italic etc.. Im using this code to write in word document..</p> <pre><code>object strTextToWrite = txtdocument.Text.Trim(); oWordApplic = new Word.ApplicationClass(); object missing = System.R...
c# asp.net
[0, 9]
2,042,365
2,042,366
Is it a good practice to implement logic in properties
<p>we use ASP.NET with C# and based on open source projects/articles I passed through, I found many properties were including a <strong>logic</strong> but when I did so the team-leader told me it's not good at all to place logic inside properties but to call the logic through methods...</p> <p>is that really bad? and ...
c# asp.net
[0, 9]
1,596,628
1,596,629
New to asp. Problems connecting to database. Not sure about correct method to use
<p>I've been using asp forms for the past week or so. Mostly I've been getting used to gridview and using the site.master to display menus on each page and using the connectionstring in web.config to access my sql server database.</p> <p>But I'm not finding gridview all that versatile and am a little confused as to ho...
c# asp.net
[0, 9]
3,331,140
3,331,141
How to create a superuser & random user login from a single login page?
<p>Am new to asp.net &amp; C# world. Just joined as a Software Developer. I have to create a website for a forum. So i need to create one login page for three types of login mainly,1. Admin, 2.Receptionist &amp; 3.Random User. So i need your help in this project.</p> <p>Thanks Tourniquet</p>
c# asp.net
[0, 9]
183,447
183,448
Access Javascript from Java
<p>I m trying to access JavaScript function from Servlet code. But I'm getting the error shown below. Here is the code:</p> <pre><code>out.println("&lt;FRAME src=\"javascript:parent.newWindow('" + URL+ "') \" scrolling=No noresize /&gt;"); </code></pre> <p>And this is the error that occurs in JavaScript:</p> <blockq...
java javascript
[1, 3]
5,901,345
5,901,346
Accessing from the page in LowerFrame to the page in UpperFrame causes undefined error!
<p>My website consists of two frames, let's say upperFrame and lowerFrame.</p> <p>On the document ready of the page in lowerFrame, it access one of textbox located on the page of upperFrame. Sometimes, since the upperFrame do NOT complete its loading, lowerFrame get the undefined while it access the upperFrame.</p> <...
javascript jquery
[3, 5]
2,336,297
2,336,298
Choose selectbox option by javascript by text
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3541565/selecting-an-option-by-its-text">Selecting an option by its text</a> </p> </blockquote> <p>Is there any way how to choose the option in selectbox <strong>by the text label</strong> of the option (<strong...
javascript jquery
[3, 5]
2,671,784
2,671,785
How to use google database to create any mobile application?
<p>I m going to develope an application in which i m not using inbuilt database as well as Web Services. I Want to use google database..means if my user want to search for some query.i must pass that question to google and behalf of google result,i'll display resule to client in my application.e.g in listview.</p> <p>...
java iphone asp.net android
[1, 8, 9, 4]
4,035,727
4,035,728
<Control>.Focus() from server side doesn't scroll into view
<p>Custom Validation Control:</p> <pre><code>&lt;asp:CustomValidator ID="valSex" runat="server" ErrorMessage="1.2 &amp;lt;b&amp;gt;Sex&amp;lt;/b&amp;gt; not specified" EnableClientScript="true" ClientValidationFunction="ValidateSex" SetFocusOnError="True"&gt;Selection required&lt;/asp:CustomValidator&gt; </code></pre>...
asp.net javascript
[9, 3]
841,164
841,165
Calling my own function during with onClick
<p>How do I call a user-define function such as this one using the onClick attribute of a input button? More specifically what special steps must I take in JQuery and what would the HTML markup look like? Thanks</p> <pre><code>function simClick(keyCode) { var e = jQuery.Event("keypress"); e.key...
asp.net jquery
[9, 5]
1,403,900
1,403,901
Android Development: Name of this view
<p>Hi, I am new to mobile app development, so forgive me if this seems like a stupid question. The screenshot below is from the Sydney airport iPhone app. Could anyone please tell me what kind of View is that? I mean, the one with all the "To and From" info, like "parking" etc.? And is it possible to make such a view ...
android iphone
[4, 8]
1,930,678
1,930,679
JavaScript: Whats the difference between 'Document' and 'HTML'
<p>Example:</p> <pre><code>$(document).click(function() { blah }); // and $('html').click(function() { blah }); </code></pre>
javascript jquery
[3, 5]
4,278,515
4,278,516
Help with showModalDialog together with Selections
<p>I need to use the showModalDialog method to display a message to a user, which will also need to have two buttons, a "Yes" and "No" but unsure how to approach this method.</p> <p>I am using IE8 and unsure how to declare this and how I need to assign this that will also cater for both "Yes" and "No" options.</p> <p...
javascript jquery
[3, 5]
4,582,816
4,582,817
Sending Email Using apache commons mail package from android
<p>I am new to android. I am developing the new app with email sending option. To send a mail I have used gmail configurations host "smtp.gmail.com", port 465 with SSL true. To send an email I have apache commons API. <code>OnTouch</code> event mail sending method will call. Whenever touch button it shows following err...
java android
[1, 4]
4,928,910
4,928,911
How to disable initial mouseover
<p>With jQuery (or pure javascript), if you set a <code>mouseover</code> handler, it will be triggered even if the mouse is initially on the element. How to disable that?</p> <p>For example, look at facebook - place your mouse over the name of a friend in the feed. A hovercard appears. Now refresh the page (without mo...
javascript jquery
[3, 5]
114,074
114,075
jQuery clearInterval not working
<p>I have the following hover function </p> <pre><code>function tt_attachToBase(){ jQuery.each(bases, function(index,base){ jQuery(base).hover(function() { jQuery(base).showTipTimer = setInterval( function(){tt_locateBase(base);} , 3000 ); ...
javascript jquery
[3, 5]
2,833,737
2,833,738
how to reduce the time taken to populate tree node in asp.net c# treeview?
<p>I am binding the XML Data to treeview using XMLDataSource. Its working fime, but when the Number of nodes and childnodes increases, the treenode expand and to display the content in iframe takes moer time.</p> <pre><code>&lt;asp:TreeView ID="TreeView1" OnSelectedNodeChanged = "OnClick" runat="server" ...
c# asp.net
[0, 9]
254,836
254,837
javascript setInterval()
<p>I have this code:</p> <pre><code>function noti() { document.title = document.title + " 1" } setInterval("noti()", 1000) </code></pre> <p>The problem is it outputs: </p> <blockquote> <p>My title 1 1 1 1 1 1 1 ..... to infinite.... 1</p> </blockquote> <p>Is there any possible way to output this as "My tit...
javascript jquery
[3, 5]
2,342,305
2,342,306
displaying a texarea value into another textarea value
<p>I've two input fields, both type textareas. </p> <pre><code>&lt;input id="display" type="text" disabled="disabled" style="border: none; background: none" /&gt; &lt;input id="name" type="text" /&gt; </code></pre> <p>And I'm using jQuery to display the value of <code>#name</code> into <code>#display</code>. The text...
javascript jquery
[3, 5]
204,314
204,315
Unable to start activity ComponentInfo: java.lang.NullPointerException
<p>i'm building an android application for my degree. i need to get all contacts from phone for begin the apllication (later i need also to get emails etcetc). so i used two classes </p> <p>Degree_thesisActivity</p> <pre><code> public class Degree_thesisActivity extends Activity { /** Called when the activity is f...
java android
[1, 4]
3,679,644
3,679,645
Download file after time from page load?
<p>i have an exe url that i want to download after 2 sec from page load: like this:</p> <pre><code> var handle = 0; function Download() { window.location = "exeUrl"; clearInterval(handle); } $(document).ready(function () { handle = setTimeout('Download()', 5000); ...
javascript jquery
[3, 5]
1,387,850
1,387,851
Javascript/jQuery function yields undefined in <IE8
<p>A short while back I asked a question here about how I could calculate when a heading was longer than one line within a given container, and subsequently wrap each of these lines in a <code>&lt;span&gt;</code>:</p> <p><a href="http://stackoverflow.com/questions/3960336/use-javascript-jquery-to-determine-where-a-hea...
javascript jquery
[3, 5]
1,329,246
1,329,247
Transposition table for game tree (connect 4)
<p>I am making a Connect 4 app for Android and right now I am using a minimax algorithm coupled with alpha-beta prunning and heuristic evaluation function for leaf nodes. I also ordered the moves to further maximize the pruning process. Unfortunately with that strategy the algorithm takes too much time in depth 7, lead...
java android
[1, 4]
1,275,172
1,275,173
function is inaccessible due to its protection level
<p>I am having an issue with C# in ASP.</p> <p>I get an error on the following line of code which starts "string[]"....</p> <pre><code>Label DT33 = (Label)MainContent2.FindControl("data_text"); string[] lines = Strings.Split(DT33.Text, "&lt;br&gt;"); num = lines.Length;The error reads.... </code></pre> <p>Compilati...
c# asp.net
[0, 9]
5,465,677
5,465,678
App crashing on count and dialog box
<p>i am using following code.</p> <pre><code>public class MyCount extends CountDownTimer { public MyCount(long millisInFuture, long countDownInterval) { super(millisInFuture, countDownInterval); } @Override public void onFinish() { display...
java android
[1, 4]
1,095,543
1,095,544
a little complex Linq2SQl insert operation (Dynamic user control and page insertion)
<p>i am really trying to do this but i am failing to find a way.</p> <p>here is the scenario, i got a blog module i made for my clients, because it is a repeatative task, so i all i have to do is to just upload it to new client and he can start blogging, but some clients need extra custom fields, let us say he wants t...
c# asp.net
[0, 9]
3,390,477
3,390,478
Using JavaScript to record a time on the client and then how to compare the time
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8752575/how-to-apply-a-timeout-if-a-function-hasnt-been-called-1-of-n-records-in-3-seco">How to apply a timeout if a function hasn&#39;t been called 1 of N records in 3 seconds</a> </p> </blockquote> <p>I'm trac...
javascript jquery
[3, 5]
902,560
902,561
Server.mappath confusion
<p>There is a little confusion in my mind about server.mappath which is correct and what's the difference betwwen these two</p> <pre><code>FileUpload1.saveAs(Server.MapPath("~/User/images/")+"ankush.jpg")); FileUpload1.saveAs(Server.MapPath("~/User/images")+"ankush.jpg")); </code></pre>
c# asp.net
[0, 9]
4,276,095
4,276,096
JQUERY Further More Ordering DIV's A-Z
<p>I just asked a question about ordering but it was only the first part of what I needed. I want to ask the full question now to see if its possible:</p> <p>Its for a chat webpage and users can be online (active), offline (noactive) or have a message pending (msg) or no message pending (nomsg). Also keep the ID name ...
javascript jquery
[3, 5]
582,028
582,029
method to take an element out from jquery object
<pre><code> $('li').add('&lt;p id="new"&gt;new paragraph&lt;/p&gt;') .css('background-color', 'red'); </code></pre> <p>Although the new paragraph has been created and its background color changed, it still does not appear on the page.What or which method/procedure i be able to place it on the page.</p>
javascript jquery
[3, 5]
2,555,998
2,555,999
Exchange the position of button in android
<p>So what I want to achieve is to change the position of my buttons. this is my sample picture:</p> <p><strong>Note:</strong> <br> My buttons have background drawable, for example sake, I just uploaded without the background images on buttons. <br><br><strong>Default</strong><br> <img src="http://i.stack.imgur.com/...
java android
[1, 4]
1,712,530
1,712,531
Javascript Action Order
<p>Say I have:</p> <p><code>&lt;div id="name" class="button"&gt;&lt;/div&gt;</code> </p> <p>and in a javacript file I define click actions for both class button and id name, something like:</p> <pre><code>$("#name").click(function(event){ alert("hi"); }) $(".button").click(function(event){ alert("bye"); }) </co...
javascript jquery
[3, 5]
4,030,429
4,030,430
Can the closest jquery function find child tags inside other tags
<p>I have this HTML code</p> <pre><code>&lt;td&gt; &lt;div&gt;&lt;p&gt; My Txt &lt;/p&gt;&lt;/div&gt; &lt;div&gt;&lt;a class="linkclass" &gt;link1 &lt;/a&gt;&lt;a&gt; link2 &lt;/a&gt;&lt;/div&gt; &lt;/td&gt; </code></pre> <p>Now i want that if someone click on <code>a.linkclass</code> then i alert the text inside p ...
javascript jquery
[3, 5]
5,040,353
5,040,354
Add elements to 2D array in jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/966225/how-to-create-a-two-dimensional-array-in-javascript">How to create a two dimensional array in JavaScript?</a> </p> </blockquote> <p>I want to push elements to 2D array, </p> <p>My code is, </p> <pre><co...
javascript jquery
[3, 5]
5,514,877
5,514,878
Memory problem in android at run time
<p>I need to display many rows in <code>ListView</code> in my android application . There is more than 2500 rows with each row contains tow images and 11 labels . So I am getting memory error at run time like "VM will not lets you to use more than 120000 bytes" . </p> <p>How can I solved this problem ?</p> <p>Can any...
java android
[1, 4]
3,477,258
3,477,259
unterminated string literal Javascript
<p>I'm using the following code in php:</p> <p>PHP:</p> <pre><code> $suggested_sentence[0] = "Hello, how are you?"; echo $suggested_sentence[0] . ' &lt;input type="image" src="button.png" onclick = update_textarea('. $textareacount.','. "'".$suggested_sentence[0]."')/&gt;"; </code></pre> <p>Javascript function:...
php javascript
[2, 3]
2,712,768
2,712,769
Object scope while attaching an event listener in javascript
<p>I need to do something like this:</p> <pre><code>for(int i =0; i&lt; results.length; i++){ $('ul').append('&lt;li&gt;'+results[i].name+'&lt;/li&gt;').bind('click',function(){ doSomething(results[i]); }) } </code></pre> <p>but when the click happens, the object passed to doSomething is undefined. ...
javascript jquery
[3, 5]
425,824
425,825
Advice on onPause and onResume
<p>If i use the code below will this restore text that has been input into EditTextfields and selected spinner items?</p> <pre><code> @Override protected void onPause(){ super.onPause(); } @Override protected void onResume(){ super.onResume(); } </code></pre> <p>or do I ...
java android
[1, 4]
1,095,045
1,095,046
Javascript or jquery confirmation dialog
<p>Hello i have this code :</p> <pre><code>&lt;a href="#" class="removelink" title="&lt;%=id%&gt;"&gt;&lt;button class="btn-icon btn-orange btn-cross"&gt;&lt;span&gt;&lt;/span&gt;Delete&lt;/button&gt;&lt;/a&gt; </code></pre> <p>how could i add a confirmation dialog onclick with yes or no ?</p> <p>thank you</p>
javascript jquery
[3, 5]
1,339,865
1,339,866
Page event is not getting fired at all
<p>I am trying to use the <code>Page_LoadComplete</code> in my user control <code>myusercontrol.ascx.cs</code> but its not getting fired up, I added a break point and nothing, it is possible that the user control does not support this event? and if thats the case what can I use instead?</p>
c# asp.net
[0, 9]
16,529
16,530
Converting Java to C++
<p>I'm new to C++ so I'm having trouble converting this into C++. Is there examples that I could see how a C++ arraylist looks. I know java has several classes that can be made but in C++ how would that be made would it be all under one .cpp file.</p> <pre><code>public class Main { public static void main(String[] ar...
java c++
[1, 6]
3,029,691
3,029,692
Optimising event handling: one large, or many small?
<p>Which pattern is best, and why?</p> <pre><code>$myElements.delegate(selector, 'event1 event2', function () { if (event.type === 'event1') { /* Handle event 1 */ } if (event.type === 'event2') { /* Handle event 2 */ } } </code></pre> <p><strong>OR</strong></p> <pre><code>$myElements .delegate(selector, 'e...
javascript jquery
[3, 5]
5,756,731
5,756,732
what are the pitfalls of storing Viewstate in session or DB
<p>I have read that you can do it, but would this really improve performance of the page, or would it bring more performance overhead?</p>
c# asp.net
[0, 9]
2,568,912
2,568,913
ASP.NET Multi-Lingual Application using Database
<p>I am wondering if anyone would share their experience on what they think as the best strategy to enable dynamic multi-lingual system using .NET</p> <p>I have a customer who wishes to have an semi-MRP system that stores all Product's Materials and specs. These information will later be used for other modules such as...
c# asp.net
[0, 9]
5,903,090
5,903,091
Onmouseover running multiple times while hovering on element?
<p>Why does onmouseover run multiple times while I hover over one element?</p> <p>I'm trying to run a simple animation when the user hovers over an icon but it runs multiple times.</p> <p>I'm testing it here:</p> <p><a href="http://lujanventas.com/test.php" rel="nofollow">http://lujanventas.com/test.php</a></p> <p>...
javascript jquery
[3, 5]
454,447
454,448
can anybody help me find what is the js error i get in explorer 7 and 8?
<p>If i run the link in ieTester, in ie7 pops up a js error and the site doens't work, if i try ie8 i don't get a pop msg but it doesn't work neither. It says: Line 219 Char 1 Error expected identifier, string or number Code 0</p> <p>in here: link off - issues was the answer below</p> <p>Thanks</p>
javascript jquery
[3, 5]
1,722,955
1,722,956
What should I do for devloping a great project?
<p>I am going to start a new project as a project trainee. And my project is making a job-portal site. And I have done some work with winform but I am a newbie to asp.net,css,html and java script. And my expection is to make this project is very very great at all, and I am ready to work a lot and lot to make this proje...
c# asp.net
[0, 9]
466,881
466,882
How to get HTML from a current request, in a postback
<p>I have a report that I generate with HTML. </p> <p>I'd like to get the HTML output of the page, and be able to send it via email. I'm having problem with session, because the report redirect me to the login page because when I create a new WebRequest, it doesn't use the information of the current session.</p> <p>I...
c# asp.net
[0, 9]
2,105,946
2,105,947
Orkut style div update on click
<p>I am trying to update a div on click similar to orkut .. The div is updating fine. But when the user clicks on the textbox its value becomes null initially. So the user has to again type the whole thing. So what I need is a facililty for the user to add the text with the existing one. So when he clicks on the textbo...
javascript jquery
[3, 5]
5,527,862
5,527,863
asp.net Page loading twice when making an underlying connection
<p>I have a aspx page that seems to be loading twice when I enter the Url to the page.</p> <p>In this page's loading event, I'm making an connection to a server to retrieve a document and then I output the downloaded bytes to the output stream of the page.</p> <p>This is causing the page to load twice for some strang...
c# asp.net
[0, 9]
1,815,772
1,815,773
JavaScript in Android
<p>Is it possible to use JavaScript in Android?? if so, how? Please provide some examples.</p> <p>Thanks.</p>
java javascript android
[1, 3, 4]
5,453,602
5,453,603
JQuery 'undefined' is not a function error
<p>I am using some JQuery on my website and all my other functions work the same way and don't give me an error but this one in particular gives me the error:</p> <pre><code> TypeError: 'undefined' is not a function (evaluating '$('.main-scn .livecontainer').delay(200).aniamte({left:'+=200'}, 500, function() {extend =...
javascript jquery
[3, 5]
4,981,379
4,981,380
How to put the link to the last created quiz in the email that will be sent to all users automatically?
<p>I could be able to let the web application sends automatic emails using Windows Task Scheduler. Now I want to put the link to last created quiz by admin in that email. <strong>How to do that? Should I add any column in the Quiz table in the database?</strong></p> <p>The table schema:</p> <p><em><strong>Employee Ta...
c# asp.net
[0, 9]
5,767,853
5,767,854
How to Hide Sliding div on Document Ready
<p>I am trying to slide up and down a div (<code>.nav</code>) by clicking on another div (<code>#toggleMenu</code>) </p> <p>Now my problem is when I run the page the (<code>.nav</code>) div pops up very fast. I used the <code>$(".nav").hide();</code> to hide the div but this is happening after loading the (<code>.nav...
javascript jquery
[3, 5]
3,144,235
3,144,236
hide a message after 30 seconds.?
<p>How can after click on button show a message and next <strong>hide it after 30 seconds</strong>?</p> <p><strong>Like:</strong></p> <pre><code>$('#message').live('click', function() { $('#sm').hide(); $('#sm').hide().show('slow').html('You have successfully registered'); // how is hide "$('#sm')" after ...
javascript jquery
[3, 5]
796,233
796,234
Android Calendar problem with day of the week
<p>I'm trying to list all days of the week for current week from Monday to Sunday. For example, today (day of this posting) is September 4th, 2011 and it's Sunday.</p> <p>I'm starting calendar and setting first day of the week to Monday:</p> <pre><code>Calendar cal = Calendar.getInstance(); cal.setFirstDayOfWeek(Cale...
java android
[1, 4]
2,457,684
2,457,685
populate a select dropdown on the basis of other other select dropdown
<p>How would I populate a select dropdown whose values are dependent on what is selected in the parent dropdown. E-g, First dropdown has country names in it, and on selection the next dropdown would load the corresponding states of that country, selected in first dropdown. And then say I have a third dropdown, where I ...
javascript jquery
[3, 5]
3,102,054
3,102,055
How to ensure that a function is executed completely, before navigating to another page?
<p>I'm removing certain records using a webservice. The jquery ajax request is written in the onclick of a hyperlink. When im executing the script, line by line using firebug, it's getting removed otherwise it's not. Does any one meet any situation like this before? Please help</p> <p>Code sample:</p> <pre><code> $("...
javascript jquery asp.net
[3, 5, 9]
3,585,796
3,585,797
Pageload and Postback problem for Visual Studio(ASP.Net)
<p>I have a page that calls a control. The control has 3 tables. For the first time when the page is loading, it displays 1 &amp; 2 tables. There is a next button, when the user clicks , takes you to the same page but with just 3rd control. In table 1, I have an update button, and even in table 2,i have an update butto...
c# asp.net
[0, 9]
883,535
883,536
RadTreeView OnClientNodeClicking corfirm
<p>I have problem confirming if node should be changed or not, with jConfirm.</p> <p>This is my js code:</p> <pre><code>function OnClientNodeClicking(sender, args) { var calcelTrue = confirm('Can you confirm this?') if (calcelTrue == false) { args.set_cancel(tr...
c# javascript jquery
[0, 3, 5]
1,288,921
1,288,922
Embed a windows media player in a web page during runtime in c# and asp.net
<p>i want to embed windows media player in my own created web page. can any one please guide me how can i do it in c# and Asp.net. that also should be supported in all browsers.</p> <p>Thanks in advance, Arun</p>
c# asp.net
[0, 9]
5,647,493
5,647,494
jQuery textarea word count on form submit
<p>I have been looking around for a function that counts the number of words in a textarea when I click the form submit button.</p> <p>I am trying to display a message to the user that if they click submit and have only entered 50 or less words. This will be a confirm message basically saying "You have entered less th...
javascript jquery
[3, 5]
2,002,321
2,002,322
Advice for Python programmer writing C#
<p>I've seen this <a href="http://stackoverflow.com/questions/683273/advice-for-c-programmer-writing-python">question</a> about advice for C# programmers writing Python code but I am going the opposite direction.</p> <p>What are some tips, tricks, caveats for a Python programmer writing C# code?</p>
c# python
[0, 7]
3,889,264
3,889,265
Prevent variable update after page refresh without javascript
<p>A friend of mine is developing a web application that's more of an online learning facility. On each page is a set of questions. He wants that when the use has answered all the questions on a page and submitted (and taken to the next page for the next set of questions), he shouldn't be able to go back to answer and ...
php javascript
[2, 3]
3,470,345
3,470,346
Android: Opening an email application on clicking the label
<pre><code>&lt;TextView android:id="@+id/TextView03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/header" android:layout_alignLeft="@+id/button1" android:layout_marginBottom="127dp" android:text="@string/email" android:textColor="#00...
java android
[1, 4]
2,898,934
2,898,935
How to Redirect to Login page while click on logout
<p>I am developing a application in asp .net 4.0.</p> <p>Here when I am logged in to my application, go to inner pages, say "Manage Role" and copy the link and click on Logout button it displays my login page. Now i paste that link in another tab and expect it to display me the login page but it does not happen, it sh...
c# asp.net
[0, 9]
3,831,268
3,831,269
Calculate Pecentage in C#
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4585166/simple-division">Simple division</a> </p> </blockquote> <p>I juz wanna ask how to represent this kind of math expression in C#</p> <p><strong>a/b*100.0</strong></p> <p>i try doing this. but it does not...
c# asp.net
[0, 9]
5,360,598
5,360,599
Why browser doesn't cache java script(Ajax)?
<p>I have made a cascade drop down list box using jquery. user selects state from first drop down and according to selected state the second drop down will fll by appropriate cities. my problem is about caching of second drop down. when user clicks on back browser button and then click on forward button the city drop d...
javascript asp.net
[3, 9]
1,973,609
1,973,610
Can I refactor if - else with a switch or case statement in javascript?
<p>I have the following code:</p> <pre><code>var btns1 = { 'Submit': function (win) { submitHandler(oLink.$link, $('#main-form'), false); }, 'Submit &amp; Close': function (win) { submitHandler(oLink.$link, $('#main-form'), true); }, 'Close': function (win) { modal.closeModa...
javascript jquery
[3, 5]
5,579,400
5,579,401
Implementing lazy loading in homepage posts instead of pagination
<p>I have lots of posts in <a href="http://blog.kushaljoshi.com.np" rel="nofollow">my website</a>. I have used <code>default pagination</code> function for paging the post list in <em>homepage</em>. But I wanted to implement <code>lazy loading</code> instead of pagination just like in <em>twitter</em>. I don't have any...
jquery javascript
[5, 3]
5,348,521
5,348,522
Jquery window.location - how to open a blank window
<p>I have a login script and currently when all is done the client is redirected to the billing page.</p> <p>I'd like this page to open in a new browser window not the existing one as the current code does.</p> <p>Thank you for your help</p> <p>Dave</p> <pre><code>function go_to_private_pageb() { window.location = ...
javascript jquery
[3, 5]
3,518,102
3,518,103
jQuery Get Attribute Value even when it changes
<p>I have the following:</p> <p><img src="http://i.stack.imgur.com/TahKM.png" alt="enter image description here"></p> <p><strong>Javascript:</strong></p> <pre><code>$(".bg .thumb_wrapper").click(function() { $(".bg .thumb_wrapper").removeClass("active"); $(this).addClass("active"); }); </code></pre> <p>So e...
javascript jquery
[3, 5]
4,002,639
4,002,640
ASP.NET - How to check value of a textbox in a user control from a page?
<p>I have an aspx page that contains a user control. The user control has a textbox and the page has a submit button.</p> <p>How can I check if the textbox in the user control is not null and display an alert if it is - from the page?</p>
javascript asp.net
[3, 9]
3,148,191
3,148,192
selectbox without submit button
<p>I want to POST my values from selectbox without submit button. And want to get values as automatically drop down menu selects value</p> <p>Trying below sample code but isnt getting required output</p> <pre><code>&lt;form action="cal1.php" method="post"&gt; &lt;select name="modelS" onChange="submit();"&gt; ...
php javascript jquery
[2, 3, 5]
3,693,369
3,693,370
Window resizing problem
<p>When i resize my window popup stays at center position. It show adjust depending on the window size. Whats wrong in my code </p> <pre><code>.Popup { display: none; height: 400px; width: 400px; position: fixed; background-color: white; ...
javascript asp.net
[3, 9]
733,444
733,445
interesting news article/blog post scraping problem
<p>i need to scrape the text of blog posts to build a summary description of the blog posts similar to what techmeme.com does. not a problem when it's one or a handful of blog posts. however, the possible blogs from which to scrape the text is variable and unlimited. how would you go about doing this?</p> <p>i've used...
c# asp.net
[0, 9]
3,540,464
3,540,465
How to put the link to the last created quiz in the email that will be sent to all users automatically?
<p>I could be able to let the web application sends automatic emails using Windows Task Scheduler. Now I want to put the link to last created quiz by admin in that email. <strong>How to do that? Should I add any column in the Quiz table in the database?</strong></p> <p>The table schema:</p> <p><em><strong>Employee Ta...
c# asp.net
[0, 9]
3,752,070
3,752,071
Get element at point in entire page (even if it's not visible)
<p>I have a page and on it are some widgets. There are 2 columns. Widgets will auto-resize themselves if there is no widget to their left (or right).</p> <p>I'm using <a href="https://developer.mozilla.org/En/DOM%3adocument.elementFromPoint" rel="nofollow"><code>document.elementFromPoint</code></a> (after getting th...
javascript jquery
[3, 5]
4,276,926
4,276,927
setText of a TextView array
<p>What I'm trying to do is have an EditText where people enter their names. As people press the "Add Player" button, the name which they just typed appears below in the list form. So I've created 8 textviews which are initially invisible but as people type the name press the "Add Player" button, the text changes to th...
java android
[1, 4]
3,071,582
3,071,583
How can I stop this setTimeout function from running?
<p>I use the function below to check on the status of a JSON file. It runs every 8 seconds (using setTimeout) to check if the file has changed. Once the JSON's status becomes 'success' I no longer want to keep calling the function. Can someone please show me how to do this? I suspect it involves the use of clearTim...
javascript jquery
[3, 5]
5,716,415
5,716,416
bind Day (1-31) to dropdown programmatically and 0's to day < 10?
<p>I have the current method in a helper file to bind monthly days to a dropdown and I wonder how I should modify it to add a leading 0 to 1-9?</p> <pre><code>public DropDownList PopulateDay(DropDownList ddlControlDay) { for (int i = 0; i &lt;= 31; i = i + 1) ddlControlDay.Items.Add(i.ToString("D2")); ...
c# asp.net
[0, 9]
3,075,630
3,075,631
Contacts photo is not displayed in Android?
<p>Hi I have a problem in displaying the contacts image in android. Following is the code snippet I have used,</p> <pre><code>public String getCallersInfo(ContentResolver cnt,String phoneNumber) { mContentResolver = cnt; lNumber = phoneNumber; System.out.println("Start test"); Cursor l_Cur = mConten...
java android
[1, 4]
1,160,277
1,160,278
How To Compare My Actual MasterPage
<p>I have 2 MasterPage in my project.</p> <p>The <code>MasterPage to common pages</code> and the <code>MasterPage to PopUp pages</code>. </p> <p>And I have a class <code>BasePage</code> that is inherited by all pages, and in BasePage I need to verify which is the actual MaterPage that is used.</p> <p>Ex:</p> <p><c...
c# asp.net
[0, 9]
5,253,914
5,253,915
Where do I put the jQuery script tag?
<p>In all the documentation I see the jQuery script tag beneath <code>&lt;title&gt;</code> in the head, but then when I go into some other sites (the <a href="http://initializr.com/">initializr</a> template is the first off the top of my head), they drop it into the bottom of the body (you know, right before <code>&lt;...
javascript jquery
[3, 5]