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,488,902 | 5,488,903 | add event to Jquery Plugin | <p>I have a JQuery plugin and I want to add some event to it.
Any help, tips, or tutorial?</p>
| javascript jquery | [3, 5] |
2,362,476 | 2,362,477 | Tick check box and enables submit button not working in IE6/7 | <p>I have the following code which is working fine in firefox but ie just doesn't want to know:</p>
<pre><code>$("#termsandconditionscontinue").attr("disabled", "disabled");
$("#agreeTandC").click(function() {
var checked_status = this.checked;
if (checked_status == true) {
... | javascript jquery | [3, 5] |
240,817 | 240,818 | Set focus to end of text in textbox after postback? | <p>I've got a simple ASP.Net form with txtBox and btn.<br>
User click btn, which adds text to an ASP:TextBox in a postback (its adding a known "starter text".<br>
After the postback I'd like the focus to be set to the end of the text in the textbox.</p>
<p>If I call Page.SetFocus(...) or txtBox.Focus() then the txtBox... | javascript asp.net | [3, 9] |
1,621,028 | 1,621,029 | Speed difference between very similar jQuery expressions in IE | <p>In IE, compare the speed of execution of an expression along the lines of</p>
<pre><code>$('div.gallery div.product a");
</code></pre>
<p>to the very similar</p>
<pre><code>$('div.gallery').find("div.product").find("a");
</code></pre>
<p>Sometimes the second variant runs faster, sometimes slower. Often the spee... | javascript jquery | [3, 5] |
1,599,549 | 1,599,550 | enable disable textbox inside a table when checkbox checked | <p>I am using jQuery. How to enable or disable textbox inside a table when checkbox checked.
This is my edit.cshtml.</p>
<pre><code> <table id="scDetails" class="dataTable">
<thead>
<tr>
<th>RItem</th>
<th>ICheck... | javascript jquery | [3, 5] |
5,855,629 | 5,855,630 | Javascript condition assign value to data variable | <p>I am reading some data from the database which are numbers.</p>
<p>What I need to do is to assign a name to each number ... </p>
<p>something like:</p>
<pre><code>get the variable: ... thevar = '1';
If thevar = 1 then myname = 'name1';
else
If thevar = 2 then myname = 'name2';
</code></pre>
<p>How can I do this... | javascript jquery | [3, 5] |
5,099,438 | 5,099,439 | How to place a Required field validator programmatically in a certain place | <p>I have a field validator that is created programmatically, how can i place it in a specific place in my aspx page?, right now it justs puts it next to the field but i want it somewhere else, how can i do this?</p>
| c# asp.net | [0, 9] |
450,291 | 450,292 | Transform a working Java aplication to mobile | <p>I developed a small java application (jar file), nothing fancy except to take some text in some text boxes and some dropdown menus, that translate some other string sequences that is needed for my job.
Works great on the pc.
I never did something similar on a mobile and I wonder if there is a simple way to transfor... | java android | [1, 4] |
919,734 | 919,735 | Cached Jquery selector behavior that I do not understand | <p>Given the following code why am I getting different values for <code>a</code> and <code>b</code>? I would have thought they would return the same thing:</p>
<pre><code>(function() {
var a = $('#foo');
var Test = function(){
console.log(a); //outputs 'jQuery()'
var b = $('#foo');
console.log(b);... | javascript jquery | [3, 5] |
3,915,871 | 3,915,872 | 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><script type="text/javascript">
$(document).ready(function(){
if($("div[id^='kdsm_']").length > 0){
$... | javascript jquery | [3, 5] |
903,278 | 903,279 | C# equivalent to Java resource | <p>Is there an online resource or database that allows looking up the C# equivalent to a Java class and vice versa?</p>
<p>I have been porting code and have been Googling individual classes one at a time; it gets a little tedious. 8^j</p>
<p>Cheers</p>
| c# java | [0, 1] |
5,230,124 | 5,230,125 | How can I get the corresponding table column (td) from a table header (th)? | <p>I want to get the entire column of a table header.</p>
<p>For example, I want to select the table header "Address" to hide the address column, and select the "Phone" header to show the correspondient column.</p>
<pre><code><table>
<thead>
<tr>
<th id="name">Name</th>
... | javascript jquery | [3, 5] |
5,737,308 | 5,737,309 | How to stop users from manually editing file path in HTML file input control? | <p>I have a asp.net form with 5 HTML file input controls with runat=server and a submit button. after user selects the files and clicks the submit button, the files are upload in the server.</p>
<p>Problem is the HTML file input controls are editable, and user can edit the path after he has already selected the file f... | c# javascript asp.net | [0, 3, 9] |
2,308,785 | 2,308,786 | jQuery Toggle Duplication Stops Working | <p>Just setup jQuery Toggle. Here's the function below. it works fine. Basically when you click 'Show More' it shows more content, and the word 'Show More' changes to 'Show Less'.</p>
<pre><code>$('#toggle').toggle(
function() {
$('#content').slideDown();
$(this).html('Show less &ra... | javascript jquery | [3, 5] |
5,981,584 | 5,981,585 | Wrapped context doesn't work properly | <pre><code>var parent = $('<div>parent</div>');
$('div').wrap(parent);
parent.append('<div>appended</div>');
</code></pre>
<p>I am testing it with below html code and append method doesn't work on parent object. Where i am doing mistake ?</p>
<pre><code><div>child</div>
</code></... | javascript jquery | [3, 5] |
4,856,433 | 4,856,434 | jquery animate the page background-color on page load | <p>I'm attempting to just change the background colour of a webpage upon page load. I see no reason why this shouldn't work, "body" is the correct element I wish to manipulate. I am using <a href="http://docs.jquery.com/UI/Effects/animate" rel="nofollow">http://docs.jquery.com/UI/Effects/animate</a> as a reference.</p... | javascript jquery | [3, 5] |
1,859,073 | 1,859,074 | Word searching engine | <p>I work on game in which player gathers word from letters.All i need to do is to check if word exists in language or search in dictionary.Best of what I found is Hunspell but it wont work because I want to search words only in nominative case.Is there some others tool that can help me?</p>
| java android | [1, 4] |
2,046,068 | 2,046,069 | jquery ajax request failing in IE6 | <p>I have got a ajax request working in safari,FF and Chrome but not in IE6.I get the error message and the xhr.statusText is <strong>unknown</strong>.I know I should be ditching IE6 but its in the requirements list so I'm helpless.If anyone has a solution to please lemme know.</p>
<p>Thanks</p>
<pre><code>$.ajax({
... | javascript jquery | [3, 5] |
3,541,396 | 3,541,397 | store id and transfer to another php page | <p>I have a little question.
On my site i use for few jquery functions , they get some data and transfer by GET method to php helper. This is not work when i want to use the data in another php page. For example i have jquery that store id of the anchor:</p>
<pre><code>$("#rightContent .users_list li a").live('click',... | php javascript jquery | [2, 3, 5] |
5,246,980 | 5,246,981 | Pass data using jQuery Trigger event to a Change event handler? | <p>Is there a way to pass data to a "change" event via jQuery's trigger method?</p>
<p>The issue here is that a "click" event triggers the upload menu. Once the image is selected, the "change" event is fired, however. The data I passed into the trigger event's second parameter is passed to the click event, not to the ... | javascript jquery | [3, 5] |
1,443,592 | 1,443,593 | From PHP to Python accommodation | <p>I've been coding php for years, and now i have to finally make my own project, and i want it very optimized and shiny. So, i've been searching around the net about which programming language should i use for my needs (fast, secure, easy-understandable, customizable) and all points to -> Python. So I decided to go on... | php python | [2, 7] |
3,827,417 | 3,827,418 | Error free JQuery/Javascript is not working in Firefox 4 or Chrome | <p>Code: <a href="http://dpaste.org/Oerz/" rel="nofollow">http://dpaste.org/Oerz/</a></p>
<p>The page looks as it should, with the title, 5 paragraphs and buttons all appearing. Each button is supposed to make a small alteration to a specific elements styling. </p>
<p>Currently no action occurs when any of the button... | javascript jquery | [3, 5] |
2,778,964 | 2,778,965 | if jquery doesn't load then load jquery from here | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4523263/load-jquery-from-external-source-if-not-loaded">load jQuery from external source if not loaded</a> </p>
</blockquote>
<p>How can I set up a backup if jquery doesn't load?</p>
<p>I've found and tried thi... | javascript jquery | [3, 5] |
397,178 | 397,179 | Add Html to Text without children element | <p>I am very confused on how to get this work, did a lot of research online to help find a solution to this, but got nothing. Found this link here: <a href="http://viralpatel.net/blogs/jquery-get-text-element-without-child-element/" rel="nofollow">http://viralpatel.net/blogs/jquery-get-text-element-without-child-elemen... | javascript jquery | [3, 5] |
4,320,445 | 4,320,446 | Android ACTION_WEB_SEARCH | <p>I am not able to get the ACTION_WEB_SEARCH to work correctly, does this require any permissions on the AndriodManifest.xml?</p>
<p>This is my code:</p>
<pre><code> String q = edittext.getText().toString();
Intent myIntent = new Intent(Intent.ACTION_WEB_SEARCH, Uri.parse(q));
startActivity(myIntent);
</code></pre... | java android | [1, 4] |
1,633,657 | 1,633,658 | & php post receive problem | <p>my ajax request is</p>
<pre><code>ajaxRequest.send("var1=" + var1.value + "&var2=" + var2.value + "&var3=" + var3.value);
</code></pre>
<p>but the browser sends the request as</p>
<pre><code>var1= hello&amp;var2= world&amp;var3=1
</code></pre>
<p>php side receives the data as a post</p>
<pre><c... | php javascript | [2, 3] |
841,276 | 841,277 | Route url to php file with javascript/jQuery | <p>I have researched this but found luck and my question really is a hope and I'm doubting this is possible. </p>
<p>Can you route URLs to a specific PHP file using JavaScript? Like you would with rewrites in .htaccess. It would be a lot easier for several reasons for me to just link a fake URL to a PHP file with Java... | javascript jquery | [3, 5] |
5,649,590 | 5,649,591 | Issue resetting form with JQuery | <p>I'm having an issue with a form that is built with Ajax. Basically it is one of those forms which populates as you drill down from a parent select. The problem is once you advance forward a page, and go back the first drop down has its option selected, but the others are not processed and therefore just say "Select... | javascript jquery | [3, 5] |
1,607,772 | 1,607,773 | How to blit an ever-varying int array at animation speed to the screen in Android | <p>I have a Java app that depends on <strong>MemoryImageSource</strong> with <strong>Image</strong> to copy the contents of an int array of changing RGBA data to a window at animation speed (~20fps). I'm trying to port this app to Android. What would be the closest equivalent to this in Android's API? If it helps expla... | java android | [1, 4] |
4,540,829 | 4,540,830 | How to clear a input array all elements using jQuery | <p>I have defined my form elements using the html array method like this:</p>
<pre><code><input type="text" maxlength="45" name="Apikey[key]">
<select name="Apikey[developer]">
</code></pre>
<p>How can I clear all Apikey array using jQuery?</p>
<p>The question is how to clear them? All possible forms fie... | javascript jquery | [3, 5] |
2,317,104 | 2,317,105 | jquery using $.on for added dom elements? | <p>I am a bit confused, I have a bunch of elements that get added via jquery using a ajax call and I want to attach a click handler to them (there could be a lot).</p>
<p>But I have no idea how to even begin this, I looked at .on and it is really confusing. I want to attach a click event handler for a certain class so... | javascript jquery | [3, 5] |
5,209,623 | 5,209,624 | how to pass a php var through jquery? | <p>i have this script on <a href="http://jsfiddle.net/patrioticcow/HysJ6/" rel="nofollow">JsFiddle</a> .</p>
<p>when i click on the links i get another view.</p>
<p>What i am trying to do is replace</p>
<pre><code><a id="mine_click" href="#">test</a>
</code></pre>
<p>with:</p>
<pre><code>$test = 'here ... | php javascript jquery | [2, 3, 5] |
1,850,852 | 1,850,853 | I want to supply some pdf documents with my application | <p>After certain research and lookup over the internet I found that I cannot place these files in the assets folders as those files will be private to my application, I want the native pdf application to be invoked on a button press which redirects the user to the particular document. What I am confused about is how do... | java android | [1, 4] |
3,139,581 | 3,139,582 | How can I calculate the width of individual li with varying widths within a ul | <p>Say I have this list below. Each image has a varying width and the a tag has a margin right of 15px which extends the list item a little more to give it some space from the next image.</p>
<pre><code><div id="otherproducts">
<ul>
<li><a href="products/sign-materials/"><img border="... | javascript jquery | [3, 5] |
145,346 | 145,347 | GridView DataFormatString problems. convert Doudle to TimeStamp | <p>Need some help with DataFormatString in GridView. I have a Double value that needs to be shown as TimeSpan. I have tried DataFormatString="{0:HH:mm:ss}". This did not work. </p>
<p>Tested it a bit in C# and there I would do:</p>
<pre><code>TimeSpan.FromHours(16.7358217592592).ToString()
</code></pre>
<p>This give... | c# asp.net | [0, 9] |
2,960,763 | 2,960,764 | Code Crush Android | <p>I want to crush the code of my android app so that it's very hard to refactor it.</p>
<p>Which tool do i use to crush the Javacode?</p>
<p>Thanks and best regards, Till</p>
| java android | [1, 4] |
4,091,870 | 4,091,871 | How to pass values from MapOverlay | <p>I want to pass the values from <em>MapOverlay</em> class to another class. I tried to use an Intent </p>
<pre><code>Intent i = new Intent(getApplicationContext(), AnotherClass.class);
i.putExtra("value1", x1);
i.putExtra("value2", y1);
startActivity(i);
</code></pre>
<p>but Eclipse alerts me "The method getApplica... | java android | [1, 4] |
2,260,556 | 2,260,557 | php post upload multipart/form-data query? | <p>Hi all hope someone can help.Must the file pass through this no matter what? Still stuck on uploading an image from a android phone that does not come out as a application/octet type and as image/jpeg type. Thx</p>
| php android | [2, 4] |
3,939,284 | 3,939,285 | jquery $(this) works once inside same function | <pre><code>$('#test img:first').ready(function() {
var w = $(this).width();
console.log(w);
$('#test img:first').attr('width', 200);
//$(this).attr('width', 200);
});
</code></pre>
<p>width of the element is correct
so as setting width via selector
but </p>
<pre><code>$(this).attr('width',... | javascript jquery | [3, 5] |
2,037,411 | 2,037,412 | Jquery - IE not implemented error (in IE 8) | <p>I am having an IE not implemented JavaScript error and it seems not to have anything to do with what ive been reading on so far on this website. </p>
<p>Im using jquery.simplemodal plugin which works fine in all browsers except IE unless I change the doctype to </p>
<blockquote>
<p><!DOCTYPE HTML PUBLIC "-//... | javascript jquery | [3, 5] |
4,642,865 | 4,642,866 | DataSet table adapter manager help | <p>i have a plain and simple console app where i'm trying to update customers and orders tables and i'm getting an error message:</p>
<pre><code>The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Orders_Customers". The conflict occurred in database "CustomerOrder", table "dbo.Customers", column 'Id'.
... | c# asp.net | [0, 9] |
640,425 | 640,426 | Adding values of multiple text box values | <p>I have multiple text boxes with a class name <code>.paymentamount</code>.i want to add all values of text boxes of the same class but i am getting error nan.Code is this</p>
<pre><code>function paymentData()
{
$('.paymentamount').keyup(function(){
var amountSum=0;
$('.paymentamount').each(functi... | javascript jquery | [3, 5] |
1,711,935 | 1,711,936 | Adding custom setting to PreferenceFragment | <p>I have a <code>PreferenceFragment</code> and I need to put custom preferences in it. Now the problems are not the custom preferences themselves, I already extended some <code>DialogPreference</code>s creating my own preferences and I already dealt with saving/restoring data; the problem is how do I add these custom ... | java android | [1, 4] |
1,550,052 | 1,550,053 | What is the difference between $('#div') and _$('div')? | <p>What is the difference between <code>$</code> and <code>_$</code> in jQuery, and where we should use <code>$</code> and <code>_$</code></p>
<pre><code>_$('Set_txtDateinputBox_From')
$("#Set_drpdnAvailability")
</code></pre>
| javascript jquery | [3, 5] |
2,897,934 | 2,897,935 | Copy to clipboard using jquery for all browsers | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1390953/how-to-select-all-text-in-a-textbox-and-copy-it-to-clipboard-using-javascript-jq">How to select all text in a textbox and copy it to clipboard using JavaScript/jQuery?</a><br>
<a href="http://stackoverflow... | javascript jquery | [3, 5] |
3,268,981 | 3,268,982 | Problem updating android contact picture with ContentResolver.Update() | <p>I am new to android. My requirement is to update contact picture with the selected one. Below is the code I am writing to implement this</p>
<pre><code>byte[] imageBytes = imgContactPhoto.getDrawable().toString().getBytes();
ContentValues values = new ContentValues();
values.put(ContactsContract.Data.R... | java android | [1, 4] |
5,576,086 | 5,576,087 | change EditText to TextView | <p>I want to change the <code>TextView</code> to <code>EditText</code> and the <code>TextView</code> to <code>EditText</code>, therefore I decided to use the <code>ViewSwitcher</code> element on android, I read about it on the <a href="http://developer.android.com/reference/android/widget/ViewSwitcher.html" rel="nofoll... | java android | [1, 4] |
3,308,523 | 3,308,524 | Javascript loop when setinterval is done | <p>Please help me to loop this script when done the interval, when the <code>class="cur"</code> goes to last <code>p span</code> i would like to loop it again. I'm practicing a javascript code and this is what i made.</p>
<pre><code><script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.... | javascript jquery | [3, 5] |
3,653,764 | 3,653,765 | C# Dictionary Performance | <p>I am using a Dictionary to store data, and will be caching it. I would like to avoid server memory issues, and have good performance by limiting the size of the Dictionary<>, either in size or number of entries.<br>
What is the best method of doing this? Is there another class I should be considering other than... | c# asp.net | [0, 9] |
2,253,470 | 2,253,471 | Specified cast is not valid. enum | <p>whats wrong with this code, i try also <code>Enum.Parse</code> but didnt work.</p>
<pre><code>public enum RoleNames
{
Administrator,
[Description("Personnel Security")]
PrsonalSecurity,
}
foreach (RoleNames roleName in arRoles) //<<<error
{
if (IsCurrentUserInRole(roleName)) { return... | c# asp.net | [0, 9] |
4,524,097 | 4,524,098 | jQuery post array | <p>Am wondering how to post an array using $.ajax. My array is something like this:</p>
<pre><code>var a = new Array();
a['test'] = 1;
a['test2'] = 2;
and so on...
</code></pre>
<p>I tried:</p>
<pre><code>$.ajax({
url: baseUrl+"chat.php",
data: { vars: a},
type: 'post',
success: function(data) {
alert(data);... | javascript jquery | [3, 5] |
384,430 | 384,431 | PHP & JQuery Question? | <p>Is there a way to hide a form from my users until they click a link and then the form drops down for the user to fill out, by using PHP or JQuery if so how? Is there a tutorial that will teach me how to do this?</p>
| php jquery | [2, 5] |
894,127 | 894,128 | Reload page with new parameters | <p>I have a popup window and when I click a button it will close that window and reload the parent window with new parameters. For example the url is <code>page.apsx?id=oldparameter</code>, the parent reloaded with new parameter like <code>page.aspx?id=newparameter</code></p>
<p>I have something like: </p>
<pre><cod... | c# javascript asp.net | [0, 3, 9] |
4,338,483 | 4,338,484 | How to modify XML with JQuery | <p>I am trying to modify a status flag in an XML structure using Javascript. Using examples found on the internet I believe this should work: </p>
<pre><code>test = "<?xml version='1.0' encoding='utf-8' standalone='no' ?>" +
"<resultaat>" +
"<type>6</type>" +
"<status>... | javascript jquery | [3, 5] |
1,884,981 | 1,884,982 | Implementing deeplinking with multiple levels | <p>I need to implement deeplinking for my site as it's built heavily in AJAX. I understand the basic idea and have got deeplinking implemented for my top level nav. Problem is my site has multiple levels. A user can click on the top nav, which adds to the hash and then click on a secondary nav and a tertiary nav. I als... | javascript jquery | [3, 5] |
4,989,664 | 4,989,665 | Parsing HTML page in ASP.NET | <p>I'm trying to parse HTML on an external page and read its contents (eg. get "title" element from google.com). XmlDataSource does not appear to be working because it's not clean XML, does anybody know how to do this?</p>
<p>Thank you.</p>
| c# asp.net | [0, 9] |
4,787,991 | 4,787,992 | Loading welcome animation only once jquery/php | <p>In my site i have a welcome animation (created with jquery) which runs when any one opens my website (<strong>www.mysite.com</strong>). Then the same user going to anther page in my site for example <strong>www.mysite.com/about</strong> then click back to home (<strong>www.mysite.com</strong>) the animation again sh... | php jquery | [2, 5] |
5,626,850 | 5,626,851 | $_POST array is empty when POSTing with C# WebRequest | <p>I've been trying to get some client-server interaction happening with JSON, however, the data that I post to the server is not arriving; the <code>$_POST</code> array in my PHP script is empty.</p>
<p>I've just ended up grabbing the WebRequest example straight from <a href="http://msdn.microsoft.com/en-us/library/d... | c# php | [0, 2] |
1,011,672 | 1,011,673 | select all html elements based on rel value | <p>I have some html elements in my code like this</p>
<pre><code><div rel="test1">item1</div>
<div rel="test1">item2</div>
<div rel="test1">item3</div>
<div rel="test2">item4</div>
<div rel="test2">item5</div>
</code></pre>
<p>and I need a way to select all ... | javascript jquery | [3, 5] |
258,714 | 258,715 | Youtube video webview is overlapping on the other layout in android | <p>I have a webview in my application and its working fine, but when there is a youtube video embeded in that url then the webview is overlapping on the other layout and that layout get covered. As far as I did here is the code:</p>
<pre><code>web = (WebView) findViewById(R.id.webview01);
progressBar = (ProgressBar) f... | java android | [1, 4] |
5,251,792 | 5,251,793 | Shell Android App Faster | <p>We have a web based App (html 5) and have created an Android Shell App from it. The Android App seems pretty slow - start-up, navigation, querries, etc. What can be done to improve the latency/performance of this App? Any comments/feedback will be appreciated. Thx</p>
| javascript android | [3, 4] |
576,669 | 576,670 | Nested ListView ItemDataBound | <p>tryin' to render articles with pictures for each article.
Im trying to use 2 nested ListView's and 2 querys in SQL Server 08 which i get in 2 methods from my 2 objectdatasources...</p>
<p>My ListViews look like this: <a href="http://pastebin.com/Lf1Evd1d" rel="nofollow">http://pastebin.com/Lf1Evd1d</a>
and my code-... | c# asp.net | [0, 9] |
5,846,837 | 5,846,838 | jQuery delay/pause an animation | <p>I have the following code to scroll a table's scrollbar</p>
<pre><code>$('.myTable').animate({
scrollTop: myPositon
}, 45000, function() {
});
</code></pre>
<p>Now I have the following event listening for the scroll bar position</p>
<pre><code>$('.myTable').bind('scroll', function() {
//if the scroll bar ... | javascript jquery | [3, 5] |
3,154,205 | 3,154,206 | Highlight similar text using jquery | <p>I have large text containers and i want to compare and highlight them using jquery. The question answered here <a href="http://stackoverflow.com/questions/119441/highlight-a-word-with-jquery">highlight a word with jquery</a> is perfect except it contains repetition of text. Here is an example</p>
<pre><code><div... | javascript jquery | [3, 5] |
2,116,811 | 2,116,812 | How do I set a variable in a function using Javascript or jQuery | <p>I need to move the data out of HTML code and load it on demand.</p>
<p>I need to do something like this:</p>
<pre><code>function processData( data )
{
if ( data.length===0 )
{
data = get data from server using Ajax or even...
data = [['2011-06-01',1],['2011-06-02',3]] ; // just for educa... | javascript jquery | [3, 5] |
503,435 | 503,436 | Access Master page variables in child page in asp.net | <p>Here is my master page file. I need to pAss strName,id,url,startime etc. variables to Child page. I know we can write this logic in our child page also. But, I would like to access this Master Page variable in child page only. Please suggest. I cannot write this logic in each set/get method. While accessing these va... | c# asp.net | [0, 9] |
4,581,021 | 4,581,022 | How to create a list of video files in php? | <p>Am implementing one application that is Fetching video files from server, the list of video files should show in application, when I click that video, the video should play, and how I have to create a php file for that.</p>
| php android | [2, 4] |
3,903,296 | 3,903,297 | Explicit or implicit looping? | <p>Why or when is "explicit" preferred when implicit solutions often are more readable and less code? It says "explicit is better than implicit" when for example an implicit loop is better than an explicit loop isn't it? </p>
<pre><code>for every in all:
every.updated = True
</code></pre>
<p>The above looks implici... | java python | [1, 7] |
3,437,263 | 3,437,264 | onClick and window.location.href using Javascript | <p>I have a form submit based on the URL parameters. Now, before submitting the form, I also wanted to get a choice from the user and using a popup window for that.</p>
<pre><code><input type="image" name="btnAddToCart" src="<?php echo $pd_thumbnail;?>" onClick="popupwindow('include/option.php?pid=<?=$pd_i... | php javascript | [2, 3] |
5,806,236 | 5,806,237 | Dynamically change option values in drop down list | <p>Hi I want to add multiple drop down lists to my html page. Which they are contained same option values. (name,email,state,city,country,phone) condition is when user select "name" in first drop down list it should be disabled in all other drop down list. Assume when user select "email" in second drop down list, both ... | php jquery | [2, 5] |
3,342,376 | 3,342,377 | increment/decrement .data() in jQuery | <p>Dom elements seems a perfect place to attach data that relates to that element, but accessing it is cumbersome code-wise, and probably inefficient too.</p>
<p>Currently I am doing something like this to increment:</p>
<pre><code>$('#the-thing').data({ counter: $('#the-thing').data('counter') + 1 })
</code></pre>
... | javascript jquery | [3, 5] |
1,608,066 | 1,608,067 | jQuery .is(":visible") works in Firefox but not Chrome | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8337186/jquery-isvisible-not-working-in-chrome">jquery .is(“:visible”) not working in Chrome</a> </p>
</blockquote>
<p>I am trying to get all of the visible items in an array. It's working fine in Fi... | javascript jquery | [3, 5] |
3,374,241 | 3,374,242 | Android Improve SQLite Performance Optimise | <p>I have an onCreate that currently opens an sqlite database and reads off 4 values. I then have a conditional and depending on what activity has sent it there it either displays those values or updates two values and then displays the other.</p>
<p>Now if I run this activity without updating the database it is light... | java android | [1, 4] |
3,375,516 | 3,375,517 | How to hide footer if someone checks your site from a link on a specific website | <p>I recently started to develop an interest in freelancing. I just created an account on vWorker, but it seems they do not alow linking to sites that have your personal information.</p>
<p>That means that I can not link to my website portfolio, unless I find a way to hide the footer when someone clicks on the link fr... | php javascript | [2, 3] |
3,588,899 | 3,588,900 | on click disable function, else function works? | <p>I have a jQuery code here: </p>
<pre><code>jQuery(document).ready(function () {
$("td").click(function (e) {
var chk = $(this).closest("tr").find("input:checkbox").get(0);
if (e.target != chk) {
chk.checked = !chk.checked;
}
if ($(this).closest("tr").find("input:che... | javascript jquery | [3, 5] |
666,395 | 666,396 | Adding values to serialised Array Jquery | <p>Im trying to add data to a preserialised array. Its not working. Anyone spot why?</p>
<pre><code>$("#show-friends").live("click", function() {
var friendSelector = $("#jfmfs-container").data('jfmfs');
var sendArr = $(friendSelector).serializeArray();
sendArr.push({ name: "userid", value: "<?php ... | javascript jquery | [3, 5] |
5,864,934 | 5,864,935 | Random string from string array list | <p>I have list of countries in my array, I would like to pick random country from the list (using random probably?), but I haven't found out the answer myself...</p>
<p>This is what I have so far:</p>
<pre><code>String[] list = {"Finland", "Russia", "Latvia", "Lithuania", "Poland"};
Random r = new Random();
</code></... | java android | [1, 4] |
2,993,360 | 2,993,361 | Why does asp.net still have to use js? | <p>I'm a beginner of <code>asp.net</code>, and I learned yesterday that we can use <code>.cs</code> file to handle control event, so do we still need to use <code>js</code>? Can we just use c# to deal with the web controls?</p>
| c# javascript asp.net | [0, 3, 9] |
4,459,023 | 4,459,024 | jquery mouseover | <p>I have a button on my asp.net page and I am using ajax jquery to create a mouseover effect.I want to show alert on mouse over. How can i do this ?</p>
| jquery asp.net | [5, 9] |
3,884,586 | 3,884,587 | IE8 window.opener problems | <p>Having problems with IE8...</p>
<p>I have a button that onclick fires the <code>showImageBrowser()</code> function.</p>
<pre><code>function showImageBrowser(params) {
var open = window.open('http://localhost/admin/browse?'+params,'newwin','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizabl... | javascript jquery | [3, 5] |
1,021,557 | 1,021,558 | How can I set a Global Variable from within a function | <p>How can I set a Global Variable from within a function?</p>
<pre><code>$(document).ready(function() {
var option = '';
$("[name=select_option_selected]").change(function() {
var option = $(this).val();
alert(option); // Example: Foo
});
alert(option); // Need it to alert Foo fro... | javascript jquery | [3, 5] |
942,126 | 942,127 | Help using a few text boxes to display and save data to database | <p>Let's say I have a db table like so:</p>
<pre><code>Notes:
-ID
-Name
</code></pre>
<p>Then I have a product edit form that has 3 textboxes in which the user can save up to 3 different notes for a specific product. What is the best way to handle populating and then saving the data? If I use the code below to disp... | c# asp.net | [0, 9] |
3,548,834 | 3,548,835 | Java code translation of Python array-splitting code | <p>Can someone please give the Java equivalent of the below python (which slices a given array into given parts) which was originally written by ChristopheD here:</p>
<pre><code>def split_list(alist, wanted_parts=1):
length = len(alist)
return [ alist[i*length // wanted_parts: (i+1)*length // wanted_parts]
... | java python | [1, 7] |
497,728 | 497,729 | how to kill the session when user closed the brower without logout | <p>I am developing one aspnet application in that i am using Sessions. if user login into the application and click on logout here i am closing session. </p>
<p>suppose if the user doesn't click on the logout and he close the browser. how to kill the session when user closed the brower without logout</p>
<p>Regards
k... | c# asp.net | [0, 9] |
2,304,408 | 2,304,409 | Jquery open url as a variable and change text | <p>I have this:</p>
<pre><code><fieldset id="social_associations" class="">
<a href="/social/login/twitter">Associate your account to twitter</a>
<br>
<a href="/social/login/facebook">Associate your account to facebook</a>
<br>
</fieldset>
</code></pre>
... | javascript jquery | [3, 5] |
4,239,021 | 4,239,022 | How to find control insdie table which is inside gridivew | <p>I have a tricky question to ask..
I want to get the ID of the <strong>ASP control inside a table and the table is inside a gridview</strong>...
Here's the code to give you a better idea...</p>
<pre><code> <asp:GridView ID="gvTest" runat="server">
<Columns>
<asp:TemplateField&g... | javascript asp.net | [3, 9] |
2,185,895 | 2,185,896 | less than conditional not working for floats | <p>heres my jquery/javascript code:</p>
<pre><code>amount_sale = parseFloat($('#p_sale span').html()).toFixed(2);
amount_cash = parseFloat($('#p_cash span').html()).toFixed(2);
if (amount_cash < amount_sale)
{
alert('Cash amount must be greater than or equal to sale amount');
return;
}
</code></pre>
<p>le... | javascript jquery | [3, 5] |
1,057,943 | 1,057,944 | Putting jQuery/javascript source pages before end of body tag | <p>I've seen in several plugin instructions , paste the javascript/jQuery source just before the end of body tag. I made search why they are saying like that, didn't make me any sense. </p>
<p>If I put the src file where ever in the script, I never faced a problem at all. Could anyone give me a good answer about thi... | javascript jquery | [3, 5] |
4,831,590 | 4,831,591 | Generating event when user clicks in textarea with disabled=true, to tell them they can't modify it | <p>I want to tell the user they can't modify a textarea that's been disabled for update, when they try to click in it. How can I tell them why it is disabled in this case, e.g. with an alert? </p>
<p>The problem is/was, when I give the textarea a disabled attribute, the events for it don't fire off either (at least ... | javascript jquery | [3, 5] |
3,155,340 | 3,155,341 | Usage of setInterval method and asking for jQuery alternate | <p><code>window.setInterval("moveUp(fire,2)","100"); </code></p>
<p>in the code above fire is a object represting a div. I want to pass this object to moveUp method and call this method continuosly.</p>
<p>My problem is window.setInterval does not accepts fire object like this and gives error as fire is not defined. ... | javascript jquery | [3, 5] |
5,137,015 | 5,137,016 | When does javascript called from jquery.ready() run relative to scripts in <head>? | <p>Javascript passed to <a href="http://api.jquery.com/ready/" rel="nofollow">jQuery.ready()</a> will run after the DOM is fully loaded but doesn't wait for all assets such as images to be received (unlike <a href="http://api.jquery.com/load-event/" rel="nofollow">jQuery.load()</a>). Cool. But will javascript placed in... | javascript jquery | [3, 5] |
849,353 | 849,354 | Dynamically created LinkButton posts back but does not call onClick Method | <p>My issue is the page posts back but does not call the method.</p>
<p>Here is where I create the link Buttons inside the RenderProducts method</p>
<pre><code>for (var counter = 1; counter <= numberOfPages; counter++)
{
var pagingLink = new LinkButton
{
... | c# asp.net | [0, 9] |
209,198 | 209,199 | Session Variable problems when storing an object in my Session | <p>I have a log in page where I valid my users and based on this validation I store their user info in a session variable so I can access it at any time. To do this I am trying to store an instance of one of my dbml generated classes "UserInfo". So I populate the class and then store it in a session variable I call "... | c# asp.net | [0, 9] |
2,737,394 | 2,737,395 | How do I protect phone number from bots | <p>I want a phone number which display on public page will be protected. Example converts phone number characters to HTML entities and bots can't grab the number in plain text. Let me know the trick.</p>
| php jquery | [2, 5] |
2,040,188 | 2,040,189 | can this code be re-written to use jquery chaining for setTimeout() | <p>Is it possible to use chaining when using setTimeout(). This example gives a div a red background, then I use setTimeout() to wait a second and make the background back to normal. can it be re-written or improved in any way</p>
<pre><code>$(target).css('background', 'red');
setTimeout(function(){
$(target).css('... | javascript jquery | [3, 5] |
1,830,441 | 1,830,442 | How to call this javascript function from code behind | <p>I'm putting javascript created controls (http://www.dariancabot.com/projects/jgauge_wip/) on my page.</p>
<pre><code><div class="jgauge" ></div>
$(document).ready(function () {
var ctl;
ctl = new jGauge();
ctl.init();
)}
</code></pre>
<p>Let's say I need to pass few parameters to <co... | c# javascript jquery asp.net | [0, 3, 5, 9] |
4,164,352 | 4,164,353 | Why isnt my jquery working when I use external pages | <p>Im using jquery to load in 2 external pages, one called search.php and the other is called info.php. I am displaying them each on a single page called user.php but only when there link has been clicked in the navigation bar. Unfortunately I am currently experiencing a problem, when I use this section of script:</p>
... | javascript jquery | [3, 5] |
766,774 | 766,775 | Android - playing RTSP audio streams using MediaPlayer | <p>I'm trying to creating radio application and one of the radio stations is using rtsp:\ protocol (rtsp:\\addres\file.sdp with mp4a codec). I was trying to play it using <a href="http://developer.android.com/reference/android/media/MediaPlayer.html" rel="nofollow">MediaPlayer</a> but it doesn't want to work. Is it pos... | java android | [1, 4] |
41,692 | 41,693 | creating an options menu with quit application function | <p>I'm writing an application for android and I would like to insert an options menu, that would have only one function and that is to quit an application.</p>
<p>My options_menu.xml looks like this (I created a new folder under res called menu - just like the instructions said):</p>
<pre><code><?xml version="1.0"... | java android | [1, 4] |
2,989,966 | 2,989,967 | error handling full request to the server side of asp.net page | <p>I have asp.net page and js code to download files from the page using window.location and its working but the problem is i want to make error handling from window.location , how to handle the errors from full request to the asp.net page ??</p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.