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 |
|---|---|---|---|---|---|
489,643 | 489,644 | How to stop unloading the page? | <p>I have a page where user needs to enter some data and click save to validate the changes, but my problem is if the user is trying to close the browser window or click on a different link to navigate to a different page..I need to delete all the entries the user has saved so far..
I am doing it the following way</p>
... | javascript jquery | [3, 5] |
4,715,748 | 4,715,749 | Selecting the correct input field using jquery | <p>I'm trying to select the id's of dynamic input fields in my code. When clicking a button, the form will create a form field like this:</p>
<pre><code><td><input type="text" id="field_a_1"></td>
<td><input type="text" id="field_b_1"></td>
<td><input type="text" id="field_... | javascript jquery | [3, 5] |
665,646 | 665,647 | Save WebResponse as txt | <p>I'm looking for a method equivalent to Request.SaveAs in WebResponse. But I can't find it.</p>
<p>I want to store in txt file the headers and the body of a webresponse.</p>
<p>Do you know any technique to achieve it?</p>
| c# asp.net | [0, 9] |
1,297,185 | 1,297,186 | Need to Create Abstract Class for Items | <p>I need to create a class for Items? I planned to create it using Abstract Class. So other classes like Stores, Purchase, BOM can use the Items. I need to create some methods in Abstact class like ItemName, ItemDesc, ItemMake, etc., So that I can use it in any other classes, how to achieve this?</p>
| c# asp.net | [0, 9] |
1,043,142 | 1,043,143 | Exception thrown on assignment of an array to another array | <p>I have a function which fetches a certain website's HTML code. Eventually that function will return the whole page as an array. I am trying to save the page in another array, but it will always throw an exception (ArrayIndexOutOfBoundsException) for some reason.</p>
<p>I am not sure if I am just missing something e... | java android | [1, 4] |
84,709 | 84,710 | JQuery/javascript how do I get the ID of an object? | <pre><code>function cat() {
this.getMyID = function() { alert(this.id); } ;
}
var bob = new cat();
// I want it to say 'bob'
bob.getMyID();
</code></pre>
<p><a href="http://jsfiddle.net/n7eHj/" rel="nofollow">http://jsfiddle.net/n7eHj/</a></p>
<p>alerts undefined, any ideas?</p>
<p>I'll elaborate, this is w... | javascript jquery | [3, 5] |
3,051,462 | 3,051,463 | Is there a shortcut way to refer to elements in my DIV? | <p>I have the following:</p>
<pre><code><div class="modal hide fade" id="adminDialog" style="display: none;">
<div class="modal-header">
<a data-dismiss="modal" class="close">×</a>
<h3 id='dialog-heading'></h3>
</div>
</div>
</code></pre>
<p>I c... | javascript jquery | [3, 5] |
4,239,584 | 4,239,585 | Hide android soft keyboard in browser | <p>I'm building a webapp for ios/android and currently got a problem</p>
<p>My app has a input element and when people focus on it, the soft keyboard show as usual.
But some times I want to hide it by javascript, I tried this:</p>
<pre><code>document.getElementById('oneinput').blur()
</code></pre>
<p>It works fine i... | javascript android | [3, 4] |
5,869,660 | 5,869,661 | jQuery Toggle Divs | <p>I'm having a little problem implementing some jQuery into a page I am doing.</p>
<p>I've got about half way to making it do what I want, but I can't get my head around the last part. Though I've used snippets of jQuery for a while I'm pretty new when it comes to writing my own code.</p>
<p>Basically I want 4 Divs ... | javascript jquery | [3, 5] |
3,317,842 | 3,317,843 | suggest an alternate to getimagesize() in JS or PHP | <p>For reasons unknown to mankind, I have been forbidden to use <code>getimagesize()</code>, is there any better alternate to <code>getimagesize()</code> which can handle timeouts if I open a remote image? I am also looking at JS options</p>
<p>Server guys tell me <code>allow_url_fopen</code> is turned off. I didn't c... | php javascript | [2, 3] |
1,743,906 | 1,743,907 | How to call a function binding it to a jQuery object | <p>Does jQuery provides a API to call functions binding the <code>this</code> variable to the jQuery object? E.g.:</p>
<pre><code>function log() {
console.log(this);
}
$('body').execute(log); // prints the $('body') object in the console
</code></pre>
<p>I know that this could be solved by making the log a plugi... | javascript jquery | [3, 5] |
2,377,513 | 2,377,514 | Arrange images and scale to fit a defined area | <p>I'm looking for a script that will take a bunch of images (of differing widths and heights) and arrange them into a perfect rectangle as shown below;</p>
<p><img src="http://i.stack.imgur.com/tUHzg.gif" alt="enter image description here"></p>
<p>I have been looking at isotope (http://isotope.metafizzy.co/demos/ima... | php javascript jquery | [2, 3, 5] |
2,718,677 | 2,718,678 | Get address of the page from which redirected to new page | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3805438/get-previous-page-url-after-response-redirect">Get previous page URL after Response.Redirect</a> </p>
</blockquote>
<p>Suppose in page 1.aspx, if error occurs, I'm using in catch() block:</p>
<pre><code... | c# asp.net | [0, 9] |
4,663,707 | 4,663,708 | variable assignment inside 'IF' condition | <p>in php, something like this is fine:</p>
<pre><code><?php
if ( !$my_epic_variable = my_epic_function() ){
// my epic function returned false
// my epic variable is false
die( "false" );
}
echo $my_epic_variable;
?>
</code></pre>
<p>I suppose is a shorter way of doing:</p>... | php javascript | [2, 3] |
4,171,249 | 4,171,250 | Javascript keycodes | <p>I am facing is weird problem. I have an input field on my page which gets its feed from a barcode scanner which appends a carriage return at the end (keycode: 13). When I use my scanner on a regular notepad, Once the input prints on screen, the cursor moves to the next line (it gets the carriage return), where as if... | javascript jquery | [3, 5] |
2,226,709 | 2,226,710 | Set VAR on click and alert the value | <p>Why can't I get this to work??</p>
<p>I want to get the index() from the menu, and alert() the value when the hash changes, which it does. </p>
<p>The alert doesn't appear.</p>
<pre><code> $('#menu li a').click(function() {
var index = $(this).parent().index()+1;
});
$(window).bind('hashchan... | javascript jquery | [3, 5] |
4,446,889 | 4,446,890 | How to get the full file path while using FormFile in struts? | <p>Without uploading a xls file I want to read the data from xls file using POI API.For that I need the full file path with file name.IE gives the full file path where as Mozzila does not.Is there any alternate way to get the full file path. Please suggest....</p>
| java javascript | [1, 3] |
3,467,273 | 3,467,274 | Accessing record using a Date | <p>Having a problems accessing a record in a database using date. I'm doing something wrong here cannot remember if you need to have #. What am I missing?</p>
<pre><code>SqlDataReader MyReader;
SqlConnection Conn;
Conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\NoteBook.mdf;Integ... | c# asp.net | [0, 9] |
1,784,317 | 1,784,318 | Constantly Refresh the Page | <p>i need create web chat.
So i need constantly refresh page.</p>
<p>I think use this jQuery function:</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
var sec = setInterval(function()
{
$('#chat').load('chat_r.php?id=' + Math.random());
}, 1000);
});
<... | php jquery | [2, 5] |
3,491,999 | 3,492,000 | Two jquery datepicker instances in one control ASP.NET | <p>I have two text boxes that use the datepicker plugin on the same page.</p>
<p>I use the code below to set attributes for each by using their cssclasses, however the minDate for datepickerLatest does not seem to work on the calendar. It works fine for datepickerEarliest</p>
<pre><code><asp:TextBox runat="server"... | jquery asp.net | [5, 9] |
5,640,313 | 5,640,314 | Accessing a public variable from another class? | <p>The app I'm currently developing has more than one class created, with a corresponding
.xml file for each. My app requires progressing from one screen to the next
after a calculation has been completed.</p>
<p>In one class, I have declared a public double called V, which is the result
of a voltage calculation.</p>
... | java android | [1, 4] |
5,982,112 | 5,982,113 | Set PHP variable value from a Javascript Variable value without refresh | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9789283/how-to-get-javascript-variable-value-in-php">How to get javascript variable value in php</a> </p>
</blockquote>
<p>I am looking for help to set value of a php variable from javascript variable. </p>
<p>... | php javascript jquery | [2, 3, 5] |
1,146,374 | 1,146,375 | ASP.NET 3.5 C#: Best way to create and display dynamic menu with submenus | <p>I usually just create a datatable with one repeater and have all this html in my codebehind. I have not found an easy method for adding a submenu dynamically. Does anyone have a way to do this better?</p>
| c# asp.net | [0, 9] |
183,429 | 183,430 | Access Cookie into sub domains | <p>I want to host multiple sites under one domain. But currently I am working on localhost, so I added these 2 lines to my etc/hosts file:</p>
<pre><code>127.0.0.1 something.com
127.0.0.1 orders.something.com
</code></pre>
<p>There are 2 applications hosted in IIS. One can be browsed using: <code>orders.something.com... | c# asp.net | [0, 9] |
4,330,155 | 4,330,156 | What is the difference between OOP in JS and Java? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/879061/what-are-the-advantages-that-prototype-based-oo-has-over-class-based-oo">What are the advantages that prototype based OO has over class based OO?</a> </p>
</blockquote>
<p>What is the exact difference bet... | java javascript | [1, 3] |
4,281,888 | 4,281,889 | Javascript spinning wait hourglass-type thing | <p>I'd like to indicate to the user of a web app that a long-running task is being performed. Once upon a time, this concept would have been communicated to the user by displaying an hourglass. Nowadays, it seems to be an animated spinning circle. (e.g., when you are loading a new tab in Firefox, or booting in Mac OS ... | javascript jquery | [3, 5] |
1,602,508 | 1,602,509 | window.top === window false condition in IE8 | <p>For some reason, using the</p>
<pre><code>window.top === window
</code></pre>
<p>condition in IE8 always evaluates to false (in other browsers it works fine).
What is the reason for this, and is there any other way for this condition to work cross-browser?</p>
<p>Thanks,</p>
<p>Joel</p>
| javascript jquery | [3, 5] |
3,410,084 | 3,410,085 | Image Reposition Like Facebook Cover In Android | <p>I want to implement image reposition like facebook cover in my android app. Actually I don't have any background to do this. How can I start it?</p>
| java android | [1, 4] |
4,253,760 | 4,253,761 | tab switch in js ,which is faster? | <p>I always romoving 'current' class of all siblings then add 'current' class to my clicked one. I want to know will it be faster only removing 'current' class of which has 'current'.seems to be a simple question, but I really want to know. </p>
<p><img src="http://i.stack.imgur.com/R6vXc.png" alt="enter image descrip... | javascript jquery | [3, 5] |
4,866,634 | 4,866,635 | change toolbarhelper values override in the program | <p>in the following, I can't seem to change the _<em>StartDate</em> and _<em>EndDate</em>. I wanted to show data for only past week but the values are coming from toolbarhelper for past month, how can I over ride these to the past week only?</p>
<pre><code>protected override ObservableCollection<Object> CreateTo... | c# asp.net | [0, 9] |
4,755,637 | 4,755,638 | boolean argument not passing correctly | <p>I'm new to jQuery and im just trying to pass a boolean to a function.Ive tried various amendments but still not working ?</p>
<p>I'm expecting the alert to be fired</p>
<pre><code>isTrue(true);
function isTrue(boolean isNot){
if(isNot){
alert('true');
}
}
</code></pre>
| javascript jquery | [3, 5] |
1,315,718 | 1,315,719 | The status code returned from the server was 413 | <p>Getting this error on pages using https when a event handler is called. e.g selecting a row of data.</p>
<p>the data is in a infragistic webgrid.</p>
<p>Please advise.</p>
| c# asp.net | [0, 9] |
1,707,169 | 1,707,170 | Removing a table row using jquery, fading and changing color slightly | <p>I have a button that when clicked, gets the row in the table that was clicked on.</p>
<p>So I have:</p>
<pre><code>$("#someId").remove();
</code></pre>
<p>I want to highlight the row that is being deleted, and fade it out (it is being deleted).</p>
<p>Is there a way to do this with jQuery? I tried: $("#someId"... | javascript jquery | [3, 5] |
3,297,507 | 3,297,508 | How to add more than one List<String> in Android? | <p>How to assign more than one List in Android?</p>
<pre><code>List<String> inc = dh.selectInct1();
ArrayAdapter<String> inc1 = new ArrayAdapter<String>(this,R.layout.list,R.id.textViewx,inc);
lvinc.setAdapter(inc1);
lvinc.setOnItemClickListener(this);
</code></pre>
<p>Here <code>dh.selectIn... | java android | [1, 4] |
5,052,965 | 5,052,966 | How to add CheckBox, Label and DDL to ASP.NET page programmatically? | <p>I am trying to add a check box, label and DDL to ASP.NET page (aspx) from my back class in C#. I have been using <code>LiteralControl _liText = new LiteralControl();</code> to attach label so that I can show them using <code>this.Controls.Add(_liText);</code>in CreateChildControls() method. </p>
<p>How do I add DD... | c# asp.net | [0, 9] |
2,530,709 | 2,530,710 | Only register a function with an event once? | <p>I have a jQuery plugin that needs to register a click event handler:</p>
<pre><code>$.fn.myPlugin = function (options) {
var settings = {
// snipped
};
$.extend(settings, options || {});
$("body").click(function () {
// Do Something
});
// Rest of the plugin
});
</code></pre>... | javascript jquery | [3, 5] |
4,236,497 | 4,236,498 | pause jQuery function for 5 seconds before script returns true and posts | <p>Im using jQuery to post a form to a database, before posting the HTML form to a remote server via the form action method.</p>
<p>All works fine, but I am trying to build in a message pre-the server POST , so is there a way that just before my jQuery function returns true to get it to pause for 5 seconds and display... | php jquery | [2, 5] |
1,414,158 | 1,414,159 | Generate array in PHP for JavaScript function | <pre><code><script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy"
];
$( "#fna... | php javascript | [2, 3] |
993,875 | 993,876 | jQuery click(function() not working but plain Javascript working just fine | <p>THIS IS THE FULL SCRIPT</p>
<p><a href="http://goo.gl/HoCxk" rel="nofollow">http://goo.gl/HoCxk</a></p>
<p>I have a problem with this function:</p>
<pre><code> $('.message').click(function(){
alert("it works");
var clicked_msg=$(this);
$('#current_message').html(clicked_msg.attr("id"));
});
</code>... | javascript jquery | [3, 5] |
4,171,908 | 4,171,909 | (PHP/JQuery) Populating form with data? | <pre><code>populate_form($array_data)
{
//Format: $array_data['css_selector'] = "value";
$html = "<script>\n$(document).ready(function(){\n";
foreach($array_data as $key => $val)
{
$html .= "$('$key').val('$val');\n";
}
$html .= "});\n</script>";
return $html;
}
</c... | php jquery | [2, 5] |
624,721 | 624,722 | I need to create a project file for an ASP.NET website | <p>I haven't got a solution file for a project that i have been asked to work on. However i have all the other aspx and aspx.cs files in one location on my comp. Is it possible for me to create a solution file or may be create a new website project in visual studio 2008 so i should be able to compile the website in vis... | c# asp.net | [0, 9] |
560,434 | 560,435 | jQuery: How to get the width sum of all previous elements and put it in data attribute | <p>how to get the width of each previous elements and sum them up (after page load)<br><br>
Then put the value in each element data attribute<br><br>
This is the code on jsfiddle <a href="http://jsfiddle.net/jSfKJ/2/" rel="nofollow">http://jsfiddle.net/jSfKJ/2/</a><br><br>
so how to make this code<br></p>
<pre><code>... | javascript jquery | [3, 5] |
846,370 | 846,371 | Triggering click event crashes the browser | <p>Check this link:
<a href="http://jsfiddle.net/ev3FR/1/" rel="nofollow">jsfiddle example</a></p>
<p>When a div is clicked I want the link inside to trigger a click event.
but the console shows that the click event keeps triggering until the browser crashes. Why is this happening? And whats the solution?</p>
<p>The ... | javascript jquery | [3, 5] |
2,821,402 | 2,821,403 | Disabled inputs B&C if not inputA | <p><a href="http://jsfiddle.net/6Pu3E/" rel="nofollow">http://jsfiddle.net/6Pu3E/</a></p>
<p>JS:</p>
<pre><code>$(document).ready(function() {
var block = false;
if $('#password').attr('disabled'); {
block = false;
}else{
block = true;
};
if block {
$('.form_input input').a... | javascript jquery | [3, 5] |
5,509,301 | 5,509,302 | How to test if a jQuery selectors condition is more than 2 times? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4979738/fire-jquery-event-on-div-change">Fire jQuery event on div change</a> </p>
</blockquote>
<p>I'm using this tiny plugin to watch for changes in the html: <a href="https://github.com/jacobrelkin/jquery-watc... | javascript jquery | [3, 5] |
4,516,527 | 4,516,528 | Click on button with PHP or javascript? | <p>I want to run a PHP script on my computer and renew my IP every half hour. I can do this by surfing to <code>http://192.168.1.1/</code> and clicking the disconnect button. (This is probably different for you, it depends on your router I guess)</p>
<p>Now I was thinking to load the website <code>http://192.168.1.1/<... | php javascript | [2, 3] |
3,337,247 | 3,337,248 | specify filetype for FlashGet's download command with JavaScript | <p>Consider a web page with of links to files. <a href="http://www.flashget.com/download.htm" rel="nofollow">FlashGet</a>'s normal operation is by right-clicking, and selecting from the context menu. </p>
<p>I want to make it easy to launch FlashGet, and make a selection of file type to my desired file type without do... | javascript jquery | [3, 5] |
2,543,494 | 2,543,495 | Call Function Upon Document Ready | <p>I need to start polling a URL upon the page loading, to get a JMS response from a credit card server. I put the following together.</p>
<p>It works, but only if I hit the Refresh button on the browser. I want the data from the URL to load automatically when the page is first displayed, without requiring the user... | javascript jquery | [3, 5] |
2,956,724 | 2,956,725 | jquery.val() on the page works, off the page does not? Why? | <p>I had the following: </p>
<pre><code><script type="text/javascript">
var noteid = $('#noteid').val();
</script>
<input type="hidden" name="noteid" id="noteid" value="321">
</code></pre>
<p>This works great... but now I'm trying to move the JavaScript off the page into a linked JS file like so: </... | javascript jquery | [3, 5] |
1,184,891 | 1,184,892 | android tabs are too big | <h2>Rephrasing an old question as suggested by a group of mods.</h2>
<p>Why are android tabs too big ,specially on a device that small?
Eg. <a href="http://developer.android.com/resources/tutorials/views/hello-tabwidget.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-tabwidget.html</... | java android | [1, 4] |
3,387,965 | 3,387,966 | Sync music to Android using a python script | <p>I would like to know if it is possible to connect and sync music to my Android phone using python. I don't want to just transfer the music file to the directory on my SD card but instead be able to view all the current tracks on the phone, delete/add tracks, and if possible create a new playlist. Is there a way this... | android python | [4, 7] |
5,880,113 | 5,880,114 | Add URL variables with Server.Transfer in asp.net | <p>I am currently trying to add a variable to the url using Server.Transfer. I need to use Server.Transfer as I need to keep form post data which is why I can't use Response.Redirect.</p>
<p>I am using <code>Server.Transfer("add_account.aspx?error=userNotFound");</code> but the variable is not being added to the URL. ... | c# asp.net | [0, 9] |
3,684,858 | 3,684,859 | Can I change the way a $.fn. function is declared? | <p>I have the following code:</p>
<pre><code>$.fn.buildTableOfContent = function () {
var h2 = this.find('h2');
if (h2.length > 0) {
</code></pre>
<p>I would like to change it around so it's not declared as a variable:</p>
<pre><code>function $.fn.buildTableOfContent () {
var h2 = this.find('h2');
... | javascript jquery | [3, 5] |
3,627,440 | 3,627,441 | Android device update for G1 | <p>I am using android G1 phone and now i have upgraded my sdk to 1.5 and i want to run my application on device but when i connect my phone to PC i am able to install my app only when i am selecting 1.1 sdk but not when selected 1.5 .So is there any updates required for the device so i can proceed with 1.5 sdk also .i... | java android | [1, 4] |
4,847,229 | 4,847,230 | Image is not loaded in IE and firefox? | <p>I would like to add CAPTCHA source to the div id <code>captchaImage</code>. But it is not working in IE and Firefox, but it is work in Chrome.
Please help me.
Difficulty reading the words? Load another image.</p>
function getNewImage(){document.LogonForm.captcha.value = '';var url = '${startpage.captchaURL}';docume... | javascript jquery | [3, 5] |
5,741,937 | 5,741,938 | Loadind system shared library runtime in Android | <p>I need to write an application, which will be using a shared library. I need that application to be installed on devices with Android 1.6 and above.
I have added the shared library information on the manifest file as follows:</p>
<pre><code><uses-library android:name="com.google.android.maps" android:required="f... | java android | [1, 4] |
3,244,805 | 3,244,806 | How to return workable filepath? | <p>I have an activity that when users press "share" on a file it would open my app and start uploading the file. Now this works perfectly with images because the URI returned is for MediaStore. But I want to be able to return the URI from any source such as from ES File Explorer</p>
<p>Here is the current code:</p>
<... | java android | [1, 4] |
148,484 | 148,485 | Trying to get a jquery script to hide an element when a user clicks outside the scope | <p>I am trying to implement a bit of code that Twitter use to toggle off the drop-down login box when a user clicks outside the scope of the drop-down box itself.</p>
<p>I am having a bit of trouble, currently if I click outside the scope of the element it works as expected but the same thing also happens when I click... | javascript jquery | [3, 5] |
2,546,776 | 2,546,777 | ASP.NET 4.0 Radio button checked changed event fires only once | <p>I have two radio buttons both set as async triggers for an update panel and problem is that first time one is clicked the CheckedChanged event fires but then no matter which radio button is clicked the event never fires again.</p>
<p>Markup:</p>
<pre><code><asp:RadioButton ID="rdoDeliveryBilling" runat="server"... | c# asp.net | [0, 9] |
2,710,694 | 2,710,695 | I have to disable button when page is loading ,,after full loading page i a have to enable using jquery or javascript how to do? | <p>I have to disable button when page is loading ,,after full loading page i a have to enable using jquery or javascript how to do?</p>
| java javascript jquery | [1, 3, 5] |
672,017 | 672,018 | How to check if a function is already defined? | <p>How to check if a function is already defined ?</p>
| javascript jquery | [3, 5] |
3,288,616 | 3,288,617 | jQuery/JavaScript trim HTML that contains white space/empty line | <p>Suppose I have the HTML code as below</p>
<pre><code><table width="600" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff">
<tr>
<td><img src="/images/pho_01.jpg" width="600" height="63" border="none" style="border: 0px;" alt="photo" /></td... | javascript jquery | [3, 5] |
3,877,308 | 3,877,309 | Update Panel + window.open + https | <p>I'am developing with c# and asp.net.</p>
<p>I have some pages with update panels. In this update panels there is a button that redirects to a new window. This is done by calling the window.open with the scriptmanager in code behind. Everything works fine until I don't use https. If I use tunnelling with a router to... | c# javascript asp.net | [0, 3, 9] |
1,727,196 | 1,727,197 | jquery date picker with editable dropdownlist | <p>I was using this solution given here for my editable dropdownlist</p>
<p><a href="http://www.codeproject.com/Articles/290218/Custom-ASP-NET-Editable-DropDownList" rel="nofollow">Editable DropdownList</a> . It works fine. However i added a date field and tried to use the JQUERY UI datepicker. These two does not seem... | jquery asp.net | [5, 9] |
1,837,552 | 1,837,553 | strange issue with jQuery | <p>I have a very strange issue with jQuery.</p>
<p>The problem:</p>
<pre><code>$("#button-prev").attr("disabled", "disabled");
</code></pre>
<p>This doesn't work. If I check with Firebug I see disabled="" as element attribute</p>
<p>But for example this</p>
<pre><code>$("#button-prev").attr("disablea", "disabled")... | javascript jquery | [3, 5] |
379,165 | 379,166 | Access an already loaded user control | <p>I am working an Asp.net project, I am loading two user controls into another ascx control. First, I am loading the <code>control1.ascx</code> and then the control2. After loading both of them inside control2.ascx I want to access a function that reloads some data of control1. I am doing it with the following code: <... | c# asp.net | [0, 9] |
3,083,293 | 3,083,294 | Save the audio file by java applet in to the server side | <p>I developed the program to record audio by java applet, I used the following method to save the file:
public void saveToFile(String name, AudioFileFormat.Type fileType) {</p>
<pre><code> if (audioInputStream == null) {
reportStatus("No loaded audio to save");
return;
} else if (file != null... | java javascript | [1, 3] |
225,029 | 225,030 | Uploading files in dedicated server with asp.net | <p>I upload files and convert it into bytes and saved it in Database. It works correctly in my local system. but I hosted it in dedicated server, it cannot convert path into bytes. It shows an error </p>
<blockquote>
<p>'Could not find a part of the path 'C:\fakepath\1003.pdf'.</p>
</blockquote>
<p>Code:</p>
<pre>... | c# asp.net | [0, 9] |
4,716,489 | 4,716,490 | upload image file without post back in asp.net | <p>Does anybody know how can I upload an image file in a specific folder without post back
using c# .</p>
| c# asp.net | [0, 9] |
1,354,014 | 1,354,015 | Find and get last character of class name | <p>I have html with class that always differs depending on amount of elements inside it(ul>li...)
class name has pattern like <code>sf-single-children-*</code> where <code>*</code> always different depending on li's inside it. How do i get this <code>*</code> with javascript, so i could style depending on this number?<... | javascript jquery | [3, 5] |
4,422,424 | 4,422,425 | Adding jQuery to Master Pages | <p>I have the following jquery in my ASP.NET regular pages</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Color Items</title>
<script src="http://code.jquery.com/jquery-latest.js"
type="text/javascript"></script>
... | asp.net jquery | [9, 5] |
1,160,266 | 1,160,267 | How do you set report name from query string | <p>I am trying to set the report name for a telerik report from the query string.
I am using <a href="/activeReportViewer.aspx?reportname=activecases">Cases</a>
and I want to pass the reportname to the following line of code:</p>
<pre><code>report = new Volunteer.MainApplication.Reports.*reportname*
</code></pre>
<p>... | c# asp.net | [0, 9] |
2,684,611 | 2,684,612 | How to get the full file path | <p>When Im using a file field and browsing an image by its full path
say <code>F:\Images\me.gif</code>.</p>
<p>how can i fetch this full path while submitting the form containing it by using php or javascript?</p>
<p>Thanxx in advance..</p>
| php javascript | [2, 3] |
5,587,765 | 5,587,766 | javascript and php not quite working | <p>You can look at the application here: <a href="http://jsfiddle.net/YYMJS/6/" rel="nofollow">application</a></p>
<p>I know the code doesn't work in jsfiddle but I have included my code in the jsfiddle so that you can see the whole code and the way it is laid out. <a href="http://jsfiddle.net/YYMJS/6/" rel="nofollow... | php javascript | [2, 3] |
980,724 | 980,725 | How to remove grey color line from CANVAS in the jSignature plugin? | <p>How to remove grey color line from CANVAS (Signature panel) in the <code>jSignature plugin</code> ?</p>
<p>Is there any option to validate whether user enter signature or not ? Any built in function for this ?</p>
<p><a href="http://willowsystems.github.com/jSignature/#/demo/" rel="nofollow">http://willowsystems.g... | javascript jquery | [3, 5] |
2,867,366 | 2,867,367 | how can i control jquery validation engine control with multiple buttons? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1602911/jquery-validation-multiple-submit-buttons-on-one-asp-net-form-different-valid">jQuery Validation - Multiple submit buttons on one asp.net form, different validation groups?</a> </p>
</blockquote>
<p>I am... | c# javascript jquery | [0, 3, 5] |
3,512,512 | 3,512,513 | Multiple divs problem when working with Jquery | <p>I am facing a wired problem when using Jquery Dialog. </p>
<pre><code> <div id="divSupplierGrid" style="display: none">
<uc2:SupplierGrid ID="Tab1UCSupplierGrid" runat="server" />
</div>
<div id="divCreateInqGeneral" style="display: none">
<uc1:CreateInqGeneral ID="Tab1UCCr... | javascript jquery asp.net | [3, 5, 9] |
2,765,018 | 2,765,019 | get web page height through jquery | <p>How can I get the height of viewable web page of browser with jquery? I have tried $(window).height() but it did not return accurate result.. Thanks..</p>
| javascript jquery | [3, 5] |
5,407,623 | 5,407,624 | write text to image | <p>I have uploaded an image, now i want to write text dynamically anywhere on the uploaded image.
I want that user should himself choose whre to write on the image and then save image with text written on it.</p>
| php javascript | [2, 3] |
1,296,071 | 1,296,072 | Search content and creating custom selector filters | <p>I want ckack in table if there are row similar (in column "title 1" and "title 3") get this second row ("tr") <code>background-color: red;</code>.</p>
<p><img src="http://i.stack.imgur.com/qKJay.jpg" alt="enter image description here"></p>
<p>In the this table both rows in column "title 1" and "title 3" have simil... | javascript jquery | [3, 5] |
3,643,114 | 3,643,115 | Inverted comma - php to javascript | <p>Consider this line of JavaScript</p>
<pre><code>str += "onclick=runTest(" + field + "," + atom[0] + ",'" + atom[1] + "');
</code></pre>
<p>In the browser, it renders as:</p>
<pre><code>onclick="runTest(104,213,'Orsan" Miller');
</code></pre>
<p>There is an inverted comma between Orsan and Miller although in fa... | php javascript | [2, 3] |
1,015,062 | 1,015,063 | Strange bug with tabbed content box, prevent click and multiple instances | <p>I have a page which is going to have multiple tabbed content boxes on but I cant seem to get my box working when theres more than one, Also i need to disable the "A" tag with the class disable on only for some reason everything Ive tried I cant seem to prevent the event! </p>
<p>Ive made a fiddle if anyone can help... | javascript jquery | [3, 5] |
5,096,230 | 5,096,231 | Re-Building Each Tier | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4518692/asp-net-project-dependency-issue-building-each-tier-seperately">Asp.net project dependency issue (Building each tier seperately)</a> </p>
</blockquote>
<p>Project1 = Asp.net pages project (presentation L... | c# asp.net | [0, 9] |
846,650 | 846,651 | Kill one thread in sleep mode in android | <p>I have an android application, that have one thread, which will run after each 1 minute.
So my problem is, when i click one button, i have to reset the app, that means, it'll be
a fresh app.
So now when i clicked on that button, all the database and shared preference will clear.
But the thread will start again.</p>
... | java android | [1, 4] |
2,954,321 | 2,954,322 | Need to show MODALPOPUP Extender while clickig on Link button | <p>Need to show MODALPOPUP Extender while clickig on Link button and in modal pop up extender we need to get send an email to the required mail ID holder.</p>
<p>Is there any specifications and functionality to use in ASP.NET with C#.Please suggest me the best.</p>
<p>Thanks in advance</p>
| c# javascript asp.net | [0, 3, 9] |
2,955,942 | 2,955,943 | keep content stay on tab1 after filling in tab2 | <p>Seen from the attached image, the page has a tab menu. After filling in the information on the tab 1, then going to fill in tab 2. After completing to fill tab2, the content is lost on the tab1, because page refreshed after fill in tab2</p>
<p>My question is how to keep content stay on tab1 after filling in tab2?</... | php javascript jquery | [2, 3, 5] |
5,694,767 | 5,694,768 | Display a string for each day of the year | <p>I want to play around with making an Android app that displays a famous quote of the day. So I will have 365 quotes and each day will display a new one. Any thoughts on how to accomplish this? Do I need 365 @strings in my <code>string.xml</code> file? Is there a way to access an array of strings (or another data st... | java android | [1, 4] |
2,721,451 | 2,721,452 | ASP.NET Getting a blank page after submitting a form (beginner) | <p>I am trying to make some game, I'm not going to explain what is it because it's not really important, anyway, the problem is the following form: </p>
<p><a href="http://pastebin.com/8XwdDFWY" rel="nofollow">http://pastebin.com/8XwdDFWY</a></p>
<p>after submitting that form I'm getting a blank page.</p>
<p>Here's ... | c# asp.net | [0, 9] |
85,581 | 85,582 | order of javascript events? | <p>I have a "a.adress" element in a div. on blur, the div dissapears. Whenever I click the a.adress element, I want the value of the a element to populate a field.(the same that gets blurred.</p>
<p>This is what I expected to work:</p>
<pre><code>$('.field').blur(function() {
$("a.adress").click(function() {
ev... | javascript jquery | [3, 5] |
3,477,271 | 3,477,272 | Type into a field, and use jQuery/JS to display this value lower on the page | <p>I have a simple task which I'm failing at.</p>
<p>I want to take this field:</p>
<pre><code><input id="amount" name="amount" value="{$formRefill.amount}" class="textInput auto required validateNumber" type="text">
</code></pre>
<p>And once the user has typed a value in there (i.e. <code>950.50</code>), and ... | javascript jquery | [3, 5] |
3,191,673 | 3,191,674 | Multiple Fields Handling in Database | <p>I Have a JobApplication Form which sends Data to multiple Tables on a Button Click.
Inside this i have Eduation Fields, Education1, Education 2,...</p>
<p>when user clicks on Add more Education, Div 2 Adds in the form </p>
<p>I am confused how to handle, when user click Add more. How can i catch that event and sub... | c# asp.net | [0, 9] |
3,396,708 | 3,396,709 | jQuery $.toJSON not letting me post? | <p>I have the following</p>
<pre><code> var storage = [], obj;
$('form input[type=hidden]').each(function(){
obj = {};
obj[this.name] = this.value;
obj["spot"] = this.className
storage.push(obj);
});
storage = $.toJSON(storage);
console.log(storage);
$.post('sto... | php jquery | [2, 5] |
899,601 | 899,602 | How to get year, month and day from different timezone? | <p>I am now in Hong Kong. How can I get the year, month and day from USA??<br>
I have tried: </p>
<pre><code>Calendar calendar = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy hh:mm:ss z");
sdf.setTimeZone(TimeZone.getTimeZone("America/Los_Angeles"));
sdf.format(calendar.getTime());
... | java android | [1, 4] |
6,023,573 | 6,023,574 | make value of a function global to be called in any other function | <p>hello i want to pass the value of a function to any other function or make the value of a function global so that it can be called in any other function . but i dnt knw how to do it , tried some codes still no sucess . </p>
<p>here is the function code </p>
<pre><code>function newalbum(val1,loginuser)
{
$.ajax({
... | javascript jquery | [3, 5] |
3,943,744 | 3,943,745 | Retrieve the Original (Client) Url Without the Default Document | <p>I'm trying to obtain the actual client requested URL. The standard <code>Request.Url</code> object contains the response URL. These can be different if the original request did not contain a default document.</p>
<p>Original Request: <a href="http://my.server.com/folder/" rel="nofollow">http://my.server.com/folder/... | c# asp.net | [0, 9] |
1,881,556 | 1,881,557 | jquery, TypeError: $(selector) is null, problem? | <p>i have a web page that redirects to another page on click.
on the second page i have this:</p>
<pre><code><?php if(isset($_POST['tab1'])) { ?>
<script>$('#home').trigger('click'); </script>
<?php }?>
</code></pre>
<p>the <code>$_POST</code> comes back ok, only i get this error in the... | php jquery | [2, 5] |
4,370,980 | 4,370,981 | please explain this jQuery statement | <p>What is this doing exactly?</p>
<pre><code>this.$blah = jQuery("<div id=blahblah1></div>");
</code></pre>
| javascript jquery | [3, 5] |
201,344 | 201,345 | Creating dynamic hyperlink in asp.net using c# | <p>In my application I have DataSet containing name and Id of user and I want to create a dynamic hyperlink of the all the user name. Please anyone tell me how to create dynamic hyperlink using C#.</p>
| c# asp.net | [0, 9] |
1,938,818 | 1,938,819 | How can I preselect a radio button using javascript or jquery? | <p>I know this is probably easy, but I just can't figure it out.</p>
<p>I am working with a SAAS shopping cart solution so I can't adjust the form code or use PHP, so I need to use javascript or jquery. </p>
<p>In this cart, I have a form.... </p>
<pre><code><form method="post" action="cart.php" id="productDeta... | javascript jquery | [3, 5] |
5,954,397 | 5,954,398 | jQuery: Selecting an element in inside an already selected element | <p>For example:</p>
<pre><code>$("table tr").click( function(event)
{
//Say, here i want get the data of td element where its class name="special"
});
</code></pre>
<p>Is there any way I can select a element while in the click event, a element under the attached element above ( $("table tr") )?</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.