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,060,094
3,060,095
jquery toggle between forms
<p>I have ran out of ideas for this assignment for a class. I had to create two PHP forms using PHP_SELF and I am suppose to use javascript or jquery to toggle between the forms. I tried using</p> <pre><code>&lt;a href="#" onclick="document.getElementById('form1').style.display = 'block'; document.getElementById('form...
php javascript jquery
[2, 3, 5]
2,056,500
2,056,501
jQuery: Why won't this scroller work?
<p>Now... clear your minds of anchor tags... I simply would like any li tag that's clicked to scroll downwards to a div with the id <code>#contentbox</code>...</p> <p>Any ideas why this won't work or can you provide a working example of what does?</p> <pre><code>$("li").click(function(event){ $('html,body').animat...
javascript jquery
[3, 5]
679,151
679,152
How to access getSharedPreferences from another class?
<p>I have build 2 projects my main one and a twitter posting one. I have imported the twitter one into the main and am now trying to hook it up. Below is the import code. The problem is I know I am missing something possibly to do with the context? I have just summarised what is contained in my main project below so yo...
java android
[1, 4]
2,131,562
2,131,563
Changes have no impact on loaded script
<p>After I have changed a JavaScript file I don't get the changes in <code>*.js</code> dynamic. When I debug I see that no changes had any impact on the <code>*.js</code> dynamic.</p> <p>What should I do to get the changes to make any impact?</p> <p><strong>Background</strong></p> <p>I have changed the page with a c...
javascript jquery asp.net
[3, 5, 9]
4,580,180
4,580,181
jQuery clone() problem
<p>I am using jquery to clone a form input field when user click on Add button everything goes fine, but I have a problem that if I write something in form input field and click Add button, then jQuery will copy that text into new cloned input element also.</p> <p>You can try a demo: <a href="http://jsbin.com/ikebil/2...
javascript jquery
[3, 5]
537,293
537,294
Go Back to Previous Page
<p>I am using a form to "Rate" a page. This form "posts" data to a php script elsewhere. I simply want to display a link after the form is processed which will bring the user back to previous page. Can I do this using javascript in my php script?</p> <p>GF</p>
php javascript
[2, 3]
4,406,363
4,406,364
Passing data from PHP to JavaScript
<p>I have a simple php variable i need to carry over to a javascript part.</p> <p>Code:</p> <pre><code>&lt;?php if ($p == 'home') { $selected == '0'; } if ($p == 'music') { $selected == '1'; } if ($p == 'videos') { $selected == '2'; } if ($p == 'search') { $selected == '3'; } if ($p == 'about') { $selected == '4'; } ...
php javascript
[2, 3]
2,083,909
2,083,910
Set size for Input item using JQuery
<p>There is the following code:</p> <pre><code>$(".translated").mouseenter(function(){ if ($(this).hasClass("editable")){ return; } var h=$(this).height(); var w=$(this).width(); $(this).empty(); $("&lt;input/&gt;", { type: "text", height:h, width:w, valu...
javascript jquery
[3, 5]
4,926,621
4,926,622
how to select specific text in textbox
<p>is there any way to select the specific text of the textbox using jquery or javascript. </p>
php javascript jquery
[2, 3, 5]
888,916
888,917
jQuery Swap Image on Click and if/else
<p>Im stuck, Im setting a variable when someone clicks, then testing with if to see if the variable exists and doing something else. Its a simple script which Im probably overthinking, would love someone's thoughts.</p> <pre><code> $('.view-alternatives-btn').live('click', function() { //$("#nc-alternate-wines").s...
javascript jquery
[3, 5]
116,061
116,062
Mouseleave only when mouseenter ends
<p>with the follow code:</p> <pre><code>$('someelement').hover( function() { console.log('mouseenter begin'); setTimeout(function() { console.log('mouseenter ends'); }, 2000); }, function() { console.log('mouseleave begin'); setTimeout(function() { ...
javascript jquery
[3, 5]
270,729
270,730
CS0433 Compilation Error
<p>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. </p> <blockquote> <p>Compiler Error Message: CS0433: The type 'mmet.rgen' exists in both 'c:\Windows\Microsoft.NET...
c# asp.net
[0, 9]
4,129,394
4,129,395
How to alert when new message comes in
<p>I've got an online chat room program written in PHP + MySQL + Javascript</p> <p>I use <code>jQuery.post()</code> to get new chat message from <code>chat.php</code>. This php program reads data from MySQL and <code>echo</code>s it on the page.</p> <p>How do I alert the user when new message comes in? I only want it...
php javascript
[2, 3]
1,149,533
1,149,534
How to put one buttom right and another left
<p>I try to create dynamically linerlayout and i created two buttoms.</p> <pre><code>LinearLayout layout = new LinearLayout(this); layout.setOrientation(LinearLayout.HORIZONTAL); layout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); TextV...
java android
[1, 4]
5,677,190
5,677,191
e.stopPropagation() - is the clicked element a propagation or the original?
<p>How can you check whether the element is the original element or a propagation of the clicked element?</p> <hr> <h3>Edit</h3> <p>If I do this, <code>'propagation'</code> is always alerted:</p> <pre><code>this.row.click(function(e){ if(e.target === this) alert('origin'); else alert('propagation'); //...
javascript jquery
[3, 5]
926,703
926,704
Phone number formatting validation
<p>How would I validate with Javascript/jQuery that a phone number matches the format of +322123456?</p> <ol> <li>The +32 is mandatory, and the phone number begins with it.</li> <li>After the +32, 8 or 9 numbers</li> </ol>
javascript jquery
[3, 5]
3,385,748
3,385,749
Android multiple EditorActionListeners on single EditText field
<p>I have multiple action listeners defined for single EditText field, one in the Activity:</p> <pre><code>editText.setOnEditorActionListener(this); </code></pre> <p>and another in the View definition:</p> <pre><code>editText.setOnEditorActionListener(new EditText.OnEditorActionListener() {...}); </code></pre> <p...
java android
[1, 4]
5,994,647
5,994,648
Search through an HTML Table and find text fields with required classes
<p>I'm creating a validation script for a multi-step form, each group is inside a table and I want to check that the containing table has a required field inside it.</p> <p>I've tried to implement this as below:</p> <p>(where a = table id .required = class, but the classes are like class = "something required")</p> ...
javascript jquery
[3, 5]
5,847,157
5,847,158
jquery select iframe children
<p>I am using the editArea library and jquery to do what i need...</p> <p><a href="http://www.cdolivet.com/index.php?page=editArea&amp;sess=2b8243f679e0d472397bfa959e1d3841" rel="nofollow">http://www.cdolivet.com/index.php?page=editArea&amp;sess=2b8243f679e0d472397bfa959e1d3841</a></p> <p>so in my html there is an if...
javascript jquery
[3, 5]
2,344,611
2,344,612
how to make string bold in code behind
<p>Is there a way to make a string bolder in code behind using c#, .NET. I tried </p> <pre><code>string TypeofDay = "&lt;span style='font-weight: bold'&gt;Type Of Day&lt;/span&gt; "; txtbox.Text = TypeofDay + ": " + "Delivery Day" </code></pre> <p>I am concatenating TypeofDay(bold) and "Delivery Day" to display in a ...
c# asp.net
[0, 9]
3,280,703
3,280,704
sql asp.net send email c#
<p>if you could please help me out... i am try to create o forgot password method.access my database and send an e-mail. if you please help me out since i don't have a lot of experience. thanking you in advance. Login is unique. C# </p> <pre><code>protected void LinkButton1_Click(object sender, EventArgs e) { ...
c# asp.net
[0, 9]
693,530
693,531
Reflection java.lang.ClassNotFoundException
<p>I am using the following: </p> <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data){ super.onActivityResult(requestCode, resultCode, data); switch(requestCode){ case EDIT_ADJUSTMENT: if(resultCode == RESULT_OK){ try{ ...
java android
[1, 4]
5,498,250
5,498,251
How to activate mouseleave, if it has been x amount of time?
<p>So, I've got this type of situation, but I only want to "Do something" if the user "mouseleave(s)" for more than x amount of time, say one second. How should I implement that?</p> <pre><code>$("#someElement, #someOtherElement").mouseleave(function() { // Do something. }); </code></pre> <p>Later I added:</p> <p...
javascript jquery
[3, 5]
2,860,965
2,860,966
JQuery TR Verticle Scroller?
<p>I know there are JQuery plugins out there for verticle scrolling of lists but I have a table and would like to vertically scroll the</p> <p>Is this possible?</p>
javascript jquery
[3, 5]
5,131,112
5,131,113
find out if a certain id itself has certain text part of it
<p>I got the id of a clicked element from the site, and i need to check if the id has a certain word. (all the id start with same word but have also a number which is efferent for all).<br> How can i do that with jquery?</p>
javascript jquery
[3, 5]
3,455,927
3,455,928
How to open a popup window and bind to the popup window close?
<p>I'm opening a popup as follows:</p> <pre><code>popup = window.open(url, "", "width=600,height=300,status=no,scrollbars=no,resizable=no"); popup.focus(); </code></pre> <p>What I want to do is refresh the opener when the popup closes. Is this possible? Thanks</p>
javascript jquery
[3, 5]
5,650,899
5,650,900
Selection in Date Control
<p>Now, I am working with asp.net , C# and I have made custom controls . In my custom controls especially in Date control, I want to select only month and day part in OnFocus Event. Right Now, I have wrote </p> <pre><code>control.select(); </code></pre> <p>then , as usual, the text of the control(2012/08/04) wil...
c# asp.net
[0, 9]
5,501,106
5,501,107
Sharepoint mechanism to add scripts to aspx page?
<p>(a) Is there a mechanism (by sharepoint) of registering to include a script into the aspx page?</p> <p>(b) If yes, then if I do the following from a user control what would be the result?</p> <pre><code>Debug.Print(this.Page.ClientScript.IsClientScriptIncludeRegistered("foo")); </code></pre> <p>Assume that <code>...
javascript asp.net
[3, 9]
5,513,905
5,513,906
Objects of Java and C++
<p>The Java <code>Object</code> has some methods like <code>toString</code>, <code>hashCode</code>, <code>equals</code>, etc. Does an object in C++ have some builtin methods? What are the actual differences between an object in C++ and Java?</p>
java c++
[1, 6]
1,424,400
1,424,401
jQuery to validate a form (check for atleast 10 characters and certain value)
<p>On my webpage I have a form where a user enters information for their article. Right now I use jQuery to check if the entered values are not empty, if they are I show an error message.</p> <p><strong>Current validation</strong></p> <pre><code>//Story Form $('.error').hide(); //Hide error message initially $(".but...
javascript jquery
[3, 5]
5,374,816
5,374,817
using managed c++ dll in c#
<pre><code>**unmanaged class** </code></pre> <p>this is the unmanaged class declaration</p> <pre><code>#ifdef EXPORT_CLASS #define DLL_EXPORT __declspec(dllexport) #else #define DLL_EXPORT __declspec(dllimport) #endif public class DLL_EXPORT cppclass { private: string x; public: cppclass(); ~cppclass(); string native...
c# c++
[0, 6]
4,393,039
4,393,040
Javascript resize on every image load
<p>I've got this code:</p> <pre><code>while ($row = mysql_fetch_assoc($result1)) { echo " &lt;a href='#'id='VV".$row['id']."'&gt; &lt;p&gt;".$row['title']."&lt;/p&gt; &lt;p&gt;".$row['date']."&lt;/p&gt; &lt;img onload='scale()' id='II".$row['id']."' src='../res/videos/img/".$row['img']."'/&gt; &lt;/a&gt; &lt;script ty...
php javascript
[2, 3]
5,856,308
5,856,309
jquery replace text with image, help
<pre><code>("*").each(function () { if ($(this).children().length == 0) { $(this).text($(this).text().replace('basketball','test')); } }); </code></pre> <p>i'm only able to change the text to another string of text, but how can I pass an image?</p>
javascript jquery
[3, 5]
4,674,928
4,674,929
Eval with complex business child object
<p>I have a class Employee with fields Name and OfficeAddress.OfficeAddress again is an object of type Address. Address is a class with fields Building,City and Country. I have list of employee called empList.Now I want to bind this empList to a gridview so that it should display Name,Building,City and Country. The pro...
c# asp.net
[0, 9]
5,744,250
5,744,251
jQuery Scroll function after 100px
<p>Using this script:</p> <pre><code>&lt;script&gt; $(function() { $(window).scroll(function(){ $('#Your element id').slideUp('slow'); }); }); &lt;/script&gt; </code></pre> <p>Is it possible only to perform the action after the user has scrolled 100px or more?</p>
javascript jquery
[3, 5]
4,275,474
4,275,475
get the html element after created
<p>i'm creating a img when i click in a input, then i get the html or anyelse from the created img.</p> <p>but i dont know why this is not working!</p> <p>always return <code>null</code></p> <p>my js:</p> <pre><code>$("#click").click(function(){ var $imgDone = $('&lt;img/&gt;').attr('src', 'someImage/insomewher...
javascript jquery
[3, 5]
5,413,420
5,413,421
Easier way to select ith jQuery object of group than $($(".someclass")[i]))?
<p>So I'm trying to cycle through the members of "someclass", not the DOM elements but their jQuery counterparts. I've been using $($(".someclass")[i]), but this is pretty ugly. Is there a more natural way to do this?</p>
javascript jquery
[3, 5]
5,464,624
5,464,625
How to make entire box in dropdown menu (menuitem) clickable instead of just the text?
<p>I have a menu bar with different items, with sub items, </p> <pre><code> //ASCX FILE &lt;asp:MenuItem Text="Item" Value="Item" Selectable="false"&gt; &lt;asp:MenuItem Text="SubItemA" Value="SubitemA" NavigateUrl="dsklfsl.com" &lt;/asp:MenuItem&gt; &lt;asp:MenuItem Text="SubItemB" Value="SubitemB" NavigateUrl...
c# asp.net
[0, 9]
5,461,771
5,461,772
Codeigniter 2.1, Jquery - delete all checkboxes checked
<p>At the moment, I am confused by this problem. How can I delete all files that have been checked? This is the function to select or unselect checkboxes:</p> <pre><code>var del_selected = $('.zute_strane_izmena_obrisi_sve'), del_url = del_selected.attr('href'), selektuj_sve = $('.zute_strane_izmena_selektuj_sve'), sl...
javascript jquery
[3, 5]
101,608
101,609
How can I get the div information via js?
<p>For example, I have div named $(".aDiv"), how can I get the $(".aDiv") position, and the information about $(".Div") using js? thank you.</p>
javascript jquery
[3, 5]
3,687,761
3,687,762
Java to C# - intValue() equivalent in c#
<p>I am trying to re-write a piece of code which was in Java to C#, and I ran into a problem, basically I am creating a method which returns a string, but the string returned from c# and java is not the same, therefore the code is fauly. One problem is the following code, </p> <p>I have this Java Code:</p> <pre><code...
c# java asp.net
[0, 1, 9]
125,821
125,822
what kind of error this Server Error in '/' Application
<p>Server Error in '/' Application.</p> <p>Runtime Error</p> <p>Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers runn...
c# asp.net
[0, 9]
1,571,361
1,571,362
Javascript alert when user closes the tab ot the window
<p>I want when a user closes the tab or window or when he tries to move to another location different from my site to pops a confirm box, and if he confirm to execute an ajax script and then to close or change the window. I don't know how to do that. PS: I'm using jQuery.</p>
javascript jquery
[3, 5]
491,495
491,496
How to replace entire contents of iframe?
<p><a href="http://stackoverflow.com/questions/5784638/replace-entire-content-of-iframe">This question</a> didn't receive any satisfactory answers, so I'm asking again.</p> <p>I can get my iframe like this:</p> <pre><code>var iframe = document.getElementById('preview'); var win = iframe.contentWindow; var doc = win.d...
javascript jquery
[3, 5]
1,016,192
1,016,193
Using ThreadPoolExecutor and AsyncTask
<p>When using ThreadPoolExecutor can I use AsyncTask as the Runnable in my queue? Or does this defeat the purpose?</p> <pre><code>//A holder for various tasks private final LinkedBlockingQueue&lt;Runnable&gt; queue = new LinkedBlockingQueue&lt;Runnable&gt;(5); //Thread Pool Executor private final ThreadPoolExecutor ...
java android
[1, 4]
1,600,443
1,600,444
pass parameter from cs class to aspx.cs
<p>I am developing a web application that has .cs classes and aspx.cs classes. I want to send parameters from class.cs to anther aspx.cs class and my question is, How can i pass parameters from class.cs to aspx.cs code behind?</p>
c# asp.net
[0, 9]
3,448,681
3,448,682
how to call webservicemethod in windows service
<p>Basically my idea is to develop a proxy which will run in windows</p> <p>I have created windows service application which running successfully and i have integrated a web service code in the windows service application running in windows service.</p> <p>How to call that web service method when the client hits my u...
c# asp.net
[0, 9]
833,035
833,036
Return false doesnt work
<p>i think my <code>return false</code> code isnt working properly. Take a look:</p> <pre><code> $(".home .options .tabs ul li a").click(function(e){ var qual = $(this).attr("href"); $(".content.home .options .tabs ul li").removeClass("active"); $(this).parent().addClass("active"); $(".content.hom...
javascript jquery
[3, 5]
5,691,090
5,691,091
How to check if checkbox is checked inside a particular form?
<p>I created a jQuery function to check if a checkbox is checked like so:</p> <pre><code>if ($('input:checkbox:checked').length &gt; 0){ } </code></pre> <p>I have two set of check boxes in two separate forms. When I use above code it checks for checkboxes in both forms. I want the <code>if</code> condition only for o...
javascript jquery
[3, 5]
1,493,035
1,493,036
jquery: i have to use parseInt() even when deal with numbers, why?
<p>i have the following script</p> <pre><code>&lt;select id="select1"&gt; &lt;option value="1"&gt;1day&lt;/option&gt; &lt;option value="2"&gt;2day&lt;/option&gt; &lt;option value="3"&gt;3day&lt;/option&gt; &lt;/select&gt; &lt;select id="select2"&gt; &lt;option value="1"&gt;1day&lt;/opt...
javascript jquery
[3, 5]
871,021
871,022
How to bind event to element dynamically with jquery
<p>Does anybody know how to bind event handler to element if this element was uploaded with ajax? I have js file which is included into page header. Body of the page updated by ajax. I have tried <code>live()</code> and <code>bind()</code> methods. </p>
javascript jquery
[3, 5]
4,626,361
4,626,362
How to send SMS from asp.net application
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1125332/sms-from-our-site">sms from our site</a> </p> </blockquote> <p>I want to send SMS from my asp.net application. Suppose there will be 2 text boxes in my UI, one for mobile or cell phone number and another...
c# asp.net
[0, 9]
4,581,568
4,581,569
Remove QueryString Variable in c#
<p>I am very beginner With Programming...(unfortunately)</p> <p>I want to remove Any added QueryString To Address after i get the variables. for example:</p> <p>www.websiteName.com/page.aspx?a=344&amp;b=233</p> <p>i will get a and b and after that i want my address to look like this: </p> <p>(www.websiteName.com) ....
c# asp.net
[0, 9]
1,773,943
1,773,944
In Java, how to convert a String to JSON Object?
<p>The string is like so:</p> <pre><code>[{"Id":287,"Name":"aaaaaaaa","ProjectType":"GP"}, ... snip ...] </code></pre> <p>This STRING is not JSON yet since it is a string even though it was served up as JSON.</p> <p>I am trying to convert that to a structure that I can work with in my Java app.</p> <p>Can somebody ...
java android
[1, 4]
4,097,386
4,097,387
using PHP in external JS
<p>I have a big validation JS script. I want to put this script to be external JS.</p> <p>Everything works fine with this, but in the JS i use cookie to handle the my user form junctions.</p> <p>And besides, i use PHP in this JS. </p> <p>If the JS in the html, then works. But if i put it to external, then no.</p> <...
php javascript
[2, 3]
4,167,173
4,167,174
Register JavaScript from within a UserControl in ASP.NET
<p>I declare my javascript in the design page of a usercontrol (ascx). Is there a way to register this javascript block in the Head section? I don't want to use ClientScript.RegisterClientScriptBlock as I don't want to declare my javascript in the code-behind. I also cannot move it (entirely) into a separate file, beca...
javascript asp.net
[3, 9]
4,589,536
4,589,537
how to test if two elements are the same
<p>I have a list of items that can be hidden/unhidden via JS be clicking them. The currently open item is stored in a variable, <code>openActivity</code>. Only one item can be opened at a time. I want to check in the click() event whether the clicked item is the same as the already opened item, so that it does not d...
javascript jquery
[3, 5]
4,992,008
4,992,009
using sha1prng in both android and windows giving different sequences
<p>I have used sha1prng in both my android program and java program as the pseudo ramdom number generator algorithm. I seeded both of them with the same value. <br><br> But the sequesnce generated in android is different from the one generated in java. Why is this happening and what is the solution to this problem?</p>...
java android
[1, 4]
895,645
895,646
Error: objectdatasource could not find a non-generic method
<p>I am binding dropdown list using Object data source. I got an error like this </p> <p><strong>"ObjectDataSource 'objDSStatus' could not find a non-generic method 'GetIssueAllowedStatusByCategoryIDStatusIDandUserType' that has parameters: IssueCategoryID."</strong></p> <p>My code is as follows</p> <h2>.aspx</h2> ...
c# asp.net
[0, 9]
3,556,862
3,556,863
Changing Button's Text Dynamically
<p>I had already setup the buttons and the layout properly, but I'm having an issue to dynamically change the text in the buttons</p> <p>|B|P|M|F|</p> <p>When the letter b is clicked: change b to e, f, g and each change of letter stops for 1 second When the letter p is clicked: change p to q, r, s and each change of ...
java android
[1, 4]
3,145
3,146
Uncaught TypeError: Property '$' of object [object Window]
<p>I've been working on a site recently that is now coming up with jQuery errors! It has been behaving fine until recently when I have noticed these errors in chromes console. These seem to be coming up within the google hosted jQuery. I've tried using previous versions of jQuery as well but it keeps showing the errors...
javascript jquery
[3, 5]
4,677,691
4,677,692
Regular Expression for integer string
<p>I need to check the following integer input sequences:</p> <ul> <li>23 = true</li> <li>23,50 = true</li> <li><p>50-100 = true</p></li> <li><p>34,,90 = false</p></li> <li>34,-90 = false</li> <li>34--90 = false</li> </ul> <p>how can i check it in c#</p>
c# asp.net
[0, 9]
4,414,739
4,414,740
check for at least 2 char sequence before whitespace in javascript / jQuery
<p>Well like the title says, how can i check it? i have started something like this:</p> <pre><code> for (var i = 0; i &lt; elm.val().length; i++) { if (elmVal.charAt(i) !== '') { //do something } } </code></pre> <p>For example:</p> <p>if the string is: "g g g" OR "gg g " it shou...
javascript jquery
[3, 5]
2,717,718
2,717,719
Radiobutton selection problem in update panel
<p>I have a gridview inside an updatepanel. It has a TemplateField column with radiobutton:</p> <pre><code>&lt;asp:GridView ID="gridView_stLists" runat="server" AutoGenerateColumns="False" CellPadding="3" BorderStyle="NotSet" CssClass="table_layout" Width="500"&gt; ...
c# asp.net
[0, 9]
135,731
135,732
Given a textarea generated from asp:textbox, the inner text cannot be 'set' with Javascript or Jquery
<p>I have a single asp:textbox declared as follows:</p> <pre><code>&lt;asp:TextBox ID="textBox1" class="myTB" runat="server" TextMode="MultiLine" Font-Names="Calibri" Font-Size="Small" Font-Bold="True" Height="175px" Width="725px" BorderColor="#76B900" BorderStyle="Solid" BorderWidth="2px" Style="overflow: hidden; ...
asp.net javascript jquery
[9, 3, 5]
671,971
671,972
Is it possible to disable c++ assert from .net app
<p>I have the following problem: I use c++ library from my WPF app, the library throws an assertion in some very rare cases. It shows a nice dialog with c++ filename, the line number and assert expression. So the question is: can I disable asserts in the c++ library assuming that I don't have source code. What I really...
c# c++
[0, 6]
12,464
12,465
android: start in symbol keyboard mode, but don't restrict to numbers-only input
<p>I want to specify that Android should start the soft keyboard for a given EditText in the numeric/symbols mode. I know this can be done by setting the input type of the EditText to be numeric using EditText.setInputType() except that I do not want to restrict the input type for the EditText to numeric input only**. ...
java android
[1, 4]
2,218,355
2,218,356
gridview questions
<p>I have a gridview layout. I also have some images that i will be putting in the gridview as imageviews. I want to pick and choose which images will go in what row. That is I may have 5 images go to row 1 and 5 images may go to the row at end of the screen while all the rows in between are blank. Unfortunately ri...
java android
[1, 4]
441,301
441,302
How to prefill a form with post data in ASP.NET
<p>I need to populate a form in the main page which on being submitted opens a lightbox which contains another form .</p> <p>I was planning to submit the form using Post as that seems to be the only way I can define which iframe to open in the lightbox .However my question is that how do I pre-populate the second form...
c# asp.net
[0, 9]
893,630
893,631
Javascript image height and other calculation
<p>I was having a problem on getting the height and also calculating other calculations.</p> <p>I want to get the image height after it has loaded, so I put it on the onload attribute of <code>&lt;img&gt;&lt;/img&gt;</code> function, here's my code</p> <pre><code>&lt;p class="test1" style="position:absolute;bottom:0p...
javascript jquery
[3, 5]
1,597,789
1,597,790
Databinding Table References
<p>I have two tables tblCarrier and <code>tblCustomer</code>. Both tables are <code>INNER JOIN</code> and have the same column name which is company name. The problem is when I use the databinding process </p> <p><code>&lt;%#DataBinder.Eval(Container.DataItem, "CompanyName")%&gt;</code> to get the back the customer c...
c# asp.net
[0, 9]
1,137,019
1,137,020
can users trigger javascript: function from URL?
<p>i have a function that calls javascript:del_release_comment(10,12); from the page, if the user has that particular comment.</p> <p>I wonder if other users can trigger from the URL bar or somehow else this function to delete comments that aren't their.</p> <p>10 is the news_id and 12 is the comment_news_id, the id ...
php javascript
[2, 3]
3,717,191
3,717,192
Accesing Server Control from other webform
<p>I have 2 webforms with 1 ListBox Control on each of them.</p> <p>How do I access the Listbox that's located on webformA from webformB?</p> <p>For example I wish to declare something like this <code>string name = ListBoxWebformA.SelectedValue.ToString();</code> on WebFormB, so that I can work with that value in the...
c# asp.net
[0, 9]
1,401,634
1,401,635
Upgrading a piece of code from jQuery 1.3.2 to the latest version
<p>This code works in jQuery 1.3.2</p> <pre><code> $(document).ready(function() { $(function() { $("#proiecte").click(function(e) { e.preventDefault(); $("#ThisWillScroll").removeClass() .addClass("slide1"); $("#menu li a")...
javascript jquery
[3, 5]
4,806,625
4,806,626
jQuery Draggable / Droppable - Remove all dropped 'items'
<p>Is it possible to remove all dropped 'items' on a droppable div by pressing a single button?</p> <p>Thanks, LS</p> <pre><code>$("#wrapper").droppable({ accept: '.shape', drop: function(event, ui) { $(this).append($(ui.helper).clone()); ...
javascript jquery
[3, 5]
2,889,568
2,889,569
How do I get the position of individual characters rendered on user's browsers? (Jquery/javascript)
<pre><code>&lt;p&gt; this is a very long text indeed. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehen...
javascript jquery
[3, 5]
131,579
131,580
jQuery - How many cells in a row
<p>Is there a way in jQuery to tell how many cells are in a selected row? For example, I am iterating through the rows via:</p> <pre><code>$("#statsId &gt; table tbody tr").each ( function() { var secondCol = $(this).find('td:nth-child(2)').html(); var thirdCol= $(this).find('td:nth-child(3)').text(); </code>...
javascript jquery
[3, 5]
4,809,259
4,809,260
How to hide view source
<p>Could some one please help me out to hide a view source option of a web page in dot net ?</p>
c# asp.net
[0, 9]
1,687,866
1,687,867
C# Passing a part of an array as an argument of a function by reference
<p>Is the C# code below the equivalent way of trying to achieve the same as the C++ code? Is there any way to avoid the copy (while not sending the whole array to the function)?</p> <p>C++</p> <pre><code>static void somefunction(double* v, int nb) { //something that will update v[0],v[1], ... v[nb-1] } double * myar...
c# c++
[0, 6]
4,521,814
4,521,815
Getting cell value from table in jQuery
<p>I have a table with no id or name inside of a div. How do I read the value from the desired table cell in jQuery? For example:</p> <pre><code>&lt;div id="myDiv" style="padding-top: 0px; height: 60px;"&gt; &lt;table width="264" cellspacing="0" cellpadding="0" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td width=...
javascript jquery
[3, 5]
794,351
794,352
Working with jQuery wrap function
<p>I am trying to wrap an input element with a div, and then append another element to the wrapping div.</p> <p>Markup:</p> <pre><code>&lt;div&gt; &lt;input type="text" id="foo" /&gt; &lt;/div&gt; </code></pre> <p>JS:</p> <pre><code>var wrapper = $('&lt;div class="wrapper"&gt;&lt;/div&gt;'), somethingElse = $('...
javascript jquery
[3, 5]
2,904,272
2,904,273
How can i add mp3 to multimedia player on Android?
<p>How can i run multimedia scanner in android? My application download files to SDCARD/Music , but when i run the standard music player, i can't found new mp3. When I restart my phone, music player see my new mp3.</p>
java android
[1, 4]
636,695
636,696
jQuery iterate through HTML in a variable and remove first radio button
<p>I have a some HTML stored in a javascript variable that looks like below. Example looks like below.</p> <pre><code>var divHTML = "&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;input type='radio' name='radio_1'&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;tr&gt;&lt;td&gt;&lt;input type='radio' nam...
javascript jquery
[3, 5]
1,613,721
1,613,722
Develop an E-book Reader
<p>I know this question is very broad , but i just need guidance on how to start off. Okay , here is what i'am trying to do :</p> <p><strong>I want to develop an E-book reader on my website.</strong> Details : i want a horizontal layout , only 2 pages are visible and then i click the next button so the next 2 pages sh...
php javascript jquery
[2, 3, 5]
1,658,041
1,658,042
PHP Populate Text box from Select - Array fields
<p>I need to populate the relevant text box with the results of a Select drop down.</p> <p>My Javascript so far is </p> <pre><code>&lt;script language="JavaScript"&gt; var mytextbox = document.getElementById('error'); var mydropdown = document.getElementById('errormsg_id'); mydropdown.onchange = function(){ myt...
php javascript
[2, 3]
3,579,447
3,579,448
Form Submit not working on window.onbeforeunload
<p>Desperate to submit the form when the user navigates away using the links on the page. Clicking the link sets the saveOnUnload to true, the Save() functions is entered, alert happens, but neither form.Submit nor btnObj.click() actually work, i.e. the form submit is skipped!</p> <pre><code>&lt;script language='javas...
c# javascript
[0, 3]
98,381
98,382
Filtering a string list with logic?
<p>I have a list of strings. I need to be able to filter them in a similar way to a Google query.</p> <p>Ex: <code>NOT water OR (ice AND "fruit juice")</code></p> <p>Meaning return strings that do not have the word water or return strings that can have water if they have ice and "fruit juice".</p> <p>Is there a mech...
c# asp.net
[0, 9]
1,610,211
1,610,212
how to show confirmation dialog from drop down list?
<p>i have a grid which display data from database, and i have a custom column in the left side with checkbox, i choose records to be deleted and i have a dropdown list, which will trigger an event in server side to delete records, before i delete those records i want to show a confirmation dialog like "are you sure? wi...
c# asp.net
[0, 9]
2,396,990
2,396,991
C#: Bypass non-serializable properties when going about serialization
<p>I follow the code snippet to calculate Session size.</p> <p><a href="http://stackoverflow.com/questions/1668989/profile-memory-usage-of-session-state-asp-net">Profile Memory Usage of Session State ASP.Net</a></p> <p>My problem is some properties of objects <strong>aren't marked as Serializable</strong> so I cannot...
c# asp.net
[0, 9]
4,298,026
4,298,027
Creating a C# object in javascript
<p>I'm trying to submit data to a web service in my project. The data's in the form of several fields, so I'd rather create a single object and submit that. I know I can submit it as a JSON object, but I thought I'd seen code somewhere that would create a C# object on the JS side so that I could submit it to the web se...
c# javascript
[0, 3]
2,887,870
2,887,871
Bind a jquery function to elements
<p>I am very new to jquery and need some help. I am trying to change a css element when I enter a textbox. I have applied a css class to my textboxes and I have a couple of div tags around my textboxes.</p> <p>When a user selects the textbox I want to change the desired div tag.</p> <p>This is how the html looks</p> ...
javascript jquery
[3, 5]
4,195,050
4,195,051
how to increment between a range of dates using javascript
<p>I need to increment between a range of dates using javascript. I have start_date and end_date in the following format.</p> <pre><code>var start_date = Fri Nov 09 2012 var end_date = Thu Nov 15 2012 </code></pre> <p>I need to call a function which accepts all the dates by looping between start dates and end dates a...
javascript jquery
[3, 5]
3,740,929
3,740,930
Assign entire file to a var as a string using jquery
<p>I'm trying to assign the contents of an xml file to a var, like so:</p> <pre><code>var testing = $.load('xx.xml'); $('#display').text(testing); </code></pre> <p>but it's not working. I tried the ".load" function as suggested in:</p> <p><a href="http://stackoverflow.com/questions/3875833/how-to-assign-file-content...
javascript jquery
[3, 5]
3,396,980
3,396,981
Hide button after last class has been shown
<p>I have the following, </p> <pre><code>$("#slider1next").click(function () { $(".text:visible").next().show(); }); </code></pre> <p>When the last class (.text) has been shown i want to hide #slider1next how would i go about this? </p> <p><a href="http://jsfiddle.net/ma9ic/U2UZ4/3/" rel="nofollow">http...
javascript jquery
[3, 5]
3,013,895
3,013,896
jQuery validation and check all together
<p>I make a jquery validation, problem is here that this part from code first(first click on button) check selectbox and second(second click on button) fields. how can it fix as that check all together with one click on button?</p> <p><strong>Exampel(see full code):</strong> <a href="http://jsfiddle.net/JfPaN/" rel="n...
javascript jquery
[3, 5]
3,740,549
3,740,550
JS/jQuery/PHP: trying to generate an URL using PHP variables
<p>i'm generating this code</p> <pre><code>$.ajax({ url: '/orders/modify/action/', type: "POST", dataType: 'json', data: 'id='+10+ '&amp;commento='+$('#shop_order_status_history_comments').val()+ '&amp;id_status='+$('#shop_order_status_history_orders_status_i...
php javascript jquery
[2, 3, 5]
3,666,409
3,666,410
A dropdown validation error occurs if no value is selected on the associated radio button
<p>I have a form with two radio buttons: "Yes" and "No". If "Yes" is selected, the user selects what they want from two drop-down menus. If the user selects "No", the form's JavaScript will grey out both drop-down menus.</p> <p>My jQuery code is shown below. I added:</p> <pre><code>if(!$("#discount").prop("disabled")...
javascript jquery
[3, 5]
2,146,631
2,146,632
Passing JavaScript objects with c#
<p>I have a form on my website which collects data and posts using jquery to be handled using c#. I use request.form to capture the form data.</p> <p>My friend said to create a JavaScript object to pass the data through instead of loads of variables. My problem is when you post an object with value pairs how do you ge...
c# javascript jquery asp.net
[0, 3, 5, 9]
4,690,601
4,690,602
JQuery Validation Problem
<p>I doing a field validation using jquery to check if it is empty. If it is I want to display a message and then refocus on the field so the user can enter some data. Code:</p> <pre><code> $('#fieldId').blur(function() { var fieldValue = $(this).val(); if(fieldValue == null || fieldValue.length == 0) { ...
javascript jquery
[3, 5]
6,003,476
6,003,477
Android Python Programming
<p>Can I program for Android using Python? I seem to have stumbled upon many links while searching... however neither of them is concrete.</p> <p>Any suggestions? I want to write apps for Android but really don't want to get into Java for all this.</p> <p>PS: My question is whether I can write proper, full fledged ap...
python android
[7, 4]