Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
2,392,910 | 2,392,911 | Access web.config key from codebehind | <p>I have a key in the web.config file like:</p>
<pre><code><add key="MailFrom" value="my@email.com"/>
</code></pre>
<p>I need to access it in the code behind.How to do this in c#?</p>
| c# asp.net | [0, 9] |
2,393,621 | 2,393,622 | How to make a protection of many times pressing the button? | <p>In my app I use a camera, and I want to take a pictures. In my app is button (Photo). If I press it one times - all work perfect, but if I press button many times until camera take picture, my app hangs. How can I fix it?</p>
| java android | [1, 4] |
5,512,865 | 5,512,866 | ByteBuffer allocateDirect taking a really long time | <p>I'm using float buffers as direct byte buffers as required for opengl drawing in Android. The problem that is that upon creating the byte buffer, the GC goes crazy---as in 30s+ crazy. I'm creating a mesh of 40x40 vertices, or 1600 vertices, or 4800 floats. As per the profiler, the culprit that calls the GC is ByteBu... | java android | [1, 4] |
1,779,245 | 1,779,246 | Show first and last page only when there is more than one page number using jquery or javascript? | <p>I have two buttons like this:</p>
<pre><code> <button class="next_prev" onclick="" id="first_buttons" disabled>{{ pages.first }}</button>
<button class="next_prev" onclick="" id="last_buttons" disabled>{{ pages.last }}</button>
</code></pre>
<p>If there is only one page by default the page ... | javascript jquery | [3, 5] |
463,751 | 463,752 | When form submission not accepted, dependent selector is messed up | <p>I have a page with a selector/drop-down menu that's dependent on another selector. In other words</p>
<p>-there is selector 1, which contains some number of categories, and selector 2, which contains some number of subcategories for each category in selector 1. </p>
<p>-when the page loads, selector 1 has its full... | javascript jquery | [3, 5] |
4,640,243 | 4,640,244 | Turn Divs Off or On | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/14107856/switch-divs-off-on">Switch divs off/on</a> </p>
</blockquote>
<p>Firstly, I realize that I have previously asked this question but I did not find a good response, so I am trying for a second time lucky!... | javascript jquery | [3, 5] |
5,147,365 | 5,147,366 | I have a 3rd party digital signature Java applet that is having issue on "some" client computers, I know how to verify the version but . | <p>I wish I had more specifics, I don't have browser or java versions of the client computers having issues. As it stands right now I have a java applet that just checks the version if the client clicks it. Is there a way to check version before the page loads? I'd rather be proactive than reactive on the page. I've ch... | java javascript | [1, 3] |
1,163,915 | 1,163,916 | How to put php inside javascript? | <p>How to put php inside javascript?</p>
<p><strong>I try (but its not working):</strong></p>
<pre><code><?php
$htmlString= 'testing';
?>
<html>
<body>
<script type="text/javascript">
var htmlString=<?php echo $htmlString; ?>;
alert(htmlString);
</script>... | php javascript | [2, 3] |
2,044,024 | 2,044,025 | Adding "pause" to the Image Slider | <p>Best way to add pause button in this jQuery image slider? I want to add Pause on clicking the orange square shapes button which is working as a timer in my image slider.</p>
<p>Here is the link with what I tried. </p>
<p><a href="http://jsfiddle.net/QNZDX/4/" rel="nofollow">http://jsfiddle.net/QNZDX/4/</a> </p>
<... | javascript jquery | [3, 5] |
5,580,630 | 5,580,631 | Close popup (div) jquery | <p>I have a div which appears when a textbox gets focus. DIV has <em>n</em> number of textboxes. I want to say display:none when a user Clicks anywhere in the window. Div should not close if the user is switching between textboxes. </p>
<p>All these jquery plugins, say the calendar control closes if user clicks outsid... | c# jquery | [0, 5] |
5,790,006 | 5,790,007 | Preventing users from editing hidden form fields | <p>I currently have a set of hidden input, the values are altered with jQuery.</p>
<pre><code>echo "<input type='hidden' id='stack-information-1' value='$clickedtitle' readonly />
<input type='hidden' id='stack-information-2' value='$guidelinename' readonly />
<input type='hidden' id='stack-information-... | php jquery | [2, 5] |
1,316,014 | 1,316,015 | How to hide a text after 5 sec using jQuery? | <p>How can I hide the #results after 5 secs ? I tried this but it does not work.</p>
<pre><code>$('#results').hide().html(data).fadeIn('slow').delay(5000).hide();
</code></pre>
<p>What I had is this one</p>
<pre><code>$('#results').hide().html(data).fadeIn('slow');
</code></pre>
| javascript jquery | [3, 5] |
1,614,780 | 1,614,781 | Why doesn't .slideDown( ) work with this If/Else statement? | <p><a href="http://jsfiddle.net/4SbXV/" rel="nofollow">http://jsfiddle.net/4SbXV/</a></p>
<p>It worked fine before adding the if/else statement so I'm a little confused on what happen. I'm just trying to get it to just fade out and fade in the new content when it is clicked if the #projectpanel is displayed.. any ide... | javascript jquery | [3, 5] |
5,147,430 | 5,147,431 | How to know whether checkbox is checked or not, jquery? | <p>Is there any better way to do this :</p>
<pre><code>var IsC = $('input[type=checkbox]').attr("checked") == "checked" ? true : false;
</code></pre>
<p>?</p>
| javascript jquery | [3, 5] |
654,084 | 654,085 | Disable notification of incoming/outgoing SMS in android | <p>Is it possible to disable SMS received and send notification in status bar ??
What is the procedure to do this ?</p>
| java android | [1, 4] |
6,000,649 | 6,000,650 | $("#submit").click not working :/ | <p>I've tried everything I can think of to get this "send" button to work, but I'm not very good at javascript :(</p>
<p><a href="http://www.kimscakes.biz/contactme.php" rel="nofollow">http://www.kimscakes.biz/contactme.php</a></p>
<p>Prehaps someone here can tell me where i'm going wrong?</p>
<p>Many thanks</p>
<p... | javascript jquery | [3, 5] |
5,916,769 | 5,916,770 | Displaying Parent/Children name with indent | <p>i have an object that have parent/children relationship.</p>
<p>below is shorter version of what i have but the below is the core props</p>
<pre><code>public class Company
{
Name {get;set;}
List<Company> ChildCompany {get;set;}
}
</code></pre>
<p>displaying something like this:</p>
<pre><code>-----ABC... | c# asp.net | [0, 9] |
4,227,964 | 4,227,965 | Creating a new DOM Element with multiple elements inside and attach to the DOM | <p>Given this element:</p>
<pre><code><div class="box" id="trololo">
<h2 class="header gradient-red"></h2>
<div class="body">
<div class="queue">
<ul class="queue-list">
</ul>
</div>
<div class="ti... | javascript jquery | [3, 5] |
873,997 | 873,998 | add pages to masterpage gives me javascript error | <p>i have a page which uses some javascript code to run,it was working fine until i added it to master page, on adding it to master page it gives me an error from javascript</p>
<pre><code>var fu1 = document.getElementById("FileUpload1");
var ex1 = extension(fu1.value) ; object expected in fu1.value
</code></pre>
<p... | asp.net javascript | [9, 3] |
4,738,348 | 4,738,349 | How to use jquery bubble popup for more than one content | <p>Hello i need to load an image from an database and the popup should be there when i keep the mouse over the images...i used <a href="http://www.vegabit.com/jquery_bubble_popup/" rel="nofollow">http://www.vegabit.com/jquery_bubble_popup/</a></p>
<pre><code>$(document).ready(function() {
$('#dummy1').SetBubblePop... | php jquery | [2, 5] |
1,539,715 | 1,539,716 | Changes in ASP.NET from version 2.0 to 4.0? | <p>I wish to learn ASP.NET and found some good videos about it. But the thing is that they are for version 2.0 of the .Net Framework. Has ASP.NET changed drastically from version 2.0 till 4.0?</p>
| c# asp.net | [0, 9] |
2,358,791 | 2,358,792 | what is the alternative class for AudioInputStream in java (Android)? | <p>About a year ago I started to built an application for android.
Now when I try to run it I get an exception about AudioInputStream class, After a short research that I did using GOOGLE I found out that android doesn't support this class anymore...
Is their any alternative for it?</p>
<p>This is the code that I wrot... | java android | [1, 4] |
4,435,007 | 4,435,008 | Ajax syntax : Uncaught SyntaxError: Unexpected identifier | <p>I am getting this Uncaught SyntaxError: Unexpected identifier error , Why ?
I think i have used the syntax properly ?</p>
<pre><code>$.ajax({
url: "loadcontent1.php",
data: {
lastid: '$(".postitem").size()',
location: '$("#location").val()',
rstatus: '$("#rstatus").val()',
ge... | javascript jquery | [3, 5] |
5,727,898 | 5,727,899 | Programmatically close aspx page from code behind | <p>What is the best way to close aspx page from the code behind? </p>
<p>I have an button eventhandler that I want to close the page after the user has clicked an ASP.NET button on the page. I have tried to programmatically add a javascript method that contains a window.close() command to the OnClientClick event to ... | c# asp.net | [0, 9] |
2,301,200 | 2,301,201 | how to make an checkboxlist select only two item? | <p>i have more than two checkboxlist. i want to limit users to select only 2 items for each checkboxlist.</p>
<pre><code> <asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem Value="Item 1">Item 1</asp:ListItem>
<asp:ListItem Value="Item 2">Item 2</asp:ListIt... | javascript jquery asp.net | [3, 5, 9] |
3,562,712 | 3,562,713 | How to pass all requests to handler using Visual Studio Development server? | <p>I've got an empty ASP.NET project with single HttpHandler, saved in Index.ashx. I want all requests to go through this, </p>
<pre><code>public void ProcessRequest(HttpContext context)
</code></pre>
<p>I've modified my project project properties so that it loads that handler by default. However, if I type a differ... | c# asp.net | [0, 9] |
1,603,887 | 1,603,888 | Which JavaScript framework does Visual Studio natively support? | <p>Is it jQuery? Is there a way to integrate support for the excellent ExtJS or YUI libraries?</p>
<p>Any news on whether Visual Studio 2010 will support another JS framework?</p>
| asp.net javascript | [9, 3] |
2,117,451 | 2,117,452 | jquery - Block specific links before a page fully loads and binds click events | <p>I have a modal dialog plugin written in jquery, that binds to the click event of all of the <a> elements with a specific class.</p>
<p>The modal dialog 'fetches' a page via AJAX, which is declared under the 'href' parameter of the <a> element.</p>
<p>Everything works fine, but - when a user clicks the... | javascript jquery | [3, 5] |
5,498,610 | 5,498,611 | Array and for loop will not work with current setup where EditTexts are being defined | <p>I am trying to shorten my code by using a for loop and an array to define my declared edit texts but it won't work.</p>
<pre><code> final String[] names = new String[]{"ivTextView", "degreeTextView", "initialYTextView", "initialXTextView", "timeTextView", "distanceTextView", "peakTextView"};
int[] ids = new int[... | java android | [1, 4] |
746,377 | 746,378 | best way to check if 3 textboxes are empty | <p>I have 3 textboxes and I want to check if put together they all add up to greater than blank.
What's the best way to accomplish that?</p>
<pre><code> <asp:TextBox ID="tbDate" runat="server"></asp:TextBox>
<asp:TextBox ID="tbHour" runat="server"></asp:TextBox>
<asp:TextBox ID="t... | javascript asp.net | [3, 9] |
4,629,682 | 4,629,683 | Passing data between PHP webpages from a dynamically generated list | <p>I have a PHP code which generates a dynamic list inside a form like the following, note that the list is built dynamically from database:</p>
<pre><code>echo '<form name="List" action="checkList.php" method="post">';
while($rows=mysqli_fetch_array($sql))
{
echo "<input type='password' name='code' id='code'... | php javascript jquery | [2, 3, 5] |
3,229,949 | 3,229,950 | Combobox event is not geting invoked | <p>On click of a button a Combo Box gets displayed and on select of a Combo Box .
The change event is not getting called .</p>
<p>Please let me know where i am making the mistake .</p>
<pre><code><html>
<head>
<script src="jquery17.js" type="text/javascript"></script>
<script>
$("selec... | javascript jquery | [3, 5] |
3,408,657 | 3,408,658 | DetailsView how to save a field in underlying data | <p>I have a DetailsView which I use to edit some Fields.
In my code belove I try to
- Find the TextBox where User has left inout
- Sanitize using my own class the data inserted
Till now all is working just fine.</p>
<p>My questions is how to SAVE this data in the underlying Data Source using DetailsView?
Thanks for no... | c# asp.net | [0, 9] |
885,712 | 885,713 | Replicating functionality of stackoverflow's tag system | <p>On stackoverflow, while in the Tag-inputbox if you hold the left key button, it will go all the way to the left and open every tag for editing, same goes for the right key, and the backspace.
<br>I am trying to replicate the same functionality on mine.</p>
<p>I have the following code: <a href="http://jsfiddle.net/... | javascript jquery | [3, 5] |
2,583,353 | 2,583,354 | jQuery - Building object arrays with html5 data attribute selection | <p>I'm using HTML 5 data attributes to key rows of data in a table. I need to iterate the rows and gather the data into an object collection. I created a class to represent my row data:</p>
<pre><code>function SomeItem(description, finalPrice, percentDiscount) {
this.Description = description;
this.FinalPric... | javascript jquery | [3, 5] |
5,336,807 | 5,336,808 | How to share variables between classes in javascript | <p>I am expanding my JS knowledge by building custom libraries on-top of jQuery/JS and the classes have to interact between each other. I am coming from PHP, so there I could use static variables, but have no idea in JS. Here is an example of what I want:</p>
<pre><code>var A = function() {
this.myPublicVar = "thi... | javascript jquery | [3, 5] |
677,884 | 677,885 | Local jQuery.js file not working | <p>I had downloaded jQuery.js file from jQuery.com .I have saved this file in 3 places, including JRE/Lib and desktop (where my HTML file which calls it is), to be sure that the jQuery.js file is found. I reference this js file as :</p>
<pre><code><head>
<script type="text/javascript" src="jquery.js"&... | javascript jquery | [3, 5] |
3,975,123 | 3,975,124 | javascript formatting opinion: ' vs " | <p>In looking up jquery examples, I see that authors tend to go with ' or " to enclose, selectors, for example.</p>
<p>As in:</p>
<p>$('#tags').click ...</p>
<p>or </p>
<p>$("#tags").click</p>
<p>Is this a personal style thing, or is there a reason why one is better than the other?</p>
<p>In my brief experience, ... | javascript jquery | [3, 5] |
5,172,599 | 5,172,600 | Not closing cursor or database object? | <p>I get this error after going to this activity, starting a new one, coming back. It doesn't happen when I first load the activity. functionally everything works... but I still get this error.</p>
<blockquote>
<p>ERROR/Cursor(1059): Finalizing a
Cursor that has not been deactivated
or closed. database =
/data... | java android | [1, 4] |
4,645,829 | 4,645,830 | Resize external javascript | <p>Can the <code>div</code> added by the below external javascript be resized?</p>
<p>Below I have attempted to wrap it in a div and set the width on the div, but it is not resizing.</p>
<pre><code><div width = "100"><script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/23232.js"&... | javascript jquery | [3, 5] |
4,227,088 | 4,227,089 | DOM insertion into source | <p>Im trying to insert data into the DOM with:</p>
<pre><code>$("#item_384_week_49").append("test");
<td id="item_384_week_49"></td>
</code></pre>
<p>Works great, but the data is only displayed not inserted into the DOM.</p>
<p>Is there a way to do that, so that the source code contains the inserted dat... | javascript jquery | [3, 5] |
2,283,933 | 2,283,934 | significant figures in edittext | <p>I have an <code>EditText</code> where the user enters a number.</p>
<p>Is there a way of setting the significant figures?
So it would automatically change <code>"003645"</code> to <code>"365"</code> at 3.s.f.</p>
| java android | [1, 4] |
3,805,046 | 3,805,047 | Breaking out of jQuery loop vs native JS for loop. Which is better? | <p>First of all, apologies if the heading question doesn't exactly match with what I am going to ask. </p>
<p>My problem is that I want to have a loop, and the control is suppose to break out of this loop, once a condition is met. </p>
<p>Now, is it better to use the native JS 'for loop' and use 'return' or is it bet... | javascript jquery | [3, 5] |
5,902,097 | 5,902,098 | "Request.Cookies ("iduser"). Value" equivalent in C# | <p>I have an application in VB.net and I'm doing a new one in C# (ASP.NET 4). Users has just one username to login in both app.</p>
<p>The point is... how can I get the cookie's value in C#???</p>
<p>This is how I get it in VB...</p>
<pre><code>IdUser = Request.Cookies("iduser").value
</code></pre>
<p>Thks</p>
| c# asp.net | [0, 9] |
4,891,556 | 4,891,557 | How can I call LinkButton OnClick Event from JavaScript? | <p>In my case a have a LinkButton on the page:</p>
<pre><code><asp:LinkButton ID="LinkButton5" runat="server" OnClick="LinkButton5_Click">Delete</asp:LinkButton>
</code></pre>
<p>When a user clicks it, the choosen file is deleted. And to make it easy to use I added a HotKey JavaScript:</p>
<pre><code><... | c# javascript jquery asp.net | [0, 3, 5, 9] |
2,254,690 | 2,254,691 | Resizing images JavaScript/jQuery without losing quality | <p>I am looking for a way to resize images with JavaScript or jQuery without losing the quality of the image. I have found solutions using PHP but I am not a server-side programmer.</p>
<p>I am trying to develop a portfolio website for me and a friend and I created a lightbox effect. The problem arives when the websit... | javascript jquery | [3, 5] |
4,344,294 | 4,344,295 | how to display the items in the combobox in any given manner? | <p>I have a dropdown getting populated by fetching a query on the database.
Say it fetches items given as follows:</p>
<p>Teacher,
Student,
Pricipal,
Sweeper,
FinanceManager.</p>
<p>While showing it in the dropdown, I wish to show it in the following order:</p>
<p>Principal,
FinanceManager,
Teacher,
Student,
Sweeper... | c# javascript asp.net | [0, 3, 9] |
1,428,465 | 1,428,466 | Proper handling of input change event | <p>It may be a correct behavior of change event, but the below behavior is bit annoying. When the value is updated from the field history (see explanation below), the event is not triggered.</p>
<p>Please see example code below. the result input field is updated with the change in input field 'input1'. The form and su... | javascript jquery | [3, 5] |
4,828,298 | 4,828,299 | jQuery - call function onmouseout but only if the cursor wasn't moved to a certain area | <p>I have this link:</p>
<pre><code><a class='itemshow'>Show Details</a>
</code></pre>
<p>When this link is hovered over, a div opens up below it with some content. That works fine. Now, I need a .mouseout() event which closes the div that was opened (div's id is gen_details) but ONLY if the cursor wasn't... | javascript jquery | [3, 5] |
3,634,305 | 3,634,306 | Wifi Float switch sensor app for phone | <p>I want to have a float switch sensor in a tank of water and when the water reaches a certain level, i want the float switch to send a signal to my phone or my computer in the form of a app/program through wifi.</p>
<p>What are the main mechanics on how to do this? Particularly how would i send a signal throught he ... | android iphone | [4, 8] |
5,889,874 | 5,889,875 | Why does jQuery complain about an "invalid left-hand assignment"? | <pre><code>function auditUpdate(newval) {
jQuery("#audit").val() = newval;
jQuery("#auditForm").submit();
}
</code></pre>
<p>Why do I get an error where I try to assign newval to the <code>#audit</code> value?</p>
| javascript jquery | [3, 5] |
1,551,939 | 1,551,940 | JavaScript lastIndexOf() | <p>In C# I can do this</p>
<pre><code>string ID = "ContentPlaceHolderDefault_MainSiteSectionArea_MyPagePlaceHolder_Item4_FavoritAmusementCalender_6_deleteRight_2";
ID = ID.Substring(ID.LastIndexOf("_") + 1);
</code></pre>
<p>to return the last int <code>2</code></p>
<p>How can I most easily do this in jQuery/Jav... | javascript jquery | [3, 5] |
4,571,412 | 4,571,413 | How to get line of code to accept single quote | <p>Because of a single quote I am receiving a expecting ) after argument list error:</p>
<pre><code>window.top.stopAudioUpload(1, '43', 'Thorne, Grandma's Goodbye excerpt.m4a');
audioupload.php (line 11, col 54)
</code></pre>
<p>My question is how can I get the line of code to accept single quote?</p>
<p>Code:</p>
... | php javascript | [2, 3] |
5,812,414 | 5,812,415 | How to load picture images via click on a picture? | <p>At the moment i load default images for every picture in my app. I want to load the real picture of all images in div 5 if i click on any picture of div 5. At the moment i use the onclick event of the img tag with: </p>
<pre><code>switchImg(this, "LINK_FOR_PICTURE")
</code></pre>
<p>my js snippet:</p>
<pre><code>... | javascript jquery | [3, 5] |
1,615,791 | 1,615,792 | When to use document.write()? | <p>I was told not to use <code>document.write()</code> by and SO member. That innerHTML is better, or better yet, manipulate the DOM directly.</p>
<p>However, If I'm loading a page for the first time and there is content that is stored on a mysql table, and hence it will be converted to HTML, how can I do this if I d... | php javascript | [2, 3] |
892,072 | 892,073 | loading secondary resources like images and such | <p>I want to show image and its text initially as we open the page for my Image Slider.</p>
<p>This is my demo: <a href="http://codebins.com/bin/4ldqp9c/15" rel="nofollow">http://codebins.com/bin/4ldqp9c/15</a></p>
<p>here i am showing as all the DOM elements is loaded, but the need is to show the first image and its... | javascript jquery | [3, 5] |
340,917 | 340,918 | Using jQuery to replace an element including all the HTML tags | <p>Supposing I have the correct location of an element whats the best way to replace all the html including the tags of a given block of HTML code using jQuery()? I'm looking to do something similar to the following. Is this a good way to do this? What other ways are available or useful to know about?</p>
<pre><cod... | javascript jquery | [3, 5] |
4,527,882 | 4,527,883 | how to get country phone prefix from iso | <p>I got the country iso by the code from this <a href="http://stackoverflow.com/questions/3659809/where-am-i-get-country">answer</a>: </p>
<pre><code>TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String countryCode = tm.getSimCountryIso();
</code></pre>
<p>how can I get the... | java android | [1, 4] |
1,999,065 | 1,999,066 | What are the advantages to putting your Javascript in a .php file? | <p>I occasionally come across pages where some Javascript is included via a PHP file:</p>
<pre><code><html>
<head>
<script type="text/javascript" src="fake_js.php"></script>
</head>
<body onload="handleLoad();">
</body>
</html>
</code></pre>
<p>where the con... | php javascript | [2, 3] |
1,049,594 | 1,049,595 | Load new image when a user clicks on a link | <p>I'm trying to figure out how to load a new image with ajax when a link is clicked on.</p>
<p>The link looks like this (there are several links like this on the page they have little image thumbnails inside them so user can know approximately what image will load when he/she clicks on the link):</p>
<pre><code><... | javascript jquery | [3, 5] |
533,036 | 533,037 | Jquery .post and form data | <p>I am using .post to post my data to my controller. I would like to pass all the data that I have in a form. Is there an easy way to take all the form data and add it to the .post command to send it?</p>
| javascript jquery | [3, 5] |
3,154,204 | 3,154,205 | ++i operator in Python | <p>I'm trying to translate one of my Java projects to Python and I'm having trouble with one certain line. The Java code is:</p>
<pre><code>if (++j == 9)
return true;
</code></pre>
<p>What I think this is supposed to be in python is </p>
<pre><code>if (j += 1) ==9:
return True
</code></pre>
<p>...but I ... | java python | [1, 7] |
5,058,589 | 5,058,590 | How can I pass a variable as the value for jQuery .attr? | <p>Using <a href="http://api.jquery.com/attr/" rel="nofollow">jQuery attr()</a> what would be the proper syntax to pass a variable in as the value. What I am trying to do is :</p>
<pre><code>var under700 = 'image.jpg'
$('.two_images img').attr('src', (under700) );
</code></pre>
<h2>Edit</h2>
<p>Judging from the re... | javascript jquery | [3, 5] |
2,498,863 | 2,498,864 | What is the preferred pattern for re-binding jQuery-style UI interfaces after AJAX load? | <p>This always gets me. After initializing all lovely UI elements on a web page, I load some content in (either into a modal or tabs for example) and the newly loaded content does not have the UI elements initialized. eg:</p>
<pre class="lang-js prettyprint-override"><code>$('a.button').button(); // jquery ui button... | javascript jquery | [3, 5] |
5,795,850 | 5,795,851 | How can I pass a ASP.NET server control to a function? | <p>I have a class in a separate file (stripped out a lot for simplicity)</p>
<pre><code>public class navigation
{
// Adds to menu
public static void addMenuToList(ListView parent)
{
parent.Items.Add(newItem);
}
}
</code></pre>
<p>Where parent is a control on my .net page:</p>
... | c# asp.net | [0, 9] |
5,000,484 | 5,000,485 | GUI items and elements in Javascript | <p>How do i make boxes similar to theses? I would like a X on the top right. Text on the left of it and the text below the image where the black area is. When i click on X it will remove these and the box on the right moves over and takes it place. How might i create this using jquery? is there some kind of GUI and con... | javascript jquery | [3, 5] |
1,236,745 | 1,236,746 | is it better to pass an image through classes or recreate the image in each class (android)? | <p>Im creating a simple application that converts the image dimensions to a size that the user wants, im laying it out over a 3 screens
the first screen allows a user to select an image and it is displayed on screen.
the second screen then displays the attributes of the file (path, name, height and width) with the opti... | java android | [1, 4] |
997,570 | 997,571 | document.getElementById("id") works, but $("#id") does not jQuery | <p>I am iterating over some elements and I have found that <code>document.getElementById("id")</code> works, but <code>$("#id")</code> does not. Why?</p>
<p>Edit: I suppose it wouldn't hurt to post code?</p>
<pre><code>function myFunction() {
var token, tokens, id, input;
$("[id^=\"some_id_\"]").each(functio... | javascript jquery | [3, 5] |
5,200,912 | 5,200,913 | Unable to pass values between Activities in Android | <p>I am using 2.3.3 version of the Android SDK and I'm trying to pass data between two activities using the following code</p>
<pre><code>Intent myIntent = new Intent(MainAct.this, FriendsActivity.class);
myIntent.putExtra(USER_NAME, ((EditText)findViewById(R.id.username)).getText());
MainAct.this.startActivity(myInte... | java android | [1, 4] |
4,288,005 | 4,288,006 | java RAM problems | <p>I've a problem with my android. First I wrote an application in C language (for PC), which used lot of RAM - about 500 MB for tables. Then I tried to rewrite the same code for Android in Java (Eclipse)... and the problems started.</p>
<p>It has taking a lot of time to create (on htc desire hd) static tables (the sa... | java android | [1, 4] |
2,460,190 | 2,460,191 | Java - XML Pull Parser not working | <p>I tried to use an example XML Pull Parser I found online, but for some reason I t does not work. Can somebody say why?</p>
<p>Code:</p>
<pre><code>public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
se... | java android | [1, 4] |
946,814 | 946,815 | Javascript mailto causing IE issues | <p>In my html page, I have:</p>
<pre><code>var e_values = $("a.envelope");
e_values.each(function(index){
$(e_values[index]).attr('href','mail'+'to:'+eval($(e_values[index]).attr('eparts')));
})
</code></pre>
<p>When I click on this in FF and Chrome, my email clients starts and offers me a new email with the emai... | javascript jquery | [3, 5] |
4,908,874 | 4,908,875 | combine jQuery Objects | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1881716/merging-jquery-objects">Merging jQuery objects</a> </p>
</blockquote>
<h2><a href="http://jsfiddle.net/nZRLD/" rel="nofollow">See Demo</a></h2>
<pre><code>a = $('diveq(0)');
b = $('diveq(1)');
c = $('di... | javascript jquery | [3, 5] |
5,729,054 | 5,729,055 | Javascript API writing | <pre><code><div id ="filter">
<select id= "s1"/>
<select id= "s2"/>
<select id= "s3"/>
<select id= "s4"/>
<select id= "s5"/>
<select id= "s6"/>
</div>
</code></pre>
<p>So basically I create filters with select elements of different ids in each of ... | javascript jquery | [3, 5] |
3,503,833 | 3,503,834 | How to ensure offsite javascript doesn't impede site performance? | <p>I need to include an offsite javascript file on my page, however I don't want it to be able to affect the performance of my site, in case the server where the javascript is on is down or not responding.</p>
<p>What I'd like to know, is if it's posible with javascript to make some sort of wrapper function to ensure ... | c# javascript asp.net | [0, 3, 9] |
2,549,229 | 2,549,230 | Jquery .eq plus contains | <p>When trying to get from all [tr] the second [td] that contains some information, i keep getting stuck on logic. Here is some example.</p>
<pre><code><table class="todos">
<tbody>
<tr>
<td>info1</td>
<td>info2</td>
<td>info3</td>
</tr... | javascript jquery | [3, 5] |
3,520,652 | 3,520,653 | Get alert if all they(ul) are empty | <p>How can done if all tags ul in <code>.empty</code> is empty alert ok?(with jQuery)</p>
<p><strong>EXAMPLE:</strong> <a href="http://jsfiddle.net/pqgGr/" rel="nofollow">http://jsfiddle.net/pqgGr/</a></p>
<pre><code><div class="empty">
<ul>1</ul>
<ul></ul>
<ul></ul&... | javascript jquery | [3, 5] |
5,353,791 | 5,353,792 | How can I capture window close event? | <p>I have Ajax DHTML window. I want to redirect the page on different location when some one closed the window by clicking on cross image of window. </p>
<p>I have used following code to open window. </p>
<pre><code>ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", popupURL, "Error Message", "width=450px,height=200px,resi... | javascript jquery | [3, 5] |
3,491,469 | 3,491,470 | How to make code wait while calling asynchronous calls like Ajax | <p>I am looking for something like this</p>
<pre><code>function someFunc() {
callAjaxfunc(); //may have multiple ajax calls in this function
someWait(); // some which waits until async calls complete
console.log('Pass2');
}
function callAjaxfunc() {
//All ajax calls called here
console.log('Pass1');
}
</code>... | javascript jquery | [3, 5] |
3,123,022 | 3,123,023 | label element is not a known element | <p>i change my asp website to ajax enabled website. in my page .cs files for the elements like labels,dropdownlist, gridview says element is not a known element. </p>
<p>i am currently using visual studio 2005 version. i used it by first put the "scriptmanager" from ajax tool box and put a update panel and put my mas... | c# asp.net | [0, 9] |
2,202,052 | 2,202,053 | Why do we love using i? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://programmers.stackexchange.com/questions/86904/why-do-most-of-us-use-i-as-a-loop-counter-variable">Why do most of us use 'i' as a loop counter variable?</a> </p>
</blockquote>
<p>Maybe this questions seems to be extreamly stupid but... | c# java c++ | [0, 1, 6] |
3,366,620 | 3,366,621 | Date methods marked deprecated, but recommended Calendar equivalents don't do what I want | <p>I'm working with Date objects in my code, and the documentation on many of the methods I'm using say that the method is deprecated and that I should use the Calendar object and its equivalent methods. The easiest example to remember is <code>Date.getHours()</code> and <code>Date.getMinutes()</code> methods say to u... | java android | [1, 4] |
535,285 | 535,286 | [PHP/JavaScript]: How to call a JavaScript function through PHP and fetch value returned? | <p>I want to call a JavaScript function through PHP and store the returned value in a PHP variable. How to do this?</p>
| php javascript | [2, 3] |
2,506,921 | 2,506,922 | Summary of form in a <div> with jQuery | <p>I have two input boxes and two select boxes and would like to display a summary of data selected and entered in real time prior to submitting the form. jQuery seems the way to go, but how! </p>
<pre><code><form id="form1" name="form1" method="post" action="">
<select name="Select1" id="Select1">
<... | javascript jquery | [3, 5] |
2,125,976 | 2,125,977 | class relations and site architecture | <p>I'm building a asp.net web site<br>
i build a class localiziedpage that inherit from System.Web.UI.Page this class in dealing with all localization of the page. ii have a class basepage that inherit from localiziedpage that get all simple data from db for a page (h1,title,main content,description...)</p>
<p>now ... | c# asp.net | [0, 9] |
1,883,599 | 1,883,600 | Prevent user download Videos from my web site | <p>I make a new web application and I'll display more videos on it, but I need to prevent the users from downloading these videos by the browser or any download program.
Is there a way to do this by java script, JQuery, C# or asp.net?</p>
| c# javascript asp.net | [0, 3, 9] |
5,148,570 | 5,148,571 | Get Current System Time And After That Want To add 30 minutes in That Time | <p>I want to <code>get current time</code> in my application.<br>
Then i want to <code>add 30</code> minutes in the current time.<br>
can any one help me how to achieve this?</p>
<p>I am getting start and stop time from my web service.
eg: ((start time)11:00 am to (stop time) 11:00 pm)
now i want to add 30 minutes in... | java android | [1, 4] |
5,869 | 5,870 | add element in certain place | <p>When I use document.createElement javascript will add an element at bottom of body.
How can I add an element in certain place ? (with document.createElement property, I mean store in a new variable)</p>
| javascript jquery | [3, 5] |
2,550,144 | 2,550,145 | string was not recognized as valid Date Time using C# | <p>i have tried every possible solution online but can't figure out why i am still getting this error
"string was not recognized as valid Date Time"
the funny thing is that i am converting 2 date times, one is cell 3 in my gridview and the other one is cell 7 but the Cell 3 works fine and but Cell 7 does not want to co... | c# asp.net | [0, 9] |
3,333,354 | 3,333,355 | 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] |
4,681,450 | 4,681,451 | How to get jQuery added values in aspx page at server side on Submit button click? | <p>When user clicks 'add new' button I want to add more textbox into the page, so that he can add n number of values. I will do this with jQuery. But on submit click I want to get values from all the fields at server side. How can I accomplish this? </p>
| javascript jquery asp.net | [3, 5, 9] |
644,355 | 644,356 | Show elements, after task on all is done, do this? | <p>Hi I'm having some problems to figure how I would do this task. I got a wrapper with elements, and on a click I'm gone show them. After they are visible I want to perform another task, issue here is that it triggers it for each element in the wrapper. </p>
<p><strong>EDIT</strong>
Sorry meant to be <code>.fadeIn()<... | javascript jquery | [3, 5] |
2,403,162 | 2,403,163 | Looking for some sort of pattern | <p>I have a library project which contains an abstract class, let's say <code>ClassA</code>. In the project that uses that library project, I have <code>ClassB</code> that extends <code>ClassA</code>.</p>
<p>Now here's my problem. In the library project I want to use an instance of the implemented <code>ClassB</code>,... | java android | [1, 4] |
5,224,941 | 5,224,942 | Android: [aapt] nothing matches overlay file - during ant build | <p>I am building my app with the ant build script. The build shows successful, but I see lot's of the following messages about several of png files in res\drawable-xxxx folders.
Here is an example of one of them:</p>
<pre><code>[aapt] nothing matches overlay file ic_launcher.png, for flavor ,,,,,,,,,,,hdpi,,,,,,,
</co... | java android | [1, 4] |
4,897,164 | 4,897,165 | Javascript never gets called | <p>Any reason for the Javascript is NOT firing ? </p>
<pre><code><asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
function ChangeDisplay()
{
alert("Changing");
document.getElementById('warningDiv').innerHTML = "<h1>Change Tex... | javascript asp.net | [3, 9] |
4,168,419 | 4,168,420 | Hide asp.net Wizard next button in javascript | <p>I want to hide the Next button on my ASP.NET Wizard control using JavaScript. Can anybody tell me if this is possible and post a javascript snippet on how to do this? Thanks!</p>
| asp.net javascript | [9, 3] |
232,059 | 232,060 | jquery image change doesnt work | <p>The following code should work but I cant seem to find the problem why it doesnt work, I am testing it with google chrome</p>
<pre><code><html>
<head>
<script type="text/javascript" src="js/jquery_1.7.1_min.js"></script>
<script type="text/javascript">
$... | javascript jquery | [3, 5] |
723,589 | 723,590 | javascript bind validators | <p>Ive got some validators in my UpdatePanel. If OnServerZValidate returns false corresponging message is displayed atthe wrong field but all javascript I used to bind some options on click to some classes isnt working.</p>
<p>this is the script, it works if the page is loaded for the first time:</p>
<pre><code>$(doc... | jquery asp.net | [5, 9] |
1,526,307 | 1,526,308 | ASP.NET Masterpage and Context.RewritePath | <p>In my ASP.NET Website, I am trying to use Server.Transfer to redirect client to different url(all pages resides in same domain) instead of using Response.Redirect because of performance issue and heavy flickering. But when I use Server.Transfer, all session values are wiped out and getting NullReference error even t... | c# asp.net | [0, 9] |
229,332 | 229,333 | how to pass large data to a jsp without submitting to server | <p>I need to open a pop up window from a jsp and pass a json data to the new window. I have tried passing data through a query string / setting it in cookies i.e. setCookie("dataString",dataString,10);<br>
But they are not able to hold large amounts of data. The pop up window shows preview of the form, so i don't want ... | java javascript | [1, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.