Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
3,127,247
3,127,248
pass the id of textbox to dropdownliast onchange event in javascript
<p>I have a dropdownlist defined:</p> <pre><code> &lt;asp:DropDownList Width="300px" ID="PlaceHoldersDropDownList" runat="server" AppendDataBoundItems="True" TabIndex="3" onchange="PasteTextInEditor (this.options[this.selectedIndex].value), '&lt;%= ...
javascript asp.net
[3, 9]
801,498
801,499
Understanding Java syntax of GridView gridview = (GridView) findViewById(R.id.gridview);
<p>In the android tutorials, The <a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html" rel="nofollow">GridView tutorial</a> to be exact, there is a line of code</p> <pre><code>GridView gridview = (GridView) findViewById(R.id.gridview); </code></pre> <p>Which looks to be declaring/instan...
java android
[1, 4]
2,200,282
2,200,283
How create a synchronized voting service?
<p>I have a project i am working on.</p> <p>What i want to do is have a voting service. That people with the application installed can vote on a article or an item. and it will sync with other's application to see how many times it was voted.</p> <p>or could i implement a like on facebook and it would be easier?</p>
java android
[1, 4]
3,905,973
3,905,974
C# version of Javascript Date.getTime()
<p>What is the best way in c# to get the same result of javascript date.gettime() call?</p> <blockquote> <p>The getTime() method returns the number of milliseconds since midnight of January 1, 1970 and the specified date.</p> </blockquote>
c# javascript
[0, 3]
1,374,185
1,374,186
Simplifiying variables in jQuery
<p>How do I simplify the following code?</p> <p>It is just a static ID.</p> <pre><code>&lt;script&gt; $x('input[id="id1"]').attr('checked', true); $x('input[id="idx4"]').attr('checked', true); $x('input[id="idk5"]').attr('checked', true); &lt;/script&gt; </code></pre>
javascript jquery
[3, 5]
3,439,771
3,439,772
Send array in JS to php
<p>I'm trying to do something similar to this <a href="http://stackoverflow.com/questions/2793891/send-selects-values-in-array">question</a>. I want to send to the server the id's of the selected checkboxes. I'm using jquery only because the example. my ajax code is pure JS.</p> <p>This is my code:</p> <p>js:</p> <p...
php javascript
[2, 3]
3,948,160
3,948,161
How to fit long text in a button?
<p>My button is fixed size height. I need it to be like the text on the left on my picture below. Now it's like on the right. I've tried every gravity option but no result. Is there a way to accomplish this?</p> <p><a href="http://i.imgur.com/blDVA1D.jpg" rel="nofollow">http://i.imgur.com/blDVA1D.jpg</a></p>
java android
[1, 4]
1,264,608
1,264,609
Check if javascript file was loaded
<p>I am loading the following javascript files from a CDN. Is there any way I can check if these have been loaded correctly and if not, load them from a local folder?</p> <p><a href="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js" rel="nofollow">http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js</a> ...
javascript jquery
[3, 5]
5,511,140
5,511,141
How to split the content of a DIV tag to multiple DIVs?
<p>I have a <code>DIV</code>tag with specific Width and height attributes.</p> <pre><code>&lt;div style="width:793px;height:1096px"&gt; A long text and pictures&lt;/div&gt; </code></pre> <p>I want to separate the <code>DIV tag</code> to multiple <code>DIV tags</code> when the lines and pictures are exceeded the first...
javascript jquery asp.net
[3, 5, 9]
983,933
983,934
Why should I learn C#?
<p>I want to know why I should learn C#? </p> <p>What features does C# have that Java does not?</p>
c# java
[0, 1]
2,564,411
2,564,412
cannot send email from global.asax
<p>I'd like to simply get notified for site errors, and I've this straight forward code that does work everywhere in the application except in global.asax!!</p> <pre><code>void Application_Error(object sender, EventArgs e) { UIHelper.SendErrorMessage(Server.GetLastError()); } </code></pre> <p>code in...
c# asp.net
[0, 9]
435,378
435,379
JavaScript Closures and Memory Leaks
<p>I read in Jquery in Action that memory leaks can result from javascript closures.</p> <p>"Unintended closures can have unintended consequences. For example, circular references can lead to memory leaks. A classic example of this is the creation of DOM elements that refer back to closure variables, preventing those ...
javascript jquery
[3, 5]
1,816,634
1,816,635
Getting values from dictionary
<p>I have a Dictionary&lt;int, int&gt; in my class. How can I access both values without knowing the key?</p> <p>For instance, I want to be able to do something like this: If the dictionary contains Dictionary&lt;int, int&gt;<br> and the values are &lt;5, 4&gt;<br> I want to be able to get the value of &lt;(this),(thi...
c# asp.net
[0, 9]
15,419
15,420
Field loses value from JS function if I click outside the field with mouse
<pre><code>$(document).ready(function(){ $('#id_laufzeit_bis').datepicker().on('changeDate', recalculate_deadline); $('#id_kuendigungsfrist').change(recalculate_deadline); $('#id_kuendigungsfrist_type').change(recalculate_deadline); $('#id_kuendigung_moeglichbis').change(check_reminder_date); $('#i...
javascript jquery
[3, 5]
1,397,565
1,397,566
jquery exit function in ajax call
<p>I have a javascript function. and in there, I insert a ajax call function using jquery.</p> <p>depends on ajax call result, I want to exit hi function.</p> <p>is there anyway to do this?</p> <pre><code>function hi() { $.ajax({ url: "/shop/haveItem", type: "GET", async:fals...
javascript jquery
[3, 5]
5,958,446
5,958,447
How to add native project and use native function in other c++ project
<p>I am working on android project.I have created a native edittext.I want use native jni function in other android c++ project for display the edittext in c++.whenever i add the headerfile of jni and edittext,then compiler does not find.</p> <p>Can you suggest me.how to add native edittext project with my own projec...
android c++
[4, 6]
5,926,228
5,926,229
getting columns values using row id jquery
<p>I have a jaquery code like this:</p> <pre><code>var items = $('.trSelected', grid); </code></pre> <p>where items is comma seperated list of rows (tr tags) like this:</p> <pre><code>row25 row30 </code></pre> <p>I want to to get 6th and 8th column ( td) value of these rows. How to do it using jquery.</p> <p>I ca...
javascript jquery
[3, 5]
1,861,166
1,861,167
Calling Java from Python
<p>I have a Java app that takes a long time to be initialized (so I can't use a command-line like interface) and I need to pass text and receive the output of a Java method from Python. Is it possible to load the Java application, have it open all the time the Python script runs and use a method from that app?</p>
java python
[1, 7]
683,222
683,223
How to I rewrite this so that its not a random number search?
<p>Im new to jquery, how would I re-write this string so that it displayed a result of 60 each time?</p> <pre><code>var i = Math.ceil(Math.random()*60) </code></pre> <p>thanks</p>
javascript jquery
[3, 5]
2,290,660
2,290,661
XML Serialization and null value - C#
<p>I have an object that I serialize to XML. If one of the properties in the object is null, then native serialization ignores to add this as the attribute. Is this normal behavior, if so, is there a way I can override it?</p> <p>ex:</p> <pre><code>public class Test { [XmlAttribute] public string value {set; get;...
c# asp.net
[0, 9]
246,852
246,853
PHP/ JS File Upload Progress Bar
<p>How do I create a file upload progress bar similar to getdropbox.com using PHP and/or JavaScript?</p> <p>Thanks, -Giles</p>
php javascript
[2, 3]
1,231,687
1,231,688
get Time Zone using latitude and longitude?
<p>I having current latitude and longitude and I want the Time Zone from that latitude and longitude. (I want that this latitude and longitude from which Time Zone)</p> <p>I want output like.</p> <pre><code>Latitude:22.5726460 Longitude:88.3638950 </code></pre> <p>This is latitude longitude of Kolkata,india and when...
php iphone
[2, 8]
1,808,465
1,808,466
php run javascript code
<p>is it possible to run some javascript expression? for example <code>echo eval("Math.sqrt('25')");</code></p>
php javascript
[2, 3]
2,117,352
2,117,353
Show a clock on jsp
<p>I want to show clock on jsp file, the time is fetched from server and is in <code>05 Jun, 2012 12:48:23 PM</code> format I want the same time to be updated rather than taking client time.</p> <p>i did tried my hands on <code>timer.js</code>, <code>jtimer</code> and some other API's to do the same. I can do it by sp...
javascript jquery
[3, 5]
3,591,975
3,591,976
Add a 'loading' gif when an image is loaded
<p>How can l use jQuery to add a loading gif file when an image is loaded, without do it in code behind? For example to this line? Pls help.</p> <pre><code>&lt;asp:HyperLink ID="hprImage" runat="server" NavigateUrl='&lt;%# Eval("WebAddress")%&gt;' ImageUrl='&lt;%# ReturnFilePath((Eval("FileName")).ToString()) %&gt;' T...
jquery asp.net
[5, 9]
3,572,409
3,572,410
Cannot allow duplicate enty in textboxes using jquery
<p>i have a text boxes in every row with same name like this</p> <pre><code> &lt;tr&gt; &lt;g:textField name ="point" value = "" class = "destination_points" id ="point_0" /&gt; &lt;input type ="hidden" value ="" name ="pointDistanceMapping.point.id" id ="point_id_0" class="point_id"/&gt; &lt;/tr&gt; &l...
javascript jquery
[3, 5]
5,579,983
5,579,984
How to get javascript confirm box after validating the form data in asp.net?
<p>I am facing a problem in my asp.net web application that i need to display a java script confirmation box on click of <strong>Update</strong> button and this as per requirements given to me.</p> <p>Currently I am using onclient click</p> <pre><code>&lt;asp:Button ID="btnCustomerUpdate" runat="server" CssClass="app...
c# javascript asp.net
[0, 3, 9]
3,749,495
3,749,496
Change a javascript function to a jquery
<p>I am using Jquery to load a page into a div. The page the gets loaded is using a javascript. How can i change the javascript shown below into a jquery</p> <pre><code>window.onload = function(){ new JsDatePick({ useMode:2, target:"AdddueBy", dateFormat:"%d-%m-%Y" }); ne...
php javascript jquery
[2, 3, 5]
1,594,115
1,594,116
how to add an OnClick event on DropDownList's ListItem that is added dynamically?
<p>Say I have the following code:</p> <pre><code> DropDownList changesList = new DropDownList(); ListItem item; item = new ListItem(); item.Text = "go to google.com"; changesList.Items.Add(item); </code></pre> <p>How do you dynamically add an OnClick event to <code>item</code>...
c# asp.net
[0, 9]
5,266,578
5,266,579
Auto Click a button on a web page
<p>I need to auto click a button on a web page. Basically i have a user interface to see the logs of the network printer. This page already has a option 'Save in CSV Format'.When i click this, i get a popup box which asks if you want to run or save that file. </p> <p>The issue is: I am creating another web page where...
php javascript
[2, 3]
2,221,717
2,221,718
How do I compare two JQuery objects for identity?
<p>I'm trying to use Jquery to open / close control 'boxes' on a webpage. Unfortunately, it doesn't look very good to close a box just to re-open it if the user happens to click on the already opened box. (Boxes are mutually exclusive).</p> <p>The code I'm using doesn't work, and I'm not sure why. I still get a box...
javascript jquery
[3, 5]
580,264
580,265
How to add a class to element in Jquery and then trigger event based on that class
<p>I have some jqeury code that programatically adds a class to an element on document ready. The issue i am having is how to then listen for elements with that class being clicked.</p> <pre><code>&lt;li&gt;&lt;a href="#" id="btnDeleteGroup" class="disabled"&gt;Delete Node&lt;/a&gt;&lt;/li&gt; $(document).ready(funct...
javascript jquery
[3, 5]
1,420,170
1,420,171
How to fetch all the browser names installed on android mobile
<p>I am new to android application development.</p> <p>I want to fetch the list of installed browser names on android mobile through the application. How can I do that?</p>
java android
[1, 4]
902,654
902,655
Call a Java app with a parameter but never wait for the answer
<p>What I want to do is when an user logs in to call a Java app from the PHP server. The app to index some content and process it and save it to a database. But what I want to really do, is to call it and nevermind what it does and never wait for the answer. Like a cronjob on demand. Is this possible?</p> <p>UPDATE:</...
java php
[1, 2]
1,936,130
1,936,131
Get Inner HTML of Multiple Elements
<p>I want to get the content of multiple Spans. Here is my code:</p> <p><a href="http://jsfiddle.net/4XumV/" rel="nofollow">http://jsfiddle.net/4XumV/</a></p> <p>It's supposed to give me "111, 222, 333, 444". It gives me "undefined" instead.</p> <p>What's wrong with my code?</p>
javascript jquery
[3, 5]
1,991,512
1,991,513
android: file does not stay written
<p>Here are the relevant bits of my code</p> <pre><code>public void Toast(String text) { Toast toast = Toast.makeText(this,text, Toast.LENGTH_SHORT); toast.setGravity(Gravity.CENTER_HORIZONTAL|Gravity.CENTER_VERTICAL, 0, 0); toast.show(); } //Within another function File rootPath = new File(Environment.get...
java android
[1, 4]
2,388,913
2,388,914
Image to Binary on Java Android
<p>How to convert image from SDCard to binary and send it to Oracle Database. </p> <p>I can't do a </p> <pre><code>import android.javax.imageio.*; </code></pre> <p>on my Eclipse. </p> <p>Is there a complete source code from which I can learn.</p>
java android
[1, 4]
5,295,197
5,295,198
PyQt4 plugin in c++ application
<p>How is it posible to load python script as plugin in qt based application?</p> <p>The basic idea would be to make a class in c++</p> <p><code> class b { virtual void method1(); virtual void method2(); } </code></p> <p>and 'somehow' inherit it in python like</p> <p><code> class c(b): def method1: ...
c++ python
[6, 7]
3,219,059
3,219,060
How to execute multiple functions on mutliple objects at the same time in javascript?
<p>Say I have 5 different javascript timers that start ticking when I click "start", each are referenced in variable timer1, timer2, timer3, timer4, timer5.</p> <p>If these timers were each in an array, I would have to do something like this in pseudocode:</p> <pre><code>foreach timer in timerarray { timer.stop; ...
javascript jquery
[3, 5]
2,684,488
2,684,489
Why does this work for IE but not for Firefox or Chrome?
<p>I have created a signfield in javascript and php. The User can write in the field with the mouse. Javascript reads out the coordinates and sends them to a php script wich generates an image. a new image is created every time the mouse is moved and it is moved into a div via javascript. The problem is, that this work...
php javascript jquery
[2, 3, 5]
1,068,195
1,068,196
Implicit super constructor LoginActivity() is undefined for default constructor. Must define an explicit constructor
<pre><code>public class Utils extends LoginActivity{ public static String postData(String url, Map&lt;String , String&gt; params, Context context) { String responseString=null; </code></pre> <p>the above one is child class and below one is parent class and i am getting error at</p> <pre><code>public class...
java android
[1, 4]
1,927,162
1,927,163
Play audio when user exits my website
<p>I am wondering if there's a way to play audio when user exit my website?</p> <p>for example. "thanks for visiting etc."</p>
javascript jquery
[3, 5]
3,861,175
3,861,176
Something is wrong with my javascript script with arrays
<p>so basically my javascript array script looks like -</p> <pre><code>cars = $('#bike').val(); var priceone = document.documentElement.getAttribute('priceone'); var pricetwo = document.documentElement.getAttribute('pricetwo'); var pricethree = document.documentElement.getAttribute('pricethree'); var pricefour = docum...
javascript jquery
[3, 5]
2,653,906
2,653,907
Putextras not working
<p>I have multiple variables to pass from one activity to another. </p> <p>I have this in the first activity:</p> <pre><code>public void onClick(View v) { switch(v.getId()){ case R.id.bStartGame: Intent i = new Intent(StartScreen.this, GameScreen.class); Bundle extras = new Bundle(); extras.putStr...
java android
[1, 4]
2,042,730
2,042,731
JavaScript <%= MyProperty %>
<p>What are the restrictions in using such a construction in JavaScript. In my codeBehind I have property and on the get it has got quite complex logic. It invokes other methods and so on and I get as a result empty string despite that while debugging it is shown to return good value. I wonder what can I do as this typ...
javascript asp.net
[3, 9]
286,911
286,912
Jquery - Pseudo-recursive function with "this" element
<p>I'm trying to apply a cool animation effect on a list with Jquery using a pseudo-recursive function.</p> <p>It works pretty well for the first item, but after the first loop, the <code>this</code> which was selecting <code>#column-left section</code> becomes the <code>li</code> so of course, the function does not ...
javascript jquery
[3, 5]
716,383
716,384
how can I call a stored procedure in SQL Database from Android?
<p>Can someone please help me to have the code or a simple example how to connect to database and how to call a procedure from my Database. I'm a beginner :S thanks for any help.</p>
java android
[1, 4]
1,685,225
1,685,226
setTimeout delay not functioning - what have I done wrong?
<p>I've put together a piece of code for a drop-down menu, bound to <code>.hover()</code>, however unfortunately the delay on <code>setTimeout()</code> doesn't seem to work and as soon as the mouse is moved from <code>.button</code>, it sets the display property of <code>#sub-nav</code> to <code>none</code>.</p> <p>Dr...
javascript jquery
[3, 5]
5,704,323
5,704,324
javascript make form dissapear after submitting
<p>I have a form on a html page, with a submit button.</p> <pre><code>&lt;div id="tt"&gt; &lt;form method="post" action="time.php"&gt; &lt;input type="text" name="c"&gt;&lt;br&gt; &lt;INPUT TYPE="submit" VALUE="givetime"&gt;&lt;/FORM&gt; &lt;/div&gt; </code></pre> <p>time.php is just an echo of the current time. </p...
php javascript
[2, 3]
4,145,710
4,145,711
Display number of checked checkboxes in jQuery
<p>I am quite new to jQuery, I think this might be quite easy for many of you, but I can't seem to make it work. How can I display the number of checkboxes so that the value increases or decreases. </p> <p>i tried the following but with the number in the span tag remains 0: <a href="http://jsfiddle.net/yunowork/NTwxc/...
javascript jquery
[3, 5]
5,370,401
5,370,402
How to enable and disable back button using JavaScript
<p>I am using VS 2010.</p> <p>I use two links to go back/forward between pages.</p> <p><strong>Code:</strong></p> <pre><code>&lt;a href="#" onclick="history.go(-1);return false"&gt;&lt;img src="Images/back.jpg" /&gt;&lt;/a&gt; &lt;a href="#" onclick="history.go(1);return false"&gt;&lt;img src="Images/forward1.jpg"/&...
javascript asp.net
[3, 9]
4,590,474
4,590,475
Recognize the backspace and spacebar with jQuery
<p>when a user clicks the spacebar or backspace I need to create a variable that stores the action so I can use it to manipulate an array. I want the backspace to delete a value in an array and the spacebar to create a space. How can I do this?</p>
javascript jquery
[3, 5]
4,038,599
4,038,600
iPhone Jquery run function on confirm = true
<p>I'm using html / jquery to make my phone list, and I want to have a confirm dialog to do the action, but even if I tap cancel, the action is fired...</p> <p>also, is there any chance of using jquery and cycript together?</p> <p>Thanks</p> <pre><code>$(".btns_numeros").click(function() { confirmacao($(this...
jquery iphone
[5, 8]
117,513
117,514
Finding the data inside a word document
<p>In my project which I'm doing, I have to find if my word document consists of any image or table. Is there any way to do that using c# code. I couldn't find any code related to this.</p> <p>Thanks in advance</p>
c# asp.net
[0, 9]
1,019,700
1,019,701
Bizarre error with Response.Redirect
<p>I get the following error when trying to use Response.Redirect in one of my ASP.NET pages:</p> <pre><code>[ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: offset] System.Web.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count) +8858392 System...
c# asp.net
[0, 9]
2,518,374
2,518,375
jQuery .append() does not work from .js file
<p>I have the following line of code:</p> <pre><code>$('#text').append('&lt;h2 style="color:white"&gt;afdghadfg&lt;/h2&gt;'); </code></pre> <p>If I paste this code inside of a script tag in the html, it works fine. However, when placed inside a .js file it does nothing. </p> <p>Know that the .js file has plenty of o...
javascript jquery
[3, 5]
4,428,785
4,428,786
JQuery to show the file path on different input tag
<p>I have a file input and an <code>Apply to all</code> button. If I click on the button, the location in the file field should be shown on a different file field. It should be done using JQuery. Please help.</p> <pre><code>$("input[name='option_image[]']").each( function (){ $(this).val($("#bulk_image").val()); }); ...
javascript jquery
[3, 5]
4,121,147
4,121,148
Data list binding with some text and validating datalist
<p>I am using this code for datalist validation.</p> <p>I am binding the image in datalist after that i am trying to give the caption to each image suppose there is 3 image is datalist then for the first image i am able to give but for the other one i am unable to.. i think there is some error in conditions help me in...
c# asp.net
[0, 9]
1,074,966
1,074,967
UserControl pass Value to MasterPage Content
<p>I am coding in a userControl, </p> <p>how can I pass text to a control I placed in one of the contents?</p> <p>It's a literal by the way</p> <p>Thank you</p>
c# asp.net
[0, 9]
5,212,611
5,212,612
dynamically change alternate row colors
<p>I have 5 tr, these are row alternate color. Now how to change tr color dynamically when I delete some row.</p> <p>Assume below is table tr and td</p> <p>this is my row </p> <pre><code>tr class='odd' tr class='even' tr class='odd' tr class='even' tr class='odd' tr class='even' tr class='odd' tr class='odd' tr...
javascript jquery
[3, 5]
3,417,061
3,417,062
How to use Global Varabile in Aspx file?
<p>Say I have a global class:</p> <pre><code> static class GlobalOfficeSetting { public static bool PatientRegistation_DialogOnly = true; } </code></pre> <p>Or let's say if I store the global variable in below instead:</p> <pre><code>Application("PatientRegistation_DialogOnly") = true </code></pre>...
c# asp.net
[0, 9]
3,809,787
3,809,788
C++ for the new student?
<p>I'm taking a CS 101 course at my local university, and it looks like every CS class at this school uses C++, and little else. I find my course feeling much more like an intro to C++ than a CS course like I find through the likes of academicearth.com. Also in talking with those in software engineering, I get the advi...
c# javascript c++ python
[0, 3, 6, 7]
5,836,967
5,836,968
Problems with javascript inside echo
<p>I want to echo the following code:</p> <pre><code>&lt;a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return fa...
php javascript
[2, 3]
1,258,022
1,258,023
how to clear the fields in the login page while refreshing in asp.net master page
<p>I have one login page that inherits master page. I enter the incorrect username and password then clicking the login button it will shows the error message. I want when I refreshing the page both error message and username field will remove. Can anyone have this experience.. Thank you...</p>
c# asp.net
[0, 9]
4,334,057
4,334,058
asp.net mvc jquery checking size on file upload
<p>Is there any way to check the size of the file when it is about to be uploaded with jquery ?</p>
asp.net jquery
[9, 5]
3,002,149
3,002,150
Asp.net and Jquery return data bug
<p>I have Jquery code behaves weirdly. I am doing a complex task but I am almost done with it. Only problem I have is I am trigering a webmethod in C# which works perfectly. That webmethod returns a string value. I am trying to set a cookie with that returned value but it displays [object Object]. How can I display the...
jquery asp.net
[5, 9]
2,088,085
2,088,086
Form Validation in external JavaScript File using document.getElementById
<p>My document.getElementById function is returning null on a value I know exists. Specifically I try:</p> <pre><code>//in an external .js file var UserName = document.getElementById('&lt;%=_username.ClientID%&gt;'); </code></pre> <p>And test it using some conditions, which never happen due to the element id value be...
javascript asp.net
[3, 9]
5,978,889
5,978,890
find obj type of jQuery result
<p>I have the following code produce ["AM123","DR2","F","99"] from the console.log. Now I want to see what is the type of the result.</p> <p>The code producing the result is : </p> <pre><code>$(".stock_splitdata").each(function() { var $table = $(this); var values = $("td", $table).map(function() { return $(this).te...
javascript jquery
[3, 5]
2,242,258
2,242,259
A Few Python questions
<p>I'm trying to learn Python from a background in javascript. I saw someone make a recursive function to find the least common denominator and wondered why they didn't just use a loop, so, both for the experience and to amuse myself, I wrote a simpler one:</p> <p>I came up with:</p> <pre><code>def LCM(n,d): whil...
javascript python
[3, 7]
4,927,002
4,927,003
Diff RegisterClientScriptBlock & RegisterStartupScript & responce.write("script")
<p>i need individual explanation and individual advantages regarding <code>RegisterClientScriptBlock</code> &amp; <code>RegisterStartupScript</code> &amp; <code>responce.write("script");</code></p> <p>i got some information like </p> <p><code>RegisterClientScriptBlock()</code> methods will inject the script after the...
c# asp.net javascript
[0, 9, 3]
4,464,614
4,464,615
show and hide several random divs using jquery
<p>i am developing a jquery application. I have 10 divs with quotes. I am trying to create a function that takes a number and randomly displays that number of quotes from the 10 divs for 10 seconds and hide the divs. Then repeat the process again. I have not been able to do it please help me out. here is my code:</p> ...
javascript jquery
[3, 5]
1,215,472
1,215,473
App_Code class not auto completing and cant use it in rest of project
<p>I am creating a site and thought I would do it correctly so I created an <code>App_Code</code> directory and created a class in there.</p> <p>when im editing the class file the auto complete no longer works, which I can live with, however, no matter what I do in my main site I cant access or reference the class fil...
c# asp.net
[0, 9]
5,725,593
5,725,594
Jquery: Blur function does not work with Div tag
<p>I am trying to create a Jquery Tree plugin for my current project. In the plugin, there are 3 compomnents: a text box containing the result selected from the tree , a div containing the tree and a button to show the div. It works fine, except that i cannot make it auto lose the popup div if the tree lose its focus. ...
javascript jquery
[3, 5]
4,525,217
4,525,218
Display Progress Label while fetching data
<p>Here is how I am trying to do:</p> <pre><code> void Fetch() { //Code To Fetch Data } protected void btn_Click(object sender, EventArgs e) { lblSatus.Text = "Fetching Data..."; Thread t = new Thread(Fetch); t.Start(); t.Join(); lblSa...
c# asp.net
[0, 9]
1,504,528
1,504,529
how to connect markers in google map api?
<p>How to connect markers in Google map API using just java, i.e., without using asp.net, php or any other language? I am just a beginner. I have multiple markers on my map which are showing the corresponding places in Google android project.</p>
java android
[1, 4]
5,154,429
5,154,430
jquery cookie not working
<p>hey people i'm using a jquery plugin for creating cookies which seems to be working perfect when i run it on localhost but when I tested in the server it's not working as i expected.</p> <p>below is my file testcookie.php</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org...
javascript jquery
[3, 5]
5,590,464
5,590,465
jQuery dropdown menu exclude children from function
<p>I have something like this</p> <pre><code>&lt;div id="dropdown-menu"&gt; &lt;div class="visiblestuff"&gt;&lt;/div&gt; &lt;div class="foldoutstuff"&gt; &lt;form&gt; &lt;some input value/&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I want the #dropdown-menu to...
javascript jquery
[3, 5]
1,068,739
1,068,740
Incrementing by 4, not 1
<p>My issue is that when I navigate(click) the counter(a) gets incremented by 4 instead of 1(I'm thinking maybe, it's due to body+html selector). So, I'm wonder what will solve this, could I just possibly subtract 3 after the incrementation or will some modulus be of help somewhere?</p> <pre><code>$('body,html').click...
javascript jquery
[3, 5]
3,203,848
3,203,849
DownloadString timed out
<p>I have a method which returns the content of a webpage:</p> <pre><code> private string FetchHTML(string sUrl, Encoding encoding) { System.Net.WebClient oClient = new System.Net.WebClient(); oClient.Encoding = encoding; return System.Web.HttpUtility.HtmlDecode(oClie...
c# asp.net
[0, 9]
2,410,956
2,410,957
grab value of URL segment and update a class accordingly?
<p>I'm building a multi-step form in jQuery which updates the URL according to which segment of the form it's currently showing.</p> <p>eg:</p> <ul> <li>index.php#form=step1 </li> <li>index.php#form=step2 </li> <li>index.php#form=step3</li> </ul> <p>I've also built a breadcrumb menu that links to each of these segme...
javascript jquery
[3, 5]
5,309,839
5,309,840
Java executes 'catch' block with no error, and somehow still runs 'try' block
<p>I have a problem with the following code. First, I am a newbie to Java with experience with several other languages.</p> <p>When I run the following on Android, it errors at "in.close();", jumps to the catch block and runs Return ""; The thing is, the function doesn't return an empty string, it successfully returns...
java android
[1, 4]
439,549
439,550
jquery find text nodes within an element and join and wrap with a tag
<p>I'm a newbie and am having a hard time with some text that has no element, I am trying to wrap text outside of a tag with a list tag :</p> <p><a href="http://jsfiddle.net/danb/7xu6A/" rel="nofollow">http://jsfiddle.net/danb/7xu6A/</a></p> <p><strong>HTML</strong></p> <pre><code>&lt;ul&gt; &lt;li&gt;&lt;a href...
javascript jquery
[3, 5]
3,646,683
3,646,684
How to get sorting without removing Row-Created function(Use for changing column of header-text in run-time)
<p>The following code is my Grid View AA from aspx page.</p> <pre><code>&lt;asp:GridView ID="GridView_AA" runat="server" OnSorting = "Gridview_AA_Sorting" OnRowCreated="GridView_AA_RowCreated"&gt; &lt;asp:TemplateField HeaderText="Period Name" SortExpression="PERIOD_NAME"&gt; &lt;EditItemTemplate&gt; &lt;asp:TextBo...
c# asp.net
[0, 9]
1,181,760
1,181,761
Convert java to c# .net
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/896867/tool-to-convert-java-to-c-code">Tool to convert java to c# code</a> </p> </blockquote> <p>I have done a project in java and I want to convert it to C#.Net. I'm using Visual Studio 2008. How can I convert th...
c# java
[0, 1]
3,482,547
3,482,548
How to wrap existing event handler without modifying "this"?
<p>I am using some existing code that has an form submit handler:</p> <pre><code>function AjaxFormSubmit(e) { [...] var form = $(this); [...] } </code></pre> <p>To bind the handler in my view code I have this:</p> <pre><code>$('myForm').submit(AjaxFormSubmit); </code></pre> <p>What I want to do is run some other...
javascript jquery
[3, 5]
265,006
265,007
Using jQuery 1.4.4 This simple method fails for some reason
<pre><code>$.get($(this).attr('rel'), function(response){}, 'script') .error(function(){ alert('this failed')}); </code></pre> <p>I get. <code>.error is not a method</code> . But it was added in version 1.4.3</p> <p><a href="http://api.jquery.com/error/" rel="nofollow">http://api.jquery.com/error/</a></p> <p>Is ther...
javascript jquery
[3, 5]
5,721,086
5,721,087
Visual Studio 2010 working directory
<p>I'm developing a C# asp.net web application. I'm basically done with it, but I have this little problem. I want to save xml files to the "Users" folder within my project, but if I don't psychically hard code the path "C:......\Users" in my project it wants to save the file in this "C:\Program Files (x86)\Common File...
c# asp.net
[0, 9]
4,085,838
4,085,839
How i get value from all dynamic textbox by using Class in php
<p>i have this dynamic textbox, and i want to get value by using class. by php</p> <pre><code>&lt;input id="op1" name="po1" class="key" size="50"&gt; &lt;input id="op2" name="po2" class="key" size="50"&gt; &lt;input id="op3" name="po3" class="key" size="50"&gt; &lt;input id="op4" name="po4" class="max" size="50"&gt; &...
php javascript
[2, 3]
586,025
586,026
Closing a child window from it's parent
<p>I currently have the following code to generate a new child window. i also set a timeout for the user to respond , when that time out ends the child window should be closed.</p> <p>Here is what i got so far:</p> <pre><code> var zerominutpopup 'http://www.somewebsite.com/'; zerominutpopup = open(zerominutpopup, '',...
javascript jquery
[3, 5]
944,983
944,984
loop over the PHP data Returned to jquery AJAX Call
<p>below is my $.ajax call to php</p> <pre><code>$(document).ready(function() { $('ul.sub_menu a').click(function(e) { e.preventDefault(); var txt = $(this).attr('href'); $.ajax({ type: "POST", url: "thegamer.php", data:{send_txt: txt}, success: function(data){ $('#c...
php jquery
[2, 5]
5,843,136
5,843,137
Using a rotation vector in Android
<p>Hey, For an application I'm writing, I need the sort of thing <a href="http://developer.android.com/reference/android/hardware/SensorEvent.html#values" rel="nofollow">Sensor.TYPE_ROTATION_VECTOR</a> offers. However, I assume it is from an old version of Android, as I cannot use this variable in my applications (I ge...
java android
[1, 4]
890,371
890,372
How to remove empty list item with jquery
<p>I have a list which is dynamically built, but there are empty list items which need removing.</p> <pre><code>&lt;ul&gt; &lt;li&gt;www&lt;/li&gt; &lt;li&gt;www&lt;/li&gt; &lt;li&gt;www&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>How od i do this with jqu...
javascript jquery
[3, 5]
5,570,199
5,570,200
Sequential arithmetic operation in javascript
<p>I've a text input and user will write a string for example <code>10+20-10-2*2+4/2</code> and I want to do an arithmetic operation sequentially, which means I want to <code>(10+20)-(10)-(2)*(2)+(4)/(2)</code> and the result should be <code>20</code> according to above example.</p> <p>In other words I want to do the ...
javascript jquery
[3, 5]
2,919,527
2,919,528
how to maintain jquery change preserved on page change?
<p>i am using the below code to slide my navigation menu </p> <pre><code>$(document).ready(function(){ $("#flipnav").click(function(){ $("nav").slideToggle("slow"); }); }); </code></pre> <p>but on browsing to another page or refresh the navigation is back again. but how to preserve this change so that the ...
javascript jquery
[3, 5]
2,681,342
2,681,343
Repeter With multiple data source of type class
<p>Hi I have 5 different classes. And using single repeater I want to populate the each class data without writing any data binding code except assigning DataSource and DataBinding. the header values should be populated based upon the class members. I think I can use reflection. But I need clear idea. And if i use refl...
c# asp.net
[0, 9]
1,452,778
1,452,779
DataGrid and formatting data
<p>I'm new to ASP.NET and don't really understand how to display a table with database data. The data is loaded in an object, where I have a list of objects.</p> <p>Now I want to show a table with some columns, an image (path created from two fields in the object), an link (passing one field of the object), a textarea...
c# asp.net
[0, 9]
1,703,367
1,703,368
jQuery dual multiple select combo box
<p>i have a function that brings value from 1 combo box to the other.</p> <pre><code>product.bind('click', function() { var t = ($(this).hasClass('prevbtn'))? 0 : 1; if(t) { unsel.find('option').each(function() { if($(this...
javascript jquery
[3, 5]
5,042,795
5,042,796
Javascript, or Jquery and posting to php
<p>I want to send a javascript variable to a php file. What I would like to know is could you do it via this method?</p> <p>Jquery:</p> <pre><code>Var UserName; UserName = John; $.post("InsertRunInfo.php", { UserName: UserName } ); </code></pre> <p>Pass to php:</p> <pre><code>&lt;?php $con = mysql_connect("*****","...
php javascript jquery
[2, 3, 5]
22,968
22,969
Disabling the viewstate both on page and control does not have effect
<p>I have disabled the viewstate for controls (labels, buttons etc) and the page for test purposes.</p> <p>Now when I change the text of a label on the client side and intercept the button's click event, the label still shows the text that the server sent previously.</p> <p>So what is going on? I need to be able to c...
c# asp.net
[0, 9]
256,282
256,283
Error: Cannot implicitly convert type 'void' to 'System.Collections.Generic.List'
<p>I am trying to set a property of my .ascx controls from an .aspx using that control. </p> <p>So in one of my <strong>.aspx</strong> which has this control in it, I have the following code trying to set the ItemsList property of my embedded .ascx:</p> <pre><code>Item item = GetItem(itemID); myUsercontrol.ItemList =...
c# asp.net
[0, 9]