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
1,101,549
1,101,550
How to do in place editing using jquery/javascript
<p>Is there an in place editing plugin that will save the changes locally rather than send each update to the server?</p> <p>Edit: Suppose I have an html section as </p> <pre><code>&lt;div class="editable"&gt; &lt;p&gt; Name&lt;/p&gt; &lt;p&gt; Address&lt;/p&gt; &lt;/div&gt; </code></pre> <p>I am looking...
javascript jquery
[3, 5]
4,299,510
4,299,511
Android How to Zoom into Grid View or Gallary View
<p>I am currently developing my first android app. I need to be able to zoom into a gridview with 225 images. From what i have come across it is not possible to do horizontal scrolling with a GridView. It is possible to make Gallarys to be scrollable both vertical and horizontal. I have the ability to detect when a use...
java android
[1, 4]
6,022,802
6,022,803
ASP.NET - Setting CssClass of a CheckBox
<p>The following code</p> <pre><code>((CheckBox)e.Row.FindControl("exportCb")).CssClass = "enabledExport"; </code></pre> <p>Creates html</p> <pre><code>&lt;span class="enabledExport"&gt;&lt;input id="_ctl0_ContentPlaceHolder1_gridviewName__ctl2_exportCb" type="checkbox" name="_ctl0:ContentPlaceHolder1:gridviewName:_...
jquery asp.net
[5, 9]
830,932
830,933
jquery clone only element's content
<p>It there a way in jquery to clone an element's content. Not the entire element, only the content(children). Something similar to what <code>.html()</code> is doing but I'm also interested in cloning the events attached to the content. I was looking at <code>.clone</code> but it seems that is cloning the entire elem...
javascript jquery
[3, 5]
2,634,280
2,634,281
Two submit event handlers on a form. One must stop the other
<p>I have to event handlers attached to a form. The first one that fires should stop the other event if a condition is not met.</p> <p>The code below does not work, as both events will be triggered. Can you help me?</p> <p>Thanks!</p> <pre><code>//fires first $("#myform").submit(function(){ if (some validation) { ...
javascript jquery
[3, 5]
842,576
842,577
ASP button Colors not shown in the Mobile?
<p>I am using ASP and MySQL in my project. I am trying to make Mobile Software works in WiFi. I have put MySQL in Server. And Asp.Net Deployment Package in System IIS. </p> <p>In that I have Created buttons in running time and gave colors to buttons. When I test it in System Browsers, Its perfectly Working. </p> <p>...
c# asp.net
[0, 9]
5,412,954
5,412,955
Retrieve size of background image after scaling with jQuery?
<p>I have the following simple code to get me the background-image dimensions, but it grabs the size of the original image, not the scaled one I have in my div. I want to get pixel dimensions after scaling, is there any way to do that?</p> <pre><code>var actualImage = new Image(); actualImage.src = $("#chBox").css('ba...
javascript jquery
[3, 5]
5,965,535
5,965,536
iframe source problem with Safari
<p>I have a problem with Safari</p> <p>Whenever the source of the iframe changes the new source is not displayed it instead shown as a download file.</p> <p>Here is a sample of the code:</p> <pre><code>&lt;?php echo "&lt;iframe id='myframe' width='600' height='200' src='image3.php?id=$content' style='margin-left:25...
php javascript
[2, 3]
828,052
828,053
invoke javascript function on tabindex change
<p>I want have link on click of that link a javascript function is called. Now i want to invoke that function using tab key. so when the focus goes to the link using tab key, the javascript function should be called.</p> <p>How to implement this?</p>
javascript asp.net
[3, 9]
2,529,356
2,529,357
How do I border an image by selecting a part of the title?
<p>hope you can help me solving my problem.</p> <p>These two images are linked somewhere on a site.</p> <pre><code>&lt;a href=&quot;?FRUIT=banana&gt;&lt;img height=&quot;40&quot; src=&quot;../../banana.jpg?format=raw&quot; title=&quot;Banana - yellow&quot;&gt;&lt;/a&gt; &lt;a href=&quot;?FRUIT=apple&gt;&lt;img heigh...
javascript jquery
[3, 5]
1,270,041
1,270,042
how to disable asp.net menu with javascript
<p>I am using asp menu.I want to disable it and enable it using javascript. Please help</p> <pre><code> &lt;asp:Menu ID="MainMenu" runat="server" Orientation="Horizontal" DataSourceID="HAPSMainMenu" MaximumDynamicDisplayLevels="3" DynamicEnableDefaultPopOutImage="true" StaticEnableDefaultPopOutImage=...
javascript asp.net
[3, 9]
5,819,447
5,819,448
Unable to retrieve value of the gridview column after making it invisible
<p>I have a gridview say gv1 . Which has 5 columns. I bind the gridview on the change of a dropdown selection. After binding I make the 4th(gv1.column[3]) and 5th(gv1.column[4])column visible false.</p> <pre><code>gv1.Columns[3].Visible = false; gv1.Columns[4].Visible = false; </code></pre> <p>I am unable to access t...
c# asp.net
[0, 9]
1,951,502
1,951,503
want to show place on google map when input lat,longitude value
<p>I want to show place on google map, when input latitude , longitude value. I want to write that with C#. If anyone has sample, please share me.. thanks in advance...</p>
c# asp.net
[0, 9]
2,289,122
2,289,123
Browse dialog for custom server control
<p>I have created a custom server control that inherits from Hyperlink. The output html after control is rendered is a nice looking css button with an icon. For the icon I have a string property.</p> <p>What i would like to do is on the source code to open "browse file dialog" for the icon similar to NavigateUrl prop...
c# asp.net
[0, 9]
366,899
366,900
jQuery remove an object and replace in same spot
<p>How would I go about removing an object say from an unordered list and add it to another list while keeping its location? I know i can set the original item to hide() but then that leaves a small space where the item use to appear. Say i have a list A and B, if a user clicks on an item in A it needs to be added to...
javascript jquery
[3, 5]
538,948
538,949
Access phonebook from android to c# desktop application
<p>Can any one help me to create a .net c# desktop application that can get details of phone book from android phone. I want to just access phonebook details.</p>
c# android
[0, 4]
4,483,473
4,483,474
Dialog Box is not close after i update the button in dialogbox
<p>i am trying to close the dialog box automatically after i update the button in dialogbox, but it will not close automatically, is there any proper solution to resolve this issue? this is my code.</p> <pre><code>&lt;script&gt; jQuery(function () { var jQuerydialog = jQuery("#view_dialog").dialog({ autoOp...
javascript jquery
[3, 5]
637,373
637,374
Cast Long[] to long[]
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/564392/converting-an-array-of-objects-to-an-array-of-their-primitive-types">Converting an array of objects to an array of their primitive types</a> </p> </blockquote> <p>I making a <code>Parcel</code> for Androi...
java android
[1, 4]
5,777,678
5,777,679
Don't show if it is empty, how to do with Javascript or jQuery
<p>I am very new to Javascript and jQuery. I managed to make a dialog box with jQuery, it is giving a warning before submitting. </p> <p>The problem is I don't want to show the label and field on the warning page if it is empty. I can't do this with PHP because form is not submitted. I need to do with jQuery or Javasc...
javascript jquery
[3, 5]
3,443,558
3,443,559
Drop down menu disappearing before I get to the links
<p>Take a look at the <strong>tour</strong> link in the menu on <a href="http://bethhaim.spin-demo.com/contact" rel="nofollow">this page</a>. When I hover over tour, it's supposed to show the menu and let me choose which of the sub menus I wish to click on but it's disappearing too fast.</p> <p>Here's the code of the ...
javascript jquery
[3, 5]
3,256,730
3,256,731
How to call setListAdapter for ListView contained in a Fragment
<p>All the examples I see of <code>ListView</code>'s tend to be either implementations of <code>ListActivity</code> or <code>ListFragment</code>, where <code>setListAdapter()</code> is called in the <code>onCreate()</code> event.</p> <p>However, I want to have a <code>ListView</code> contained within another <code>Fra...
java android
[1, 4]
4,173,158
4,173,159
Object required?
<pre><code>$(document).ready(function(){ function openEditor(){ $("#editor").show().animate({width: 965, height: 380}, 1500); $("#editor textarea").show(); } function closeEditor(){ $("#editor").animate({width: 985, height: 1}, 1500, function(){ $("#editor").hide(); ...
javascript jquery
[3, 5]
4,782,155
4,782,156
Calling a java script function with php on click
<p>Ok so i have paid a coder to code me a walk around map script were users can press up and down on the keyboard and walk aroud a map using jquery. But now im trying to make it so i have a up and down image and then on click it will call the up and down function. So the suer can use the up and down keys plus clicking ...
php javascript
[2, 3]
5,180,339
5,180,340
Create new window using jquery
<p>I'm working on a little project in JavaScript/jQuery. </p> <p>In order to display results from a calculation done in javascript, I'd like to open a new window with some predefined content and modify this content in order to display the results: Im using code like this:</p> <pre><code>var resultwindow = window.open...
javascript jquery
[3, 5]
726,666
726,667
Capture printStackTrace() output in Android
<p>I'm debugging an existing library that was not coded explicitly for Android. It works, but contains lots of <code>ex.printStackTrace()</code> calls. In Android, these are not written to the logcat by default.</p> <p>My question is: without the possibility to modify the code, is it possible to somehow see the stack ...
java android
[1, 4]
1,512,718
1,512,719
static variables in asp.net/C#
<p>I'm using extensively static variables in my web application project. Now I have read from some articles that it is a global variable for the whole project and the data that is in the static variables can be shared or overwritten by other users (I mean it is not user specific or session specific).</p> <p>So is it g...
c# asp.net
[0, 9]
2,522,653
2,522,654
Can you filter an existing jquery object by context?
<p>I've got some elements cached in a jquery object. I now want to filter them by context. Can I do this or do I need to create another jquery object with my selector while also using the second context param?</p> <p>Here's an example:</p> <pre><code>var cached = $('.elements'); </code></pre> <p>later I want to filt...
javascript jquery
[3, 5]
3,002,979
3,002,980
Can I change a asp control from image handler?
<p>I have an asp page with a button on it that uses an image handler to show a jpg. Can I disable a button on the page from the image handler base on what image is loaded. for example if c:/x.jpg is loaded, disable the button.</p> <p>Thanks Charles</p>
c# asp.net
[0, 9]
1,610,683
1,610,684
published asp.net web application pointing to local machine
<p>I have a published asp.net application. I sometimes run into a "Object reference not set to an instance of an object" Because it is pointing to my development machine(C:\Users\Dropbox\etc). I made sure that the build is on release before I release. I am not sure why it calling my dev machine. Below is the session P...
c# asp.net
[0, 9]
4,548,906
4,548,907
How to deal with errors in function nesting and calling functions within other functions
<p>Scenario:<br> I have to check for user input (a string) that shouldn't contain <code>&lt;.%?/</code> symbols and if it does I remove them. I have 20 different places where I've to check it, actually, 20 different pages with each 20 different controls.</p> <p>So I wrote a function like the following shortened exampl...
c# asp.net
[0, 9]
3,490,415
3,490,416
how to print part of rendered html page in javascript?
<p>javascript code window.print() can print the current html page. </p> <p>My question is: if I have a div in an html page(for example, a page rendered from ASP.NET MVC view), then I want to print the div only.</p> <p>Is there any JQuery Unobtrusive javascrpt or normal javascript to implement this request?</p> <p>Ma...
javascript jquery
[3, 5]
4,377,204
4,377,205
IE 8 specific bug looking for ideas JavaScript
<p>Unfortunately I can't dump my code here currently as a majority of it is propitiatory based. However I am just looking for ideas on what could cause this issue in a specific version of IE. This code is tested and works in FF, Safari, Chrome, Opera, IE 7, IE 9, but does not and refuses to work in IE 8. And any fixes ...
javascript jquery
[3, 5]
4,619,983
4,619,984
I have a substring error on start index
<p>I keep getting this error in my app small snippet of how simple this code is suppose to work</p> <pre><code>String lang = "Language.en-US".ToString(); appPath.Text = lang.Substring(2, lang.Length);// </code></pre> <p>Error</p> <pre><code>System.ArgumentOutOfRangeException: Index and length must refer to a locati...
c# asp.net
[0, 9]
3,268,467
3,268,468
How to show DialogFragment from within the onLoadFinished method of LoaderCallbacks
<p>I receive an exception when trying to show a DialogFragment from within the onLoadFinished method of a Fragment that implements the LoaderCallbacks interface. Basically I am using the LoaderCallbacks to get some data from a rest service and then on the onLoadFinished I am trying to show a custom DialogFragment that...
java android
[1, 4]
5,620,181
5,620,182
jquery hide li tag
<p>I've html like this. I want to only show first <code>li</code> tags and don't want to show span. How to do this with jquery?</p> <pre><code> &lt;div id="div1"&gt; &lt;ul class="class2"&gt; &lt;li class="class3"&gt;&lt;span class="sfBreadcrumbNodeSeparator"&gt;/&lt;/span&gt; &lt;/li&gt; &l...
javascript jquery
[3, 5]
1,112,257
1,112,258
Problems when assigning values via JavaScript to Asp.net labels and then passing via C# session object
<p>I am assigning variables to asp labels via javascript with a simple innerHTML call</p> <p>example:<br/></p> <p><code>document.getElementById('labelName').innerHTML = parseFloat(var).toFixed(2);</code></p> <p><br/> It appears in the label fine, and I am able to continue to manipulate it via javascript.</p> <p>I t...
c# javascript asp.net
[0, 3, 9]
2,950,273
2,950,274
How to Separate Image tag from Rss?
<p>In my <a href="http://expolinkfairs.com" rel="nofollow">website</a> , i am using 3rd party RSS for <a href="http://expolinkfairs.com/all_news.aspx" rel="nofollow">news</a> section.</p> <p>The Description tag mixed with html tag including image url and news.</p> <p>Now I have to separate news and image.</p> <p>Pl...
c# asp.net
[0, 9]
5,812,042
5,812,043
How to prioritize two change events in select element
<p>I have two change events handler for one select elemet. Let's call the functions Func1 and Func2. When I initialize these handlers I do the Func1 and then Func2 but when the change event happens in select element the Func2 get called before Func1.</p> <p>Is there any way to prioritize this two functions. Just to le...
javascript jquery
[3, 5]
3,786,734
3,786,735
Email date parser when right click on browser
<p>[EDIT] I rewrote the question to mention specifically the context menu. Thanks for the remark.</p> <p>I'm looking to create a date parser for email, so that in case of text selection and right click, there will be an option in the context menu to identify the selected text (say <code>7/6/2011 10:30 meeting with Joh...
c# javascript
[0, 3]
1,462,749
1,462,750
Is it possible to use a VB master page to cover an entirely separate directory written in C#?
<p>I have a company website written in vb.net. There are 5 master pages.</p> <p>I recently began utilizing a forum application, also asp.net 4.0, but this one is written in C#. My forum directory is domain.com/knowledgebase/.</p> <p>Is there any possible way to take one of my vb.net master pages and somehow integra...
asp.net c#
[9, 0]
1,360,174
1,360,175
No launcher activity found!, yet I've specified one
<p>When I specify the .main class as the launcher, it crashes on launch. So I made a new activity called launch that will be used to open the .main class. When I specify .launch as the LAUNCHER, the console tells me that no launcher activity was found.</p> <pre><code>&lt;manifest xmlns:android="http://schemas.android....
java android
[1, 4]
5,573,040
5,573,041
handle error of javascript
<p>Following error is occurring in my web page on browser</p> <pre><code>script may be busy or not responding </code></pre> <p>I want to avoid it from occurring so how can i do it, </p> <p>please give me a solution about that</p>
javascript jquery
[3, 5]
4,944,379
4,944,380
How do you get a javascript function to only be running one instance at any one point?
<p>I have some code that I'd like to run on a page. My problem is that I don't want it to be run more than once at any one point. It can run multiple times, but just not while another instance of itself is running. I'm using jQuery and loading ajax content.</p> <p>I just need something that prevents users from clickin...
javascript jquery
[3, 5]
3,250,774
3,250,775
Detect if input has focus
<p>One of my web app's page consists of a grid and a search box. I capture the keypress event to select through each of the grid's rows using the space bar. However, this creates a problem for when someone wants to look up a phrase in the search box.</p> <p>I know that jQuery has a <code>.focus</code> method to bind a...
javascript jquery
[3, 5]
3,912,100
3,912,101
How to change content of div using jquery or js?
<p><strong>HTML</strong></p> <pre><code>&lt;a href="/home/" id="one"&gt;&lt;img src="images/img1.png"/&gt;&lt;/a&gt; </code></pre> <p><strong>JS</strong></p> <pre><code>&lt;script&gt; $(document).ready(function(){ $('#one'). }); &lt;/script&gt; </code></pre> <p>How to change anchor tag to <code>&lt;a href="/home/...
javascript jquery
[3, 5]
4,812,658
4,812,659
How to add text above a marker on Google Maps?
<pre><code> try { JSONArray jArray = new JSONArray(result); for(int i=0;i&lt;jArray.length();i++) { JSONObject json_data = jArray.getJSONObject(i); //Retrieve data from db. lat &amp; long = double / name = String ...
java android
[1, 4]
4,656,506
4,656,507
How to find a particular string in a paragraph in android?
<p>In my project the data is stored in html format along with image tag. For example the following data is stored in html format and it contains 2 to 3 images.</p> <p>Mother Teresa as she is commonly known, was born Agnes Gonxha Bojaxhiu. Although born on the 26 August 1910, she considered 27 August, the day she was b...
java android
[1, 4]
2,869,968
2,869,969
asp.net mvc C# displaying \
<p>how can i display \ by using c# in a textbox .</p>
c# asp.net
[0, 9]
2,341,302
2,341,303
Port of php str_word_count to c#
<p>I'm migrating a legacy PHP application to .net, and one of the requirements is that the URLs stay exactly as before. </p> <p>To generate friendly URLs the legacy application uses <a href="http://php.net/manual/en/function.str-word-count.php" rel="nofollow"><code>str_word_count</code></a>, I was wondering if there ...
c# php
[0, 2]
3,977,334
3,977,335
Using split function in javascript want to split the url at the time of page load?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/901115/get-query-string-values-in-javascript">Get query string values in JavaScript</a> </p> </blockquote> <p>I have a URL like below</p> <pre><code> http://domain_name/?act=SiteVisit </code></pre> <p>I wan...
javascript jquery
[3, 5]
2,517,788
2,517,789
BadImageFormatException
<p>i was working with invoking C++ Dlls into C# and ran into a problem</p> <p>C++ function:</p> <pre><code> int _declspec(dllexport) CompressPacket(unsigned char *buff, int offset, int len); </code></pre> <p>C# function:</p> <pre><code> [DllImport("HuffCompress.dll")] private static extern unsafe ...
c# c++
[0, 6]
5,931,461
5,931,462
auto Focus (Hit Enter) Javascript function is working good in IE7 but not working in IE8
<p>I used a javascript FocusChange() in my aspx page. I have couple of controls and I need Hit enter key need to move next control based on tab index. It is working good in IE7 but not working in IE8... Please help me on this..</p> <p>Thanks for your help in advance. The java script is given below.</p> <pre><code>fun...
asp.net javascript
[9, 3]
2,253,670
2,253,671
how do I iterate over the results of a jquery selector
<p>When I'm trying to store all <code>&lt;a&gt;</code> elements as objects in array (using <code>$('a')</code>), and then get the position of each of them, it doesn't work. </p> <pre><code>years = $('a'); for(i=0;i&lt; years.length;i++){ if(years[i].position().top &gt; year.position().top){ } else{ } } <...
javascript jquery
[3, 5]
5,580,146
5,580,147
jQuery: setting checkbox values from array
<p>I am working on a script for setting checkboxes according to values stored in an array (part of a larger script for allowing the user to revert a form to its initial values). The code is basically this:</p> <pre><code>$("#myForm :checkbox[name='myName[]']").each(function(){ if($.inArray($(this).val(),initValues...
javascript jquery
[3, 5]
1,167,953
1,167,954
What is the equivalent to ASP.NET controls in PHP?
<p>I find it easy to put controls such as buttons, labels in a Wizard control which is inside a Panel control. I can easily control the visibilty of the Panel control. I would like to know how to accomplish the same thing in PHP. I mean is it as easy as ASP.NET to hide some elements like buttons or group of elements in...
php asp.net
[2, 9]
3,976,532
3,976,533
Vertical centre a div on a page
<p>I have a question. I want to align a div on the vertical centre off the browser viewport. I understand how to do this and have written some code myself. But there is one thing that does not work:</p> <pre><code>// fetch al info I need var windowHeight = $(window).height(); var pageTop = $(window).scrollTop(); var m...
javascript jquery
[3, 5]
1,429,413
1,429,414
Javascript, load onclick at pageload, whats broken?
<p>I'm a dizzy designer. I can't can't see why this isn't working:</p> <pre><code> &lt;head&gt; &lt;script type="text/javascript"&gt; $().ready(function() { $('#test').trigger("click"); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;a id="test" href="http://www.dartworks.net" &gt...
javascript jquery
[3, 5]
863,094
863,095
Javascript storing value in key value form
<p>i want to store value like key and value pair in javascript </p> <p>So far i am doing like this </p> <pre><code>var list_of_addressbook_entries = {}; list_of_addressbook_entries.guest_name = name ; for(key in list_of_addressbook_entries) { alert("key " + key + " has value " + list_of_addressbook_entries[k...
javascript jquery
[3, 5]
692,635
692,636
Checkbox onChange submit problem if checked
<p>The purpose is to have a checkbox, that if clicked, will send via post where I will update the db. The user can check back and forth to set or unset active status.</p> <p>This works perfectly:</p> <pre><code>&lt;form name='form".$value['id']."' action='./filter_edit.php' method='post'&gt;&lt;input type='checkbox' ...
php javascript
[2, 3]
853,044
853,045
easiest way to search a javascript object list with jQuery?
<p>What is the easiest way to search a javascript object list with jQuery?</p> <p>For example, I have the following js config block defined:</p> <pre><code>var ProgramExclusiveSections = { "Rows": [ { 'ProgramId': '3', 'RowId': 'trSpecialHeader'}, { 'ProgramId': '3', 'RowId': 'trSpecialRow1' }, ...
javascript jquery
[3, 5]
1,448,340
1,448,341
Android multiple labels
<p>I'm a new android programmer so pardon me for the basic question, I already found a valid answer but to be more efficient and use a better method I want to ask on the forum.</p> <p>I want to place about 30 labels on one page. These might contain about 1-2sentences, what is the most efficient way to scroll through t...
java android
[1, 4]
2,022,328
2,022,329
Error : Could not find HelloAndroid.apk
<p>I am very new to Android development. I followed every steps from developer.com to install ADK. Now my issue is, when I tried to run HelloAndroid application, I get an error as I mentioned in the title. I hav JRE1.6 installed. Is tat enuf? Because I read tat ether jdk or jre is ok. I am clearly blank about the conce...
java android
[1, 4]
2,671,930
2,671,931
Does Handler work between processes?
<p><strong>In RemoteService (separate process)</strong></p> <pre><code> catch (ConnectException c) { TweetViewActivity.h.sendEmptyMessage(0); } </code></pre> <p><strong>TweetViewActivity</strong></p> <pre><code> static public Handler h; class LooperThread extends Thread { ...
java android
[1, 4]
5,104,793
5,104,794
How to make PHP more Javatized (aka strongly typed, more robust)?
<p>I really love PHP because:<br> _ easy to develop web applications (you set up LAMP in 10 minutes and you are ready to go)<br> _ easy to learn<br> _ easy to deploy (you just need Apache with the PHP module) </p> <p>I really love Java because:<br> _ it is strongly typed</p> <p>I was amazed by developing with Java a...
java php
[1, 2]
2,797,784
2,797,785
Missing query string paramets after submitting form via JQuery
<p>I want to submit a form whenever the selected value is changes, and add query string parameter. It can only submit, but the parameter is lost. For example, when submitted, I want to sumit the form to this url:</p> <p><a href="http://www.a.com/myblog?year=2012" rel="nofollow">http://www.a.com/myblog?year=2012</a></p...
javascript jquery
[3, 5]
6,007,216
6,007,217
Run (remote) php script from (local) python script
<p>How do I make python (local) run php script <strong>on a remote server</strong>? </p> <p>I don't want to process its output with python script or anything, just execute it and meanwhile quit python (while php script will be already working and doing its job).</p> <p>edit: What I'm trying to achieve:</p> <ul> <li>...
php python
[2, 7]
2,945,107
2,945,108
Keep value of input which is generated by Javascript after submitting
<p>I have this code to append the input panel <code>#yearPanel</code> after the select box <code>#before</code> changed.</p> <pre><code>$("#before").change(function() { var selected = $('#before option:selected').text(); if(selected == bankShowYear) { $(yearPanel).insertAfter("#yearAnchor"); v...
php jquery
[2, 5]
3,516,449
3,516,450
jQuery Confirm Before Submit
<pre><code>&lt;form action ="/submit-page/" method='post' class="editable"&gt; &lt;fieldset&gt; &lt;select name="status" id='status'&gt; &lt;option value="Submitted"&gt;Submitted&lt;/option&gt; &lt;option value="Canceled"&gt;Canceled&lt;/option&gt; &lt;option value="Application"&gt...
php javascript jquery
[2, 3, 5]
3,591,546
3,591,547
Standard way of prompting user to select folder to write a file to?
<p>My goal is to have a button that, when clicked, pops open a 'Select Folder' window. I'd like to work with the path they selected afterwards.</p> <p>I did a bit of reading around on this and I kept coming up with the FolderBrowserDialog class from Windows.Forms. Is this still the accepted means of capturing the path...
c# asp.net
[0, 9]
2,608,083
2,608,084
How to extend ListItem to be able to have childs inside BulletList
<p>Using asp.net C#. I have BulletList, and I would like to add ListItem that will render with childs. That is, inside every <code>&lt;li&gt;</code> I can add more controls to be rendered.</p> <p>How can I achieve that?</p> <p>thanks</p>
c# asp.net
[0, 9]
1,349,329
1,349,330
Disable access to pages after logout (Session.Abandon) in C#/ASP.NET
<p>I'm interested in disallowing the following after logout:</p> <p>-- no back button</p> <p>-- no direct access to pages via URL - for example: if the user logs out then they should not be allowed to see a cached page using some URL (e.g., replacing the URL with a valid URL in the site <a href="http://mysite.com/Got...
c# asp.net
[0, 9]
2,153,680
2,153,681
How can I create a file upload progress bar with PHP and jQuery?
<p>How can I create a file upload progress bar with PHP and jQuery? Please don't refer me to Flash stuff like Uploadify. I want to create my own.</p>
php jquery
[2, 5]
3,124,188
3,124,189
How to replace link with list element and then add new link in IE7/8 with jQuery?
<p>I can't control how the HTML is generated and need to put a string of links into a list and then add new links for each item.</p> <p>I have simplified the code at <a href="http://jsfiddle.net/jhASu/" rel="nofollow">http://jsfiddle.net/jhASu/</a> and it works in Chrome/Firefox and IE9 but not in IE 7 and 8 (no new l...
javascript jquery
[3, 5]
522,666
522,667
Is there any library out there for c# that has the equivalent to "Unpack" in PHP and what is "Unpack"
<p>I just want to convert a piece of PHP code to C# so I need it's equivalent.</p> <p>And what does unpack really do? I'm very interested in this function.</p>
c# php
[0, 2]
3,621,686
3,621,687
jquery get id of table closest to key press
<p>I am creating tables on button click and that works great. I then have have a hotkey to add extra rows to those tables. I need to get the parent id of the table where the cursor is but it keeps giving me undefined. I can get the parent div id ok but when I put table in it gives me undefined. Any help would be apprec...
javascript jquery
[3, 5]
5,371,873
5,371,874
jQuery : Append text after an input field
<p>I have a simple input field :</p> <pre><code>&lt;input type="text" id="someid" name="somename" class="someclass"&gt; </code></pre> <p>I'm trying to append some link right after this; so i'll get : </p> <pre><code>&lt;input type="text" id="someid" name="somename" class="someclass"&gt; - &lt;a href="#"&gt;..&lt;/a&...
javascript jquery
[3, 5]
3,662,894
3,662,895
Javascript Variable outside of function?
<pre><code>1| &lt;script type="text/javascript"&gt; 2| function more() { 3| $("#innerSub2").animate({ scrollTop: "+=240px" },1000); 4| var count = 1; 5| document.getElementById("dot" +count).style.color="#c7c9e9"; 6| var count = count + 1; 7| document.getElementById("dot"...
javascript jquery
[3, 5]
4,504,098
4,504,099
How to set size of background image?
<p>I need some help to set the size on android Java source for a background image, here is the code on what i want to add: <code>setBackgroundResource(R.drawable.slider_bg_right);</code> is the line i have been added to add the background, but the image size is too small and I want to edit the size of the backgrounds.<...
java android
[1, 4]
145,399
145,400
add server side table content to div of aspx page
<pre><code>//ASPX PAGE &lt;div id="nonPrintable"&gt; &lt;table width="98%" border="0" cellspacing="2" cellpadding="0" align="center"&gt; -- --&lt;/table&gt; &lt;/div&gt; &lt;br/&gt; &lt;div id="printReport" runat="server"&gt; &lt;/div&gt; </code></p...
c# asp.net
[0, 9]
1,884,864
1,884,865
Tab to beginning of text input
<p>I have a login form:</p> <pre><code>&lt;form&gt; &lt;div class="username"&gt; &lt;label for="username"&gt;Email&lt;/label&gt;&lt;br /&gt; &lt;input type="text" class="field" value="Enter your email" name="email" id="id_email"&gt; &lt;/div&gt; &lt;div class="password"&gt; &lt;labe...
javascript jquery
[3, 5]
1,859,977
1,859,978
Transfer a byte[] via TCP Socket in android
<p>I need to transfer a byte[] via TCP Socket in android -client side.<br> i tried to use the following code :</p> <pre><code>public static int readBytes(byte[] myByteArray) throws IOException { InputStream in = socket.getInputStream(); DataInputStream dis = new DataInputStream(in); int len = dis.readInt(...
java android
[1, 4]
4,762,333
4,762,334
Generics, ToArray etc
<p>We have a C# code base that we have to deploy on Java.</p> <p>We are creating a migration engine that reads C# and writes Java.</p> <p>We have created stub class for the classes from system that are used in our code, and are implementing them.</p> <p>When I came to do <code>List&lt;T&gt;</code> in Java, I ran int...
c# java
[0, 1]
4,746,251
4,746,252
Send data from javascript to code behind at first load
<p>I am actually buidling a web application and I need to get data of the local environment of the machine viewing the application.To do this, I use a little javascript script such as:</p> <pre><code>&lt;script language="javascript"&gt; function GetUserName() { //Permits to get username of client machine ...
c# javascript asp.net
[0, 3, 9]
2,648,478
2,648,479
jQuery plug-in to remap numeric keypad
<p>Is there a jQuery plug-in to remap the "dot" key in the numeric keypad? The purpose is to make it print a decimal separator, rather than a dot, in languages that use commas or other characters. I'd like to mimic the behaviour of some desktop applications like MS Excel.</p> <p>(It's okay to hard-code the output char...
javascript jquery
[3, 5]
17,297
17,298
How important is it to learn jQuery with ASP.NET
<p>I'm reading a chapter on jQuery in a ASP.NET book. To be honest I'm finding it quite boring.</p> <p>How important is it to learn jQuery? And do many ASP.NET developers use it for their pages?</p> <p>Regards TDG</p>
asp.net jquery
[9, 5]
4,393,420
4,393,421
What is the most widely used feed-parsing library for Android
<p>I want to make an app which (amongst other things) can parse feeds loaded via the network. Given that the standard Anrdoid + Core Java libraries do not provide a feed parser service and I dont want to write a one myself, can you nominate a Java feed parser which will work on a low-spec Android device. </p> <p>I'm j...
java android
[1, 4]
1,964,175
1,964,176
Is there any unobtrusive way to hook into jQuery methods for triggers?
<p>I was wondering if there was any unobtrusive way to hook into methods such as attr, data, css, etc and call custom triggers?</p> <p>Ideally, I could do something like this:</p> <pre><code>$(".friend a").bind("attr.changed", changed /* data */, function(e) { alert("The " + changed.attribute + " attribute change...
javascript jquery
[3, 5]
934,127
934,128
How to open popup windows in background using javascript?
<p>Is it possible to open pop-up windows BEHIND the current active screen using java script?</p> <pre><code> var win= window.open(value,'_blank'); </code></pre> <p>the above script opens pop windows in browser tab but I loss active page from my sight.</p> <p>any suggestion?</p> <p>Thanks in advance</p> <p>Solution...
javascript jquery
[3, 5]
5,009,432
5,009,433
how to use Local resource file in client side
<p>In my application I want to use a local resource file string on client side without any jquery and javascript etc.</p> <p>Currently I'm using code behind but would like to use in client side</p> <pre><code>awec.Text= Localization.GetString("ReqLodgeName.Text", LocalResourceFile); </code></pre> <p>like this. How d...
c# asp.net
[0, 9]
2,188,837
2,188,838
Fadeout on hover effect in iPad
<p>I tried to use the fadeIn and fadeOut effect as you can see in this page: <a href="http://www.lifetime-watches.com/gal-w.html" rel="nofollow">http://www.lifetime-watches.com/gal-w.html</a></p> <pre><code>var titleString = $(this).find('a').attr("title"); $("#title").html(titleString).fadeIn(100); ; </code></pre> ...
javascript jquery
[3, 5]
7,639
7,640
Python's Equivalent of "public static void main"
<p>What is Python's equivalent of "public static void main(String[] args) { ... }"? I remember having used it in the past and then forgot.</p> <p>What I'm basically trying to remember is a function which I think included some underscores (__)...</p> <p>thx</p>
java python
[1, 7]
3,905,197
3,905,198
android.os.StrictMode instances=2; limit=1
<p>I use the <code>StrictMode</code> in my application , the api android 4.0.3, in my <code>BaseApp</code> i detect all.</p> <pre><code> builder.detectAll(); builder.penaltyLog(); StrictMode.VmPolicy vmp = builder.build(); StrictMode.setVmPolicy(vmp); StrictMode.ThreadPolicy.Builder builder1= new ...
java android
[1, 4]
2,018,593
2,018,594
How to have custom object listen for child custom object's events?
<p>I am trying to create a couple of custom objects in JavaScript and I am unsure if I am going about things the proper way.</p> <p>I have two objects: 'UserInterface' and 'VolumeSlider'. Up until a moment ago these two objects were independent, but coupled through methods. I decided that UserInterface should instead ...
javascript jquery
[3, 5]
2,908,893
2,908,894
How to make checkbox checked by default in php
<p>I am working in a form in which there are check boxes now i want to check one by default in admin panel which is checked by the user in fromt end while he submitted form.Form is same in both the panel but in admin panel the form is already filled with values entered by the user at the time of submitted in front end....
php javascript
[2, 3]
1,498,826
1,498,827
Form post doesn't contain textbox data [ASP.NET C#]
<p>I have several "ASP:TextBox" controls on a form (about 20). When the form loads, the text boxes are populated from a database. The user can change the populated values, and when they submit the form, I take the values posted to the server and conditionally save them (determined by some business logic). All but 1 ...
c# asp.net
[0, 9]
2,907,892
2,907,893
javascript capture and display php variable
<p>I have standard text links which all say "Full View". When clicked these links send out php in this form: <a href="http://mysite.com/fullview.php?myimage=30" rel="nofollow">http://mysite.com/fullview.php?myimage=30</a></p> <p>Basically there's thumbnailed images and text links that say full view. I'd like for fullv...
php javascript
[2, 3]
4,893,247
4,893,248
Make a path for create a file in Java (Android)
<p>Given a File object how can I create the path for saving it?</p> <p>I tried file.mkdirs() but for example if the file's path is:</p> <pre><code>/mnt/sdcard/downloads/myapp/temp/song.mp3 </code></pre> <p>it also creates a folder named "song.mp3" inside temp.</p> <p>How can I do it correctly?</p>
java android
[1, 4]
1,008,343
1,008,344
Find the time after 15 minutes of given time in javascript
<p>Find the time after 15 minutes of given time in javascript Example : given time is 2012-01-10 5:50 and I need to get like 2012-01-10 6:05</p>
javascript jquery
[3, 5]
5,919,259
5,919,260
JQuery Retrieving Data from aspx page
<p>I want retrieve data from aspx page. But, waiting data in static field if filling.</p> <p><strong>JQuery :</strong></p> <pre><code> $.ajax({ url: "Services/JSON/GetMessage.aspx", type: "GET", dataType: "json", success: function (response) { alert(response.Text); }, error: ...
c# javascript jquery asp.net
[0, 3, 5, 9]
1,181,487
1,181,488
How to reduce the image pixels in android but not the size?
<p>After capturing an image from starting of default camera via <code>Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE)</code>, I want to reduce the resolution (pixels) of the image. I know that image quality will get disturbed but no worries to me.</p> <p>While searching in JAVA, we can use JAI (<code>JAVA ADV...
java android
[1, 4]