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,479,429
2,479,430
jQuery DatePicker and .NET- one calendar control but multiple instances on one .aspx page
<p>Scenario: I have an .aspx page containing multiple collapsible panels. Each panel represents a different report. To run a report, you click a panel and the report's user controls will appear. The date range control I created could be contained "within" more than one panel. </p> <p>The code below does not work in...
asp.net jquery
[9, 5]
4,395,193
4,395,194
jQuery generated input fields: read form values in php?
<p>I'm getting a json string with jQuery and then for each value, I add a checkbox.</p> <pre><code>function dateClick(url){ $.getJSON(url, function(data){ var row = $("#HourSelectionTable tbody").html(); $("#HourSelectionTable").empty(); $("#HourSelectionTable").append(row); $.eac...
php jquery
[2, 5]
4,830,919
4,830,920
how to get the previous H3 tag
<p>i have this code:</p> <pre><code> &lt;nav role="nav" id="primary-nav" class="overview"&gt; &lt;h3 class="section active"&gt; &lt;span class="menu-toggle open"&gt;&lt;/span&gt; &lt;span data-content="the-basics"&gt;The Basics&lt;/span&gt; &lt;/h3&gt; &lt;ul class="active"&gt; ...
javascript jquery
[3, 5]
1,718,679
1,718,680
jquery reference this from parent
<p>Google is not being helpful trying to find the answer to this question! :(</p> <p>How do I properly reference <code>this.colour</code> from the parent object from within a jQuery function like this:</p> <pre><code>var obj = { colour: 'blue', do: function() { $.getJSON('getcolour.php', function(resp) { if (...
javascript jquery
[3, 5]
961,976
961,977
How to do user selectable background in own app in android?
<p>I have an android app which is a simple home screen. What I want is to create an option where users can select background by themselves. Currently I have made the option but it does not hold the background after I restart or press back button. It goes back to the background what I set in the xml file as android:back...
java android
[1, 4]
4,452,745
4,452,746
Error : "Uncaught Typeerror: cannot read property 'innerHTML' of null" when appending a new <script> to div
<p>In below fiddle I am receiving this error : Uncaught TypeError: Cannot set property 'innerHTML' of null </p> <p>Looking at the code it the error seems to be thrown here : </p> <pre><code>_$("pds-answer6343621").innerHTML=y6343621 </code></pre> <p>I think this is occuring because the script is executing before th...
javascript jquery
[3, 5]
2,361,364
2,361,365
How to: compare array elements with a String
<p>I have predefined an array:</p> <pre><code>$tags = array('PHP', 'Webdesign', 'Wordpress', 'Drupal', 'SQL'); </code></pre> <p>Now I am inputting a value into a text area:</p> <pre><code>$text = 'Working With Wordpress Shortcodes and doing some NoSQL and SQL'; </code></pre> <p>How can I compare the string value wi...
php jquery
[2, 5]
1,262,821
1,262,822
Why use $ in the name of javascript variables?
<blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/205853/why-would-a-javascript-variable-start-with-a-dollar-sign">Why would a javascript variable start with a dollar sign?</a><br> <a href="http://stackoverflow.com/questions/2880926/jquery-what-is-the-difference...
javascript jquery
[3, 5]
1,658,849
1,658,850
C#: Object reference not set to an instance of an object
<p>I get the following error:</p> <blockquote> <p>Object reference not set to an instance of an object</p> </blockquote> <p>This is my C Sharp code:</p> <pre><code> DataTable tableAcces = dsAcces.Tables["dsPrinterAcces"]; DataTable tableMDF = dsAcces.Tables["dsPrinterMDF"]; DataRow newrow = null...
c# asp.net
[0, 9]
3,511,794
3,511,795
Any Javascript Library or Jquery plugin for calculating Polygon's Area?
<p>Let say I have a polygon with n points. Now I need to calculate the polygon area? Is there is any library exist or a custom function exist?</p>
javascript jquery
[3, 5]
3,505,898
3,505,899
get web page height through jquery
<p>How can I get the height of viewable web page of browser with jquery? I have tried $(window).height() but it did not return accurate result.. Thanks..</p>
javascript jquery
[3, 5]
358,570
358,571
Pull in random form for testing
<p>I would like some help in starting this project, some advice on where to look. On one of my sites we have a jQuery Tools powered overlay that holds a contact form. The form is located in the /forms directory. I would like to create several (5-6) forms that have different layouts and test which works best with our us...
php jquery
[2, 5]
270,273
270,274
Speed of Java vs. JS / HTML / CSS for web applications
<p>I am creating a web application. I have primarily used Javascript specifically jQuery. Because of some very specific functionality, I am running into practical limitations of Javascript--they're not hard limitations but stuff that I would find easy in Java, like making an equation editor where you can edit directl...
java javascript
[1, 3]
4,410,093
4,410,094
comparing two List<>
<p>i have gridview control with a checkbox on it</p> <p>When i hit on save button i able to find the checkbox which have been checked and i able to do it so far so good but the problem is:</p> <p>let say if the user tries to uncheck the checkedbox so how would i track the changes and save it into the db that has been...
c# asp.net
[0, 9]
4,227,382
4,227,383
Return to Main Activity from arbitrary Activity on android application
<p>I'm developing an android application which have a kind of action bar and a dashboard.</p> <p>When the user click the "application logo" button on the ActionBar from any Activity in the application, it would then open the dashboard activity. And finish all others Activities behind it.</p> <p>What is the best way t...
java android
[1, 4]
3,322,638
3,322,639
decoding ISO characters
<p>I got Chinese characters encoded in ISO-8859-1, for example <code>&amp;#20860; = 兼</code><br> Those characters are taken form the database using AJAX and sent by Json using json_encode.<br> I then use the template Handlebars to set the data on the page.<br> When I look at the ajax page the characters are displayed c...
php javascript jquery
[2, 3, 5]
3,200,940
3,200,941
Set phone format in php?
<p>hi I have a simple text field for "Phone Number" in a contact form on a client's website so The format script returns like this(xxx) xxx-xxx whatever the user types into the field example user enter first three numbers than automatically show textfield data like above i mention </p> <p>please guide me</p> <p>Tha...
php javascript
[2, 3]
3,505,098
3,505,099
JavaScript does not replace the last symbol of the string
<p>I have try to replace a symbol in JavaScript, but somehow this is always only replace the 1st symbol of the string instead of replaced all the symbol. </p> <p><strong>JavaScript</strong>:</p> <pre><code>var note = "test'test'test'"; note = note .replace("'", "&amp;#39;"); </code></pre> <p><strong>Output</strong>:...
javascript jquery
[3, 5]
358,812
358,813
jquery entering only numbers in text box
<p>Need to restrict entering alphabets and special characters in a textbox using jquery. Need to enter only numbers. How to implement using keypress() functionality in jquery for a text box in jsf?.</p> <p>Code :</p> <pre><code> &lt;table&gt; &lt;tr&gt; &lt;h:inputlabel value="Actual"&gt;&lt;...
javascript jquery
[3, 5]
3,338,428
3,338,429
What personal information about website visitor can be collected with PHP and JavaScript?
<p>For example I am thinking about things like this:</p> <ul> <li>IP - <code>$_SERVER['REMOTE_ADDR']</code></li> <li>User Agent - <code>$_SERVER['HTTP_USER_AGENT']</code></li> <li>Referer - <code>$_SERVER['HTTP_REFERER']</code></li> <li>Language - <code>$_SERVER['HTTP_ACCEPT_LANGUAGE']</code></li> <li>Screen resolutio...
php javascript
[2, 3]
5,006,357
5,006,358
Is there a good way to identify a word, even if it's misspelled in javascript?
<p>I have a bunch of words (mostly locations, like Stockholm and London) and a bunch of strings. like "I want to go from stockholm to london". I want to find out what words are in what strings.</p> <p>I currently use .indexOf to perform this task.</p> <p>Is there a library, method, function etc, in javascript that id...
javascript jquery
[3, 5]
428,213
428,214
Clicking a div that opens a corresponding div
<p>I am dynamically creating a div class for a set of divs. The class corresponds with the class of another set of divs (also dynamically generated). I gave them the same class so as to be able to click on the div that displays by default and have the corresponding div appear (which is not displayed by default). The...
php jquery
[2, 5]
653,559
653,560
jQuery - Setting field values in the action page while loading it through the load function
<p>I have two html pages, directory.html and customer.html</p> <p>I'm trying to set values to the text fields presented in my action page (customer.html) from my directory.html page.</p> <p>I'm using the jQuery's load function to load my directory page, Can someone please guide me how I can set the text field's value...
javascript jquery
[3, 5]
537,949
537,950
How to create and use a two dimensional array of classes
<p>I was just experimenting with a two dimensional array of classes in java. I wrote the following (wrong) code:</p> <pre><code>public class GameEvent { static int LAUNCH_ALIEN = 0; static int END = 1; long time; long cum_time; int alien_type; int event_code; } </code></pre> <p>then</p> <pre...
java android
[1, 4]
4,492,965
4,492,966
How can I include javascript in content loaded with jquery using $.ajax
<p>I want to load some HTML which include a bit of javascript, using jQuery. I've tried using both load() and ajax(). The HTML is inserted nicely into the DOM, but any script-tags seems to be filtered out. If I alert() the returned HTML, the scripts are included, but when i use html() or append(), the scripts are missi...
javascript jquery
[3, 5]
1,642,697
1,642,698
How to hide the full url of a website and only display the domain name?
<p>How would I hide the pages that the user is surfing and just show him/her the domain name. E.G. www.google.com as opposed to www.google.com/index.aspx etc...</p> <p>Thanks</p>
c# asp.net
[0, 9]
3,630,875
3,630,876
How to convert an image into ASCII
<p>I want to send an image to the server through XML. For that i need to change my image in ASCII. Can any one help me</p> <p>Thanks in Advance. </p>
java android
[1, 4]
476,642
476,643
How to develop application for both 320x480 and 480x854?
<p>i to implement my same application for both 320x480 and 480x854 resolutions. For this purpose i copied my images in hdpi and mdpi drawable folders but still it is not working with480x854 resolution. What i must do other than this to solve my problem? Thanks</p>
java android
[1, 4]
987,867
987,868
Abstract question about Dom Object as Value Object in Javascript
<p>I've got an image gallery where each item in the gallery has a unique ID I'm using to tie it to my backend so that I can run DB actions etc. I'm using the data attribute to hold the 'imageid' on the parent div of each image for example: data-imageid="168"</p> <p>The image gallery items have alot of nested divs so o...
javascript jquery
[3, 5]
1,624,607
1,624,608
Sharedpreferences in android
<p>Well, I am beginner in Android and java, but I'm trying to learn.</p> <p>My question is. I have these methods in my class (to save and load Sharedpreferences):</p> <pre><code>private String Load_pref(String key){ SharedPreferences sharedPreferences = getPreferences(MODE_PRIVATE); String strSavedMem1 = shar...
java android
[1, 4]
4,018,250
4,018,251
View the changes made by the user on the screen c#?
<p>I have a gridview where the user will be able to enter values and save the changes made. I want to show the user the changes he made so far in the grid and traverse him through the changes on next and previous button clicks like how we do in TFS and other compare tools.</p> <p>Can you please suggest me how can I ac...
c# asp.net
[0, 9]
2,931,249
2,931,250
JQuery multiply and add
<p>Let's say I have some numbers that I want to multiply and add. </p> <pre><code>var a = 5; var b = 10; var c = 2; var d = 3; </code></pre> <p>I want to sum b and c then multiply that by a, then add d. Easy right?</p> <p>If if were a normal equation the formula would look like: (a * (b + c) + d)</p> <p>But how do...
javascript jquery
[3, 5]
3,665,231
3,665,232
Jquery function remain focus in text fields in all forms even div tag displayed
<p>I am using this function to show div tag in master page</p> <pre><code>$("#div_NotificationOuter").show(1000); $("#div_NotificationOuter").animate({ bottom: '+=30px' }, 4000); </code></pre> <p>But in some pages I have textfields and when this div tag display fields loosing focus. How I remain focus in text fields...
javascript jquery asp.net
[3, 5, 9]
2,142,066
2,142,067
Javascript alert when user closes the tab ot the window
<p>I want when a user closes the tab or window or when he tries to move to another location different from my site to pops a confirm box, and if he confirm to execute an ajax script and then to close or change the window. I don't know how to do that. PS: I'm using jQuery.</p>
javascript jquery
[3, 5]
179,023
179,024
Overriding a global variable in Javascript
<pre><code>$(document).ready(function(){ var min="1.2.2"; $.validator.addMethod('xyz', function(value, element, param) { alert(min); min=minAorB();// I want to call a function which will return the minimum among A and B. ...
javascript jquery
[3, 5]
899,613
899,614
How to remember form values across different pages?
<p>I need to send form values from one page to another and from that page to a third page. I would need the form values from the first page in the third page. How can I do it?</p> <p>I have the code that transfers form values to the next page. How can I send the same form values to the third page?</p> <pre><code>&lt;...
php javascript jquery
[2, 3, 5]
874,465
874,466
How to download images from url?
<p>I want to download the image from reome URL and I get SSL error</p> <pre><code> String imgURL="http://whootin.s3.amazonaws.com/uploads/upload/0/0/23/82/Note_03_26_2013_01_10_55_68.jpg?AWSAccessKeyId=AKIAJF5QHW2P5ZLAGVDQ&amp;Signature=Za4yG0YKS4%2FgoxSidFsZaAA8vWQ%3D&amp;Expires=1364888750"; final ImageView ivC...
java android
[1, 4]
3,505,700
3,505,701
Dynamically change style of panels through javascript
<p>I am trying to display a new panel after the user clicks an add button, for some reason this is not working (it refreshes the page as well, even though my button has a return true) I have tried different ways, but nothing seems to work that well.</p> <pre><code>&lt;asp:Button ID="btnAdd" runat="server" Text="Add P...
c# javascript asp.net
[0, 3, 9]
720,311
720,312
How to cancel/kill window.setTimeout before it happens on the client?
<p>I have a few places where I use the line below to clear out a status for example. I have a few of these that hang out for 10 seconds or more and if the user gets clicking around the action can occur at incorrect time intervals. Is it possible to cancel or kill this w/ some jQuery or JavaScript so I don't have this...
javascript jquery
[3, 5]
1,636,105
1,636,106
missing ; before statement jquery error
<p>I get this error that I don't understand: </p> <pre><code>`missing ; before statement` </code></pre> <p>Here is the code</p> <pre><code> }, 'addevent' : function(data, formData){ var entry = fx.deserialize(formData); }, 'deserialize' : function(str){ var d...
javascript jquery
[3, 5]
3,422,079
3,422,080
Disabling the asp.net link button n radios using Jquery
<p>How to disable the asp.net Link buttons and asp.net radio buttons. I have used </p> <p>to enable $("#sLbtnFirst").attr("disabled", ""); to disable $("#sLbtnFirst").attr("disabled", "disabled");</p> <p>but i'm able to click the buttons they are just greying</p>
asp.net jquery
[9, 5]
5,468,982
5,468,983
Update variable when value is present
<p>I have a simple string of code. I want to show a default value when the page is loaded where the function <code>numResults()</code> is. At some point I want to update <code>numResults()</code> with a new value and then change the string without reloading the page.</p> <pre><code>$('#step1').before('Showing results ...
javascript jquery
[3, 5]
1,080,182
1,080,183
Pass checkbox values to php script page jquery
<p>I have a following code it is getting the values of checked checkboxes and submit the data on button click.Pls look into the code and do let me where i am wrong.It is not working</p> <pre><code>$(document).ready(function() { $(function(){ $('#btnClick').click(function(){ var val = []; $(':checkbox:checked...
php jquery
[2, 5]
3,544,644
3,544,645
Android Application that makes HTTP calls in multiple Activities does not return data correctly
<p>The app makes calls (utilizing HttpPost) to a PHP files that sends a queries to a MySQL database. The PHP file parses the data into a Java-friendly string statement that can easily be converted to a <code>String[]</code> array (<code>String[] str = data_from_php.split(",");</code>); so the data id formatted like so:...
java android
[1, 4]
3,158,973
3,158,974
How could I find an element with similar ID in JS?
<p>In my page I have labels that look like this:</p> <pre><code>ContentPlaceHolder1_gvGroups_lblName_0 </code></pre> <p>with corrosponding:</p> <pre><code>ContentPlaceHolder1_gvGroups_lblHidden_0 </code></pre> <p>I can assert that any *lblName has a corrosponding *lblHidden.</p> <p>Now, I have some js:</p> <pre><...
c# javascript asp.net
[0, 3, 9]
1,001,655
1,001,656
how to call C++ dll function with int& and int* parameters from C#?
<p>My C++ DLL have a function like this:</p> <pre><code>void func1(int&amp; count, int* pValue); </code></pre> <p>this function will determine the "count", and put some values into the pValue int array which is the length of "count". </p> <p>how can I define my C# code? you can ignor the [DllImport ...] part.</p> ...
c# c++
[0, 6]
2,863,957
2,863,958
display "page loading" message
<p>I'm trying to display an image (.gif) for "page loading" in html page until the output from my_script.py gets displayed, and I've no idea how to do that. <a href="http://jsfiddle.net/9X4gW/" rel="nofollow">This</a> is what I've got so far. Many thanks in advance.</p> <p><strong>HTML:</strong></p> <pre><code>&lt;di...
javascript jquery
[3, 5]
1,898,575
1,898,576
jQuery: how to select every cell in a table except the last in each row?
<p>I want every cell in each row except the last in each row. I tried:</p> <pre><code>$("table tr td:not(:last)") </code></pre> <p>but that seems to have given me every cell except the very last in the table. Not quite what I want.</p> <p>I'm sure this is simple but I'm still wrapping my head around the selectors....
javascript jquery
[3, 5]
1,210,049
1,210,050
Grep strings in jQuery
<p>I have a jQuery object (thisClass) that contains 2 or more class names. I am trying to figure out how to return only the class name that is in a predetermined array.</p> <p>Something like this:</p> <pre><code>var thisClass = $(this).attr("class"); var icons = ["glass","leaf","dog","home"]; [Use grep here to retur...
javascript jquery
[3, 5]
3,111,340
3,111,341
Show values from array in jquery
<p>Ok, the title might make it sound easy (and maybe it is), but I can't figure out how to show values from an array, not just do a <em>each</em> with them, but put them on the site slowly, with a nice effect... </p> <p>Like this <a href="https://twitter.com/about/resources/widgets/widget_search" rel="nofollow">Twitte...
javascript jquery
[3, 5]
2,722,805
2,722,806
Difference between console.log enabled verification
<p>I have seen <code>jquery-ui-1.8.11.js</code> verify <code>console.log</code> functionality by doing</p> <pre><code>if (this.debug) console.log() </code></pre> <p>I have also seen people define an anonymous function that is a no-op for browsers with no console logging like IE7.</p> <pre><code>if(typeof console ...
javascript jquery
[3, 5]
2,889,464
2,889,465
Uploading files captured within an android application to a remote server on a desktop
<p>I have just finished my android application which uses the native phone camera to take a picture and also record a video. I now want to use my phone to upload these items remotely on my local website(with Apache as the web-server and MySQL as the database scripting language is php). However, this website is running ...
php android
[2, 4]
3,339,392
3,339,393
How to pass parameter with a href and onclick function
<p>I want to pass parameter when I click in <code>&lt;a href&gt;</code>, first I have this and works fine:</p> <pre><code> &lt;a href="#" rel="like{{num}}"&gt; I like &lt;/a&gt;| $("a[rel^='like']").click(function(){ $.ajax({ ... }); </code></pre> <p>but I don't know how...
javascript jquery
[3, 5]
4,029,530
4,029,531
External JS file not finding controls, but work with quickwatch
<p>I have the following code in my aspx file:</p> <pre><code>var blah = "&lt;%= lblErrorsMain.ClientID %&gt;" </code></pre> <p>and here is the external js file:</p> <pre><code>function ShowShowScans2() { oWebDialogWindow2 = document.getElementById(blah); oWebDialogWindow2.set_windowState($IG.DialogWindowSta...
javascript asp.net
[3, 9]
5,923,848
5,923,849
Logout in PHP using button onclick event
<p>I'm just implementing a login and logout system in PHP and experiencing problems with logout. The system outline is as follows:</p> <ol> <li>When the user logs in, a session is created with a session variable "user".</li> <li>After the session is set up, the user is redirected to <code>index.php</code> file.</li> <...
php javascript
[2, 3]
118,114
118,115
Time calculate and compare for best time in Android
<p>How to calculate time taken in playing a game in Android using java. Can you please specify which timer you are using? And how to compare those time slacks taken by user to find which is his best score?</p>
java android
[1, 4]
150,690
150,691
pnotify refuses to work
<p>I downloaded the pnotify jquery plugin from <a href="http://pinesframework.org/pnotify" rel="nofollow">Pines Notify</a></p> <p>Simply it tells me to add the required js and css files and on document ready the following should work !</p> <pre><code>$(document).ready(function() { $.pnotify({ type: 'erro...
javascript jquery
[3, 5]
2,982,573
2,982,574
Recognize fields from PDF,DOC and etc formats and export them to database
<p>is anybody know the solution for reading file(for example pdf format, it has some tax information), recognize fields and write them to DB? It is similiar idea that FlexiCapture has. </p> <p>Thank you for your attention!</p>
java php python
[1, 2, 7]
3,744,335
3,744,336
How to override another javascripts css changes without being able to modify that file?
<p>I'm customising a Tumblr theme.</p> <p>Tumblr's lightbox for Photosets is created through their own javascript, on the fly. IE: When i click on a link, the element is created at the bottom of the page. Here's a copy of that file: <a href="http://dl.dropbox.com/u/346800/stackoverflow-questions/tumblr.js" rel="nofoll...
javascript jquery
[3, 5]
2,000,529
2,000,530
Clean way to detect if a Java library is being used on Android
<p>What is a good way to detect inside a Java library, if it is being used on the Android platform?</p>
java android
[1, 4]
1,183,948
1,183,949
Keypress anywhere to text field?
<p>I'm wanting to mimic the functionality in the new Myspace. What happens is you can simply start typing and the UI changes to a "search". The characters entered are now within a large text field with auto complete showing results.</p> <p>How do I detect a keypress anywhere on the page, not within a specific text fie...
javascript jquery
[3, 5]
5,494,269
5,494,270
From Java to C++ or C#
<p>I am having a technical interview in a week where I expect questions in C++ or C#. I have strong knowledge and experience in Java. Which one (C++ or C#) would be easy to jump and be prepared in a week for simple questions like binary tree, linked list etc? I have never worked with any of them. So syntax similariness...
c# java c++
[0, 1, 6]
3,068,554
3,068,555
Get URL to current background-image and hand over to <a href>
<p>I have an issue i couldn't figure out so far. I googled and searched here, found some answers, but I can't get it to work.</p> <p>I want to figure out the current background image from css and create a link to download the image.</p> <p>This is my simplyfied code so far:</p> <pre><code>&lt;style type="text/css"&g...
javascript jquery
[3, 5]
2,186,645
2,186,646
how to call a javascript fn in Update panel on Partial postback in asp.net
<pre><code> &lt;asp:UpdatePanel runat="server" ID="Holder" OnLoad="" UpdateMode="Always" ChildrenAsTriggers="True"&gt; &lt;ContentTemplate&gt; ... &lt;asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer_Tick" /&gt; &lt;/ContentTemplate&gt; &lt;...
javascript asp.net
[3, 9]
1,713,600
1,713,601
How to Center Facebox
<p>I like to center facebox on a project im working on. when i added this code it will center</p> <pre><code> $(document).bind('close.facebox', function() { $(document).unbind('keydown.facebox') $('#facebox').fadeOut(function() { $('#facebox .content').removeClass().addClass('content') $('#facebox...
javascript jquery
[3, 5]
701,870
701,871
Time Update Application
<p>I am trying to make a digital clock in android.</p> <p>I looked into the Time and Date classes.</p> <p>However I cannot find any API that is tells me how to obtain when a minute has passed? For e.g. when working with locationManagers,</p> <pre><code> public void onLocationChanged(Location location) </code></pre...
java android
[1, 4]
4,486,250
4,486,251
Target iframe body and remove nodeType 3 (=text)
<p>I'm trying to access an iframe's content but for some reason it doesn't work. I can do this which will work:</p> <pre><code>$('iframe').load(function (){ $('#iframeID').contents().find('SOMETHING').remove(); }); </code></pre> <p>Anything else does work except for this code:</p> <pre><code>$('iframe').load(funct...
javascript jquery
[3, 5]
4,792,412
4,792,413
The import android.os.storage.StorageVolume cannot be resolved
<p>I have android.jar in my path. Do I need any other jars? Thank you</p>
java android
[1, 4]
3,643,793
3,643,794
jQuery and the this object
<p>jQuery is too overpowering :(</p> <pre><code>String.prototype.trim = function () { return this.replace(/^(\s|&amp;nbsp;|\u00A0)+|(\s|&amp;nbsp;|\u00A0)+$/g, ""); } </code></pre> <p>when I try to add the above code, I get <em>"this.replace is not a function"</em>.</p> <p>I realise that jQuery references itself...
javascript jquery
[3, 5]
4,000,640
4,000,641
Edit output of a pre-compiled generic handler .ashx
<p>I've inherited a pre-compiled website that uses javascript created in a generic handler (ashx). I need to modify the js, but I dont have the source, only the pre-compiled libraries. Currently, we're simply doing an http request on the ashx, modifying the result and then outputting it directly on the site:</p> <pr...
c# asp.net
[0, 9]
4,025,016
4,025,017
how to get location of div and highlight it
<p>Like stackOverFlow ,after click the message box,the page jump to my question,locate and highlight the answer .</p> <p>i want to implement it with both <code>javascript</code> and <code>jquery</code> .</p>
javascript jquery
[3, 5]
4,253,836
4,253,837
Problem regarding mail content
<p>I am sending mail to the customers. And the format is like this:</p> <blockquote> <p>Name: abc. Company:ccc. Address: sde.</p> </blockquote> <p>So the mail is coming out in continuous format which I don't want.</p> <p>I want it in this format:</p> <blockquote> <p>Name: abc.</p> <p>Company:ccc.</p> ...
c# asp.net
[0, 9]
3,992,427
3,992,428
return value javascript UIWebView
<p>i'm trying to get the return value of a javascript function(for example: <code>return "hello"</code>) with iPhone SDK.</p> <p>On OS X the WebView method <code>-stringByEvaluatingJavaScriptFromString</code> returns a NSString containing the js function return value, but on the iPhone no value is returned.</p> <p>Ho...
javascript iphone
[3, 8]
5,958,709
5,958,710
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]
3,986,888
3,986,889
How can i call API periodically?
<p>I am working in android. I want to draw a comment window. in which I have a list View which shows comment retrieved from a API.</p> <p>I want to call that API after 30 second again and again so i can show recent comments in my list view.</p> <p>This is the code which is used to call my API.</p> <pre><code> Http...
java android
[1, 4]
3,995,378
3,995,379
How to convert all() function to work crossbrowser
<p>I have below code. I want to convert this as cross browser compatible. As all() is IE only function i need to convert this. Please help me. </p> <pre><code> for(j=1,oTblRows=tblSource.rows,tLen=oTblRows.length;j&lt;tLen;j++){ o=oTblRows[j].all("center"); if(o &amp;&amp; (o.innerText === selCenter.va...
javascript jquery
[3, 5]
884,597
884,598
JQuery method for IFrame functionality
<p>I have a aspx page (details page) that needs to be loaded in a modal window on a click of a button. I have buttons in the aspx page that calls server side functionality. So, this is similar to an IFrame way (except that it's now in a modal window)</p> <p>Is there a JQuery way of doing this? It appears that the JQue...
asp.net javascript jquery
[9, 3, 5]
1,429,674
1,429,675
stream.CopyTo - file empty. asp.net
<p>I'm saving an uploaded image using this code:</p> <pre><code>using (var fileStream = File.Create(savePath)) { stream.CopyTo(fileStream); } </code></pre> <p>When the image is saved to its destination folder, it's empty, 0 kb. What could possible be wrong here? I've checked the stream.Length before copying and it...
c# asp.net
[0, 9]
2,981,268
2,981,269
Treeview Expand/collapse not working?
<p>i have an asp treeview that expand/collapse work fine on local ...but it give me errors when i upload this on live site...</p> <p>Errors are below</p> <pre><code> WebForm_InitCallback is not defined NetworkError: 404 Not Found ....WebResource.axd?d=gadbiR_oDm56cBQvDxSVvV9T1EihsEfUV2kQ8sK3P5Qk...
c# asp.net
[0, 9]
5,227,246
5,227,247
how to address list-items in the DOM
<p>I've this markup</p> <pre><code>&lt;ul id="body"&gt; &lt;li class="item"&gt;1&lt;/li&gt; &lt;li class="item"&gt;2&lt;/li&gt; &lt;li class="item"&gt;3&lt;/li&gt; &lt;li class="item"&gt;4&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>When an item is clicked, is there a way in jQuery to identify in the DOM, the...
javascript jquery
[3, 5]
1,800,044
1,800,045
How to Fix the width attribute in cross browser environment
<p>Please see the JS link here </p> <p><a href="http://trac.openwebanalytics.com/browser/trunk/modules/base/js/includes/jquery/jquery.ui.selectmenu.js?rev=1436" rel="nofollow">http://trac.openwebanalytics.com/browser/trunk/modules/base/js/includes/jquery/jquery.ui.selectmenu.js?rev=1436</a></p> <pre><code>(function($...
javascript jquery
[3, 5]
411,134
411,135
How to show Image Preview using javascript or jquery in Internet Explorer
<p>I'm not able to show the image preview in Internet Explorer.</p> <p>I'm using FileReader() it working fine all the browsers but not in ie(version 9) and lower versions.</p> <p>I need the alternative for FileReader to diplay the preview.</p> <pre><code> $('#FileUpload').live('change', function () { ...
javascript jquery
[3, 5]
3,765,569
3,765,570
How can I make a redirect page in JavaScript/jQuery?
<p>I want to redirect a user from one page to another using jQuery. How can I do that? </p>
javascript jquery
[3, 5]
3,967,524
3,967,525
With jQuery slideDown/slideUp on hover, how to wait until previous slide finishes?
<p>I have a drop-down menu where the drop-down slides open, then slides back closed. </p> <pre><code>$('nav ul li').hover( function () { $(this).children('.subnav').slideDown(300); }, function () { $(this).children('.subnav').slideUp(300); } ); </code></pre> <p>If someone hovers ove...
javascript jquery
[3, 5]
2,421,622
2,421,623
just displaying only one row[gridview] in the textboxes
<pre><code>protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { SqlConnection con = new SqlConnection(" Data Source=SYS022\\SQLEXPRESS;Initial Catalog=Bhagavan;Integrated Security=True"); con.Open(); SqlCommand cmd = new SqlCommand("select * from emp3", con); SqlDataReader dr =...
c# asp.net
[0, 9]
3,481,880
3,481,881
how to run multiple functions and then a callback
<p>Once again I am 'dabbling' in the dark art of javascript and jQuery without much of a clue as to what I'm actually doing. All I know is that I managed to get my code to function by cribbing bits of other code and modifying it a bit, and after a lot of cursing, it worked.... in a fashion.</p> <p>Below is a piece of ...
php javascript jquery
[2, 3, 5]
2,060,571
2,060,572
Assigned variable mysteriously becomes null
<p>I have class:</p> <pre><code>public class Nomenklatura implements Serializable { ArrayList&lt;String&gt; data = new ArrayList&lt;String&gt;(); ArrayList&lt;String&gt; data1 = new ArrayList&lt;String&gt;(); ArrayList&lt;String&gt; data2 = new ArrayList&lt;String&gt;(6); } </code></pre> <p>And Activity: ...
java android
[1, 4]
1,839,476
1,839,477
Close Facebox inside iframe
<p>I am using this mod:</p> <p><a href="http://lnx.shortcutto701.com/2010/05/21/using-iframe-with-facebox-jquery-plugin/" rel="nofollow">http://lnx.shortcutto701.com/2010/05/21/using-iframe-with-facebox-jquery-plugin/</a></p> <p>My question is, how do I make a button which is inside the iframe to close the facebox. I...
javascript jquery
[3, 5]
3,010,413
3,010,414
Algorithm for 'Shift + Clicking' items in a collection to select them
<p>I am trying to mimic the file selecting from Windows Explorer in Javascript. I notice Windows Explorer has two types of "selecting". One is the normal selection which highlights the file and the other one is a dotted line which means that file is currently focussed on. So I am using "selected" and "focus" as css cla...
javascript jquery
[3, 5]
4,818,973
4,818,974
Bit defines textbox visibility
<p>I don't know how to fix or handle this issue. But I currenlty have 2 links as following: <code>NavigateUrl="~/Admin/ManageProducts.aspx?IsMeal=true</code> and False.</p> <p>When it is set to TRUE I want txtDescription to be visible, and when set to FALSE I wan't txtDescription to be invisible.</p> <p>IsMeal is a B...
c# asp.net
[0, 9]
5,286,991
5,286,992
PrettyPhoto Opening on the same page
<p>I'm using a few jQuery plugins for a website I'm designing, Prettyphoto as well as ImageFlow, and I'm trying to get Prettyphoto to open imageflow. When I go to actually click on the link to the image gallery the content loads beneath the rest of the content on my site. If you navigate to gallery on this link and cl...
javascript jquery
[3, 5]
2,905,868
2,905,869
Configure asp.net Web Controls in external configuration file
<p>I've an asp.net web application accessed by different users with different roles.</p> <p>Now I've to enable/disable and show/hide controls (label, textbox, buttons in grid, third party controls) based on a logic involves context variables and users role.</p> <p>I want to avoid to write IF statements in <code>onLoa...
c# asp.net
[0, 9]
1,672,305
1,672,306
sort() function in IE
<p>So this code doesnt seem to work with IE, I have not found anything that says it shouldn't. What am I doing wrong?</p> <pre><code> ​&lt;ul id="cars"&gt; &lt;li id="2"&gt;Ford&lt;/li&gt; &lt;li id="1"&gt;Volvo&lt;/li&gt; &lt;li id="3"&gt;Fiat&lt;/li&gt; &lt;/ul&gt; var list = $('#cars').children('...
javascript jquery
[3, 5]
151,763
151,764
How to start Youtube Player a few times?
<p>I have code for playing array of Youtube links:</p> <pre><code>package com.nda.ut; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.On...
java android
[1, 4]
794,264
794,265
Jquery child elements
<p>When I add event handler to a some elements using query:</p> <pre><code>$('div').mouseover(function () { }); </code></pre> <p>Iinside function I have an element for which we add event function ($(this)). how can I check inside this function next:</p> <ol> <li>Have this "DIV"($...
javascript jquery
[3, 5]
3,001,142
3,001,143
Using Jquery to copy the values of multiple fields
<p>I'm trying to write a jquery funciton that will copy specified fields from the element above the current one into matching fields of the current element. Specifically I have a asp.net repeater that is spitting out tables with a few fields in it and I want a "Same as above" function. I'm still new to jquery though an...
javascript jquery
[3, 5]
753,862
753,863
Not able to check if Tic-tac-toe a square is empty using jQuery
<p>I'm coding a Tic-tac-toe game but the code which I'm using to check whether the user is clicking on an empty square or an already filled one is not working for me. Please find my mistake.</p> <pre><code>function startgame(){ var $board=$('#board'); $('div.square').remove(); for(var i=0;i&lt;9;i++) ...
javascript jquery
[3, 5]
692,953
692,954
How to use my PHP function in JavaScript code
<p>I'm trying to use my PHP function in JavaScript like this:</p> <p>PHP code:</p> <pre><code>function checkevents($date){ $ev = new CalendarModelEventss(); $wh = "`event_date` = '".$date."'"; $all = $ev-&gt;getAllEvents('event_date', $wh); if($all == $date){ //echo 'event is available'.$all; ...
php javascript
[2, 3]
3,668,072
3,668,073
Custom select option
<p>I have requirement to use custom dropdown menu. I have searched a lot for a custom combobox implementation but I didn't find one that matches my requirements, namely: I need up/down arrows on the side of the combobox. When the user clicks one of them, the value changes, but not list should be displayed.</p> <p>The ...
javascript jquery
[3, 5]
4,960,591
4,960,592
Cannot read parameters from Msxml2.XMLHTTP ajax call
<p>I cannot read parameter in PageHandler when using Msxml2.XMLHTTP ajax call.</p> <pre><code>function InvokeHandler() { InitXmlHttp(); xmlhttp.onreadystatechange = XMLHttpRequestCompleted; xmlhttp.open("GET", "BookmarkletHandler.ashx?target=ww1", true); xmlhttp.send(); } </code></pre> <p>I ...
c# asp.net
[0, 9]