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,484,839
5,484,840
Inserting a record to mysql using jquery
<p>I want to use a cloned div that contains a form to insert a record to the database using this code</p> <pre><code>$(document).ready(function() { $("#button").click(function() { $("&lt;div class='newclone' id='xxx'&gt;&lt;article&gt;&lt;form method='post' id='aj'&gt;&lt;input type='checkbox'&gt;&lt;labe...
php jquery
[2, 5]
2,011,962
2,011,963
How to get the duration of call started from your app?
<p>In my app, when someone clicks on a button, a phone call is started. Can i detect when the phone call is finished, so i will be able to measure the duration of this call?</p> <p>Tnx.</p>
java android
[1, 4]
3,542,078
3,542,079
How do i call a function every day between 10 am to 11 am
<p>I create a function in c# and published on server. But now i want to run this function between 10am to 11am only. How can i create this?</p>
c# asp.net
[0, 9]
2,670,283
2,670,284
jQuery update HTML on the fly
<p>I have a slideshow that has 5 slides (each has an individual id) and a previous and next button. When hovering the previous or next button you get a tooltip, the tooltip uses jQuery to get the ID attribute from the previous and next div and show this. </p> <p>Ive gotten it working fine on mouseenter only if you don...
javascript jquery
[3, 5]
3,013,718
3,013,719
Android service boot order
<p>Greetings, I am writing an application that will be utilizing a service that needs to be started before any other services listening for the BOOT_COMPLETED broadcast can start. After some cursory searching I have not found anything that would imply an ability to control the boot order. Is this something that can be ...
java android
[1, 4]
1,818,177
1,818,178
How to write memoery usage log in ASP.NET
<p>We got "out of memory" issue on production servers. What API can we use to get live memory (physical and managed) usage of the ASP.NET application?</p> <p>Thanks.</p> <p>PS: we're forbidden to profile memory with tools.</p>
c# asp.net
[0, 9]
3,573,540
3,573,541
Why should PyImport_AppendInittab() be called before Py_Initialize()?
<p>According to <a href="http://docs.python.org/c-api/import.html?highlight=pyimport_appendinittab#PyImport_AppendInittab" rel="nofollow">the Documentation</a>, PyImport_AppendInittab "should be called before Py_Initialize()."</p> <p>There is no explanation of why this is the case, and ignoring this advice yields a wo...
c++ python
[6, 7]
5,467,369
5,467,370
How Can I Know If An Input Is Checked If I Only Know His Value?
<p>I have a dynamic input in my php code like this one:</p> <pre><code>&lt;input type="checkbox" id="advantage[]" name="advantage[]" value="Special Option" /&gt; </code></pre> <p>And I need to know if it's checked... I can have multiple checks in the same format in the code, my brain hurts because i can't find a solu...
php javascript jquery
[2, 3, 5]
4,790,143
4,790,144
how to redirect to email login page based on email address domain
<p>i have a registration page there i am capturing user email address, once the registration is completed user has to activate an account.. this process is working fine.. now what i am looking here is</p> <p>i would like to give "Go to my Inbox" button when the user click on this button it should automatically redire...
javascript jquery asp.net
[3, 5, 9]
3,751,370
3,751,371
jQuery - Select children with $(this)
<p>I try to count the number of children inside a div using jquery <code>$(this)</code> selector and the element's class. And the results are different. I thought jquery's <code>$(this)</code> refers to the owner object of function, is there any thing special about <code>$(this)</code> that I am missing? </p> <pre><co...
javascript jquery
[3, 5]
474,876
474,877
Difference between char in Java and C# (particular problem with (char)-1)
<pre><code>char x = (char)-1; </code></pre> <p>is valid in Java, but shows me the error (<em>Overflow in constant value computation</em>)</p> <p>Should I use a different datatype in C#?</p>
c# java
[0, 1]
1,876,674
1,876,675
How to start a jQuery function after executing all the MySQL queries in that PHP page?
<p>I have a JavaScript timer function which contains a jQuery function, and the JS function is called for every 3000 milliseconds.</p> <pre><code>&lt;script type="text/javascript"&gt; function timer(){ $("div#display_time").load("timer.php");} var t=setInterval("timer()",30000); &lt;/script&gt; </code></p...
php javascript jquery
[2, 3, 5]
3,284,511
3,284,512
jquery split() issue
<p>Hopefully this is easy for someone.</p> <p>I have a set of checkboxes with values 1,2,3 etc with the same name attribute (cp_bundle).</p> <p>I use the following code to get a comma-delimited list of those checkboxes.</p> <pre><code>var hl_calling_plan_bundle = $('input[name="cp_bundle"]:checked').getCheckboxVal()...
javascript jquery
[3, 5]
1,045,487
1,045,488
Javascript source file download progress?
<p>I am sourcing a large mapping/widget javascript file (1.3 MB) and wanted to display a progress bar as it loads. I know firebug's net watch tab knows a lot of this information, but I would like something more lightweight. I came across this website: <a href="http://blog.greweb.fr/2012/04/work-in-progress/" rel="nofol...
javascript jquery
[3, 5]
4,324,787
4,324,788
javascript unterminated string constant
<p>I have the following function which I pass in a value, but this value is coming from the database. However I get the following javascript when doing the following: </p> <pre><code>showrootcausedetails('showrootcause',true,'&lt;%# eval("Root Cause Analysis").ToString() %&gt;') </code></pre> <p>I know I have to esc...
c# javascript asp.net
[0, 3, 9]
4,911,457
4,911,458
Android: Increasing the height of textview dynamically
<p>I have a class which inflates linearlayout. The inflated xml contains a textview. </p> <p>I want to change the height of that textview dynamically as per the content.</p>
java android
[1, 4]
3,686,328
3,686,329
storing multiple values in single viewstate object
<p>hi guy's here is one problem regarding asp.net state managenment. I want to store three values into single viewstate.Is it possible to store in single or i will go for three viewstate variables.</p> <p>the basic need is that,I am using gridview <strong>rowcommand</strong> event for finding three values. and i wante...
c# asp.net
[0, 9]
4,242,222
4,242,223
Jquery Caching issue?
<p>I have a php function that called admin_head() which basically includes the css and jquery files.</p> <pre><code>function admin_head() { ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.or...
php jquery
[2, 5]
5,043,596
5,043,597
why does getTagValue throws nullpointer if empty
<p>I am parsing a xmlfile on android and I have something similar to:</p> <pre><code>&lt;images&gt; &lt;image&gt;&lt;/image&gt; &lt;/images&gt; </code></pre> <p>I have the following code:</p> <pre><code>Element imagesElement = (Element) poiElement.getElementsByTagName("images").item(0); Node...
java android
[1, 4]
4,836,191
4,836,192
How can I modify the returned value of jQuery's html() method?
<p>I have a div that I want to write to a popup window (for printing).</p> <p>I'm grabbing the contents of the div's I want on the page using jQuery's html() function like so:</p> <pre><code>function printOptions() { var printwindow = window.open('', 'Report', 'height=600,width=600'); printwindow.docu...
javascript jquery
[3, 5]
2,549,219
2,549,220
portable java application
<p>In your answer</p> <p><a href="http://stackoverflow.com/questions/1617524/writing-a-portable-java-application-using-jogl-and-android-opengl/1627609#1627609">http://stackoverflow.com/questions/1617524/writing-a-portable-java-application-using-jogl-and-android-opengl/1627609#1627609</a></p> <p>can you please tell me...
java android
[1, 4]
912,955
912,956
Android On Focus Change
<p>I want to update an EditText when a user changes focus from the edittext to another item I want to check the contents of the edittext eg is the number larger than 10 if so change it to 10.</p> <p>How should I do this.</p>
java android
[1, 4]
1,920,931
1,920,932
gmail style file upload in c#
<p>I need to implement Gmail style file upload in asp.net c# where user will click on button and file dialog will open. user selects a file,then process that file in code. i dont want user to see file upload control he ll just click one button. i have already used few solutions <br/> example </p> <pre><code> ...
c# asp.net
[0, 9]
1,223,288
1,223,289
How correctly assign value to field
<p>I am trying to assign value for one edit field(not asp.net control) in asp.net application using JavaScript code. It seems that <strong>&lt;</strong> character in value string gives problems for ASP.NET. If I remove &lt; and > characters from value everything works fine.</p> <p>Where is the problem? How to pass &lt...
asp.net javascript
[9, 3]
4,243,354
4,243,355
How to pass the article id to the "View Article" Activity
<p>I'm a web developer in php. When I'm creating a view article page I was passing the id in GET something like article.php?id=10.</p> <p>But now in android if I have an activity which views the article, how to pass to it the article ID to select it's data from the database?</p> <p>What is my best option?</p>
java android
[1, 4]
691,167
691,168
C# gets previously loaded values of text fields
<p>I have a pretty odd problem. I was working on an item editing page end encountered some odd bug, that ASP passess old values to C# <code>.cs</code> code.</p> <p>In my <code>Page_Load</code></p> <pre><code>private int SomeID = 0; if (!IsPostBack) { ... SomeID = Convert.ToInt32(Page.RouteData.Values["id"]) ...
c# asp.net
[0, 9]
4,259,091
4,259,092
Duplicated countdown timer after click event
<p>I have this function:</p> <pre><code>var secondsRemaining = 45; function countdown(secondsRemaining) { var seconds = secondsRemaining; if (secondsRemaining &gt; 0) { $('.timer &gt; div').html(seconds); secondsRemaining--; } else { if (secondsRemaining == 0) { // Times up .... } } setInterval(function() { c...
javascript jquery
[3, 5]
1,841,612
1,841,613
Cloning a field with text in it clones text as well?
<p>I have a piece of code that clones three fields, but when it clones the three fields, it also clones the text entered inside of it, is there a way to clear the content inside of the field when it is cloned?</p> <pre><code>$(document).ready(function() { $('#btnAdd').click(function() { var num = $('.c...
javascript jquery
[3, 5]
1,250,521
1,250,522
Dynamically creating a <div> element without getting its ID overridden
<p>I have a <code>&lt;div&gt;</code> element that I want to dynamically add some HTML <code>&lt;a&gt;</code> elements to. That part seems to be working just fine. Here is the HTML:</p> <p><code>&lt;div id="crumbBar" runat="server"/&gt;</code></p> <p>In my code behind, adding HTML anchors works as expected; however,...
c# asp.net
[0, 9]
4,342,504
4,342,505
c# asp.net response.write shrinks text boxes
<p>I have a Web Form project I am developing C# ASP.Net 4.5. I have a class that calls a response.write to display a message for user input validation purposes. The call to response.write is made inside the class in a method from creating a new instance of the class, thus the class method, by pressing a button on the f...
c# asp.net
[0, 9]
4,118,158
4,118,159
javascript into an iframe (resubmitted)
<p>I am developing a live code editor and I am trying to add a javascript-specific box to it to go alongside the css and html boxes that I already have, the problem is that I don't know how to do it, properly that is.</p> <p>This is the script I've developed so far (based on jQuery 1.7)</p> <pre><code>(function () { ...
javascript jquery
[3, 5]
4,169,813
4,169,814
Soap service credential available from InputStream
<p>For a project I am doing, I am using a SOAP service to access some data from another system. I added the SOAP service as a web reference to my ASP.NET (C#) project.</p> <p>Now, the service is kinda complicated, because a user has to be authenticated first with a cookie (don't ask). So what we did was:</p> <ul> <li...
c# asp.net
[0, 9]
898,677
898,678
how to import android in python script
<p>Am new bee to python actually when am importing android in my python script am getting error like *<em>No Module etc</em>*Please let me know how can i fix this issue. am using eclipse IDE for written python scripts. thanks i advance </p>
android python
[4, 7]
4,529,444
4,529,445
Setting an attribute to the last position
<p><strong>Is it possible to set a new attribute to the last position of a html element using javascript/jQuery?</strong></p> <p>This would be helpfull for me in a case where the attribute order is important to decide whether the paragraph has changed or not.</p> <p><strong>Example:</strong></p> <pre><code>&lt;p att...
javascript jquery
[3, 5]
4,364,210
4,364,211
User.Identity.Name An object reference is required for the non-static field
<p>Inside my controller class I have private method which returns logged user which is fetched using User.Identity.Name as paramater which is all fine.</p> <pre><code>private static Account GetLoggedUser() { AccountService accService = new AccountService(); Account userAccount = accService.GetAccountByUsername...
c# asp.net
[0, 9]
2,958,307
2,958,308
Open Document/file on client with impersonation
<p>I have an ASP.NET/c# web application.</p> <p>There is a link on the page that i want to be able to click, open that file from a share, enable the user to edit it and then save it back to the share.</p> <p>The share directory is locked down and can only be accessed via a seperate account, hence the need for imperso...
c# asp.net
[0, 9]
5,673,564
5,673,565
(jQuery) Scroll event.. I want to scroll the document to the point specified if the user scroll the page
<p>I want to implement a scroll function.. So the default of scroll is disabled. And if the user use the scroll button, I want it to be set to the point I want.. How can I implement this function? window.scrollTop is not working.. I tried a lot of different methods but all were not working..</p> <pre><code>$(window).s...
javascript jquery
[3, 5]
2,069,726
2,069,727
How to return value from new object instance method declaration (nested)?
<p>Ok this is the code:</p> <p>public boolean alertDialog(String message){</p> <pre><code> AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(message).setCancelable(false).setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInt...
java android
[1, 4]
1,946,924
1,946,925
Font Resizer if else
<p>I have a font resizer that needs to be contained in one link. eg. show text link "Larger Type" and switch to text link of "Smaller Type" when clicked. I am not sure why it will toggle the class "plus/minus" but it will not switch the text or call the font resize function after the else statement?</p> <p>Currently, ...
javascript jquery
[3, 5]
3,141,742
3,141,743
Not able to use Log android
<p>I'm making about my 4th android app, and nothing that I try to log is showing up, I'm so confused. All my other apps will log things just fine, but this won't I think this is the error message for logging, <code>ignoring message with no sender credentials</code> Although I'm not sure, as it shows up alot. Here is wh...
java android
[1, 4]
4,951,842
4,951,843
Postback collapsing fields
<p>I've got a login button with he following code.</p> <pre><code>protected void prv_Click(object sender, EventArgs e) { if (Page.IsPostBack) { if (!HttpContext.Current.Request.IsSecureConnection) { string postbackUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace("http", "h...
c# asp.net
[0, 9]
2,324,950
2,324,951
jQuery match from value string
<p>I trying to match a variable from an url. This works fine if I use the expression directly in the match method. However I am having problem getting it to work if the expression is inside a string.</p> <blockquote> <p>var match = '/(page_art_list=\d+)/';</p> </blockquote> <p>match contains the value..</p> <pre><...
javascript jquery
[3, 5]
919,056
919,057
Close child windows from postbacked parent window
<p>I need to close child windows which has been loaded by a parent window.<br> The child windows are opened by using <code>window.open()</code> method.<br> I need to close this child windows by clicking a logout button or close button which is in parent window.<br> My code:<br></p> <pre><code> var childWin = []; ...
c# javascript asp.net
[0, 3, 9]
1,430,892
1,430,893
.remove() in jquery doesn't remove DOM instantly
<p>I have the following function to remove a DOM element "div", </p> <pre><code>$('#emDiv').on("click", ':button[data-emp-del="true"]', function (evt) { evt.preventDefault(); // Get Row - "emp0" or "emp1" etc ... var rowId = "#" + $(this).data('emp-id'); // Remove the DIV $(row...
javascript jquery
[3, 5]
4,687,785
4,687,786
jQuery - Image management
<p>Is there a jQuery plug-in / JavaScript control that will allow me to display array of images, but with (at least) option to delete image on certain user action.</p> <p>Something like this: <a href="http://www.gmarwaha.com/jquery/jcarousellite/index.php" rel="nofollow">http://www.gmarwaha.com/jquery/jcarousellite/in...
c# asp.net javascript jquery
[0, 9, 3, 5]
4,088,737
4,088,738
Android C++ programming
<p>Is there any way to programm C++ applications on Android? I mean - using your Android device for programming and compiling projects.</p>
c++ android
[6, 4]
95,520
95,521
Show elements depending on html value of a tag
<p>I would like to accomplish the following with jquery : </p> <p>When I click on this link </p> <pre><code>&lt;a href="#"&gt;Cars&lt;/a&gt; </code></pre> <p>I would like all divs like those </p> <pre><code>&lt;div class="product"&gt; &lt;div class="category"&gt;Cars&lt;/div&gt; &lt;/div&gt; </code></pre> <p>t...
javascript jquery
[3, 5]
5,231,165
5,231,166
View above Dialog?
<p>Just a quick question. </p> <p>Would it be possible to bring a View (Button) above a Dialog that is currently showing?</p> <p>Thanks</p>
java android
[1, 4]
1,345,018
1,345,019
How does Python's handling of line-breaks differ from JavaScript's automatic semicolons?
<p>Javascript has a feature called Automatic Semicolon Insertion where basically if the parser encounters an invalid token, and the last token before that was a line break, then the parser will insert a semicolon where the linebreak is. This enables you to basically write all your javascript code without semicolons, bu...
python javascript
[7, 3]
1,824,516
1,824,517
Why does my function get called twice in jQuery?
<p>I have the following jQuery</p> <pre><code>$('img[title*=\"Show\"]').click(function() { //$e.preventDefault(); var position = $('img[title*=\"Show\"]').parent().position(); $('#popover').css('top', position.top + $('img[title*=\"Show\"]').parent().height() + 150); console.log(p...
javascript jquery
[3, 5]
2,424,540
2,424,541
Automatically log in on another website at the click of a button using jQuery
<p>My goal is to have a button on my personal (secure) website which when I click it logs into some site for me automatically. Can jQuery be used in this way?</p> <p>I'm thinking something like this:</p> <ol> <li>Open the login page in question in a frame or popup</li> <li>Fill in the login form</li> <li>Submit</li> ...
javascript jquery
[3, 5]
1,333,056
1,333,057
Make array hold 10 latest entries
<p>I am trying to get a array to hold the 10 latest values, so far it cant get it to work.</p> <pre><code>var messages = new Array(10); function addmessage(message) { messages.unshift(message); messages.length = 10; } </code></pre> <p>But when i try to show the array i cant get it to show the messages in ord...
javascript jquery
[3, 5]
2,375,004
2,375,005
javascript id select
<p>I have a javascript function that someone made for me. I am kind of a noob at raw javascript. I use jquery quite often so I have been spoiled. Right now the function runs when someone clicks anywhere on the page because the <code>document</code> selector is used to trigger the function. I want the function to run wh...
javascript jquery
[3, 5]
1,290,016
1,290,017
Help me change jquery slideshow to add additional class
<p>I have a slideshow, its only changing photos. I need to add a new div box on top of each photo. At the moment jquery code takes just #slideshow and .active. How to amend it to grab also new div class ".newbox" (.newbox1 for first photo, .newbox2 for second and so on). Each time a different box has to come up on top ...
javascript jquery
[3, 5]
5,519,553
5,519,554
Need working solution to use Android Pattern Lock Screen in custom Application (and not source code redirects)
<p>I'd like to use the Android Lock Screen Pattern in my custom application while opening the app. I've searched a lot, but everyone asks to use the LockScreenUtils.java class from the source code. I'm having a tough time doing this.</p> <p>One post on stackoverflow asks to make custom 3x3 matrix with a button on each...
java android
[1, 4]
1,803,251
1,803,252
Dropdown List will not populate
<p>I'm not sure how to correct the following problem. I have dropdown list that has a object data source. Then in the code there is a method like this </p> <pre><code>void InitPageData() { MembershipUser user = Membership.GetUser(); DataSetTableAdapters.MemberInfoTableAdapter da = new DataSetTableAdapters.Memb...
c# asp.net
[0, 9]
2,336,294
2,336,295
Android - declaring namespace of my own app
<p>Hey, I tried to declare my own namespace, and use attrs.xml for holding some of attributes i need in application, but it just wont see my namespace. in Manifest file I have</p> <blockquote> <p>manifest<br> xmlns:android="http://schemas.android.com/apk/res/android"<br> package="com.gierca"<br> android:versio...
java android
[1, 4]
3,762,365
3,762,366
Loading JavaScript Into Div Dynamically
<p>I need to load JavaScript code (which I don't have control over) from a URL into a div. The JavaScript code is a bunch of document.write() statements. Once the document.write() statements finish executing, I need to extract the resulting text from the div using jQuery or JavaScript and use that text for something el...
javascript jquery
[3, 5]
683,418
683,419
Create new div arround anchor link when clicked
<p>How can I achieve this behaviors onclick with jquery :</p> <p><strong>default state:</strong></p> <pre><code>&lt;a href="something.html"&gt;Anchor&lt;/a&gt; </code></pre> <p><strong>click state</strong></p> <pre><code>&lt;div class="highlight"&gt; &lt;a href="something.html"&gt;Anchor&lt;/a&gt; &lt;/div&gt; </co...
javascript jquery
[3, 5]
122,884
122,885
jquery div rotation with handle
<p>I want to rotate the div, but with a <code>handle ( button on its top-right corner )</code>, i tried but i did`nt get success, so if there is any plugin which do this job for me then please let me know? Thanks !</p>
javascript jquery
[3, 5]
1,625,817
1,625,818
immutable collection?
<p>i use a readonly collection to prevent users from altering my cached data, but the items themselves are ofcourse muatble. Is there a way to prevent that behaviour?</p> <p>Michel</p>
c# asp.net
[0, 9]
5,416,011
5,416,012
jQuery ancestors using jQuery objects
<p>I'd like to check ancestry using two jQuery objects. They don't have IDs, and are only going to be available as jQuery objects (or DOM nodes if you called <code>get()</code>). jQuery's <code>is()</code> only works with expressions, so this code would be ideal but will not work:</p> <pre><code>var someDiv = $('#div...
javascript jquery
[3, 5]
3,717,000
3,717,001
how to save edited image locally using aviary web widget and php
<p>I plugged the feather aviary web widget into my site and it looks and plays fantastically.but I am having a hard time with php to save the edited images locally(from aviary server to my server) and i want to overwrite original image into edited image.i read the aviary documentation(www.aviary.com/web-documentation) ...
php jquery
[2, 5]
5,395,378
5,395,379
Year view calendar
<p>I need a calendar like <a href="http://arshaw.com/fullcalendar/" rel="nofollow">FullCalendar</a> but with full year view. The idea is that every user can select his own holidays using this calendar and store all the individual days withing a database.</p> <p>Does someone know any library or something for that?</p>
php javascript jquery
[2, 3, 5]
5,527,913
5,527,914
Dataview does not contains record in other event.
<p>I have defined dataview globally at Global declaration section. Now i am assigned the value of another dataview to that global defined dataview in one method. Now i am using that global defined Dataview into another method. But i am not getting the records that are defines in first method. I need it. How to do that?...
c# asp.net
[0, 9]
4,599,810
4,599,811
Swapping a CSS class on jQuery .load event
<p>I have a list styled with CSS - standard stuff. The items within that feature jQuery .load to load the relevant info into another div. This works fine, however I also need to change the class in the list to reflect which item has been loaded. My existing code below, which will probably explain it better...</p> <...
javascript jquery
[3, 5]
3,249,940
3,249,941
How can I temporarily disable click events on a button without actually disabling it?
<p>Using jQuery, I would like to, without changing the <code>disabled</code> attribute of a given button, disable all click events for it.</p> <p>I was thinking of retrieving the click event handlers, unbind them, and storing them (say, using <code>data()</code>). </p> <p>Then I can re-bind them once the button is en...
javascript jquery
[3, 5]
479,002
479,003
AndroidPlot only for answer
<p>I could not find on the Help how to change from one kind of chart to the other for example from <strong>Line charts</strong>, <strong>Scatter charts</strong>, <strong>Bar charts</strong>, <strong>Step charts</strong> during development with Eclipse using latest <code>Androidplot-core-0.4.4-release.jar</code>.</p> <...
java android
[1, 4]
4,638,153
4,638,154
"Uncaught SyntaxError: Unexpected token [" all of a sudden in Chrome
<p>It was working fine up until very recently. Chrome tells me this is incorrect with "Uncaught SyntaxError: Unexpected token ["</p> <pre><code>$.each($regions, function(index, [value1, value2]) { $("#regions .options").children("#r").append("&lt;div class='brick' id='" + index + "' name='" + value2 + "'&gt;" + ...
javascript jquery
[3, 5]
784,438
784,439
HttpContext.Current.Session is null
<p>I have a WebSite with a custom Cache object inside a class library. All of the projects are running .NET 3.5. I would like to convert this class to use Session state instead of cache, in order to preserve state in a stateserver when my application recycles. However this code throws an exception with "HttpContext.Cu...
c# asp.net
[0, 9]
3,019,721
3,019,722
How to show a loading message while preloading images in a for loop?
<p>I'm using this code to preload all the images I need</p> <pre><code>var cache = []; function preloadImages() { var i; $("#loading").html("loading..."); for (i = 0; i &lt;= 180; i++) { var src = source.replace("###", i); var cacheImage = document.createElement("img"); cacheImage...
javascript jquery
[3, 5]
5,390,729
5,390,730
Can i use resolveurl in javascript
<pre><code> &lt;script language="javascript" type="text/javascript"&gt; banner2.add("FLASH", "../Banners/1.swf", 10, 60, 468,"http://www.techpint.com","_blank"); banner2.add("FLASH", "../Banners/2.swf", 10, 60, 468,"http://www.tapasya.co.in","_b...
c# asp.net javascript
[0, 9, 3]
1,941,129
1,941,130
Set initial JQuery suggest value
<p>I have a JQuery suggest box using a key and a value. The key is the saved value, for example a userId and the value is the shown value such as a username.</p> <p>When having a blank field it works great. I type a few characters, select a name and the value is added as the value that is posted with the HTTP request....
javascript jquery
[3, 5]
1,259,989
1,259,990
Change drop down list values when another user makes a choice from another drop down list in the same form
<p>My question is: How can i change the options-values from one list according to what a user choose from another drop down list. My issue here is that these both lists must be populated with a query.</p> <pre><code>&lt;label for="category"&gt;&lt;/label&gt; &lt;select name="category" id="category"&gt; ...
php javascript
[2, 3]
5,081,450
5,081,451
add class to option in select
<p>Based on the value of an option would that be possible to add a class to an option?</p> <p>So if i have this:</p> <pre><code> &lt;select class="rubrique" name="ctl00"&gt; &lt;option value="" selected="selected"&gt;&lt;/option&gt; &lt;option value="1"&gt;1&lt;/option&gt; &lt;option value="1"&gt;1&lt;/...
javascript jquery
[3, 5]
4,535,302
4,535,303
Is inputType="phone" limit the no of digits to take as inout
<p>I used <code>android:inputType = "phone"</code> to take phone number as input, but if i give six digits it takes otherwise force close and fires the error that </p> <blockquote> <p>"NumberFormat exception not valid int value"</p> </blockquote> <p>Actually i'm trying to convert that value to integer through:</p> ...
java android
[1, 4]
3,235,669
3,235,670
Dynamic Loading of external javascript file
<p>How do I accomplish this? Every time I try to load an external javascript file from google maps, it crashes the webpage and it becomes blank.</p> <p>I used the $JQuery.get(); function.</p> <p>I am using JQuery to load the file into the head.</p>
javascript jquery
[3, 5]
563,919
563,920
Redirect to a dynamic page with Javascript
<p>This is what I am trying to do:</p> <pre><code>function show_confirm() { var r=confirm("Are you sure you want to delete this record?"); if (r==true) { window.location = "delete.php?case=&lt;?php echo $case; ?&gt;"; } else { window.close() } } &lt;input type="image" src="images/delete.gif" name="image"...
php javascript
[2, 3]
1,193,866
1,193,867
C# ASP.NET Korzh Query Builder Custom Value Editor
<p>I would like to find out from someone if they have worked with <a href="http://devtools.korzh.com/" rel="nofollow">Korzh Query Builder</a> before.</p> <p>If so, have you tried implementing a Custom Value Editor, and if so, how did you do this, and if possible do you have any links/documentation.</p> <p>The provide...
c# asp.net
[0, 9]
3,515,004
3,515,005
Capture Copy/Paste/Select in Javascript
<p>How can i capture the following keys in <code>Textbox</code> using <code>JavaScript</code>?</p> <p><kbd>Ctl</kbd> + <kbd>a</kbd> </p> <p><kbd>Ctl</kbd> + <kbd>c</kbd></p> <p><kbd>Ctl</kbd> + <kbd>v</kbd></p> <h2>Following is the original Situation.</h2> <p>I have three <code>Textboxes</code> for Phones numbers....
javascript asp.net
[3, 9]
3,137,626
3,137,627
How to get a specific frame within a frameset using jQuery?
<p>My main page:</p> <pre><code>&lt;FRAMESET&gt; &lt;FRAMESET &gt; &lt;FRAME name="menu" src=&lt;%=menu%&gt;&gt; &lt;FRAME marginWidth="0" src=&lt;%=bottom%&gt; &gt; &lt;/FRAMESET&gt; &lt;FRAMESET&gt; &lt;FRAME src=&lt;%=title%&gt;&gt; &lt;FRAME name="main"src=&lt;%=main%&gt;&gt; &lt;/FRAMESET&gt; </co...
javascript jquery
[3, 5]
2,571,106
2,571,107
$("html").animate does not work
<p>I'm using the following code for scrolling to top with the smooth animation. This works fine in Mozilla and IE browsers, but in chrome it is not working. Can any one please help.</p> <pre><code>$("#animate_top a").click(function(){ $("html").animate({scrollTop : 0},'slow'); }); </code></pre> <p>I have add...
javascript jquery
[3, 5]
3,031,126
3,031,127
Why does this if/else not work in jquery for me?
<p>I have the following that fires off when a checkbox is changed.</p> <pre><code>$(document).ready(function() { $("#reviewed").change(function(){ if ($('#reviewed:checked').val() !== null) { $.ajax({ url: "cabinet_reviewed.php?reviewed=yes", cache: false, ...
javascript jquery
[3, 5]
3,100,733
3,100,734
.removeClass() not removing class. Possible specificity error
<p>I'm trying to simultaneously add a class to a clicked link, while simultaneously removing that same class from the DOM. The part of the code that adds the class works, but it just makes the class appear again and again. I'm also curious about the efficacy of a javascript solution vs. a server-side solution. </p>...
php javascript jquery
[2, 3, 5]
1,929,061
1,929,062
How to get the value of usercontrol in codebehind of page
<p>How to get the value of usercontrol to page holding usercontrol?</p>
c# asp.net
[0, 9]
2,376,776
2,376,777
Replace text string with jQuery on page load?
<p>I have following code in my html </p> <pre><code>&lt;p&gt;6565655655|cell&lt;/p&gt; </code></pre> <p>I want to remove this vertical line and wrap word "cell" into round bracket. So I want output like below </p> <pre><code>&lt;p&gt;6565655655 (cell)&lt;/p&gt; </code></pre> <p>How I can do it using jquery when con...
javascript jquery
[3, 5]
32,732
32,733
jQuery AJAX URL path issue
<p>In jQuery AJAX url place, if I give <code>http://172.121.0.1/filename.php</code>, it's working. If I give <code>http://localhost/filename.php</code> then it's working. Please help me.</p> <pre><code>$.ajax({ url: "http://172.22.0.155/login/login_check", type: "POST", data:$("#logins")....
php jquery
[2, 5]
919,779
919,780
How to update onclick value when keyup?
<p>I’m trying to update the function parameter inside <code>onclick</code> when the user inserts a quantity in the input field.</p> <p><strong>HTML</strong></p> <pre><code>&lt;input type="text" id="quantity1" class="quantity_class" /&gt; &lt;input type="submit" id="onclick1" class="quantity_class" value="Add to cart"...
javascript jquery
[3, 5]
1,244,399
1,244,400
ASP.NET gridview control rowCreated function after button click
<p>I am wondering how can I control the execution order of server-side functions(asp.net and C#) for a post_back request?</p> <p>For example: I have two buttons on my webpage, and click on any of them will trigger a post_back request. The post back will update a gridview in an AJAXUpdatePanel. I found that if I click...
c# asp.net
[0, 9]
2,179,179
2,179,180
Which Language I Should Learn After Python?
<p>I'm 14. I'm currently learning Python Language. Now What Should I Learn After Python ? Here are the options:</p> <ol> <li>C++0x</li> <li>C# or .Net</li> <li>Java or any other like Scala, Groovy, etc.</li> <li>D</li> </ol> <p>Sorry For First Post. Plz Help me this time.</p>
java c++ python
[1, 6, 7]
3,169,914
3,169,915
Stuck on Hello, L10N tutorial on Android Developer website
<p>I am brand new to Android development and so I'm making my way through the tutorials on the Android Developer website. I'm currently doing the Hello, L10N tutorial about localisation: <a href="http://developer.android.com/resources/tutorials/localization/index.html" rel="nofollow">http://developer.android.com/resour...
java android
[1, 4]
5,633,519
5,633,520
Question about inline aspx tags
<p>I have this div that's got a style attribute..In that I am setting it's background image by calling a function from code behind..</p> <pre><code>&lt;div id="id1" style = "background-image: url(&lt;%=GetImage()%&gt;);"&gt;&lt;/div&gt; </code></pre> <p>now when I add runat="server" attribute in this div..it shows th...
c# asp.net
[0, 9]
5,453,319
5,453,320
last selected option after refresh the page
<p>This is the my link</p> <p><a href="http://www.developer.nextgenexperts.in/astika/products_.php" rel="nofollow">http://www.developer.nextgenexperts.in/astika/products_.php</a></p> <p>When page will open then default currency is showing INR in top dropdown, and if i will select dropdown then i will also get GBP, an...
php javascript jquery
[2, 3, 5]
2,059,316
2,059,317
ASP.NET: How to apply CSS class for a Table generated in C# codebehind
<p>I have an ASP.NET page and I am generating an HTML table in my server side code (codebehind file )as follows.</p> <pre><code> HtmlTable iTblCart = new HtmlTable(); HtmlTableRow iRowHeader = new HtmlTableRow(); HtmlTableCell iCellHead1 = new HtmlTableCell(); iCellHead1.InnerText= "Item"; iRowHeader.Cells.Add(iCe...
c# asp.net
[0, 9]
459,795
459,796
Creating TextViews in Android with an array
<p>Alright, I'm trying to create textviews dynamically with strings i have in an array. Everything works right now besides when i create the textviews instead of them going down they each stay on the same line and run off the screen. I want each textview i create under the next. Code Below works just need it to create ...
java android
[1, 4]
2,231,260
2,231,261
exposing jQuery plugin properties
<p>Given the following JQuery plugin. Is it possible to expose the variable 'elements' to javascript external to the plugin? And if so, how is this done? For javascript external to this plugin, what would the syntax be to access 'elements'?</p> <pre><code>(function($) { $.fn.myPlugin = function() { // ...
javascript jquery
[3, 5]
1,747,686
1,747,687
function is setting all instead of each
<p>I have a simple function that sets the width of a bar based on an argument.</p> <p>And I call the function on .each with jQuery.</p> <p>The console logs the statement correctly, showing me it seems to work. However, the style seems to be overridden by the last value found.</p> <p>Here is the function:</p> <pre>...
javascript jquery
[3, 5]
1,843,078
1,843,079
Toggle text on button tag
<p>I have a show hide table rows feature but would now like to change my text. </p> <pre><code>&lt;script language="javascript" type="text/javascript"&gt; function HideStuff(thisname) { tr = document.getElementsByTagName('tr'); for (i = 0; i &lt; tr.length; i++) { if (tr[i].getAttribute('class...
javascript jquery
[3, 5]
3,394,263
3,394,264
PHP Variables inside JQuery/Javascript
<p>I have some javascript/jquery code and need to some php into it be the syntax seems to be wrong...</p> <p>This is what I'm doing:</p> <pre><code>$.post("myphp.php?something=$phpvariablehere",{ etc.... </code></pre> <p>The result right now is that it's taking <strong><em>$phpvariablehere</em></strong> as a string ...
php javascript jquery
[2, 3, 5]
1,766,713
1,766,714
Waiting for $.post answer
<p>I'm checking if the entered login is already registered in my database using ajax function below...</p> <pre><code>function freelog(login) { var data = {login:login}; $.post ('freelog.php', data, function(response){ if(response == '1') { freelogin = true; } else if(re...
php javascript jquery
[2, 3, 5]