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
802,464
802,465
How to calculate the time difference?
<p>How can i do the calculation to get the time difference. I have both the time of the server and the time of the client system in <code>isoDate</code> date format. Here are the output data i have :</p> <p>Server time which is in UTC converted to local sytem timezone time : </p> <p><code>Tue May 22 2012 14:29:51 GMT...
javascript jquery
[3, 5]
3,475,862
3,475,863
Can Dynamic Data website concept of ASP .Net used in Enterprise level application
<p>There are 3 Options available in front of me for architecting application</p> <ol> <li>Formview / Gridview &amp; LINQDataSource</li> <li>Dynamic Data Website </li> <li>Classic Design (Using Textbox &amp; other controls, writing code to get and set data from entity classes)</li> </ol> <p>Please guide me ...what opt...
c# asp.net
[0, 9]
5,452,629
5,452,630
Scope problem with SetTimeOut
<p>I don't know why but this code is not working ? Why would it not ? I guess it is because scope problem I am having here :</p> <pre><code>function washAway(obj) { alert($(obj)); // says HTML Object which is fine setTimeout(function() { alert($(obj)); // says undefined $(obj).fadeOut("slow", f...
asp.net javascript jquery
[9, 3, 5]
3,595,980
3,595,981
Annoying exception in asp.net
<p>everybody; I have this problem in asp.net, I have a page where I insert and modify data, before saving I make a validation if it passes I save the data but if not I raise an exception and show it, the function goes like this;</p> <pre><code>protected void btnSave_Click(object sender, EventArgs e) { try { ... if(Val...
c# asp.net
[0, 9]
77,544
77,545
Calculating Pixel Distance in QT C++
<p>I am writing an application , to compare 2 images of same dimensions , I need to compare distance For example if two images of the Same then the distance between those two images would be zero. If two images are completely different than the distance between them would be quite large.The project involves taking...
c# c++
[0, 6]
448,373
448,374
Improving Efficiency in jQuery function
<p>The while statement in this function runs too slow (prevents page load for 4-5 seconds) in IE/firefox, but fast in safari...</p> <p>It's measuring pixel width of text on a page and truncating until text reaches ideal width:</p> <pre><code>function constrain(text, ideal_width){ $('.temp_item').html(text); var it...
javascript jquery
[3, 5]
745,977
745,978
ASP.NET How to send Eval("") to javascript method for manipulating its value
<p>I have the following code which is working fine</p> <pre><code> &lt;asp:TemplateField&gt; &lt;ItemTemplate&gt; &lt;div runat="server" id="divFileName" class="divFileName" title='&lt;%# Eval("FileName")%&gt;'&gt; &lt;%# Eval("FileName")%&gt;&lt;/div&gt; &lt;/ItemTemplat...
javascript asp.net
[3, 9]
4,259,777
4,259,778
Controlling overall system volume from app?
<p>I'm building an application in which I would like to let the user control the volume via the app (instead of pressing down the side volume buttons). </p> <p>Is there a way to control the "overall" system volume from within the app? If not, I would be content controlling media player volume and phone (ringer + in-ca...
java android
[1, 4]
3,701,988
3,701,989
Toggle a hidden div when a particular dropdown option is selected/de-selected
<p>Hey everyone, I had a quick question that should be easy for someone who is experienced in Jquery and Javascript.</p> <p>I'd like to have a hidden div that is below a drop-down field in my form. When one particular option is selected, the hidden div is displayed. I'd also like it to disappear when any other option ...
javascript jquery
[3, 5]
1,212,084
1,212,085
Get dir of a file
<p>I think I have a simple question, but I cant figure it out. I would like to get the directory of a file.</p> <p>Example: path = /mnt/sdcard/music/music.mp3</p> <p>Should return 'music'</p> <pre><code>public String getDir(String pathAudioFile) { File f = new File(pathAudioFile); return f.??? } </code></...
java android
[1, 4]
697,426
697,427
Getting "jQuery is undefined" error after merging two js files
<p>I have to merge two external js files for optimization purpose. Both of the js files contain jQuery library functions and other js functions. After merging these two files I got the following error:</p> <blockquote> <p>"jQuery is undefined" </p> </blockquote> <p>How do I get rid of this?</p> <hr> <p>From OP co...
javascript jquery
[3, 5]
5,236,157
5,236,158
Comparing generic lists and filter mismatching values
<p>I would like to compare to generic lists, and filter the mismatching values. I'm currently using a foreach loop, but I would like to know if there is a way to solve this using a lambda expression? In the example below i would like a resulting list that only contains the "4".</p> <pre><code>List&lt;string&gt; foo = ...
c# asp.net
[0, 9]
3,421,722
3,421,723
using jquery - 2 different links that open the same window but display the appropriate content?
<p>I'm trying to work out how this can be achieved using jQuery, I have page 1 which has 2 links namely link 1 and link 2, what I want to achieve is when I click link 1 a new browser window is opened displaying the content for link 1 and when I click link 2 the same window is displayed but with the content for link 2.<...
javascript jquery
[3, 5]
4,198,456
4,198,457
Uncompress php gzcompressed after ajax
<p>So I have a json string I compressed with gzcompress in php, and I have a jquery file that's grabbing that compressed string. What I can't seem to figure out is how to uncompress that once the js file grabs it. Is there a simple way to do this? I saw somewhere to change the .htaccess file, but I can't find exactl...
php javascript
[2, 3]
5,387,322
5,387,323
My android service causes the app to crash
<p>I'm trying to call a method of another class but this causes my app to crash.</p> <p>This is what I'm doing to run it on boot</p> <pre><code>public class BootReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { MyApp test = new MyApp(); te...
java android
[1, 4]
4,274,931
4,274,932
How to change URL name in browser using asp.net
<p>I have a situation in which there is a login page.After successfully logging in,i 'm redirected to http:\localhost\default.aspx.I want that after logging in my browser url should look like www.abc.com but the pa ge opened would be http:\localhost\default.aspx.I'm not able to do this using URL rewriting</p>
c# asp.net
[0, 9]
1,626,342
1,626,343
Why can't I set this element reference as a variable?
<p>I have a javascript object as such (simplified). </p> <pre><code>var MyObject = (function(){ var propertyOne = $('.links li:first-child'); var propertyTwo = $('.links .active'); function startup() { propertyOne.addClass("class"); //Works propertyTwo.addClass("class2"); //Does not work $('.l...
javascript jquery
[3, 5]
1,357,293
1,357,294
Content from .load() is not active on main page
<p>I have these pages:</p> <p><strong>information.php</strong></p> <pre><code>&lt;div id='content'&gt;Foo Bar&lt;/div&gt; </code></pre> <p><strong>main.php</strong></p> <pre><code>&lt;div id='main'&gt;&lt;/div&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $("#main").load("informat...
php jquery
[2, 5]
1,127,505
1,127,506
dynamically creating div with dynamic content
<p>I want to Create div dynamically with unique id.. base on id we need to get values form the database ..but here can get id but divTag.innerHTML= not getting id to execute my sql query please help me out thanks in adnvce</p> <p> </p> <pre><code>.dynamicDiv { width:200px; height:100px; border:solid 1px #c0c...
javascript jquery
[3, 5]
2,265,560
2,265,561
Return checkboxes array to php via jquery?
<p>Im trying to send an array of checkboxes (value) to PHP via jquery. How can that be done?</p> <p>See the following example:</p> <pre><code>&lt;input type="checkbox" name="option[]" value="0"&gt; Small &lt;input type="checkbox" name="option[]" value="1"&gt; Medium &lt;input type="checkbox" name="option[]" value="2"...
php javascript jquery
[2, 3, 5]
5,314,531
5,314,532
Checking and assigning Checkbox values to a string in C#
<p>I'm brain tired and stumped so wanted to see if anyone knows a better way to do this:</p> <p>I have 4 checkboxes that a user can select none, one, or all, or any combo. Then in the code behind I want to check all the CheckBoxes and if it's been selected then take it's value (text) and assign it to 1 string and sepa...
c# asp.net
[0, 9]
871,274
871,275
Iteration in asp.net databinding
<p>Say I have an array like so in my code behind:</p> <p>public static string[] fields = new string[]{"field1", "field2", "field3", "field4"};</p> <p>I would like to use this array to retrieve fields in a gridview when it is databinding, like so:</p> <pre><code>&lt;%# Eval("Field1")%&gt; &lt;%# Eval("Field2")%&gt; &...
c# asp.net
[0, 9]
4,528,858
4,528,859
whats the alternate for alert function in javascript?
<p>whats the alternate for alert() function in java script?</p> <p>I do not want to use the alert function as it will display some message.</p> <p>I just want to activate a function, when i use alert() the function gets activates and show the result otherwise it doesnt show anything.</p> <p>Please help!</p> <pre><c...
javascript jquery
[3, 5]
400,205
400,206
Create ImageView from data, java android
<p>I have data that represents an image and I want to create an ImageView</p> <p>Exemple of image data : zCH5BAAAAAAALAAAAADIABQAAAT/8MlJq7046827/2AojmRpnmiqrmzrvnAsz1ji3ARK3AMGOIbUgUYsjhA3RwFVuA0tO8ezpBj0jNgshpF0MGZN7wk5 ....</p> <p>How can I do that programmatically ? thxs</p>
java android
[1, 4]
5,560,731
5,560,732
control radio button from textfield value
<p>everyone..i want after i type "0203-ED" in textfield ...two character behind that text can control the radio button.. "ED" character from that text can make one radiobutton which has value="ED" are checked...</p> <p>this is my code:</p> <pre><code>&lt;script type="text/javascript"&gt; var model=$("#tags1").v...
javascript jquery
[3, 5]
2,798,031
2,798,032
ASP.NET javascript. Put it in code behind or put it in .aspx file?
<p>Why do people put javascript in the code behind ? I think it is ugly to have 100 (see below) of these.... Is there some basic reasons that javascript must be in the code behind in some instances? And when it should in the aspx. ?? </p> <pre><code> // now we gotta recalc fields szCalcBe...
asp.net javascript
[9, 3]
5,878,334
5,878,335
append textbox value and checkbox value to a string
<p>I am having trouble figuring out how to append the values in the text field(exclude empty textboxes and corresponding checkboxes) and all the checked and unchecked values to a string in the order: name|T|F_name|F|F</p> <p>I have this code, I have been trying to figure out how to make it into a single string. On sub...
javascript jquery
[3, 5]
3,479,074
3,479,075
How to apply jQuery function .one() to element through attribute 'onclick'
<p>I want to clear an input field when it's clicked, but only the first time you click. With jQuery, you can achieve it like this: putting the following snippet anywhere in the document (assuming the element with id=<code>inputf</code> has already been loaded):</p> <pre><code>$('#inputf').one("click", function() { ...
javascript jquery
[3, 5]
916,310
916,311
Listbox - selected item to call the class method directly using reflection
<p>I have a problem scenario like this:-</p> <p>1) Listbox with values like Car, Scooter and Bike. A button to click.</p> <pre><code> &lt;div&gt; &lt;asp:ListBox ID="lst" runat="server"&gt; &lt;asp:ListItem Text="Bike" Value="Bike"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="Car" Value="Car"&gt;&lt;/as...
c# asp.net
[0, 9]
1,768,631
1,768,632
How to read a JS file as plain text and put it as string into a variable
<p>I have a test.js file and I want to get the code of that file and put it into a variable as string, but without execute it How can I do this ?</p> <p>I can use this jquery code</p> <pre><code>$j.get('/js/apu.js', function(data) { $j('#result').html(data); }); </code></pre> <p>But the problem with this is that...
javascript jquery
[3, 5]
2,618,664
2,618,665
Highlight list of words in the document using jQuery & java
<p>I am using know the following code to highlight specific word in the document </p> <pre><code>&lt;script&gt; $(document).ready(function(){ $('h1').highlight('word1'); }); &lt;/script&gt; </code></pre> <p>it works fine just to highlight one word !!</p> <p>but I have an arrylist in my program which is wri...
java javascript jquery
[1, 3, 5]
815,498
815,499
NumberFormatException when passing variable through Android Intent
<p>I'm trying to pass 2 variables through a couple of Android Activities. One of them keeps turning up as null on the last page:</p> <p>The first Activity:</p> <pre><code>Intent intent= new Intent(RoundOptionActivity.this, MoveOptionActivity.class); intent.putExtra("numRounds", "5"); startActivity(intent); </code></p...
java android
[1, 4]
4,600,611
4,600,612
When to use JavaScript in ASP.NET?
<p>I am a beginner in ASP.Net. We have Validation Controls in ASP.Net. But I want to know, In which scenarios we need to use JavaScript?</p>
javascript asp.net
[3, 9]
4,867,124
4,867,125
Restyle list row design with extra text?
<p>How can I restyle the theme of the list design?</p> <p>I use a theme <code>android:theme="@style/Theme.HoloEverywhereDark.Sherlock"</code>, and would like to preserve/extend this style. Just want to add another text element.</p> <p>As for restyling, I assume I have to extends ArrayAdapter. There inflate the row st...
java android
[1, 4]
1,281,776
1,281,777
Spinner onItemSelected() executes when it is not suppose to
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5124835/android-spinner-onitemselected-called-erroneously-without-user-action-on-openin">Android Spinner OnItemSelected Called Erroneously (without user action on opening spinner)</a> </p> </blockquote> <p>Does ...
java android
[1, 4]
2,051,794
2,051,795
Get span Id's of selected text using getSelected()
<p>I have a weird problem. I don’t quite know how to approach it. We have an application that spits out paragraphs of text with each and every word wrapped in a span with an ID. I am being asked to make a JavaScript to capture the ID's of all the words that a user highlights.</p> <p>So a simple example of a paragraph ...
javascript jquery
[3, 5]
1,024,716
1,024,717
Opening keyboard in English, and single-line editTest
<p>How can I make my editText to only one row? I dont whant that the user will press enter and make two rows.</p> <p>And how do I to open the keyboard in English ? (I have 2 languages installed)</p>
java android
[1, 4]
803,406
803,407
How to pass the date and time from one layout to another
<p>First layout has a button to pick date,another button to pick time. After picking date &amp; time from popups, a next button is clicked. On this click , the second layout that contains date and time picker. In this we have to set the previously fetched date and time...</p>
java android
[1, 4]
4,793,671
4,793,672
jQuery .on() syntax and event.preventDefault()
<p>Supposing I have the line of code:</p> <pre><code>$comparePanel.on('click', '.pills li:not(.active)', toggleComparisonPanel); </code></pre> <p>Pointing to the function:</p> <pre><code>function toggleComparisonPanel() { event.preventDefault(); $(this).addClass('active').siblings().removeClass('active'); $qui...
javascript jquery
[3, 5]
271,788
271,789
JQuery simulating keypress event on an input field
<p>I have an input field which is dynamically filled with some AJAX, and once it's filled I would like to have JavaScript to automatically press "Enter" (key event 13) on that input inducing another function, which is hidden to me, to trigger.</p> <p>Would it be possible with jQuery? I have this code right now, which ...
javascript jquery
[3, 5]
5,706,169
5,706,170
Add a button inside chart control
<p>I want a button that is placed inside the chart to export the graph to an excel file. I messed around with MapAreas but I couldn't figure out how to set the map area to an image or a control. Is there a different way to accomplish this feature? The button needs to be somehow attached to the graph.</p>
c# asp.net
[0, 9]
4,541,696
4,541,697
jQuery: give precedence to an event
<p>Is there a way to give precedence to an event? So in the below example it always fires the div1 event first but I want to fire the div2 event first. I could move div2 outside of the div1 div but it would include a bit more work because of other things (which I will do if it's the best option).</p> <p>Also, is this ...
javascript jquery
[3, 5]
4,063,439
4,063,440
Problems passing select option values to function
<p>I have created 2 select boxes and want to display the appropriate div when each select box is occupied, so when age is selected a check is done to make sure gender has been selected before running the validate function which gets passed the gender and age values. My problem is however that when female gets passed it...
javascript jquery
[3, 5]
5,638,709
5,638,710
Theme has superfish - how to add supersubs?
<p>I'm using a theme that is using Superfish for the navigation menu. The problem is, if the sub item is too long it will drop underneath, i want to keep the individual menu item's text on one line.</p> <p>Now i've found supersubs for the superfish menu but i don't know how to add it to the theme.</p> <p>This is in t...
jquery javascript
[5, 3]
2,145,231
2,145,232
Receiver as inner class in Android
<p>I am having an inner class which extends BroadcastReceiver.</p> <p>And I have added following line to AndroidManifest.xml:</p> <pre><code>&lt;receiver android:name="OuterClass$InnerClass android:enabled="true"/&gt; </code></pre> <p>But I am getting error Unable to instantiate receiver org.example.test.OuterClass$...
java android
[1, 4]
4,227,080
4,227,081
Why can't I query an element that I just added via append()?
<p>Why can't I query an element that I just added via append()?</p> <pre><code>$('body').append('&lt;div id="testing"&gt;&lt;/div&gt;'); if($("#testing").length == 0) alert("WTF! Testing div should be there!"); </code></pre> <p>Is there some kind of layout that doesn't happen until the JS finishes running or som...
javascript jquery
[3, 5]
482,176
482,177
How to get a variable to the element from a function in .data()
<pre><code>var el = $('#someElement'); el.data('f', function() { console.log(this); // return an object to the window }); </code></pre> <p>So i would like something that return me an object like "el" from inside the function.</p> <p>The reason is that the element is going to be duplicated and i don't know on which...
javascript jquery
[3, 5]
5,654,824
5,654,825
How to make each loop work in IE7?
<p>I'm currently working on a project where I hide/show some table rows based on the contents of the table cells.</p> <p>I'm using jQuery's each method to loop through the table rows, this works fine in all modern browsers except IE7.</p> <p>This is my code:</p> <pre><code>$('li').click(function() { var listLett...
javascript jquery
[3, 5]
2,897,613
2,897,614
How do i display the time in the user time zone?
<p>On my site the only place i use time is when i insert into the DB. When i pull it i would like to display the time according to the user time zone. I am generating this part of the page in C# (served in ASP.NET but not using .aspx code files).</p> <p>How do i display the time according to the user time zone? I have...
c# javascript jquery
[0, 3, 5]
1,066,600
1,066,601
jQuery , bind a callback to any function
<p>I would like to be able to bind a callback function to a previously defined function and being able to use two variables defined in the scope of that function.</p> <p>It should look like this: </p> <pre><code>function mainFunction(){ var localForMain; } $(document).ready(function(){ // bind a call back m...
javascript jquery
[3, 5]
5,584,188
5,584,189
1 page javascript techniques, is it possible to create an iframe and dump data in it?
<p>When creating a single page type website that is purely ajax driven, do people create iframes, and then dump javascript objects that contain cached data?</p> <p>This way if you reload your main page, you can still access cached data?</p>
javascript jquery
[3, 5]
2,170,583
2,170,584
Asp.net Event for change tracking of entities
<p>I have an asp.net page with many dozens of controls representing multiple database entities. I would like to track when any of the data for these entities is changed. </p> <p>If I add a page member such as </p> <pre><code>public Page1 : System.Web.UI.Page { protected bool Entity1HasChanged { get;set; } pr...
c# asp.net
[0, 9]
5,340,024
5,340,025
asp.net: session clear on response.redirect?
<p>Our site has a DropDownList for country and a DropDownList for language. when a combination of those is clicked, we redirect the user to a country/language specific url, like en-us.mysite.com</p> <p>the redirect happens in the ButtonClick in a user control (the UserControl is place in a MasterPage) but when the use...
c# asp.net
[0, 9]
3,810,706
3,810,707
JQuery: Find (the index of) a row with a specific data attribute value
<p>I am trying to append a string, myoutput, right after a specific row in a table similar to this one: </p> <pre><code>&lt;table&gt; &lt;tr data-my_id='1'&gt; &lt;td&gt; content &lt;/td&gt; &lt;/tr&gt; &lt;tr data-my_id='2' data-my_other_id='1' &gt; &lt;td&gt; content &lt;/td&gt; &lt;/tr&gt; &lt;tr data-my_id='3' dat...
javascript jquery
[3, 5]
479,084
479,085
The Button ID does not get set to the Text of the Text Box
<p>I am creating a text box tb and a button b, and I am trying to set the ID of the button to the text of the Text Box, however, the ID is set to empty string, and not to the string that is entered in the text box. Need help! Thank you.</p> <pre><code> Button b = new Button(); b.Text = "Comment"; TextBox t...
c# asp.net
[0, 9]
2,136,016
2,136,017
Backwards Compatible Android/Java Code
<p>I'm writing some code that is going to be used by some partners that maintain SDKs. The SDKs are used by developers on Android 1.5 through 2.3.7. My code uses features that are only available on 2.2 and later. How can I write my code so developers using the partner SDKs don't get compile errors on Android &lt; 2....
java android
[1, 4]
576,391
576,392
What would be better to use in this case? c# or php?
<p>I am making a website where users can upload pictures and draw on them, add text etc. My team knows some php, but we know nothing about c#. Time is not too much of an issue. We all know java, what would the perks of each be? I have been hearing that c# will be much better for handling the canvas because there is...
c# php javascript jquery
[0, 2, 3, 5]
4,472,998
4,472,999
SMS Balloons / Long Chat Boxes
<p>I want to be able to add a text-messaging balloon every time the user revives data from a HttpGet, I want it so that it looks nearly identical to the default Android text messaging UI. I'm fine with all the code, I just need a way to create the UI and create another text balloon every time data comes back from a Htt...
java android
[1, 4]
2,455,564
2,455,565
Using PHP to Match a Javascript Timestamp
<p>Alright when I do the code:</p> <pre><code>&lt;script type = "text/javascript" &gt; document.write((new Date).getTime()); &lt;/script&gt; </code></pre> <p>You get the Unix timestamp in miliseconds. I need something that will match this in PHP. I need a variable to be set to that, NOT necessarily printed. The varia...
php javascript
[2, 3]
1,161,326
1,161,327
How to pass javascript variable value in php variable?
<p>I have to open popup which will show Details on anchor 'More Info' link corrosponding to the selected link.The thing is that i am not able to get current id of anchor after clicked on corrosponding anchor tag</p>
php javascript
[2, 3]
5,030,918
5,030,919
Is there a jQuery selector to get all elements that can get focus?
<p><a href="http://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194">This answer</a> tells which HTML elements can receive focus. Is there a jQuery selector that matches exactly these elements?</p> <p>For now I'm just using <code>$('input,select,textarea,a')</code>, but I wonde...
javascript jquery
[3, 5]
2,741,173
2,741,174
Show/Hide Database Field based on Null/Not Null ASP.NET
<p>I am trying to hide a data field if it is null via ASP.NET. I have the following setup:</p> <pre><code>&lt;script runat="server" type="text/vb"&gt; // target the id called test var test = document.getElementById("test"); // if test is not empty, show // else hide test if (test.value != null){ document.getEleme...
javascript asp.net
[3, 9]
1,049,515
1,049,516
jQuery click handlers firing once when trying to use object tag
<p>I am having problems with the code below:</p> <pre><code>$('#thing1').on('click',function() { writeNewHtml(parm1, 550, 925); }); </code></pre> <p>This works everytime unless I am trying to use an object tag like below:</p> <pre><code>function writeNewHtml(parm1, height, width) { $('#div').html("object/e...
javascript jquery
[3, 5]
5,107,886
5,107,887
Enum values in a list
<p>I've a enum class like,</p> <pre><code>public enum USERTYPE { Permanant=1, Temporary=2, } </code></pre> <p>in my business object I just declare this enum as</p> <pre><code>private List&lt;USERTYPE&gt; userType=new List&lt;USERTYPE&gt;; </code></pre> <p>and in the get/set method, I tried like</p> <pre><cod...
c# asp.net
[0, 9]
3,797,484
3,797,485
Can you re-use child layouts?
<p>Say I have a (programatically created) parent LinearLayout parent1 and I add a (programatically created) childA layout with <code>parent1.addView(childA);</code> then I set up childA in some complex way - perhaps it has its own children within it. Now can I subsequently somehow un-link it from parent1 without damagi...
java android
[1, 4]
1,032,457
1,032,458
Use jQuery to hide a div until multiple check boxes are selected
<p>I need to use jQuery to hide a div until all five check boxes below are selected. I know how to do this for a single check box but not for multiple check boxes.</p> <p>This is what I have so far.</p> <pre><code>&lt;input type=checkbox id="cb1" name="cb1"&gt; &lt;input type=checkbox id="cb2" name="cb2"&gt; &lt;inpu...
javascript jquery
[3, 5]
2,445,143
2,445,144
Getting null for input type file field on jQuery .click()
<p>I'm trying to upload a file using jQuery .click().I'm getting only file name when I do request.getParameter() in my controller. Further I cant read that file with only file name. But when I use action to my form I will get the object of the file. But I don't want to use action to my form.</p> <p>My html is -</p> ...
java jquery
[1, 5]
4,212,119
4,212,120
Dropdown list value when enabling and disabling through javascript
<p>I am using a asp.net Drop down list control which is disabled using javascipt, when I am trying to retrieving the value server side the default value is being set on postback.</p> <p>It is a Web Project and Iam using VS2008.</p>
javascript asp.net
[3, 9]
3,181,349
3,181,350
How we can show doted navigation for next and previous screens in android?
<p><img src="http://i.stack.imgur.com/xxIJ1.png" alt="enter image description here"></p> <p>I want to show dots for next and previous and for go to specific screen in android by click on that dots. Can use the image like dots to do this? and can i know the code for this?</p>
java android
[1, 4]
715,840
715,841
Not able to access Data inside Javascript Array
<p>HI , </p> <pre><code> var jsonObj = [] ; for (var i = 0; i &lt; data.jobs.length; i++) { jsonObj.push({id: data.jobs[i].Dater, optionValue: data.jobs[i].INCPU}); } alert(jsonObj); </code></pre> <p>I am getting as result as </p> <pre><code>[object Object],[object Object],[object Object] </co...
javascript jquery
[3, 5]
4,233,990
4,233,991
.first('li) select first item in the list not working
<p>Hope you can help, this code is not working. It is selecting the next image ok, but if it is on the last image and there is no 'next image' then I want to select the first image in the 'li'. I've added an if condition: if (nextLi.value !=='')... but this doesn't seem to be working.</p> <pre><code> function nextI...
javascript jquery
[3, 5]
5,231,102
5,231,103
Search function to add & remove options from select dropdown
<p>Here is my crazy code:</p> <pre><code>t.config.searchSpanInput.keyup(function () { var searchCriteria = t.config.searchSpanInput.val(); $.each (t.config.promoInput, function (i, v) { $.each ($(v + " option"), function (j, v) { if (optObj[i][j].text().toLowerCase().indexOf(searchCriteria...
javascript jquery
[3, 5]
4,722,799
4,722,800
Adding controls dynamically on user selection in c#.net
<p>I have a dropdown which consists of all the controls names like textbox , label , combobox , dropdown list...etc. if in the starting one label control is placed on form,on user selection of control name in dropdown list ,that label control should be replaced with the user selected control dynamically...like this,wha...
c# asp.net
[0, 9]
5,696,995
5,696,996
automatically detect web browser window width change?
<p>i know that you with $(window).width() can get the size of the web browser.</p> <p>i want to detect when the user change the size of his web browser so i could readjust the columns width. is there a way to automatically detect this or do i have to use setTimeinterval to loop and see if it has changed?</p>
javascript jquery
[3, 5]
4,430,164
4,430,165
POST or GET method?
<p>We have a service provider that allows us to connect to his payment page for payments, however the code he uses is php but we would like to do it in asp.net.</p> <p>Problem is I don't really understand what the method should be, <code>POST</code> or <code>GET</code>, basically we need to redirect to the client with...
c# asp.net
[0, 9]
3,515,483
3,515,484
check whether text field is empty or not jquery
<p>I have a div which contain lots of <code>input[type=text]</code> fields. I want to put a check that user must have fill all the fields otherwise show error message. For this i tried :</p> <pre><code>if ($('div').children("input[type=text]").attr("value") == '') flag = false; else flag = true; </code></pre> <p...
javascript jquery
[3, 5]
3,216,663
3,216,664
How do you format a line of text within a div when clicked?
<p><strong>Using jQuery or straight javascript, how do you identify / select / choose a single line of text from a div with contentEditable on and add formatting to that line of text only?</strong></p> <p>I currently have a div with contentEditable set to true, which allows the user to edit the content of the div, add...
javascript jquery
[3, 5]
2,001,118
2,001,119
jQuery pop ups without using third party jQuery libraries?
<p>New to jQuery, what are the possible ways to create pop up boxes using jQuery?</p> <p>While searching in google I came across modal, is there any alternates to this? I prefer to use jQuery pop ups than going for third party jQuery tools.</p>
javascript jquery
[3, 5]
5,947,156
5,947,157
Comparing between strings goes wrong
<p>I have a class that generates the phone location and it updates a TextView every time a new location has retrieved. We will name this class as Track.</p> <p>The Track class contains a sendLocation object which is a Thread. The sendLocation contatins a Track object and it checks every x time if the TextView has chan...
java android
[1, 4]
4,563,275
4,563,276
When element got visible in Javascript it toggle back to hidden
<p>Please help as when ever i clcik and call Javascript function to unhide an element it turn back hidden again. it takes a second or less.</p> <p>HTML</p> <pre><code>&lt;asp:Button ID="btnFromCalOpen" Width = "35" runat="server" Text="&amp;gt;" style="display:none; visibility:hidden;" OnClientClick ="ShowCal()" /...
javascript asp.net
[3, 9]
1,629,876
1,629,877
Split Panel using javascript
<p>I'm trying to code a split panel, Left and right. Each will have a button which you can click on and it will toggle that panel, while expanding the other. </p> <p>I am clueless as to where to start off? Is there an example that already does this?</p> <p>Can someone help me out. </p> <p>Thanks</p>
php javascript jquery
[2, 3, 5]
1,310,097
1,310,098
Remove all but a specific row from a table
<p>I want to remove all rows apart from the row with id 'row0' from a table:</p> <pre><code>&lt;table class="mytable"&gt; &lt;tr id="row0" class="myrow"&gt; &lt;td&gt;aaa&lt;/td&gt; &lt;/tr&gt; &lt;tr class="myrow"&gt; &lt;td&gt;bbb&lt;/td&gt; &lt;/tr&gt; &lt;tr class="myrow"&gt; ...
javascript jquery
[3, 5]
5,364,467
5,364,468
how to access a web control inside a userControl from aspx page
<p>i have 2 textbox controls inside a usercontrol TextBoxUC.ascx<br> i have a page.aspx that contains the usercontrol. how can i get a reference to each textbox using javascript from page.aspx?</p>
c# asp.net javascript
[0, 9, 3]
3,251,002
3,251,003
Converting a value to 2 decimal places within jQuery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1726630/javascript-formatting-number-with-exactly-two-decimals">JavaScript: formatting number with exactly two decimals</a> </p> </blockquote> <p>Now that I have got a bit of script to add values in to a div wit...
javascript jquery
[3, 5]
977,241
977,242
how to get random item from an arraylist without any repeatation in android
<p>I have an <code>ArrayList</code> of an object from where I want items of a particular position, but everytime I launch the Activity the retrieved position should be randomize and also won't repeat until every position Item is completely retrieved. I used this method:</p> <pre><code>public static int getRandomNumber...
java android
[1, 4]
491,111
491,112
Jquery change .text(something) then bring back
<p>If i have the following code:</p> <p>html</p> <pre><code>&lt;div class ="lg"&gt; &lt;img src="/images/images.gif"&gt; &lt;/div&gt; </code></pre> <p>javascript</p> <pre><code>$('.lg').text("Correct"); </code></pre> <p>The jquery will remove image and replace it with "Correct". This is only intended to be a delay...
javascript jquery
[3, 5]
197,014
197,015
Setting Class-Level Variable to Use Between Event Handlers
<p>I'm having a hard time understanding why the following code doesn't work. I'm sure it's something remedial that I'm missing or not understanding. I currently have a page that asks for user input. If, based on the input and logged in user, I find data from this page already in the database, I need to update the exist...
c# asp.net
[0, 9]
4,127,047
4,127,048
How to Copy a Folder(Not File by File) from server to Android Device
<p>I want to copy a folder from server which contains many files but without traveling through files in that folder. I have URL of that folder and i want to copy that folder from web service. Is is possible? if yes then please explain? </p>
java android
[1, 4]
1,343,445
1,343,446
Fade in Each Thumbnail?
<p>all of my thumbnails have the class .thumb</p> <p>I'm trying to fade in each at a time like I've seen on some websites but it doesnt seem to be working. My code is below</p> <pre><code>$('.thumb').eachDelay(function(){ $(this).fadeIn('1000'); }, 100); </code></pre> <p>What is wrong here?</p> <p>Here is a f...
javascript jquery
[3, 5]
960,594
960,595
How to call default email application from my android appcation
<p>I am new to Android application development and with very little java knowledge. I want to call the default Android email application from my application once a button is clicked. What code should i use ?</p> <p>Thanks And Regards.</p>
java android
[1, 4]
4,155,189
4,155,190
Why does my type not load in ASP.Net site?
<p>I need to make a few changes in an C# ASP.Net web site.</p> <p>I know C# and .net 3.5 but with this I am not very familiar.</p> <p>When I run this program I get this error:</p> <pre><code> Cannot load type FredCK.FCKeditorV2.Uploader </code></pre> <p>at the line:</p> <pre><code> &lt;%@ Page language="c#" Trace=...
c# asp.net
[0, 9]
3,911,610
3,911,611
changing an elements css position after scrolling down the page
<p>I am messing around with some jquery trying to get to grips with it.</p> <p>I have a ul nav which has a absolute position set but after I scroll the page down by 200 pixels i would like that to switch to position fixed so that the nav always stays on the page.</p> <p>How would I do this?</p> <p>below is the examp...
javascript jquery
[3, 5]
1,884,506
1,884,507
c# asp.net table row always going in the same row
<p>I have this code</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { TblPrikaz.BorderWidth = 1; XmlDocument baza = new XmlDocument(); XmlTextReader reader = new XmlTextReader(Server.MapPath("baza.xml")); baza.Load(reader); TableRow line = new TableRow(); TableCell id = new...
c# asp.net
[0, 9]
2,108,270
2,108,271
Equivalent statments in Java for C# formated string cout
<p>What is the Java equivalent instruction for the following statements:</p> <pre><code>String name; cout &lt;&lt; "So your name is " &lt;&lt; name &lt;&lt; endl; </code></pre> <p>Or in C#</p> <pre><code>console.writeline("So your name is {0} ", name); </code></pre>
c# java
[0, 1]
4,577,978
4,577,979
Get two values from one with jQuery
<pre><code>&lt;div&gt;345000000, 46400000000&lt;/div&gt; </code></pre> <p>How do I make two values from the text of this <code>&lt;div&gt;</code>? They are divided by comma.</p> <p>We should get <code>var value_1 = 345000000</code> and <code>var value_2 = 46400000000</code></p>
javascript jquery
[3, 5]
1,442,683
1,442,684
Get values from multiple selections in SELECT
<p>I have a selection box that allows you to select multiple options. I need to access all the selected values with JavaScript - possible a array of values?</p> <p>Thank you :-)</p>
javascript jquery
[3, 5]
4,327,727
4,327,728
Javascript sliding (preferably jQuery)
<p>I am trying to think of the name of the plugin (or a plugin) that slides content in (up or down).</p> <p>So I have a hidden div, I click on one of the titles/header, it opens the hidden div, if I click on another header it hides the other visible div, and slides up or down the new one.</p> <p>I can't think of it f...
javascript jquery
[3, 5]
3,327,168
3,327,169
php user information for callback
<p>in regular php script function the user sends data and the php have a method which give the user output. <br> is there a way to write a php script that holds the details for communicate with the user, and to send him data later ? <br> kind of notafication service ?</p> <p>i need it for a server script which should ...
php android
[2, 4]
4,809,604
4,809,605
How to find and replace begin tag and end tags in an html string using javascript/jquery
<p>How to find and replace begin tag and end tags in an html string using javascript/jquery</p> <p>for example</p> <pre><code>var myString = "&lt;span&gt; Hello john&lt;/span&gt;&lt;div&gt; John likes to play guitar &lt;/div&gt; &lt;div style="color:Blue;font-weight:bold" class='quotes'&gt;Anna likes to arrange flowe...
javascript jquery
[3, 5]
4,392,559
4,392,560
How to convert format date from PHP to Javascript
<p>I have a php file which I will later change into the form of an HTML file, which be current constraints are: <strong>- Date format using Javascript.</strong></p> <p>Her script like the following snippet:</p> <pre><code>&lt;script type="text/javascript" src="js/jquery-1.8.0.min.js"&gt;&lt;/script&gt; &lt;script...
php javascript
[2, 3]