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
5,320,065
5,320,066
How to check if a file exists on the web server
<p>I have a file stored on the server and the web page I am populating depends on the fatc that the file exists or not.</p> <p>How do I test if the file is available on the server? The file comes on the web page as: <a href="http://main.server.com/PGT/Reports/ObjectsReport.xml" rel="nofollow">http://main.server.com/PG...
c# asp.net
[0, 9]
5,261,694
5,261,695
JavaScript alert boxes combined with PHP
<pre><code>echo "&lt;td&gt;&lt;a href='delete.php?id=$row[id]&amp;&amp;category=$a' onclick='return confirm(\'are you sure you wish to delete this record\');'&gt;delete&lt;/a&gt;&lt;/td&gt;"; </code></pre> <p>Above is the code I am trying to use. Every time it does nothing and I cannot see how I can use 'proper' JavaS...
php javascript
[2, 3]
3,219,586
3,219,587
Associate a control with a resource key in code behind
<p>Is there any way to associate a control such as a <code>nameLabel</code> with a local resource key from code behind.</p> <p>I usually do this from <em>html</em> using the <code>meta:resourcekey</code> property like the following:</p> <pre><code>&lt;asp:Label ID="nameLabel" runat="server" meta:resourcekey="nam...
c# asp.net
[0, 9]
2,721,638
2,721,639
C#, ASP.net application which calls executable to create output file
<p>We are developing a web application in ASP.Net and C#. The requirement here is to interact with a third party exe which is developed in Fortran77. This third party exe produces an output file after being provided with some inputs and shuts down.In windows desktop single user application this is easily possible by us...
c# asp.net
[0, 9]
3,656,305
3,656,306
Merge repeated variables in javascript
<pre><code>var some1 = false; var some2 = false; var some3 = false; var some4 = null; var some5 = null; var some6 = null; </code></pre> <p>Is it possible to merge variables by comma?</p> <p>What is a true way to do this in javascript? </p>
javascript jquery
[3, 5]
2,972,514
2,972,515
Possible to sort rendered images based on class of parent div?
<p>I have some images that are wrapped within containers like this:</p> <pre><code>&lt;div id="swatchcontainer"&gt; &lt;div class="swatchimgouter"&gt; &lt;div class="swatchimginner"&gt; &lt;img src="whatever1.jpg" alt="some text" title="some text too"/&gt; &lt;/div&gt; &lt;/div&gt;...
javascript jquery
[3, 5]
1,585,510
1,585,511
.click() in a <div> in a <div> does not work
<pre><code>$('#A').click(function () { $('#A1').prepend('&lt;div class="AcL" id=' + i + '&gt;Hello&lt;span class="RmMe" id="' + i + '" style="margin-left:20px; cursor:pointer;"&gt;X&lt;/span&gt;&lt;/div&gt;'); i++; }); $('.RmMe').click(function () { alert("OK"); }); &lt;div id="A1"&gt;&lt;/div&gt; </code>...
javascript jquery
[3, 5]
2,751,886
2,751,887
how do i refer to the subject $(this) from a jquery plugin?
<p>I'm using <a href="http://colorpowered.com/colorbox/" rel="nofollow">colorbox</a>, i just get undefined as my get values?</p> <pre><code>$('.banner').colorbox({ opacity: 0.4, href: 'dialogs/ban_add_edit.php?banner_to_edit='+$(this).attr('id')+'&amp;typeofbanner='+$(this).attr('rel') }) </cod...
javascript jquery
[3, 5]
5,966,861
5,966,862
getting the email from contacts
<p>I am able to select one contact and get its respective phone number. code:</p> <pre><code>@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == PICK_CONTACT_REQUEST) { if (resultCode == RESULT_OK) { Uri contactUri = data.getData(); ...
java android
[1, 4]
1,675,421
1,675,422
JQuery: How to calculate the number of rows to show within a container
<p>kinda hard to explain, but let me try:<br> I'd like to put a table inside a container . this container has a fixed height, say 500px, and the table is rather long, say 2100 and each row's height can be different. </p> <p>When the table is created, all the rows are invisible, now I want to do a calculation based on ...
javascript jquery
[3, 5]
1,878,293
1,878,294
alternative of onbeforeunload any idea
<p>I want to update database when user leave the site. I am using php for my site. I am using javascript function onbeforeunload and call php through ajax to update database. </p> <p>Now the problem is that the function onbeforeunload is not supported by Opera and Safari, and so the entry should be deleted from databa...
php javascript
[2, 3]
222,024
222,025
Does logging slow down a production Android app?
<p>Before releasing my Android app to the marketplace, should I comment out all logs?</p> <pre><code>Log.d(tag, "example of a log") </code></pre> <p>If I leave them there, will the app run slower?</p>
java android
[1, 4]
2,924,330
2,924,331
Serializing an image as android
<p>Good friends of the forum, Please have a look at my question.</p> <p>What happens, I take several days esque looking to serialize an image in android and get results in a String with the serialization code. I have searched far and the only thing I have found are methods to convert other objects to physical objects ...
java android
[1, 4]
1,340,346
1,340,347
how to write basic jquery if statement based on url
<p>I don't know why this doesnt work. Although im sure its something to do with the way im handling the url in the if statement. My Jquery / javascript knowledge if basic.</p> <pre><code>var url = $(location).attr('href'); if (url == 'http://www.website.com/test/index.html') { $('#HomeButton').bind('click', HomeBut...
javascript jquery
[3, 5]
3,063,322
3,063,323
jquery, extract number value from name tag
<p>I have this being created by my perl script.</p> <pre><code> print qq| \$('textarea[name=category$row[0]]').keydown(function(event) { \$("input[value=$row[0]]").attr('checked', true); }); |; </code></pre> <p>Somewhere later, I have this, I want to reextract the $row[0] v...
javascript jquery
[3, 5]
869,788
869,789
Changing the URL with jQuery without reloading the page
<p>How do I change the URL with jQuery without reloading the page?</p>
javascript jquery
[3, 5]
4,103,543
4,103,544
How do I focus on a javascript radio button or any other items on specific jquery tabs?
<p>I have javascript validation that validates items such as textboxes, radio buttons etc. How do I use focus() on the text box or other item located in a specific tab governed by tags? </p> <p>Sample of the javascript code:</p> <pre><code>if (theForm.radbtnProg.checked &amp;&amp; theForm.ddlProg.selectedIndex == 0)...
javascript jquery
[3, 5]
4,615,896
4,615,897
dynamically show n hide table rows using jquery :gt
<p>I was wondering how to use jQuery's <code>:gt()</code> in an inclusive way. I am trying to show/hide table rows dynamically.</p> <pre><code>$('#' + tbodyId + ' &gt; tr:gt(' + newRowStart + '):lt(' + rowsToShow + ')').show(); </code></pre> <p>If i try to show the first 5 rows say, <code>newRowStart = 0</code> and <...
javascript jquery
[3, 5]
4,033,030
4,033,031
Display elements of a <ul> in two columns
<p>Someone please help me to change current function to display elements in two columns,</p> <pre><code> function nextCode(flag) { var code = codes[flag]; $('.headers').html(''+code[0]+''); var sum;for(var j=1;j&lt;=code.length;j++) { sum+="&lt;li&gt;"+code[j]+"&lt;/li&gt;"; } sum="&lt;ul&gt;"+sum+"&l...
javascript jquery
[3, 5]
2,633,897
2,633,898
Remove space on textbox but not between words
<p>I want to remove spaces on the beginning of text on textbox on keyup event but will not remove spaces if it is between text. how can i do that?</p>
javascript jquery
[3, 5]
2,542,361
2,542,362
jquery source code, classname with linefeeds?
<p>Today I looked at the source code of the jQuery function removeClass:<br> There is the following line: </p> <pre><code>className = (" " + elem.className + " ").replace( rclass, " " ); </code></pre> <p>rclass: </p> <pre><code>rclass = /[\n\t\r]/g, </code></pre> <p>In the book "JavaScript The Definitve Guide" fr...
javascript jquery
[3, 5]
4,169,765
4,169,766
How to find the Jquery selector of the selected element
<p>How to find the Jquery selector of the selected element if it is not having any id or class like below</p> <pre><code>$(".someSelectedElementParentClass &gt; div:eq(1) &gt; ul:eq(0) &gt; li:eq(0) &gt; a:eq(0)").css({"position":"relative", "left":-114, "top":-114}); </code></pre> <p>Source is from <a href="https://...
javascript jquery
[3, 5]
1,887,761
1,887,762
control duplicate contents in Application_BeginRequest Asp.net
<p>My ASP.net website returns page content with or without a trailing slash on the URLs. I want to resolve this problem in Application_BeginRequest for example : I want to redirect <a href="http://www.portalsaz.com/" rel="nofollow">http://www.portalsaz.com/</a> to <a href="http://www.portalsaz.com" rel="nofollow">http:...
c# asp.net
[0, 9]
2,782,145
2,782,146
working with tabindex and multiple forms
<p>I want to change the order in which certain checkboxes are tabbed to. The problem is, my application can have multiple tabs open, each with the same form. In addition, I have other fields before the checkboxes. How can I change the tab-index of those specific checkboxes without affecting the rest of the inputs in th...
javascript jquery
[3, 5]
4,496,095
4,496,096
pageShow event in javascript
<p>I have a following code:</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;title&gt;&lt;/title&gt; &lt;script src="http://code.jquery.com/jquery-1.4.4.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript"&gt; $( function() ...
javascript jquery
[3, 5]
13,674
13,675
Preview uploaded files (documents & photos
<p>I have a files library that contains documents (pdf, doc, xls) and photos. I need a method to help me preview files before I download them using google docs (for pdf &amp; doc.) and simple integration code for photos.<br> I was using fancybox using this code:<br></p> <pre><code>if ($document-&gt;get_preview() == "d...
php javascript
[2, 3]
3,859,965
3,859,966
How to reduce gap between 2 tables in Javascript
<p>I am using Javascript for my ascx control. I have 2 tables, one below the other. My code written is like </p> <pre><code> &lt;/tr&gt; &lt;/table&gt; &lt;table style="border-spacing: 15px;"&gt; </code></pre> <p>But when i execute, it shows almost 2 inch space between them. Can some help me out?</p> <p>Thank ...
javascript asp.net
[3, 9]
230,576
230,577
Get all checked checkboxes in certain div by click
<p>I have a custom asp.net control which contains some checkBoxes. I know how to get the checkBox, that was clicked</p> <pre><code>$('#customer-category-control input:checkbox').click(function(event) { var el = $(this).attr('name'); }; </code></pre> <p>Suggest me, please, how to get only all checked checkBox...
javascript jquery
[3, 5]
3,397,005
3,397,006
Disable notification after user logout in Android
<p>I am working on an android App similar to Line/Whats app i.e. basically instant messenger. The problem I face is that even after the user logs out, The notifications are still displayed. </p> <p>In other words, there is no way to disable the notifications once the user log outs. Instead, the notification are never ...
java android
[1, 4]
3,117,665
3,117,666
5 star rating with jquery gives an Unexpected string
<pre><code>$('.star').mouseover(function (){ var star = $(this).index()1; $(this).parent().css("background-position","0 -" (32 * star) "px"); }); $('.star-rating').mouseout(function (){ var originalresult = $(this).attr('id').split('result')[1]; $(this).css("background-position","0 -" (32 * originalres...
javascript jquery
[3, 5]
4,457,001
4,457,002
How to get element inside a td using Row index and td index
<p>I have a <code>Row Index</code> and <code>TD index</code> in a table and I want to select <code>input</code> element inside the cell in <code>[Row Index,TD Index]</code> . How I can do this?</p>
javascript jquery
[3, 5]
1,096,928
1,096,929
Create dynamic div with jquery
<p>Im trying to create a button that generates already formated divs everytime it is pushed.<br><br> The divs are composed by forms and their fields should already be filled with data that is stored in variables in javascript.</p> <p>eg.</p> <pre><code>&lt;div id="myDiv_#"&gt; &lt;form id="myForm"&gt; &lt;input type=...
javascript jquery
[3, 5]
5,785,310
5,785,311
The simplest solution to hide calendar on blur or click
<p><a href="http://jsfiddle.net/SXrAb/" rel="nofollow">http://jsfiddle.net/SXrAb/</a></p> <p>Following the jsfiddle link there is a simplified sample of what I need. Currently it shows the calendar on button click, and hides it on input blur.</p> <p>What I cannot implement additionally is hiding calendar on button cl...
javascript jquery
[3, 5]
2,341,111
2,341,112
How do I test for a empty string/null, using JavaScript?
<p>How do I test for a input[text] field that has nothing in?</p> <p>This is what I have so far:</p> <pre><code> if ($('#StartingPrice').length == ""){ alert("ERROR!"); } </code></pre> <p>Any help would be greatly appreciated, Thanks </p>
javascript jquery
[3, 5]
654,925
654,926
ASP.NET - Passing a C# variable to HTML
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1531586/why-works-in-one-situation-but-not-in-another">Why &lt;%= %&gt; works in one situation but not in another</a> </p> </blockquote> <p>I am trying to pass variables declared in C# to html. The variables ha...
c# asp.net
[0, 9]
4,150,151
4,150,152
jQuery - Trying to come up with a good strategy
<p>I have some very old hand coded JavaScript which is not scalable. There are loops and loops inside of each other. So I am trying to figure out how to upgrade it into jQuery.</p> <p>Here is how it works:</p> <ul> <li><p>PHP outputs 2 things - a checkbox and a drop down select box (in some cases 2 drop downs)</p></l...
javascript jquery
[3, 5]
3,506,644
3,506,645
Save stream as image
<p>How to save stream as image and store the image in temp files?</p>
c# asp.net
[0, 9]
4,536,487
4,536,488
jQuery preventDefault function not working on jsfiddle
<p>I cannot get the following simple jQuery to work. I know I am overlooking something, so please help me out. Here is the code at <a href="http://jsfiddle.net/Z5waA/" rel="nofollow">http://jsfiddle.net/Z5waA/</a>. It's a simple click the button, then alert with jQuery.</p>
javascript jquery
[3, 5]
5,747,375
5,747,376
Use an array to search element for data-attribute and hide it
<p>I want to search through a class for elements that have data-id attribute that matches in the array, and hide them.</p> <p>The HTML:</p> <pre><code>&lt;li class="list" data-id="1"&gt;one&lt;/li&gt; &lt;li class="list" data-id="2"&gt;two&lt;/li&gt; &lt;li class="list" data-id="3"&gt;three&lt;/li&gt; &lt;li class="l...
javascript jquery
[3, 5]
627,928
627,929
Pass variable via Javascript
<p>How can I pass a variable (<code>$member_id</code>) to the target php page(Member Profile details Query)?</p> <pre><code>///----- echo '&lt;div id="show_profile_box"&gt;Show Member Profile details //MySQL Query to display member profile details&lt;/div&gt; &lt;div id="display_member_id"&gt;&lt;a h...
php javascript jquery
[2, 3, 5]
741,904
741,905
Get the return confirm popbox value in asp .net C#
<p>How can i get the value that was pressed in the confirm box?</p> <pre><code> &lt;script type = "text/javascript" language = "javascript"&gt; function confirm_proceed() { if (confirm("Are you sure you want to proceed?")==true) return true; else ...
c# javascript asp.net
[0, 3, 9]
1,601,168
1,601,169
How to get a collapsible bottom bar Jquery?
<p>I want to do something like this:</p> <p><a href="http://devheart.org/articles/jquery-collapsible-sidebar-layout/" rel="nofollow">http://devheart.org/articles/jquery-collapsible-sidebar-layout/</a></p> <p>But I would like the separator bar to be vertical such that the sidepanel is on the bottom and content is on t...
javascript jquery
[3, 5]
775,403
775,404
how to show confirmation alert with three buttons 'Yes' 'No' and 'Cancel' as it shows in MS Word
<p>I have showing a confirmation alert box through my javascript as following</p> <pre><code>function checked() { if (hdnval.toLowerCase() != textbox1.toLowerCase()) { var save = window.confirm('valid') if (save == true) { return true; } else { return false; } } } </code></pre> <p>...
javascript asp.net
[3, 9]
3,530,500
3,530,501
JQuery add class on current item
<p>I have this method that changes an larger image source on click. </p> <p>I need to add a 'current' class on the selected. I have no problem adding this class,but I need it to remove the class on the other, previous, selected item.</p> <p>This is the code I'm using at the moment:</p> <pre><code>$(document).ready(f...
javascript jquery
[3, 5]
3,028,970
3,028,971
When you use jQuery .removeClass() does it return an error when run on an element that does not have that class?
<p>I have four html elements that when clicked I want to have a specific class applied to. The problem is that that class is only for one of the four at any one time. I want to when one element is clicked have that class removed from the other three elements and applied to the one that was clicked. If I were to run a l...
javascript jquery
[3, 5]
4,738,282
4,738,283
FindControl in a RoleGroup in a LoginView
<p>I can't seem to find a control in a login view.</p> <p>The aspx is:</p> <pre><code>&lt;asp:LoginView ID="SuperUserLV" runat="server"&gt; &lt;RoleGroups&gt; &lt;asp:RoleGroup Roles="SuperUser"&gt; &lt;ContentTemplate&gt; &lt;asp:CheckBox ID="Active" ...
c# asp.net
[0, 9]
4,960,603
4,960,604
Where is the best place to store user related data in asp.net?
<p>When a customer logs in to my site, I need to know their account id and their menu id. This lets me know what data they can see on a page and what menu they get. I don't want to have to read this data over and over. Should I store this in a session variable or customize the membership user and membership provider...
c# asp.net
[0, 9]
3,161,408
3,161,409
Visual Basic 2010 Login view asp.net
<p>I've recently created an asp.net application with a membership login and registeration using the generic template in Visual Studios 2010. Below is how the template looks like within Visual Studios: <a href="http://www.flickr.com/photos/79954191@N05/7345407648/" rel="nofollow">http://www.flickr.com/photos/79954191@N...
c# asp.net
[0, 9]
937,719
937,720
How to use Rotating Progress Bar?
<p>Hi i'm using Rotating Progress Bar in my Android Music Plyer Application....I'm not able to stop it. While working with horizontal Progress bar i used handler to stop and start it. But while working with Rotating One, The progress bar goes into Infinite Loop.....</p> <p>Can you please suggest method to stop the i...
java android
[1, 4]
344,829
344,830
jQuery Search for Text in a Variable?
<p>I have a variable that contains some text, some html, basically can be a string. I need to search the variable for a specific string to process that variable differently if it is contained. Here is a snippet of what I am trying to do, does not work obviously :)</p> <p><code> $.each(data.results, function(i, res...
javascript jquery
[3, 5]
2,129,225
2,129,226
Get location of java.home in C++
<p>What would be the best way to get the location of java.home in my C++ app? Right now I'm getting it from the registry but am wondering if there's a better/easier/cleaner way.</p> <p>Thanks, Serge</p>
java c++
[1, 6]
400,031
400,032
Understanding javascript variables
<p>I am trying to better understand how variables are stored with JavaScript and jQuery.</p> <p>Using the below code, a separate variable called default_value is created for each .default-value element. Is this correct? Can it only be accessed from within the anonymous function that created it? I've heard the term "...
javascript jquery
[3, 5]
2,865,787
2,865,788
allow user to type in 1 or more quantity using jquery?
<p>I have the following code:</p> <pre><code>quantity = $('div.ProductNameText').text().match(/Exclusive Handmade Box/g).length; if(quantity) { $("#kitProduct #Quantity").attr("value", quantity); } </code></pre> <p>I would like to make it so that the user can enter 1 or MORE. At the moment it forces the quantity ...
javascript jquery
[3, 5]
1,107,015
1,107,016
How to resize div width with window scroll(jquery) - but only 1/3 of the divs width in the css
<p><a href="http://jsfiddle.net/95EtZ/1/" rel="nofollow">http://jsfiddle.net/95EtZ/1/</a></p> <p>There is the problem half solved in action.</p> <p>Right now it's set up with the containers width hardcoded in the javascript.</p> <p>I need the js to grab the width of the container div - resize it with window scroll. ...
javascript jquery
[3, 5]
2,378,812
2,378,813
Problem in assigning js value to php variable
<p>How can i assign a javascript value to a php variable,</p> <p>This is what i want to do:</p> <pre><code>&lt;?php $pag = echo "&lt;script language ='javascript'&gt;var pn = document.getElementById('t').value; document.write(pn); &lt;/script&gt;"; ?&gt; </code></pre> <p>But getti...
php javascript
[2, 3]
395,034
395,035
Get an array of list element contents in jQuery
<p>I have a structure like this:</p> <pre><code>&lt;ul&gt; &lt;li&gt;text1&lt;/li&gt; &lt;li&gt;text2&lt;/li&gt; &lt;li&gt;text3&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>How do I use javascript or jQuery to get the text as an array?</p> <pre><code>['text1', 'text2', 'text3'] </code></pre> <p>My plan after this...
javascript jquery
[3, 5]
2,468,746
2,468,747
Running a custom function - settings.func is not a function
<p>I have written a jQuery plugin which I want to call a custom function on like so...</p> <pre><code>(function($) { $.fn.testPlugin= function(options) { var settings = { func: null }; if (options) { $.extend(settings, options); } settings.func();...
javascript jquery
[3, 5]
348,631
348,632
Where to keep a querystring parameter in session?
<p>Users will get to my site using a specific parameter, e.g. : <a href="http://www.mysite.com/whatever/?keepTrackOfThisValue=foo" rel="nofollow">http://www.mysite.com/whatever/?keepTrackOfThisValue=foo</a> or <a href="http://www.mysite.com/who/cares/?keepTrackOfThisValue=bar" rel="nofollow">http://www.mysite.com/who/c...
c# asp.net
[0, 9]
3,867,464
3,867,465
Adding a default value in dropdownlist after binding with database
<p>I binded my ddl to my database as below, but how can I add a default text on top of the binded values so that it appears as:</p> <pre><code>Select Color ---&gt; default text Red ---&gt; database value Blue ---&gt; database value Green ---&gt; database value </code></pre> <p>Code:</p> <pre><code> DropDownLis...
c# asp.net
[0, 9]
2,515,392
2,515,393
How to get div content which changed by javascript?
<p>I have a div on page, which content will change by javascript, I want get its value from c# code. but, its always returns empty or initial value, not changed value.</p> <p>If I changed from div to hidden, it works well. I don't know why?</p> <p>here is the code:</p> <pre><code> &lt;head runat="server"&gt; &lt...
asp.net javascript
[9, 3]
3,236,148
3,236,149
Omitting special characters from the string using Jquery
<p>I have to implement some type of pixel for analytic and it requires passing a session Id in the url string. My sessionID contains special characters. It looks something like this <strong>BFhGlzT6FBkDr2Zndp0!-1309</strong> I need to remove the (-!) characters from this string, how do I achieve this using jquery? I ne...
javascript jquery
[3, 5]
5,681,709
5,681,710
Returning the gridview to its original vertical location after the rowediting postback
<p>Using a combination of asp.net, jQuery, and c# and stored procedures.</p> <p>I have successfully created a gridview, which I then apply jQuery datatables plugin to provide text column filtering (I disabled most of the other datatables function/settings off)). </p> <p>The Gridview works as expected and when I make ...
c# jquery asp.net
[0, 5, 9]
4,942,531
4,942,532
how to check if a div has a class out of multiple classes in jquery
<p>I have a dynamic div which can generate over 1000 different classes... its a wordpress theme.</p> <p>Now i am wanting to check if a div has one of 52 classes.</p> <p>.bg1, .bg2, .bg3 etc etc...</p> <p>I know that you can use hasClass();</p> <p>But how do I check for each one and then get the value. For instance ...
javascript jquery
[3, 5]
5,699,684
5,699,685
jQuery submit form calls a function with ajax
<pre><code>jQuery(document).ready(function(jQuery) { function checkEmail(email){ jQuery.post('someroute.php', {email:eamil}, function(data){ if(data==error){ return false; ...
javascript jquery
[3, 5]
3,192,133
3,192,134
Disabling/enabling a button based on multiple other controls using Javascript/jQuery
<p>I have a bunch of controls:</p> <p><img src="http://i.stack.imgur.com/p06CK.png" alt="form"></p> <p>When a user clicks the Generate button, a function uses all of the values from the other controls to generate a string which is then put in the Tag text box.</p> <p>All of the other controls can have a value of <co...
javascript jquery
[3, 5]
3,942,972
3,942,973
How to get div content which changed by javascript?
<p>I have a div on page, which content will change by javascript, I want get its value from c# code. but, its always returns empty or initial value, not changed value.</p> <p>If I changed from div to hidden, it works well. I don't know why?</p> <p>here is the code:</p> <pre><code> &lt;head runat="server"&gt; &lt...
asp.net javascript
[9, 3]
117,250
117,251
Infinite Loop? Can't see why
<p>I have a function that takes in a roleID(as an int), and compares it to a multidimensional array to see if that array contains that roleID. if it does, it sets a bool to true and breaks. if it doesn't, the loop never exits. I'm hoping this is something stupid that I'm overlooking, but I've had a few different people...
c# asp.net
[0, 9]
1,591,153
1,591,154
Convert sharepoint list number into a string?
<p>I currently call data from column "Prod" which contains numbers, i then set this a variable to return data in my html table. These numbers have text values (e.g. 1 = cash). How can set these numbers as text strings ?</p>
javascript jquery
[3, 5]
3,038,730
3,038,731
What does this jQuery code mean?
<p>Can anyone explain the meaning of this code?</p> <pre><code>if (data.result) { $('ul#intlist').append(data.content); } </code></pre>
javascript jquery
[3, 5]
1,224,525
1,224,526
ObjectDataSource, CustomValidators and DataBinding
<p>I have an ObjectDataSource that is bound to a GridView. The object accepts a parameter from a TextBox. The problem I have is when I use a CustomerValidator with a ServerValidate event, the ObjectDataSource would still attempt to perform a DataBind despite the fact the the customer validator has returned false.</p> ...
c# asp.net
[0, 9]
5,232,558
5,232,559
Android crash report to my mail
<p>I want to report a log when the application crash. Like that <strong>null pointer exception</strong> ,I want to send this to my server or mail. How can I implement this ?</p> <p>I found something on stack overflow but that asks to user to report something.I want to send report in background.</p>
java android
[1, 4]
1,745,298
1,745,299
Why is my exception handling code not handling exceptions?
<p>I have some C# code that pulls down a remote website using the HttpWebRequest class. I'm handling errors with a try/catch, but some errors (like Webrequest and IOException) don't seem to be getting "caught" with the way I have it setup:</p> <pre><code>try { StartScrap("http://www.domain.com"); } catch (Excepti...
c# asp.net
[0, 9]
2,614,803
2,614,804
Changing Labels Text on MasterPage file
<p>Hi im unable to change the Text properties of my labels that are on the MasterPage and I don't know todo it this is what I've come up with but it doesn't work. It finds the control but doesn't change the text any ideas.</p> <pre><code> MasterPage master = Page.Master; AjaxControlToolkit.ModalPopupExtender po...
c# asp.net
[0, 9]
2,944,063
2,944,064
How to select all rows into table
<p>I have a HTML table with pagination. I use this JavaScript to select all rows into the table: Main checkbox:</p> <pre><code>&lt;h:column id="selection_column"&gt; &lt;f:facet name="header"&gt; &lt;h:selectBooleanCheckbox class="checkall"/&gt; &lt;/f:facet&gt; &lt;/h:column&gt; </code></pre> <p>The...
javascript jquery
[3, 5]
2,780,689
2,780,690
How can I change the text of a <span> element?
<p>I have a toggle button that I'm adding to an iFrame:</p> <pre><code>&lt;script&gt; $('#list div').each(function(){ $(this).append('&lt;span class="togglebutton"&gt;Maximize&lt;/span&gt;'); }); $("span.togglebutton").click(function() { $(this).closest("li").children("div").toggleClass...
javascript jquery
[3, 5]
1,992,639
1,992,640
Why isn't this code jquery working?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1970793/changing-password-field-to-text-with-checkbox-with-jquery">changing password field to text with checkbox with jquery</a> </p> </blockquote> <p>The code is supposed to check if a checkbox is checked, then...
javascript jquery
[3, 5]
5,922,132
5,922,133
some advice on how to write a window.resize function?
<p>Im trying to write a function that resizes the css widths of some elements when the browser window is resized, right now I dont seem to be getting things right and would love it if someone could help me out on where Im going wrong, my code so far is:</p> <pre><code>function windowResize() { $('#content'...
javascript jquery
[3, 5]
5,778,954
5,778,955
Can I convert a php $_POST variable into a jquery variable?
<p>I want to know can I convert a php $_POST variable into a jquery variable. I have php variable below:</p> <pre><code>&lt;?php $postduration = $_POST['durationChosen']; ?&gt; </code></pre> <p>Can I convert the php variable above into a jquery variable?</p> <p>Thanks</p>
php jquery
[2, 5]
107,472
107,473
Android Check If Sim is Locked
<p>I have this running at the moment. It keeps outputting the value 5 which means SIM_READY</p> <pre><code>TelephonyManager telMgr = (TelephonyManager)getSystemService(TELEPHONY_SERVICE); int sim = telMgr.getSimState(); String sim2 = Integer.toString(sim); Log.d("SIM STATE", sim2); </code></pre> <p>I have run this ...
java android
[1, 4]
863,733
863,734
Where are all the standard Android icon resources?
<p>I have just started writing my first ever Java/Android application, so forgive the total n00b question.</p> <p>How do you access the the standard operating system icons such as search icon/menu icon etc? They are not in the res/drawable folder where I would expect to find them. Are they available as part of the SDK...
java android
[1, 4]
1,974,778
1,974,779
How can send all request from client to single process in server.?
<p>I am developing the web site, It consists of device name list and related Build Button. When one click the Build button the one process will run in server. When more than ten user click the Build button more processes will create at that server will hang. How can send all request from client to single process in ser...
c# asp.net
[0, 9]
4,890,313
4,890,314
trigger/mimick click even on DOM ready
<p>I ahve this jQuery that is called on click,</p> <pre><code>$("#overflow-cntr img").click(function(){ $this = $(this); $("#bigpic-cntr canvas").remove(); $("#bigpic-cntr #bigpic").css("display", "block"); window.setTimeout(function(){ EFFECTS[$this.at...
javascript jquery
[3, 5]
4,536,750
4,536,751
Android program stops working after a few uses
<p>I made my first Android Java program, conversion between celsius and fahrenheit. This works good at first, but after a few conversions it won't convert them. If I change the values and press the button, it won't update the fields. </p> <p>Here's the code.</p> <pre><code>package fi.peltoset.mikko.celfahr; import j...
java android
[1, 4]
1,456,808
1,456,809
find matching image on click of part of the image
<p>I am looking for a bestway to find the matching image (out of set of stored images) on click of the part of image.</p> <p>For example if I have image of person holding pen, if I click on pen portion of the image, i should be able to retrieve the pen image from the set of predefined images in this case i should be a...
java javascript jquery
[1, 3, 5]
1,924,799
1,924,800
First char of String, use as a condition... (Java, Android)
<p>So I want to check if the First character of a String is a "!". This works great, but if I use it as a condition it's wrong everytime. Look at my example:</p> <pre><code>next.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { EditText num = (EditText) findViewById(R.id....
java android
[1, 4]
2,293,261
2,293,262
What's the difference between 'mouseup' and 'click' events?
<p>Using jQuery, I often like to use <code>mousedown</code> and <code>mouseup</code> events in conjunction for pushable buttons.</p> <p>However, in every case I've used the <code>mouseup</code> event, binding the <code>click</code> event instead seemed to produce identical results.</p> <p>Is there any substantial dif...
javascript jquery
[3, 5]
773,002
773,003
Check and process the div block after its loading
<p>In my HTML, one div block(whose id looks like kdsm_32532535) is dynamically created after about 15-20 seconds of dom loading. I want to style this block with javascript with below code. </p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ if($("div[id^='kdsm_']").length &gt; 0){ $...
javascript jquery
[3, 5]
1,269,987
1,269,988
How to call a function repeatedly with 5 seconds delay? (ASP.NET with C#)
<p>I have a some piece of code in Default.aspx.cs file which is written within Page_Load function like this:</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { //code stars here ... //code ends here } </code></pre> <p>What i want is that this piece of code will run continously with 5...
c# asp.net
[0, 9]
1,800,045
1,800,046
How to increase the height of combo box in asp.net
<p>I have a drop down list in asp.net. I want to increase its height. please suggest, how to icrease it.</p>
c# asp.net
[0, 9]
3,164,869
3,164,870
How to open a file
<p>In my project I am trying to open a file. I am storing all the path of the file name along with extensions like .exe,.doc,.xml,etc.....in my database. I am fetching that path and trying to open it.In this I like to open it as a popup window to ask like OPEN,SAVE,CANCEL . Can any one help me to solve this problem. He...
c# asp.net
[0, 9]
2,864,110
2,864,111
Why isn't my EventHandler firing? (Asp.Net C#)
<p>I am programatically making some LinkButtons, and they worked fine for a while, but now the events aren't firing and I can't figure out why?</p> <p>This is what makes the button:</p> <pre><code>protected void MakeUploadButton(attachment a, PlaceHolder ph) { LinkButton lb = new LinkButton() { Text =...
c# asp.net
[0, 9]
4,814,888
4,814,889
jquery tabs, onload event on first tab
<p>I'm using JQuery tabs plugin and ajax json mvc to retrieve data inside these tabs. Everything works ok with onclick events but I need to load content inside first tab as soon as page load. Here's the code</p> <pre><code>&lt;script&gt; $(function () { $("#tabs").tabs(); // how to add onload event fo...
javascript jquery
[3, 5]
2,511,597
2,511,598
jQuery Sliding Tabs: control options- NEXT/PREVIOUS
<p>I am trying to control tabs with a next/previous options. This is my <a href="http://jsfiddle.net/kFNtX/1/" rel="nofollow">JSFIDDLE EXAMPLE</a>. I have spent hours researching and found the method NEXT/PREVIOUS function in this <a href="http://css-tricks.com/jquery-ui-tabs-with-nextprevious/" rel="nofollow">WEBSITE<...
javascript jquery
[3, 5]
369,382
369,383
Creating modal window through jquery
<p>I am trying to create a mask (modal) on my whole website and for this i tried :</p> <p><strong>css</strong></p> <pre><code> #mask { position:absolute; z-index:9000; background-color:#000; display:none; } </code></pre> <p><strong>js</strong></p> <pre><code> $('body').append(' &lt;div id="mask"&gt;&lt;/...
javascript jquery
[3, 5]
3,915,553
3,915,554
how to put a Location object in Parcelable
<p>I have a Location object in one of my other Venue object that implements Parcelable. How do I serialize this correctly in my writeToParcel method implementation? So here's some code:</p> <pre><code>public class Venue implements Parcelable{ public String id; public String name; public String address; ...
java android
[1, 4]
4,030,680
4,030,681
Setting Navigation url to hyperlink dynamically
<p>Im trying to set navigation url to a hyperlink which is inside a gridview.</p> <p>Im creating the table inside the gridview using a literal in backend c# code.</p> <p>The code now look like inside GridviewRowDataBound(object sender, GridViewRowEventArgs e)</p> <pre><code>Literal.Text += "&lt;asp:HyperLink ID='hlC...
c# asp.net
[0, 9]
3,649,075
3,649,076
How can I easily manipulate the state of page elements using PHP?
<p>In ASP.NET </p> <ul> <li><p>I can show a hidden panel that contains many controls by using simple command such as:</p> <pre><code>Panel.Visible = CheckBox1.Checked; </code></pre></li> <li><p>I can disable a Button easily:</p> <pre><code>&lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Sub...
php asp.net
[2, 9]
2,574,822
2,574,823
Is it possible to implement html5 <video> tag in asp.net 2010 web page
<p>I tried to implement html5 <code>&lt;video&gt;</code> tag in asp.net 2010 web form (ex: <a href="http://localhost/SampleWebsite/test.aspx" rel="nofollow">http://localhost/SampleWebsite/test.aspx</a>) but its not supporting.</p> <p>I tried in all browsers like IE9, latest Mozilla, Chrome, Opera.</p> <p>Its working ...
c# asp.net
[0, 9]
5,671,500
5,671,501
Using jQuery to replace each ' with &apos
<p>I can't seem to find the correct way to take some html being returned from the server, replace each ' with &amp;apos and finally - append the new html to the DOM.</p> <p>Before the modification, the below works just fine to append the html (not altered)</p> <pre><code>$(xhtml).find("#inner").appendTo("#appendTD");...
javascript jquery
[3, 5]
5,603,178
5,603,179
php file_put_contents can't create files on apache server directory
<p>I have installed apache server on a linux fedora machine and I put the following test.php and test.html on var/www/html but when I open the 127.0.0.1/test.html on firefox the test.php doesn't create the text.txt file, let alone write the string to the file and the there is also no output for "echo $var" </p> <p>the...
php javascript
[2, 3]