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
2,738,068
2,738,069
If Mouseover Div Equals False - JQuery / Javascript
<p>I'm trying to get this to work:</p> <pre><code>if($('#myDiv').hover() == false) { myFunction(); } </code></pre> <p>Not getting much in the way of errors in Chrome or Firebug consoles. I've had a look at some other posts, and there was an answer that used something like:</p> <pre><code>if($('#myDiv').is(':hover'...
javascript jquery
[3, 5]
3,335,922
3,335,923
I got an error '+=' cannot be applied to operands of type 'System.DateTime' and 'System.EventHandler' while executing the following code
<pre><code>case "Calendar": ctrl = new Calendar(); ((Calendar)ctrl).ID = GetControlId(index, itemDetails); ((Calendar)ctrl).Attributes.Add("class", "chkClass" + parentIndex.ToString()); if (itemDetails.AttachEvent == true) { ((Calendar)ctrl).SelectedDate += new EventHandler(Item_Selected...
c# asp.net
[0, 9]
2,246,556
2,246,557
how to make an application that set auto-rotate/portrait/landscape orientations for each installed app?
<p>I want to make an application that have the ability to set auto-rotate/portrait/landscape orientations for each installed application.I research on this and not found any necessary tutorial for this.How can i make an application.Anyone know about this functionality please help....</p>
java android
[1, 4]
1,295,267
1,295,268
how to make a jquery hint password with asterisks
<p>example: <a href="http://jsfiddle.net/na2tD/" rel="nofollow">http://jsfiddle.net/na2tD/</a></p> <p>currently the password is not asterisks as 'type' for password text field needs to be type="text" so it cannot be changed to type="password" which is needed if i want asterisks. How do I get both jquery hint and aste...
javascript jquery
[3, 5]
3,667,148
3,667,149
Is there a way to compare 2 colors in JS, like 'If Color A is darker than #202020'
<p>The background color for one of my pages is set pulled from the background color the users set as their twitter background color. I have a page that has a rounded box with a black border. The border doesnt look good if the background color is dark, so i'd like to remove the border of the background is darker than ...
javascript jquery
[3, 5]
2,563,351
2,563,352
How do I detect IE 8 with jQuery?
<p>I need to detect not only the browser type but version as well using jQuery. Mostly I need to find out if it is IE 8 or not.</p> <p>I am not sure if I am doing it correctly.</p> <p>If I do :</p> <pre><code>if (jQuery.browser.version &gt;= 8.0) { dosomething} </code></pre> <p>I am not sure it will work for versio...
javascript jquery
[3, 5]
5,222,496
5,222,497
How to know which app is opened?
<p>I want to know when any app is opened. Clearly to say, i am making service that blocks some apps ( according to user ) and i want to check app is this similar to any app in the blocklist and abort that app process. And does it need root access ?</p>
java android
[1, 4]
386,174
386,175
Prevent scroll event on scrollTop or scrollTo function
<p>I'm doing a little jQuery plugin, and i'm confront a problem.</p> <p>I read all internet without find a pertinent answer...</p> <p>I have to say i dont want to prevent scroll at all, it's a little more complicated :</p> <p>I have a system who scroll on the window with the jQuery function scrollTop(int y), but it'...
javascript jquery
[3, 5]
2,597,881
2,597,882
jQuery: How to obtain the index of a list element
<p>Given the following HTML:</p> <pre><code>&lt;ul&gt; &lt;li class="imgThumbLi"&gt; &lt;img src="larry.jpg"/&gt; &lt;/li&gt; &lt;li class="imgThumbLi"&gt; &lt;img src="curly.jpg"/&gt; &lt;/li&gt; &lt;li class="imgThumbLi"&gt; &lt;img src="moe.jpg"/&gt; &lt;/li&gt; &lt;/...
javascript jquery
[3, 5]
2,963,772
2,963,773
Jquery-load event not firing asp.net button click event
<p>i Have tow Web page Home.aspx And login.aspx ---</p> <p><strong>login.aspx SouceCode</strong></p> <pre><code>&lt;div id="Lbox"&gt; &lt;asp:Label ID="Label1" runat="server" Text="User Id" CssClass="lable"&gt;&lt;/asp:Label&gt; &lt;asp:TextBox ID="Txt_userId" runat="server"&gt;&lt;/asp:TextBox&gt; &l...
jquery asp.net
[5, 9]
1,764,476
1,764,477
Setting default values in spinner in android
<p>I am using a spinner using following code</p> <pre><code> private String `DEFAULT_CURRENCY_TYPE`; ArrayAdapter&lt;CharSequence&gt; adapter = new ArrayAdapter&lt;CharSequence&gt;(this, android.R.layout.simple_spinner_item, currenciesDataSource.keys); adapter.setDropDownViewResource(android.R.layou...
java android
[1, 4]
553,487
553,488
Problem with blur and click event?
<p>I have a web application with asp.net and at code behind with Jquery.</p> <p>In that there are text boxes and a grid. There is written blur event in jquery page for the text boxes and row click event for the row in table. </p> <p>When click the row then as per row value its details will displays in text boxes. My ...
jquery asp.net
[5, 9]
291,163
291,164
indexOf.call vs array.indexOf in jQuery's source
<p>I was browsing the source of <a href="https://github.com/jquery/jquery/blob/master/src/core.js#L680" rel="nofollow">jQuery</a> and bumped into this:</p> <pre><code>return indexOf.call( array, elem ); </code></pre> <p><em>- <a href="https://github.com/jquery/jquery/blob/master/src/core.js#L683" rel="nofollow">Line ...
javascript jquery
[3, 5]
472,245
472,246
Using coordinates values for position
<p>I have following image map code.</p> <pre><code>&lt;area shape="rect" coords="213,109,320,256" href="embedded-processors" alt="Embedded Processor" class="embeded-processor" /&gt; </code></pre> <p>I can retrieve attribute coords it return "213,109,320,256", for position div I want DIV position based on this co-ords...
javascript jquery
[3, 5]
2,370,595
2,370,596
jquery remote validation, what would be the php code?
<p>I am using bassistance validation plugin and I need to check if the email already exists in my database, can someone please provide a sample php code for the serverside portion of this? i don't simply want to echo true or false, i want the json solution with the message option too...</p>
php jquery
[2, 5]
1,262,635
1,262,636
Retrieving already assigned text box value dynamically in javascript
<p>I have a form in PHP which looks like this:</p> <pre><code>&lt;?php $txtVal1 = "value1"; ?&gt; &lt;script type="text/javascript"&gt; function post_data(){ alert(document.getElementById("text1").value); } &lt;/script&gt; &lt;form method="post" action=""&gt; &lt;input type="text" value="&lt;?php echo $txtVal1...
php javascript
[2, 3]
5,606,826
5,606,827
Updating a data object with a new value
<p>I'm trying to update a data object with a new value. I have </p> <pre><code> if($("#ArticlesHolder").data(event.data.id) != null) { $("#ArticlesHolder").data(event.data.id, {name:event.data.name, nr:newNr, price:event.data.price, articlenr:event.data.articlenr}); } </code></pre> <p>N...
javascript jquery
[3, 5]
4,268,913
4,268,914
Make jQuery use DOM elements as objects?
<p>First, I apologize. I know what I want to do, but not what I should call it or quite how to ask it, so my googling was unfruitful.</p> <p>I have some animation I'm using to show/hide text. I'm trying to wrap it up all nice in an object, but the way I'm doing it, I have to run some calculation code each time, as I...
javascript jquery
[3, 5]
3,310,818
3,310,819
How to create a client side Show/Hide panel in ASP.NET
<p>I am pretty new to ASP.NET. I need to create a show/hide panel in ASP.NET that holds only text. The panel needs to have sliding effect. I can do with with postback. Is there any built-in control that can do this without postback.</p> <p><img src="http://i.stack.imgur.com/tIrb0.png" alt="enter image description here...
c# asp.net
[0, 9]
2,122,044
2,122,045
Doesn't the append function return the appended object?
<p>Assuming <code>this</code> is some existing block level element in the dom and <code>image</code> is <code>http://www.google.com/images/srpr/nav_logo25.png</code> doing the following does not work:</p> <pre><code>$(this).append('&lt;img&gt;').attr('src', image).load(function() { alert('loaded'); }); </code></pre> ...
javascript jquery
[3, 5]
383,662
383,663
How do I create a honeycomb div grid rather than the standard grid?
<p>Here is a rough normal grid structure: <a href="http://jsfiddle.net/CFxzH/1/" rel="nofollow">http://jsfiddle.net/CFxzH/1/</a></p> <p>I am trying to create what I call a honeycomb grid rather than the standard div grid. Here is a rough illustration.</p> <p>NORMAL GRID</p> <pre><code>[] [] [] [] [] [] [] [] [] [] [...
javascript jquery
[3, 5]
1,361,636
1,361,637
Do the simplicity of PHP is in the languge itself or is there anonter thing that make it simple?
<p>Everyone says that PHP is simpler than ASP.NET and C#, why it is easier ans simpler?</p> <p>Considering C# and PHP for web development, what is the thing that make PHP easier exactly? I want to understand this point please. </p>
c# php
[0, 2]
4,533,813
4,533,814
Garbage Collection in C/C++ versus Java
<p>There is no Automatic Garbage Collection in C/C++.</p> <p>Assume that I wrote a simple program in C/C++ and created a single object. Assume that there are exactly 10 or extremely limited number of addresses for allocation.</p> <p>I have a for loop running for 100 times inside which this single object is created ev...
java c++
[1, 6]
1,374,659
1,374,660
Playing sound on app startup
<p>How do I go about getting my app to play an mp3 (in my res) on startup? Or how how about if I wanted this to happen when a button is clicked?</p>
java android
[1, 4]
2,514,300
2,514,301
Php javascript conflict with passing javascript to php
<p>I have a slight problem. I have several arrays in php with different team names. Each array contains teams of a certain league. When I click an add button I get the option to add a new entry to the calendar. I want the drop down to have only the teams for that league. onclick of the add button I call a javascri...
php javascript
[2, 3]
3,010,506
3,010,507
URLEncoder.encode() have some problem with facebook in android
<p>hi i am working on facebook app and when i am posting my message which is perfectly post but but space between two word which gives '+' sign sign. eg:: Hello+Good+Morning.... so can any one tell me how to fix this please i am waiting.</p> <pre><code>public void postMessage() throws UnsupportedEncodingException { ...
java android
[1, 4]
5,270,712
5,270,713
Read cookie values through javascript or jquery
<p>I have called one asp page inside the iframe</p> <p>You can check here: <a href="https://www.fiestacups.com/ProductDetails.asp?ProductCode=DUMMY" rel="nofollow">https://www.fiestacups.com/ProductDetails.asp?ProductCode=DUMMY</a></p> <p>If customer select font and select clip art image or upload image for clip art ...
javascript jquery
[3, 5]
2,008,589
2,008,590
EditText onTextChanged
<p>Having a brain freeze on how best to approach this, I have a ton of EditText boxes, I want to implement an ontextchanged so that when they input 1000000 (not using decimals) I want the EditText to diplay $1,000,000 as they type. I am using this method for my outputs and works fine. </p> <pre><code>private String ...
java android
[1, 4]
5,018,927
5,018,928
Does setting of width and height only work in jquery if the element is visible?
<p>Does setting of width and height only work in jquery if the element is visible? Unless I do show - nothing gets resized, however this is causing flickering. Is there a way to make it work even when the element I want to resize or its container is not visible?</p>
javascript jquery
[3, 5]
3,554,707
3,554,708
remove a PART of an Anchor Text with jquery or javascript
<p>I'm trying to remove or change a <strong>Part</strong> of an anchor text.</p> <p>My Anchor look like this:</p> <pre><code>&lt;a href="http://something.com"&gt;Model 1234 motorbike&lt;/a&gt; </code></pre> <p>I would like to remove the "motorbike" part of the anchor text, to end up with:</p> <pre><code>&lt;a href=...
javascript jquery
[3, 5]
2,453,475
2,453,476
How to tell the difference between a page refresh and closing a page
<p>I have a web app game and while in the game I want to have it so if a user closes the page or their browser, it will automatically log them out. I tried using the onbeforeunload event attached to the window:</p> <pre><code>window.onbeforeunload = function() { // perform logout functions here } </code></pre> <p...
php javascript
[2, 3]
2,242,344
2,242,345
I need to validate free flow textbox value matches value from database table
<p>I need to validate a given Name field in the asp.net form.</p> <p>User Name: Alex Brandon</p> <p>In the database, we have a users table with user_name column.</p> <p>I need to validate on lost focus of User Name form field, that it exists in the users table and is valid else show an alert.</p> <p>Does somebody h...
javascript asp.net
[3, 9]
1,355,916
1,355,917
checkbox image replacement,nothing happend
<pre><code>&lt;?php //require 'includes/db.inc.php'; require 'includes/configs.inc.php'; ?&gt; &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;?php $site_name ?&gt;&lt;/title&gt; &lt;meta http-eq...
javascript jquery
[3, 5]
3,033,383
3,033,384
ThrowMacValidationError on Iphone & Android
<p>I have a web application written in ASP.NET. I have some wierd problems sometimes in which I get ThrowMacValidationError/Invalid viewstate. I have noticed that these errors occur in android clients and/or iphone clients. However, I've tested my site in both devices and did not have this problem.</p> <p>What can cau...
android iphone asp.net
[4, 8, 9]
4,927,775
4,927,776
How do I copy the contents of a textarea to the clipboard?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/400212/how-to-copy-to-the-clipboard-in-javascript">How to copy to the clipboard in JavaScript?</a> </p> </blockquote> <p>I have an <code>html markup</code> thats echoed and is wrapped in a <code>textarea</code> ...
javascript jquery
[3, 5]
4,747,580
4,747,581
Add onclick event to command field in asp.net
<p>I have this update link in DetailsView.</p> <pre><code>&lt;asp:CommandField ShowEditButton="true" ShowCancelButton="false" ValidationGroup="VAL_1" /&gt; </code></pre> <p>When i click this link, its updates the content on the page. but i want to updates the content on the page and redirect to another page (ex: abc....
c# asp.net
[0, 9]
656,106
656,107
How to show just a div in iFrame using jQuery?
<p>Hi I would like to load a page using iFrame on my website. and as a final result I need to hide everything and show just one div's inner text. How can I accomplish it using jQuery? or maybe another workaround</p>
asp.net jquery
[9, 5]
5,839,350
5,839,351
Is it possible to run Android 2.2 app on Android 2.2+ Platforms (Gingerbraid, Ice Cream Sandwich etc.)
<p>I was wondering if it's possible because I am interested in developing applications for the Android platform, but I'm just starting.</p>
java android
[1, 4]
3,183,403
3,183,404
ASP.NET loses jquery bindings after postback
<p>I have asp.net page where I bind in markup js file. Js file working with set of functions mostly by class name. In these functions I get data from server using WCF and only change contols state and data. Also onto the page I do postback. Everything is fine but my jquery functions don't work after that. After postba...
asp.net jquery
[9, 5]
1,436,461
1,436,462
Send out multiple emails from Webpage Asp.net
<p>I am making an webpage with asp.net C#.</p> <p>I want people to log on and enter in quote requests. then the quote request is emailed to all the relevant people to quote (could be 100+ people).</p> <p>Obviously I can not have the user sit and wait for the 100+ people to be emailed as the webpage will freeze.</p> ...
c# asp.net
[0, 9]
4,464,952
4,464,953
Convert C++ code to C#
<p>I have code wrote on C++:</p> <pre><code> char szTempString[1500]; DWORD dwDataLength = PacketBuffer.m_Length - (sizeof(ether_header) + pIpHeader-&gt;ip_hl*4 + pTcpHeader-&gt;th_off*4); PCHAR pData = (PCHAR)pEthHeader + (sizeof(ether_header) + pIpHeader-&gt;ip_hl*4 + pTcpHeader-&gt;th_off*4); // If ...
c# c++
[0, 6]
892,392
892,393
pass value as array/collection
<p>I have this code: </p> <pre><code>var addNew = $('#divListBox').find(':checked') .map(function() { return $(this).val(); }).get(); </code></pre> <p>I want to know if there's a way to get all the value that's checked and put them in a collection so ...
javascript jquery
[3, 5]
948,784
948,785
jQuery select items which parents are not of a given class
<p>how can select all nodes with class "myClass" whose parent nodes don't have class "myClass". </p> <p>for example, i have following HTML:</p> <pre><code>&lt;div class="myContainer"&gt; &lt;div class="myClass" id="d1"&gt; &lt;div class="myClass" id="d2"&gt;&lt;/div&gt; &lt;div class="myClass" id...
javascript jquery
[3, 5]
276,969
276,970
Way to stop the running of a Javascript web application when the focus is on other window
<p>Are there any way to stop the running of a Javascript web application when the focus is on other window? For example, If I have AJAX executions in a application web, It'd very efficient stop the running in that situation.</p>
javascript jquery
[3, 5]
2,250,544
2,250,545
How do I acquire the value of a ASP label if it is nested? (client-side)
<p>So there is a ASP checkboxlist that gets rendered to the table and in the code behind the checkboxes get bound with a label from a code table. I need to display a text box only if a certain checkbox is checked off.</p> <pre><code>&lt;table id="chkSomeCheckbox"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt...
c# asp.net jquery
[0, 9, 5]
1,233,516
1,233,517
Loading an external script after page load with jQuery
<p>I'm a little confused how to do this, basically I have a page that has a Facebook Share button inserted via JavaScript:</p> <pre><code>&lt;script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>The problem is that it's blocking the page load at th...
javascript jquery
[3, 5]
5,915,305
5,915,306
Jquery index removal with var rather than number
<p>I am trying to remove a value of a certain index from a select </p> <p>This works.....</p> <pre><code> $(".myselect option:eq(0)").remove(); </code></pre> <p>this does not......</p> <pre><code> var item = 0; $(".myselect option:eq(item)").remove(); </code></pre> <p>How come?</p>
javascript jquery
[3, 5]
2,204,207
2,204,208
Can I add properties to an object created by a jQuery prototype?
<p>I have the following code:</p> <pre><code> var $form = '', $modal = '', $submits = ''; function createModal() { $modal = $.modal({ title: title, closeButton: true, content: content, resizeOnLoad: true }); $form = $modal.find('.form')...
javascript jquery
[3, 5]
3,616,472
3,616,473
how to add text multi lingual in asp.net website?
<p>I am new to asp.net. I am making a website in which the text is multilingual. When i Add text of different language(other than English) in text box and submit it. then its shows unformatted patterns of text. so tell me how can i add multi-lingual text to website(other than English).</p> <p>Thanks in advance</p>
c# asp.net
[0, 9]
2,236,476
2,236,477
Remove columns from DataTable in C#
<p>I have a DataSet which I get a DataTable from that I am being passed back from a function call. It has 15-20 columns, however I only want 10 columns of the data.</p> <p>Is there a way to remove those columns that I don't want, copy the DataTable to another that has only the columns defined that I want or is it just...
c# asp.net
[0, 9]
4,346,407
4,346,408
World Map with Custom Marker Positions- ASP.NET
<p>I'm looking for some suggestions as to how I could implement a World Map with custom positioned markers. My client would like a world map that represents the locations of his Licensees.</p> <p>I have been provided with the following xml as the data source for the map.</p> <pre><code> &lt;Licensee id="1"&gt; &lt...
c# asp.net
[0, 9]
4,793,787
4,793,788
pass xmlhttp.responseText data to php variable
<p>i have a jquery that brinds text from a page through ajax and displays that text in a div i want to pass that data to a php variable how can i do that ?</p> <p>my jquery code is</p> <pre><code>&lt;script type="text/javascript"&gt; var xmlHttp = null; window.onload = function() { xmlHttp...
php jquery
[2, 5]
3,965,462
3,965,463
Android Image Viewer from App
<p>I'm trying to launch an image which is written to my application directory with the builtin Android image viewer. This image has been written in a different part of the app to the app directory. When getting the following file:</p> <p><code>super.getFilesDir() + "/current.png"</code></p> <p>File.exists() returns t...
java android
[1, 4]
5,959,248
5,959,249
Why the name 'Request' does not exist when writing in a class.cs file?
<p>I would like to move the following piece of code from a c# aspx.cs file into a stand alone class.cs file.</p> <pre><code>string getIP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (String.IsNullOrEmpty(getIP)) getIP = Request.ServerVariables["REMOTE_ADDR"]; </code></pre> <p>This piece of code used to resid...
c# asp.net
[0, 9]
3,939,725
3,939,726
Position jQuery dialog box
<p>I've tried a million solutions and none seem to work. I just need to push my jQuery dialog box about 50px from the top of the page. Any ideas how?</p> <pre><code>function message() { $("#message").dialog({ title: 'Title here', draggable:false, minHeight:100, resizable: false }); }...
javascript jquery
[3, 5]
147,080
147,081
How to use a client side database in JavaScript
<blockquote> <p><strong>Possible Duplicate:</strong><br /> <a href="http://stackoverflow.com/questions/889688/how-to-query-an-xml-string-via-dom-in-jquery">How to query an XML string via DOM in jQuery</a> </p> </blockquote> <p><strong>DUPLICATE:</strong> <a href="http://stackoverflow.com/questions/889688/how-to-q...
javascript jquery
[3, 5]
3,779,938
3,779,939
Creating Dynamic Menus
<p>I have to create dynamic menus from the database and can someone please help me in the code,Thanks in Advance .</p>
c# asp.net
[0, 9]
4,025,479
4,025,480
Identify the checkbox that is checked, in a group of checkboxes
<p>I have 2 checkboxes in a form and onclick of these, some php code needs to be executed and based on the result of the code, the checkbox is checked or unchecked. </p> <p>So i have written onclick = document.formName.submit(); Now it is triggering the same page and i am able to write the code. I am not able to diffe...
php javascript
[2, 3]
4,044,974
4,044,975
what does [object Object] mean?
<p>I am trying to alert a returned value from a function and i get this in the alert</p> <p>[object Object] </p> <p>here is the javascript code</p> <pre><code>&lt;script type="text/javascript"&gt; $(function () { var $main = $('#main'), $1 = $('#1'), $2 = $('#2'); $2.hide(); // hide div#2 when the page is ...
javascript jquery
[3, 5]
852,708
852,709
Single Instance Login Implementation
<p>I am facing a serious problem in my project (a web application built in ASP.NET 2.0) explained below.</p> <p>Let say I have given userid “singh_nirajan” and A user say “User1” logged into the system using this userid. Now my requirement is whenever other user let say User “User2” try to log in to the system using s...
c# asp.net
[0, 9]
654,539
654,540
jQuery: Using Selectors on HTML from an Attribute
<p>I have some HTML that is stored as an attribute on a tag. I can access it in jQuery using </p> <pre><code>$("input[id$='_myField_hiddenSpanData']").attr("value") </code></pre> <p>This looks like this:</p> <p><code>"&lt;span id='spantest\user' tabindex='-1' contentEditable='false' class='ms-entity-resolved' title=...
javascript jquery
[3, 5]
5,108,936
5,108,937
javascript replace allowed html tags
<p>I need to use javascript to remove all html tags, except for those I explicitly allow. I have a form that only allows the following tags and their respective end tags:</p> <pre><code>&lt;b&gt; &lt;strong&gt; &lt;i&gt; &lt;em&gt; &lt;u&gt; &lt;br&gt; &lt;pre&gt; &lt;blockquote&gt; &lt;ol&gt; &lt;ul&gt; &lt;li&gt; &...
javascript jquery
[3, 5]
4,038,698
4,038,699
selecting un-id spans in a div
<p>My markup is a div with 3 spans inside. How can I read the value of each span with jquery. </p> <pre><code>&lt;div id="mod"&gt; &lt;span&gt;first span&lt;span&gt; &lt;span&gt;second span&lt;span&gt; &lt;span&gt;third span&lt;span&gt; &lt;/div&gt; function getVars(){ var span1 = ; var span2 = ; var s...
javascript jquery
[3, 5]
5,470,093
5,470,094
Refreshing the Action Bar in Android 3.0
<p>I am trying to implement an action bar within an activity. Is it possible to "refresh" or re-inflate the action bar with a new menu(without restarting the activity) The only way I have found so far is to leave the action bar empty and assign it a new customView every time I want it changed.</p>
java android
[1, 4]
4,723,703
4,723,704
Incorrect button width and height
<p><a href="http://jsbin.com/iwimaw/5" rel="nofollow">Take a look a this</a>. I'm accessing the button's height and width using jquery's methods, and via accessing <code>.css("height")</code>, and I get two wrong answers.</p> <p>I'm at 100% browser zoom. What's going on here?</p> <pre><code>Inner Height: 46, Inner Wi...
javascript jquery
[3, 5]
5,053,501
5,053,502
Pop up dialog box with multiple textboxes
<p>i am new to javascript and jquery. And i doing one project in asp.net where i need the pop up dialog box with multiple texbox and label such as name, comments,remarks, etc.And those data should be fetched in some variables.I use simple javascript code but it worked for single textbox but doesnot support multiple.</p...
javascript jquery
[3, 5]
4,209,453
4,209,454
Dynamically add rows to columns
<p>I am adding rows dynamically to a table. The table already has a row consisting of column headers like date, day etc.</p> <pre><code>for(var i=0; i&lt;=fix;i++){ var cols = 5; var tr = $('&lt;tr&gt;'); $('&lt;td name=Date"+i+" id=Date_"+i+"&gt;&lt;/td&gt;').appendTo(tr); $('&lt;td id=day_"+ i+"&gt;"+theday +"&lt;/t...
javascript jquery
[3, 5]
3,218,926
3,218,927
Java executes 'catch' block with no error, and somehow still runs 'try' block
<p>I have a problem with the following code. First, I am a newbie to Java with experience with several other languages.</p> <p>When I run the following on Android, it errors at "in.close();", jumps to the catch block and runs Return ""; The thing is, the function doesn't return an empty string, it successfully returns...
java android
[1, 4]
5,275,638
5,275,639
JavaScript game engine for a brick game
<p>I want to create a game in JavaScript using jQuery. The game will be kind of like the classic brick games where you have to destroy all the bricks by making the ball hit them. Something like <a href="http://www.sketchlabhq.com/public/3" rel="nofollow">this sketch</a>. What game engine do you recommend I use for this...
javascript jquery
[3, 5]
5,244,304
5,244,305
Forms Authentication for different roles?
<p>I am developing a website in which I'm using forms authentication. We have 2 log in pages: one for user, another for admin.</p> <p>I added this code into webconfig file for user.</p> <pre><code>&lt;forms loginUrl="Login.aspx" defaultUrl="Home.aspx" &gt; </code></pre> <p>I am using this code for user side when us...
c# asp.net
[0, 9]
966,046
966,047
this find parent of another div and toggle its child using jQuery
<p>I've done some research and nothing seems to be working. Here is the HTML followed by the JavaScript I am putting together. What I am trying to do is set it up so that whenever dashboard_gear_options is clicked, it toggles the appropriate hidden options row. Each block of code exists multiple times at different l...
javascript jquery
[3, 5]
5,318,767
5,318,768
Enable/Disable button click handlers in Javascript
<p>Ok, let's say that I have a button and I would like to enable/disable its click handlers.</p> <p>I would like to create functions like these:</p> <pre><code>var bar = []; function storeHandlers(buttonID) { //I would like to store the click handlers in bar[buttonID] } function preventHandlers(buttonID) { s...
javascript jquery
[3, 5]
6,020,371
6,020,372
Ajax request cross domain json data and display?
<p>I have a function to get JSON data from another domain, but I don't know what is wrong with it. It never fires the success function and and no errors are returned.</p> <pre><code>$.ajax({ url: "http://other-domain.com/sample/Json.aspx", dataType: "jsonp", type: 'get', crossDomain: true, jsonp: '...
javascript jquery
[3, 5]
5,285,210
5,285,211
how do I find out if the cursor is in the bounds of an element
<p>I'm creating a drag and drop application and what I want to do is while the user is dragging an element get if the cursor is over certain other element.</p> <p>Heres the flow:</p> <p>User starts dragging an element around the page<br> When the mouse gets over certain parts I want to make an ajax call. </p> <p>Be...
javascript jquery
[3, 5]
5,999,307
5,999,308
Form fields in hidden DIV
<p>I have a form with some fields that are in a hidden DIV (style="display: none;"). The user can click a button that displays these additional fields if they wish.</p> <p>Now if the user submits the form in its "compact" state, the form variables in the hidden div are also submitted and displayed in the address bar.<...
php javascript
[2, 3]
4,304,010
4,304,011
JQuery - acess object property inside event handler
<p>I am trying to do an extension to a div using jquery. The extension is called NunoEstradaViewer, and here is a sample of the code:</p> <pre><code>(function ($){ NunoEstradaViwer: { settings: { total: 0, format: "", num: 0; }, init: function (el, options) { if (!el.length) { return false; } ...
javascript jquery
[3, 5]
2,472,338
2,472,339
asp.net c# Barcode issue
<p><img src="http://i.stack.imgur.com/7OcsL.png" alt="enter image description here">For generating Barcode in asp.net c#, Bitmap object is used that saved the image in jpeg (also checked changing image extension gif and dpi). But the problem is when we print the barcode, barcode quality is not good(it shows the fade pr...
c# asp.net
[0, 9]
3,831,781
3,831,782
weird behavior with redirecting if the user is not logged-in
<p>I have a two <code>setInterval(myFunction,40000)</code> and <code>setInterval(myFunction2,50000)</code> where myFunction and myFunction2 are making ajax requests and if the user is not logged-in</p> <pre><code>echo '&lt;meta http-equiv="refresh" content="0;url='.$home.'" /&gt;'; echo '&lt;script type="text/javasc...
php javascript
[2, 3]
3,207,542
3,207,543
How to check Flash Player installed or not Using Javascript without any embeded library?
<p>I know by using SWFObject library ,we can findout Flash player installed or not. But without any External library , Its possible get Flash player installed or not using jquery.It should work in Major browsers(Chrome,Firefox,IE)</p>
javascript jquery
[3, 5]
3,547,882
3,547,883
define: cannot convert org.w3c.dom.domElement to boolean
<p>I have translated the following Javascript code to Java. The problem occurs at sib; <a href="http://snippets.dzone.com/posts/show/3754" rel="nofollow">http://snippets.dzone.com/posts/show/3754</a></p> <p>I have never seen such for statements. What does it do exactly when you add a semicolon? Is this like while() st...
java javascript
[1, 3]
52,995
52,996
ASP.Net global error handler for all... but a few
<p>i want to implement a global error handler for my asp.net website.</p> <p>I usually implement this in the global.asax by logging the error and redirecting to an error page.</p> <p>So far so good, but in this case we have calls to asmx webservices from Jquery, and, sorry to say, Errors thrown in the asmx webservice...
c# asp.net
[0, 9]
2,356,260
2,356,261
Java Script in Validation controls in asp.net
<p>Can i give alert message box of javascript in errormessage property of required field validator in asp.net</p>
javascript asp.net
[3, 9]
4,922,765
4,922,766
More efficient comparison of numbers
<p>I have an array which is part of a small JS game I am working on I need to check (as often as reasonable) that each of the elements in the array haven't left the "stage" or "playground", so I can remove them and save the script load</p> <p>I have coded the below and was wondering if anyone knew a faster/more effici...
javascript jquery
[3, 5]
662,842
662,843
create jquery compound calculator
<p>what kind of formula is being used in the calculator mentioned below </p> <p><a href="https://www.lifeclub.com/public/calculator.aspx" rel="nofollow">https://www.lifeclub.com/public/calculator.aspx</a></p> <p>i am trying to create a similar calculator using jquery. I am having a tough time getting the formula rig...
javascript jquery
[3, 5]
4,538,654
4,538,655
Executing javascript code stored in an element attribute using jQuery
<p>say there is an element #button with the attribute onmousedown containing some random javascript how could I trigger the js in that element attribute using jQuery? </p> <pre><code>j("#otherbutton").click(function(){ var script = j("#button").attr("onmousedown"); //what now? }); </code></pre>
jquery javascript
[5, 3]
1,364,199
1,364,200
JS redirect/window replace doesn't work if url is the same (but anchor added)
<p>I want to use JS/jQuery to reload the current page and jump to an anchor.</p> <p>I've tried using:</p> <p><code>window.replace('currentpage/#msg'+.message_id);</code></p> <p>And</p> <p><code>window.location.href ='currentpage/#msg'+.message_id;</code></p> <p>Both change the url in the address but fail to reload...
javascript jquery
[3, 5]
2,952,955
2,952,956
bind checkbox enable property to code behind method
<p>I have a check box on a page. I want to set it's enable property from a codebehind method. I have done this <code>Enabled= '&lt;%#IsSMSEnabled()%&gt;' /&gt;</code></p> <p>IsSMSEnabled returns true or false depending on some logic.</p> <p>Check box is alwyas enabled no matter what is returned by IsSMSEnabled()%</...
c# asp.net
[0, 9]
5,920,255
5,920,256
Putting datatable comma separated values in a string
<p>My datatable consists of a column named "ID". The no. of values in this column varies.Sometimes this Datatable fetches 3 IDs in that ID column, sometimes 2. Now if for example, my datatable has three values as 1,2,3. What I want is to put these three values in a string and separate them by commas as folows:-</p> <p...
c# asp.net
[0, 9]
4,150,565
4,150,566
Javascript/Jquery onclick definition of word appears
<p>I'm looking for tips on how to be able to click on a word in an html document and then for the page to update and show a definition of the word that has been clicked. It can appear at the bottom of the page. So far I'm just adding an onclick into the p tag so for instance. Am I going about this in the right way? I'm...
javascript jquery
[3, 5]
4,185,169
4,185,170
How to create tabbed interface in asp.net?
<p>I want create the tabbed interface in asp.net, for this i have searching in internet at finally i found a link below i paste that link please verify that.</p> <p>i am using this link to create tabbed items but this showing some errors like namespace are not found. Please help me where i can change to rectify this ...
c# asp.net
[0, 9]
1,893,615
1,893,616
Insert scripts into an existing function?
<p>This function is built into the page and I cannot modify the original .js file:</p> <pre><code>cool.lol = function () { // contents here } </code></pre> <p>Is there a way for me to append this function with some of my own scripts?</p> <p>Like this:</p> <pre><code>cool.lol = function () { // contents h...
javascript jquery
[3, 5]
3,730,097
3,730,098
How to get the 'height' of the screen using jquery
<p>I want to set something in the middle of the screen </p> <p>thanks</p>
javascript jquery
[3, 5]
3,816,969
3,816,970
Creating a key/pair object using jQuery and some inputs
<p>I have a cart on my website and I need to let users easily change the quantity of items they have in their cart at a moment.</p> <p>Here is the javascript code I have so far:</p> <pre><code>&lt;script type="text/javascript" language="javascript"&gt; $(document).ready(function () { var items = []; ...
javascript jquery
[3, 5]
5,347,832
5,347,833
Async method in asp.net web service
<p>I've got a page that generates a bunch of reports, and emails a zip of the results. This process takes about 30sec to 2min.</p> <p>When the user invokes this process via ajax, I can poll the web service via ajax to get the results, but how do I create an async method that will continuously update a variable?</p> <...
c# asp.net
[0, 9]
1,360,352
1,360,353
ASP.net C# Name gridview collums after custom DataBind
<p>Is there the possibility to give a gridview's collums a custom name using programming code (C#) ? </p> <p>F.E. I databind my gridview (wich is empty in my aspx, except for the layout) using following code :</p> <pre><code> SqlCommand objCommand = new SqlCommand("SELECT M.Mod_ID, M.Mod_Naam, M.Mod_Omschrijvi...
c# asp.net
[0, 9]
4,040,855
4,040,856
Converting this basic js into jquery has weird results
<p>I want to turn this:</p> <pre><code>document.getElementById("associatedDisplayDiv").innerHTML += formatedResult; </code></pre> <p>... into jquery. </p> <p>I've tried doing this:</p> <pre><code>$("#associatedDisplayDiv").html( $("#associatedDisplayDiv").html() + formatedResult ); </code></pre> <p>But this is not...
javascript jquery
[3, 5]
1,692,434
1,692,435
How to execute jQuery code if a div display style changes from none to block?
<p>I'm trying to execute jQuery code when a div's style changes from <code>display: none;</code> to <code>display: block;</code> </p> <p>I'm using tabs that's why this div's style changes like this, and this jQuery code should only be running when viewing this tab only.</p> <p>so how can I achieve this ?</p> <p>and ...
javascript jquery
[3, 5]
598,523
598,524
ASP.NET using C#, auto refresh div in a Repeater
<p>I use a Repeater control to list the threads.</p> <p>And there is a Div with a Label control for displaying the posted date in Repeater ItemTemplate.</p> <p>here is what I'm doing now, but it's not auto refresh specific div independently. It's auto refresh the whole page.</p> <pre><code>setInterval(function () { ...
c# javascript jquery asp.net
[0, 3, 5, 9]
1,369,926
1,369,927
Trying to incrementally animate "marginTop" with jQuery, but it resets each time. Why?
<p>I'm having trouble implementing a "scroll more text" feature. </p> <pre><code>&lt;a href="#" id="scroll-trigger"&gt;More&lt;/a&gt; &lt;div id="outer-frame"&gt; &lt;div id="scroll-frame"&gt; .. long text &lt;/div&gt; &lt;/div&gt; </code></pre> <p>.. in the css</p> <pre><code>#outer-frame { height:200px; overflo...
javascript jquery
[3, 5]
3,439,695
3,439,696
Using iPhone resources in a C++ file
<p>I was wondering how you open a file in the app bundle from a C++ file.</p> <p>I.E. I have a file "manifest.xml" that is begin copied into the app bundle. I need a way from C++ to either load this file. I think it is going to involve setting a path some where in Obj-C code so that the file is in the working direct...
c++ iphone
[6, 8]