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
4,672,638
4,672,639
Javascript - Jquery .load() and setInterval() issue
<p>Let's say I do this:</p> <pre><code>$("#content").load(...); </code></pre> <p>Within what I'm loading some javascript is included:</p> <pre><code>var myCounter = 0; var myInterval = setInterval(function(){ myCounter++; $("#counter-display").html("Count: "+myCounter); }); </code></pre> <p>For an unknown re...
javascript jquery
[3, 5]
4,156,691
4,156,692
jQuery: fixed top menu like in Facebook and Twitter
<p>How to do this with jQuery?</p> <p>I know how to do this with css (position:fixed), but IE problems (doesn't know about fixed position) worry me.</p> <p>Maybe there is some plugin, but I didn't find it...</p> <p>Thanks!</p>
javascript jquery
[3, 5]
1,695,067
1,695,068
query a database on onblur textbox event asp.net C#
<p>I want to query database on onblur event of a textbox. Simple I want is that when I enter the ID in first textbox and after onblur event occurs, the name of the respective ID from database is shown in another textbox or label.</p>
c# asp.net
[0, 9]
687,978
687,979
Updating value of input field onclick - code have to reflect in source code
<p>I have issues updating input fields values on clicking "Save", it's basicaly not saving the newly typed stuff into the value (value stays old, if you right-click and check source)...</p> <pre><code>function editCartInfo(){ $('#CheckEdit').html('edited'); $("#FullName").prop('disabled', false); $("#Addr...
php jquery
[2, 5]
4,876,484
4,876,485
Javascript/jQuery - On hover over a li element, change class of another li element
<p>i am having some trouble with the menu bar on this website: <a href="http://www.re-generation.ro/ro/campanii/minerit-aurifer" rel="nofollow">http://www.re-generation.ro/ro/campanii/minerit-aurifer</a> . Now, the second <code>li</code> element is active. What i want to do, is that on <code>hover</code> over any other...
javascript jquery
[3, 5]
2,098,657
2,098,658
Script not working when called from .cs file
<p>I am tryong to do the following in a Row_Command event of a gridview. But the the pop up box never comes up, I have tried it in so many different ways.. but yet no luck. Please if someone can see the issue i would really appreciate a pointer.</p> <pre><code>protected void Gridview_RowCommand(object sender, GridVie...
c# asp.net
[0, 9]
93,675
93,676
How do you find all divs by class and delete them all?
<p>I have many divs with a specific class and I want to delete all those divs. How do you do this using jQuery or javascript? But, how do you delete <b>all divs</b> with a specific class? Thanks!</p> <p>code:</p> <pre><code>&lt;div&gt; &lt;div class='testa'&gt;test a&lt;/div&gt; &lt;div class='testb'&gt;test b...
javascript jquery
[3, 5]
4,870,581
4,870,582
How to pass optional parameters for web method?
<p>I have a web method with multiple parameters. The web method is only dependent on 2 fields, the rest are all optional.</p> <pre><code> [OperationContract] public string WarehouseContactInformation(int WAID (Required), string CN (Required), string CT (Optional), string CC (Optional), string CFN (Optional), str...
c# asp.net
[0, 9]
4,843,077
4,843,078
Get the caller id
<p>I'm trying to make app which will log my incoming and outgoing calls and the problem is i can't seem to get working this code to return caller id(Like name and surname) but it allways returns "Unknown"</p> <pre><code>public String getname(String num,String nbc ){ String namer=""; ContentResolver cr = getContentRes...
java android
[1, 4]
4,742,926
4,742,927
Accessing properties of a jQuery object using .load
<p>I have the following funciton: </p> <pre><code> $('&lt;img/&gt;').attr('src', lrgSrc).load(function(){ console.log($(this).innnerHeight()) }) </code></pre> <p>The value is always 0, I would like to access the loaded images height. Can someone lend some insight on how to do this please. I feel like this sh...
javascript jquery
[3, 5]
568,079
568,080
CKEditor character count JavaScript function not working
<p>I placed the Jquery and CSS from the below link into my website.</p> <p><a href="http://jsfiddle.net/VagrantRadio/2Jzpr/" rel="nofollow">http://jsfiddle.net/VagrantRadio/2Jzpr/</a></p> <p>But I can't see the character countdown. What am I doing wrong?</p>
javascript jquery
[3, 5]
2,160,995
2,160,996
<%@ Page Debug="True" ...... %>
<p>Does setting this value have the same effect as setting the debug="true" in the web.config file? If not, what does it do? </p> <p>Thanks for the help.</p>
c# asp.net
[0, 9]
4,561,194
4,561,195
copy value string directory to my project
<p>I develop android app on my mac; when I finish a project ,for finishing Localization,I copied value file to my project which is in the old project ,such as value-ko-rKR,but it will cause some problem so I can't compile my project ; in the end ,I find out that I must copy the content of string.xml to string.xml i...
java android
[1, 4]
555,096
555,097
How to get value of TextBox before postback in ASP.NET
<p>I have a TextBox(enabled with PostBack). I need to store the value of it before it's postback. Is it possible? If so, can you please tell me how? </p> <p>Eg : I enter "10" in my TextBox. Then, in it's PostBack, a message box appears, telling "You have entered Ten!". Next, I enter "100" in my TextBox, this time, a m...
c# asp.net
[0, 9]
5,980,046
5,980,047
Dynamically added table in asp.net not clearing styles
<p>I have a table who's rows are added dynamically in the code behind. The table sits inside an update panel:</p> <pre><code> &lt;asp:UpdatePanel runat="server" ID="upnlPR"&gt; &lt;ContentTemplate&gt; &lt;asp:Table ID="tblPR" runat="server"&gt; &lt;/asp:Table&gt; &lt;/ContentTem...
c# asp.net
[0, 9]
2,855,824
2,855,825
Which technology/programming is used for drag and drop web programming?
<p>I'd like to work on drag and drop web programming. I want the data to be moved from one panel to another panel by the drag and drop feature as we experience in Google Plus. I might have panels/frames in a page like To-be-done section, Done section etc. When I'm done with a particular item, I'd drag the item from the...
php asp.net
[2, 9]
436,583
436,584
jQuery $.post string escape problem
<p>I am posting data to a php file via jQuery's $.post method, but for some reason the string comes out escaped on the other side, like so,</p> <p>Sent: <code>company_name="company"</code></p> <p>Received: <code>company_name=\"company\"</code></p> <p>Any idea what could be the cause?</p> <p>Thanx in advance!</p>
php jquery
[2, 5]
2,330,345
2,330,346
.append link will not fire onclick function
<p>I've searched around I cannot find the answer to this. In my code, a link is created inside of a div and given an onclick value to pass an argument to a function. I cannot figure out why it will not fire.</p> <pre><code>var imgCount = 0; var curImg; function resetImg(target) { alert(target); } $(".add").click(...
javascript jquery
[3, 5]
5,307,173
5,307,174
How to add @ symbol to string in android?
<p>I am working on android. In my project I am adding '|' symbol and '@' symbol to string but it is not adding @ symbol. I am not getting where I went wrong. Please help me with this.</p> <pre><code>String str=""; str = str + "|" + id + "@" + id2 + "@" + id3; </code></pre> <p>When I print the string "str" it is displ...
java android
[1, 4]
4,187,341
4,187,342
Need solution for a jquery slideshow
<p>I am a novice jQuery user and i need some help in implementing a slideshow for a website. The images are to be changed automatically within a specific interval (i know about setInterval). I tried to use this plugin <a href="http://tobia.github.com/CrossSlide/" rel="nofollow">CrossSlide</a>. </p> <p>However, the ima...
javascript jquery
[3, 5]
1,114,782
1,114,783
Is it a good idea to write jQuery plugins just for the sake of neat code?
<p>For example if you write a plugin you could do this <code>$('#myDiv').doAction()</code> instead of <code>doAction($('#myDiv'))</code>. and you have to admit, the first one looks more intuitive. Are there any clear drawbacks of this like performance hits?</p>
javascript jquery
[3, 5]
5,206,819
5,206,820
String was not recognized as a valid DateTime.Couldn't store <22/06/2012 12:00:00 AM> in Purchase Date Column.Expected type is DateTime
<p>I am receiving this exception on XP running machine but on windows 7, there is no issue. I am trying to format date time as follows, </p> <pre><code>dr.BeginEdit(); dr["Pdate"] = ((DateTime)dr[dc]).ToString("dd/MM/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture); dr.EndEdit(); ...
c# asp.net
[0, 9]
3,419,782
3,419,783
Validation in jquery ,
<pre><code>&lt;div id="default-box"&gt; &lt;span class="add"&gt;&lt;input type="text" class="name" /&gt;&lt;input type="text" class="email"/&gt;&lt;/span&gt; &lt;span class="add"&gt;&lt;input type="text" class="name" /&gt;&lt;input type="text" class="email"/&gt;&lt;/span&gt; &lt;span class="add"&gt;&lt;in...
javascript jquery
[3, 5]
5,769,461
5,769,462
How to link to specific anchor in table with jquery
<p>I am using this jquery plugin:</p> <p><a href="http://www.jankoatwarpspeed.com/post/2009/07/20/Expand-table-rows-with-jQuery-jExpand-plugin.aspx" rel="nofollow">http://www.jankoatwarpspeed.com/post/2009/07/20/Expand-table-rows-with-jQuery-jExpand-plugin.aspx</a></p> <p>I have anchors in the code such as:</p> <pre...
javascript jquery
[3, 5]
1,961,338
1,961,339
Remove empty <li> using jQuery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1520981/remove-empty-elements-with-jquery">Remove Empty elements with jQuery</a> </p> </blockquote> <p>I want to remove empty <code>&lt;li&gt;</code> using jQuery. I am trying to do this but my code is not worki...
javascript jquery
[3, 5]
956,869
956,870
Disabling and enabling a html button
<p>So I have a button like this:</p> <pre><code>&lt;input id="Button" type="button" value="+" style="background-color:grey" onclick="Me();"/&gt; </code></pre> <p>How can I disable and enable it when I want? I have tried <code>disabled="disable"</code> but enabling it back is a problem. I tried setting it back to fals...
javascript jquery
[3, 5]
2,438,935
2,438,936
Clarification/explanation of RegisterClientScriptInclude method
<p>I've been looking on the Internet for a fairly clear explanation of the different methods of registering javascript in an asp.net application. I think I have a basic understating of the difference between registerStartupScript and registerClientScriptBlock (the main difference being where in the form the script is i...
asp.net javascript
[9, 3]
2,157,137
2,157,138
jQuery not ready though still instantiating
<p>I am using a jQuery Class plugin as so :</p> <pre><code>jQuery(document).ready(function($) { window.SSK.calendar = new(Class.extend({ filter_by_filtered_names: function() { console.log('foobar!'); }, init: function() { if ( window.location.href.match(/name_filters/) ) { SSK...
javascript jquery
[3, 5]
70,914
70,915
jquery: function to end another function
<p><code>$('#start')</code> executes the function <code>myFunction()</code> and <code>$('#stop')</code> end it. How do I stop <code>myFunction()</code> from executing?</p> <p><br> </p> <pre><code>function myFunction() { $(document).mousemove(function(e) { $('#field').html(e.pageY) }); } $('#star...
javascript jquery
[3, 5]
1,238,520
1,238,521
My Code Works On jQuery 1.3.2 But Not on 1.6.4
<p>I have this following codes that works perfectly on jQuery 1.3.2 :</p> <pre><code> $("#passwordLabel").click(function() { $(this).hide(); $("#password").focus(); } ); $("#confirmpasswordLabel").click(function() { ...
javascript jquery
[3, 5]
90,094
90,095
how to move text on mouse over in jquery?
<p>How to make a link moving to left when mouse over? I want the text move back when mouse out. Is it possible with jquery? Please help.</p> <p>Thank You</p>
javascript jquery
[3, 5]
4,663,622
4,663,623
Handling dynamic number of columns
<p>I'm developing a CMS of sorts, and I want to give my users the possibility of customizing the display. More precisely, I want to give them the ability to choose to display or hide the left column, the right column and/or the top div. The middle column cannot be hidden since this is where the actual content will show...
c# asp.net
[0, 9]
5,112,016
5,112,017
JavaScript onClick href
<p>with the use of <code>&lt;a&gt;</code> tag, i can put like:</p> <pre><code>&lt;a href="include/sendemail.php?id_user=&lt;?= $_GET['id_user'];?&gt;" onclick="return confirm('Are you sure want to send an email?');" &gt;Send Email&lt;/a&gt; </code></pre> <p>and how do apply that code to button :</p> <pre><code>&lt;i...
php javascript
[2, 3]
3,435,172
3,435,173
Jquery | Function inside same function. It bad practice?
<p>I am using this function for easiness, as I am going to use fadeTo a lot:</p> <pre><code>function fade_to(div, speed, opacity, after_fade) { $(div).fadeTo(speed, opacity, after_fade); } </code></pre> <p>Then I am calling the same function for after_fade parameter:</p> <pre><code>fade_to('#div', 3000, 1, funct...
javascript jquery
[3, 5]
2,033,926
2,033,927
How to tell a page to load a JS function based on variables being sent
<p>I have a function which loads some content when executed...</p> <p>IE...</p> <pre><code>function load_product(product_id) { $.ajax({ type: 'GET', url: 'product_image.php', data: 'product_id='+product_id+'', success: function(data) { $('#product_image').html(data); } }); } </code></pre> <p>That ...
php javascript jquery
[2, 3, 5]
4,545,141
4,545,142
Input string was not in a correct format?
<p>In my application i write the code like this</p> <pre><code>byte[] byt = new byte[Convert.ToSbyte(textbox1.Text)]; </code></pre> <p>it is giving the error that input string was not in a correct format.</p>
c# asp.net
[0, 9]
877,771
877,772
Nationality of site traffic in realtime?
<p>You see a whole lot of sites now which, when you visit, know what town the visitor is from - usually it's dating sites telling me there are "Single Girls in the London area".</p> <p>Does anyone know how this is done?</p> <p>I know it's not 100% reliable, but I want to show a banner which ha either £££, or $$$.</p>...
php javascript
[2, 3]
3,023,664
3,023,665
Unable to call Javascript function onload a asp:button using ASP.NET4
<p>I am unable to call a Javascript function on the OnLoad event of a asp:button</p> <p>HTML</p> <pre><code>&lt;asp:Button ID="btnFromCalOpen" runat="server" Text=" &amp;gt; " onLoad = "AllHide()" OnClientClick ="ShowCal()" /&gt; </code></pre> <p>Javascript</p> <pre><code> function AllHide() { alert("H...
javascript asp.net
[3, 9]
4,402,727
4,402,728
About Android compiler
<p>When building an Android application, which compiler does ADT use? ECJ or Javac? Does it provide the compiler for Dalvik machine?</p>
java android
[1, 4]
2,066,018
2,066,019
How to hide menubar, ftoolbar in IE
<p>There is a HTML page. I would like to hide the menubar, ftoolbar in IE when the page id opened.</p> <p>I do not want to open the page from another web page (<code>window.open(....)</code>). I just want to open the current web page directly!</p> <p>How can I do this with jQuery or plain JavaScript?</p>
javascript jquery
[3, 5]
4,974,604
4,974,605
Still confused about $'s before variables in javascript / jquery
<p>In my previous <a href="http://stackoverflow.com/questions/10443463/do-i-need-to-put-a-dollar-before-variable-names-with-javascript">question</a> a poster suggested the following:</p> <pre><code>var formSubmitHandler = function (link, form) { var $form = $(form); var val = $form.valid(); var action = $f...
javascript jquery
[3, 5]
1,162,910
1,162,911
Checkbox change function does not work except clicking on it
<p>I have written a function for a hdcheck checkbox.</p> <pre><code>$('#hdcheck').change(function () { if($(this).is(':checked')) { alert("It is Checked"); } else { alert("It is Unchecked"); } }); </code></pre> <p>It works find when I check or uncheck the checkbox but I have made a function that probl...
javascript jquery
[3, 5]
5,918,115
5,918,116
getting values from an array (JS / jQuery)
<p>I'm passing an array to a function I want to be able to show or hide columns in a table depending on what's passed.</p> <p>So, if I pass 1,3,4 columns 1 3 and 4 should show - column 2 should not. </p> <p>I can handle the show/hide bit. I'm just not sure how to grab the values from the array</p>
javascript jquery
[3, 5]
4,856,517
4,856,518
Sending information from android app to a php script
<p>I'm neither a android or php expert, the thing is that I made a php script that gets the variables from the url ( <code>www.myhost.com/mailScript.php?variable1=name&amp;variable2=age</code> ) and sends a mail with that information.</p> <blockquote> <p>Mail:<br> Variable1=Name<br> Variable2=Age </p> </blockqu...
php android
[2, 4]
90,448
90,449
Drawing a bitmap-animation doesn't work
<p>I got the following problem with drawing an animation on a surfaceview in android:</p> <p>I use a thread to make the onDraw()-method get called regulary, and i use this:</p> <pre><code>c.drawBitmap(pic, partOfTheImage, destination, null); </code></pre> <p>to draw the part of the spritesheet i want to draw. The pr...
java android
[1, 4]
3,773,842
3,773,843
How to exclude hidden variables from createRange object
<p>As mentioned in the Question, How can i exclude hidden elements from the document range object. With the below code I can create entire body text range. But I want to exclude hidden elements </p> <pre><code>document.body.createTextRange() </code></pre> <p>I am experimenting with the below code </p> <pre><code>...
javascript jquery
[3, 5]
2,099,846
2,099,847
what is the meaning of the word "this" in Jquery script
<p>Hello I'm a newcomer in JavaScript and JQuery language. I started to see some examples of JQuery script.</p> <p>i have the following code segment:</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); &lt;/script&gt...
javascript jquery
[3, 5]
529,375
529,376
setInterval update ajax column unless mouseover
<p>I have a column in my web design, which is periodically refreshed by a JS function "refreshColumn()" and updated by AJAX.</p> <pre><code>setInterval('refreshColumn()',60000); function refreshColumn() { ..make call with AJAX and load response to element... document.getElementById('myColumn').innerHTML = xmlhttp.res...
javascript jquery
[3, 5]
357,135
357,136
Javascript function not working after postback?
<p>Here i am trying to increase the height of the iframe after postback but it is not working and the alert itself is not popping up.Here is my code</p> <pre><code>function increaseiframesize() { alert("aaaaaa"); $('#MainContent_IFTrendAnalysis').height('523'); } </code></pre> <p>and </p> <pre><code>protected voi...
c# javascript asp.net
[0, 3, 9]
601,126
601,127
Gridview break Literal field into multi line
<p>I have a gridview with this field:</p> <pre><code>&lt;asp:TemplateField HeaderText="Title"&gt; &lt;ItemTemplate&gt; &lt;asp:Literal ID="lblTitle" runat="server" Text='&lt;%# Eval("Title") %&gt;' /&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; </code></pre> <p>If the title is too long it comple...
c# asp.net
[0, 9]
5,320,738
5,320,739
How to choose each element from an array in their respective order? (jquery, JS)
<p>My code:</p> <p>I understand that my for loop assigns all array elements to the variable pickSound and that is why I am left with it only playing the last element. So how can I get it to play each element in order and start over once done. </p> <pre><code> function show() { var sounds = new Array( ...
javascript jquery
[3, 5]
1,177,107
1,177,108
jquery javascript - clear checkboxes on changing autocomplete field
<p>I have the below script:</p> <pre><code>$("#product1").autocomplete({ source: "get_sku_family", messages: { noResults: '', results: function () {} }, select: function (event, ui) { var selectedObj = ui.item; $.post('get_as_09', { ...
javascript jquery
[3, 5]
97,703
97,704
Wrap a mixed set of text nodes and HTML elements with JavaScript / jQuery
<p>I have this HTML</p> <pre><code>&lt;div class="box"&gt; &lt;a href="#goals"&gt; | &lt;a href="#rules"&gt; | &lt;a href="#controls"&gt; &lt;p&gt;&lt;a name="goals"&gt;&lt;/a&gt;&lt;/p&gt; &lt;h2&gt;Goals&lt;/h2&gt; ... yada yada </code></pre> <p>and want it like this.</p> <pre><code>&lt;div id="nav...
javascript jquery
[3, 5]
4,047,911
4,047,912
Reading files in android. how to fix bad path
<p>I am trying to read a file in android. I am used to doing this in java but here I am getting a <strong>open failed enoent (no such file or directory)</strong> error. I am not sure how to import the file. Should I put it in the same directory as my application? right now its on my desktop. here is my code</p> <pre><...
java android
[1, 4]
3,208,380
3,208,381
Loop through an Array to enable checkboxes
<p>I'm have a set of checkboxes and an array that contains the index of which checkboxes should be selected. I'm trying to loop through the array and for each index in it. I made a sample jsFiddle to give you guys an idea of what I'm trying to do. I have the JQuery library also if that makes things easier. <a href="htt...
javascript jquery
[3, 5]
1,481,530
1,481,531
dynamic table in android
<p>Click on below Link</p> <p>I giving you small example for it, but first you want to retrieve data from webservice and it in your arraylist.</p> <p>Right?</p> <p>now you want to follow this link which will help you lot.</p> <p><a href="http://www.4shared.com/file/BGDgBv1q/TableLayoutDynamic.html" rel="nofollow">h...
java android
[1, 4]
3,552,724
3,552,725
Creating and loading multiple iframes dynamically
<p>I want to add few ifamres to a page based on the search result from the database. Also I am planing to put those I frames inside a Jquery-UI accordion menu. What is the best way of doing this. I have used PHP for creating the ifamres dynamically.</p>
php javascript jquery
[2, 3, 5]
2,410,296
2,410,297
Declaring variables javascript
<p>I just have a quick question and cant find anything on google. I was going through some code another programmer put together and he declares ALL of his javascript variables with $ in front of them...for instance:</p> <pre><code> var $secondary; </code></pre> <p>Is there a reason for this? Could this cause problems...
javascript jquery
[3, 5]
4,959,584
4,959,585
Is it possible to add JavaScript after page load and execute it
<p>Say I have a JavaScript function that is inserted into the page after page load how can I then call that function. For example lets keep things simple. Say I make an Ajax call to get the markup of the script and the following is returned:</p> <pre><code>&lt;script type="text/javascript"&gt; function do_something() ...
javascript jquery
[3, 5]
1,470,768
1,470,769
Find out when all content has really finished loading
<p>Is there a reliable cross-browser solution to find out when <strong>all</strong> content on the website has finished loading? As I have a lot of stuff to load (some of which is in iframes), this doesn't really work (the event is fired even though browser's loading indicator is still spinning):</p> <pre><code>$(wind...
javascript jquery
[3, 5]
1,290,211
1,290,212
What are some fun beginner-level Android programs to try?
<p>I'm beginning to write Android applications for one of my CS classes and I want to know what some fun things to try would be. I'll be writing them in Java (which I'd say I'm alright with) but I'm completely new to Android/mobile programming. Advice and suggestions are much appreciated. I want to learn what I can do....
java android
[1, 4]
2,395,181
2,395,182
Loading stylesheet dependant on User Agent
<p>I have to load a different Stylesheet depending on whether the User Agent is an iPad or other. I know that generally, detecting browsers isn't the most fantastic idea and will probably cripple our maintainability sometime in the future..not my decision.</p> <p>So here we have some JavaScript to detect the user age...
javascript jquery
[3, 5]
1,460,668
1,460,669
Jquery: Is there some way to make val() return an empty string instead of 'undefined' for an empty list?
<p>With Jquery, is there some way to make val() return an empty string instead of 'undefined' when called against an empty list of elements?</p> <p>E.g., I have this code:</p> <pre><code>var x = $('#my-textbox-id').not('.watermark').val(); </code></pre> <p>The idea is that I want to get the value of my textbox, but ...
javascript jquery
[3, 5]
134,774
134,775
Display Registration details in Website from Database
<p>Hi i am using a website application for registration, in that application i have inserted contols like label boxes and text boxes... And i stored these values in database...</p> <p>now i have to display the details only without controls in seperate form and the details should take from that database...</p> <p>How...
c# asp.net
[0, 9]
3,559,067
3,559,068
Android: Unexpectedly Quit When Trying to Switch Activity
<p>I'm new to posting, but have been using the site for help for a while now. So thanks for that!</p> <p>I'm working on a new app, got everything running well. It's a kids' soundboard. 2 pages of imagebuttons in a relative layout, with onclick listeners which triggers SoundPool. </p> <p>My question is this:</p> <p>i...
java android
[1, 4]
920,056
920,057
jquery with check box in asp.net problem
<p>I'm trying change an input mask for textbox when the the check box has been check or unckecked but the problem that always is picking up the else condation only even the check box it is check or not.</p> <p>please advice to fix this problem.</p> <p>here is my code:</p> <pre><code>&lt;%@ Page Title="" Language="C#...
asp.net jquery
[9, 5]
4,381,200
4,381,201
Simulate multiple keypresses in javascript
<p>I would like to simulate the user pressing tab then enter when they press enter. I know this sounds bad, but I have an asp.net web application that will only allow me to have one form with runat="server" on it so when the user hits return the main form gets submitted. I have another textbox on the page though (that ...
javascript jquery asp.net
[3, 5, 9]
1,890,712
1,890,713
Use php as a browser
<p>I am looking for a way to let php act as a browser, does anyone know how to do that? I now how to get pages and how to send get/post forms, but How do i let php interact with AJAX and javascript on a web page?</p>
php javascript
[2, 3]
4,173,515
4,173,516
jquery/php form validation(login as well as registration form)
<p>I am working on a project which requires registration/Login... I want to write a Jquery and php code which validates the data on client side and data on the server side(For log in), if the user enters wrong data stays on same page else redirect to his account...</p>
php jquery
[2, 5]
2,819,051
2,819,052
Javascript default functions?
<p>In Javascript, like <code>setInterval(draw,20)</code> you don't include anything like in C#. You can just use the function. The function is on the <code>Windows</code> object of the browser.</p> <ol> <li><p>Can the following objects and its functions be called without any pre-definitions?</p> <pre><code>Window Nav...
c# javascript
[0, 3]
3,254,991
3,254,992
Append object to a existing file in android
<p>i have append an object to a existing file but i can not read it ,i can read the first object and this is my code What is the problem ??</p> <pre><code>try{ FileOutputStream fos = openFileOutput("f.txt",MODE_PRIVATE | MODE_APPEND ); ObjectOutputStream oos = new ObjectOutputStream(fos); Stri...
java android
[1, 4]
676,553
676,554
Unterminated String error while iterating
<p>This is my code :</p> <pre><code>&lt;c:forEach items="${entry.value}" var="keyval"&gt; var bdgroup= { elem1: '${keyval.partno}', elem2: '${keyval.location}', elem3: '${keyval.village}', elem4: '${keyval.id}' }; exampleArray.push(bdgroup); &lt;/c:forEach&gt; </code></pre> <p>i am getting </p> <p...
javascript jquery
[3, 5]
2,246,255
2,246,256
Extracting contents from a webpage and comparing using Java
<p>I am developing a Java project in which i have a sub-module where i need to extract contents [text, image, color] from a webpage and compare it with another webpage. I am planning to use WinHTTrack software for downloading the webpage locally, but the problem is it doesn't save it as HTML. How can i download a webpa...
java javascript
[1, 3]
3,929,633
3,929,634
Develop an android and iPhone application with shared database
<p>I have a great idea for smartphone application, And I want to develop an application suited for both android and iPhone. In addition I need to use spatial database for geo indexing that will be shared for both applications. I am new to this app world and I have some questions.</p> <ul> <li>Is there away to develop ...
android iphone
[4, 8]
4,100,745
4,100,746
jQuery calculation inside loop
<p>How can i make a loop and add some values for the next iteration together like these in jQuery ?</p> <pre><code>var currLength = length; for (var i = 1; i &lt; dotCount -1; i++) { $("#myElement" + i).css("width", currLength); currLength += length + margin; } </code></pre> <p><strong>Edit: These is just an exam...
javascript jquery
[3, 5]
5,146,893
5,146,894
A Jquery function to print images in screen?
<p>I am thinking in printing a big image (900 x 400 px) in the screen when user clicks a button, could you recommend me one (or more) jquery function to carry out this action?</p> <p>Thank's in advanced, Regards</p>
javascript jquery
[3, 5]
1,361,195
1,361,196
Can any one tell what's wrong with the following script in disabling the list of dates
<p>I used <a href="http://keith-wood.name/datepick.html" rel="nofollow">Keith-Wood</a> calendar for that i added some script as follows</p> <pre><code> &lt;script type="text/javascript"&gt; $function(){ var holidays = ['12-2-2010', '12-7-2010', '12-10-2010', '12-18-2010']; $('#txtDateofBirth').datepick({onDate: fu...
jquery asp.net
[5, 9]
5,426,522
5,426,523
Insert a single view inside a listview makes listItem non clickable
<p>I am inflating a view inside a list item on listItemClick .The list item contains a check box. When the check box is clicked a linear layout containing two/three edit text fields and buttons gets inflated to that list view ( done by getView method of cursor adapter, the inflating view is dynamically created ) . </p...
java android
[1, 4]
513,619
513,620
Function to Get Params Cuts Off Values
<p>I'm using this function to get my params in Javscript, but on occassion, it cuts off my <code>charge_id</code> param.</p> <pre><code> $.urlParam = function(name) { var results = new RegExp('[\\?&amp;amp;]' + name + '=([^&amp;amp;#]*)').exec(window.location.href); if (results) { return results[1] || 0; ...
javascript jquery
[3, 5]
808,183
808,184
How to show an error message dialogs in Asp.net
<p>How to show an <code>error messages</code> or <code>data validation messages</code> in Asp.net with c# language. Please guide me.</p>
c# asp.net
[0, 9]
3,117,734
3,117,735
After learning C language, move ahead with Java or C++ first?
<p>I have completed my 1st year in Information technology(B. Tech). I have completed C programming Language and wish to study the next high level programming languages. I am confused whether to start with c++ or java first. What should i start first?</p>
java c++
[1, 6]
1,003,762
1,003,763
what's a proper way to check for null/empty string in js before including to params?
<p>I am building a querystring and want to exclude keys if vals are empty, what's a proper way?</p> <pre><code> setQueryString: function () { var keyword = $('#keyword').val(); //how to exclude it if keyword is empty? var params = { "keyword": $.trim(keyword) }; return params; }...
javascript jquery
[3, 5]
5,598,497
5,598,498
jquery find a string in an array with spaces on it
<p>How can I make this work? I have an space in the third element of my array " John". </p> <p>take a look: <a href="http://jsfiddle.net/hyHFT/" rel="nofollow">http://jsfiddle.net/hyHFT/</a></p> <pre><code>&lt;style&gt; div { color:blue; } span { color:red; } &lt;/style&gt; &lt;div&gt;"John" found at &lt;span&...
javascript jquery
[3, 5]
1,613,526
1,613,527
catch cmd output and include it on list java
<p>i try to do some cmd command in java, my script:</p> <pre><code>public void test(){ try{ Runtime rt=Runtime.getRuntime(); Process p = rt.exec("cmd /c "+"adb devices"); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while((line=input.readLine())!=null){ System.out.print...
java android
[1, 4]
1,652,228
1,652,229
How to set a control ID in ListView Template dynamically?
<p>A have a ListView that is rendered with multiple items.<br> Now I want to toggle some HTML attributes with JQuery. Therefore it would be best to have access to these elements via an unique ID.</p> <p>But trying to create a "dynamic" and therefore unique ID by</p> <pre><code>&lt;tr runat="server" ID='&lt;%# this.Ge...
c# asp.net jquery
[0, 9, 5]
4,615,920
4,615,921
jquery issue (bug?) in IE with .css() manipulation
<p>I have a block of jquery / javascript code that sets the left margin of an image depending on the browser width.</p> <p>I do some sums to calculate the required left margin and it goes in var $diff.</p> <p>This code works fine:</p> <pre><code>$('#background-wrapper&gt;img').attr('alt',$diff); </code></pre> <p>wh...
javascript jquery
[3, 5]
2,614,231
2,614,232
How do I validate that a text input contains only latin letters?
<p>How can I use jQuery to validate (on <code>keyup</code>) that a text input only contains latin letters (<code>only_english = 'abcdAbDKDk',</code>), without using a plugin?</p>
javascript jquery
[3, 5]
385,010
385,011
See if field exists in class
<p>I have a class with various variables</p> <pre><code>public class myClass{ public int id; public String category; public String description; public String start; public String end; } </code></pre> <p>Is there a way to check, either by creating an internal function or checking from the calling ...
java android
[1, 4]
5,566,354
5,566,355
Pb. DataGrid.Items while enabeling the Paging
<p>I'm using a Datagrid with paginig, while clicking on select all , all items in all pages are selected but while the execution, I'ven't all the selected items.<br> How can you get the DataGrid.Items.Count to reflect the FULL record count instead of displaying the page size?</p> <p>I'm using this property and all it'...
c# asp.net
[0, 9]
4,483,129
4,483,130
mousemove strange behavior
<p>i am trying to change images of a slideshow using mousemove. but its not working correctly. It only works correctly first time and after that even the mouse is not clicked it assumed that mouse is clicked. You can check demo here <a href="http://unirazz.com/kb/html/movie.html" rel="nofollow">http://unirazz.com/kb/ht...
javascript jquery
[3, 5]
2,055,492
2,055,493
Open popup and poulate it with data from parent window?
<p>How can I use Javascript/jQuery to populate a popup-window with data from JS-variables in the parent page?</p> <p>In my example I have an array of filenames. I list at most five in the parent window and if there's more I want to provide a link that opens a popup window and lists each post in the array.</p> <p>So i...
javascript jquery
[3, 5]
2,968,685
2,968,686
jQuery incrementation param passing weird behavior
<p>Let me describe my scenario before I say my question:</p> <p>Let counter be defined already as a number starting from 0.</p> <p>I have 2 a tags: let them be a1 and a2</p> <p>I first dynamically added a1 into my html and then used this:</p> <pre><code>jQuery("a.adder").click(function(){adder(this, counter)}); </c...
javascript jquery
[3, 5]
4,676,912
4,676,913
Move row from bottom of table to top on touchmove
<p>I'm using touch events to handle swiping a table containing roughly 350 rows. The number of rows is variable as they are pulled from a Google Spreadsheet. The table auto-scrolls continuously, which means that when a rows scrolls off at the top or bottom, I have to append or prepend it again as the case may be.</p> ...
javascript jquery
[3, 5]
2,428,566
2,428,567
Whats the mathematical formula for converting days into weeks
<p>I don't want decimal points like <code>65 days = 6.2weeks</code>. I want <code>65 days = 6 weeks 1 day</code></p> <p>I can't use any libraries (not homework)</p>
java javascript
[1, 3]
3,610,723
3,610,724
What JQuery plugin can I use to animate this slider?
<p>I'm trying to convert the slider in <a href="http://designinstruct.com/web-design/create-a-bright-and-sleek-web-design-in-photoshop/" rel="nofollow">this layout</a>, but I couldn't find a plugin that meets my needs. The <a href="http://fredhq.com/projects/roundabout/" rel="nofollow">roundabout</a> plugin shares the ...
javascript jquery
[3, 5]
1,723,263
1,723,264
Read POST request with AjaxMethod
<p>I need read POST request in my page. I using .net 2.0, higher version is not possible, and i try build page with AjaxPro. When i send request in JS to my destination, i cannot read request using <code>Request.Form</code>, <code>Page.Request</code> or other. Here is my code </p> <pre><code> public class Ajax : Syste...
c# asp.net
[0, 9]
4,151,825
4,151,826
Does picking a language to learn really matter? They all use similar techniques to solve problms?
<p>College student about to major in CS. Just want to know if it really matter what language you learn first?</p> <p>Seems to me CS and the nature of our work is about problem solving. Different language seems to differ in syntax, libraries you can use, etc. etc. But when it comes down to it, if you know how to solve ...
c# java c++
[0, 1, 6]
4,307,574
4,307,575
replace in jQuery
<p>Can some one help me in this</p> <p>I had a variable </p> <pre><code>var myValue = "what is you name? what is your age?" </code></pre> <p>i want to find the '?' in the string and replace it with a html input text element</p> <p>where the user can enter the answer in the text box and at last i need a string as ou...
javascript jquery
[3, 5]
1,881,920
1,881,921
Making a line move smoothly under my navbar
<p>So I'm trying some stuff out for webdesign but I'm having a bit of a problem with the following idea:</p> <p>So I'm trying to make a litte .png line I made move smoothly under my navbar. So when I click on another link it slidestowards it and stays there as long as that site is active, but I'm having a bit of a pro...
javascript jquery
[3, 5]
3,994,548
3,994,549
How to create a large selection screen?
<p>My app tracks how players at a pokertable play. I give my users the option to save up to 50 players stats in the form of a 'Player' object stored inside a JSON array within sharedPreferences. Allowing the user a way of selecting and loading one of these players has proven difficult.</p> <p>An alertDialog seems to s...
java android
[1, 4]