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,146,575
1,146,576
Is there anyway to write android applications in PHP?
<p>Is there anyway to write android applications in PHP? </p> <p>This page clearly mentions that Android apps should be written in Java. Just wondering if there is another way...</p> <p><a href="http://developer.android.com/guide/topics/fundamentals.html">http://developer.android.com/guide/topics/fundamentals.html</a...
php android
[2, 4]
1,813,342
1,813,343
Want to show Busy Loading message with percentage download when form will load using JQuery
<p>suppose my page content is huge so in my asp.net application i want to show busy icon with percentage downloading the content in client side. i saw many flash and sliver light site that they show busy icon and also they show percentage that means how much content has been loading in client machine. how could i achie...
asp.net jquery
[9, 5]
5,727,662
5,727,663
Using custom adapter?
<p>I want to use custom adapter to fill my list view with phone contact data. I have xml with 2 text views for contact name and contact number. Also I have xml with list view and 2 buttons which I need to use latter. I want to extend Activity if is possible not ListActivity!? I tried lots of things(BaseAdaper, SimpleCu...
java android
[1, 4]
2,231,777
2,231,778
Insert a html code on clicking a link using jquery method insertBefore
<p>I am developing a social website like facebook in php. I have a page for displaying the messages for the user with two links,that is <code>reply</code> and <code>delete</code> at the right bottom corner for every messages in the inbox. My issue is that when i click the reply link another html block should come where...
javascript jquery
[3, 5]
4,474,658
4,474,659
Video Chat using Android
<p>Hey Friends,<br> how can i develop a video chat app,i have a channel for video chat, i need to connect my app with that,how can it possible?</p>
java android
[1, 4]
5,647,278
5,647,279
Initialize JQuery Datepicker with a blank value
<p>This code still sets the field to today's date</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { $('.date').datepicker({ dateFormat: "mm/dd/yy", changeMonth: true, changeYear: true, yearRange: '1900:2020', defaultDate: '' }); }); &lt;/script&g...
javascript jquery
[3, 5]
5,485,549
5,485,550
Extract text value from aspx via php
<p>Trying to get a text value either "yes" or "no" from an aspx page via my php product page.</p> <p>from here..</p> <p>after code= i need to insert the product model number $products_model</p> <p>example.. <a href="http://www.madisonb2b.co.uk/stockenquiry.aspx?id=B8FxKDnJ%2bIdaPT1Nw5wo4r87qHuHcCQIPZzeUE%2fI36LIFOM%...
php asp.net
[2, 9]
799,761
799,762
Tab within a text area without changing focus, jQuery
<p>Given a textarea, is there any way to use jQuery to enable the ability for people to use the "tab" key that actually ..inserts a tab, instead of jumping focus to the next form element on the page?</p> <p>I've followed <a href="http://stackoverflow.com/questions/3362/capturing-tab-key-in-text-box">Capturing TAB key ...
javascript jquery
[3, 5]
937,516
937,517
Javascript onclick not passing utf 8 data
<p>I have an <code>onclick</code> function and I'm using it to pass some utf 8 data (in persian language) to receive it in a jQuery function, but it does not work.</p> <p>I also added</p> <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; </code></pre> <p>and</p> <pre><code>&lt;scr...
javascript jquery
[3, 5]
1,999,310
1,999,311
Easy modification to jQuery code to make use of more than one textbox
<p>How to change the following code to make use of all my 4 textboxes with id extra1, extra2,persons and tables?</p> <pre><code>$(document).ready(function () { $('#extra1').blur(function () { if ($.trim(this.value) == "") { $('#btnUpdate').attr("disabled", true); } else { ...
javascript jquery
[3, 5]
2,347,334
2,347,335
How to call javascript postback codebehind with same submit button
<p>I have a asp.net application display file names with treeview structure on the page. After the user click on the checkbox to select the download files on the treeview then they can click the submit button. First, I need to retrieve the checked(selected) node path value. Second, pass all the node path with folder/fil...
javascript asp.net
[3, 9]
4,981,953
4,981,954
Progress Bar using JQuery
<p>I want to show a progress bar in my page using JQuery. If i hardcoded the value as 10 means, in the progressbar " 10% Completed " should be displayed. How to do this..Please guide me...</p>
javascript jquery
[3, 5]
4,076,739
4,076,740
Problem tracking what javascript is causing jQuery UI error in firebug
<p>So I am getting the following error in firebug regarding jQuery UI. It would be as simple if it was a matter of a process-of-elimination on the JS on the page, but there is allot of JS as well as some on the page and some on the site.master.</p> <p><strong>ERROR</strong></p> <pre><code>(this.uiDialogTitlebarClose...
javascript jquery asp.net
[3, 5, 9]
908,140
908,141
execute javascript before dom is loading
<p>I want to develop a handle javascript class that handle used frameworks, among other things.</p> <p>For example:</p> <pre><code>myClass.addFramework('jQuery'); // just an example </code></pre> <p>It works fine and my class add the framework - but if there any jQuery code in it, it wouldn't work, because the frame...
javascript jquery
[3, 5]
3,097,502
3,097,503
Implementing button click from a custom list view
<p>I am using one class which extends ListActivity and One class extending BaseAdapter. The Base Adapter uses getView function to inflate layout from xml. The xml contains a text and a button to delete the row of list. Please let me know how to handle the button click in the ListActivity class. Send me a sample snapsho...
java android
[1, 4]
5,572,655
5,572,656
Javascript reload the page with hash value
<p>I am trying to refresh the page with this statement in external javascript file after some processes.</p> <pre><code>window.location.href = window.location.href </code></pre> <p>It perfectly reload the page but I want to scroll to the specific location after reload. So, I put this on the page.</p> <pre><code>&lt;...
javascript jquery
[3, 5]
5,415,377
5,415,378
Finding words within a paragraph of text
<p>I have a <code>&lt;p&gt;</code> tag and within the tag, there is a paragraph of text. </p> <pre><code>&lt;p&gt;"Hello Lorem ipsum Hello dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris ...
javascript jquery
[3, 5]
4,136,066
4,136,067
If you select an element in jQuery by ID is there still a speed improvement by giving it a context?
<p>Imagine this simplified markup:</p> <pre><code>&lt;div id="header"&gt; &lt;!-- Other things.... --&gt; &lt;div id="detail"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>and assume you already have this code:</p> <pre><code>var $hdr = $("#header"); </code></pre> <p>Is there any speed difference for jQu...
javascript jquery
[3, 5]
2,180,576
2,180,577
Javascript DIV positioning
<p>I am working on some JS to display a Twitter-eque error/success banner. I would like the banner to be visible at the top of the browser (FF, Chrome, Safari) for the duration of the time it is in view (including if the user decides to scroll somewhere else). I can't figure out the solution however.</p> <p>Another is...
javascript jquery
[3, 5]
4,994,040
4,994,041
Global variable getting me null
<p>I want to use Global variale in my project so I have simply take a class in which I can set and get any variable dat easily.</p> <p><strong>like this::</strong></p> <pre><code>public class Glob_variable { String Path = new String(); /**********************************************/ public...
java android
[1, 4]
1,390,614
1,390,615
Android Texting App change from "Media"
<p>I made a texting app for Android. When I tested it I found that if I try to go into silent mode (on a phone) the texting app will still go off, because it is set to a "media" and not a "ringtone" volume type. </p> <p>Is there any way to change this so when I silence my phone, my app will also be silenced? I don't w...
java android
[1, 4]
2,729,541
2,729,542
Pass variable from jQuery to PHP
<p>I created a script to read a hash (www.website.com/#hash) and pass the hash in to php. The <code>alert(hash)</code> pops up with the hash value, but the hash is not being echoed out in the post variable. Any idea why?</p> <p><strong>jQuery page</strong></p> <pre><code>&lt;script&gt; var hash = location.hash; ...
php javascript jquery
[2, 3, 5]
2,950,695
2,950,696
javascript working in firefox or crome not ie
<p>I have the following lines of code in my .js file</p> <pre><code>$(triggers.restart).live('click', function (e) { e.preventDefault(); plugin.method.startQuiz(this); }); </code></pre> <p>The code is working fine in firefox or chrome but not in ie. Any points??</p> <p>Thanks in advance...</p>
javascript jquery
[3, 5]
2,876,873
2,876,874
Android:how to iterate an ArrayList<String> in different thread
<p>I need to iterate an ArrayList of String in a different thread, I don't need to add or delete items, just to iterate.</p> <p>How can I do it?</p>
java android
[1, 4]
4,847,400
4,847,401
Get HTML in the body after a certain div
<p>I have this:</p> <pre><code>&lt;body&gt; &lt;div id="someJunk"&gt; Content &lt;/div&gt; &lt;svg class=.....&gt; &lt;svg class=.....&gt; &lt;/body&gt; </code></pre> <p>I need to get the svg's, either as a string or a list. How would I got about doing that?</p>
javascript jquery
[3, 5]
3,920,560
3,920,561
How to get the document height using C#?
<p>I am using ASP.NET and C#.I can able to get the document height using javascript with this.</p> <pre><code>var h = document.documentElement.offsetHeight; </code></pre> <p>Now i need this value during pageload. But the javascript will be start exicuting after pageload. So now i need to get it using server side code...
c# asp.net
[0, 9]
1,679,731
1,679,732
how to check if input type button is pressed in php?
<p>the isset function can be used to check if input type submit is pressed but is there any way to check if the input type button is pressed?in my code the button does nothing but call a function on onclick event which then refreshes the page and makes a database entry inside php...and i want it to make the entry only ...
php javascript
[2, 3]
2,131,382
2,131,383
return false in firefox causing ajax timing issue i'm thinking
<p>I have a simple ajax page that adds 2 numbers.</p> <p>When I run in IE, the async callback works.</p> <p>When I run in Firefox it doesn't work.</p> <p>I get the correct return value in Firebug but lblSum remains blank in Firefox.</p> <p>It has something to do with the <strong>return false</strong> at the end of ...
c# javascript asp.net
[0, 3, 9]
4,190,891
4,190,892
Is it possible to progressively enhance image quality while zooming in safari mobile
<p>Is there any JavaScript/jQuery plugin that can take large images and enhance the quality while zooming? something like google earth/maps?<br></p> <p>I want to use it in mobile browser, but a desktop solution will do too</p>
javascript jquery iphone
[3, 5, 8]
2,182,845
2,182,846
settimeout in IE
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5651668/set-time-out-in-javascript">set time out in JavaScript</a> </p> </blockquote> <pre><code>if (document.getElementById("safeForm4d").submitted.value == "false") { document.getElementById("safeForm4d")....
javascript jquery
[3, 5]
1,605,220
1,605,221
Please confirm what .class does in java
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3295163/in-java-what-does-a-reference-to-class-class-do">In Java, what does a reference to Class.class do?</a> </p> </blockquote> <p>Firstly apologies for asking this question here. I know it's a simple question...
java android
[1, 4]
4,188,471
4,188,472
slideToggle() and Table tag with unknown height
<p>I am trying to <code>slideToggle()</code> a <code>table</code> with no set height. Is this possible?</p> <pre><code>&lt;div class="container"&gt; &lt;h3&gt;Title&lt;/h3&gt; &lt;p class="expand-close"&gt;&lt;a href=""&gt;Expand/Close&lt;/a&gt;&lt;/p&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; ...
javascript jquery
[3, 5]
4,569,556
4,569,557
Create master checkbox outside {foreach} tag
<p>I have <strong>dynamic page</strong> under <code>{foreach}</code> tag something like this.</p> <pre><code>&lt;div id="c1"&gt; {foreach} &lt;input type="checkbox" name="checkbox" id="{$num}" checked/&gt; {/foreach} &lt;/div&gt; </code></pre> <p>which in return <strong>prints</strong> something like this.</p> <pre>...
php javascript jquery
[2, 3, 5]
2,950,073
2,950,074
.animate infinite loop
<p>I am interested in a solution for jQuery <code>.animate</code> infinite loop break method.</p> <pre class="lang-js prettyprint-override"><code>$(element).mouseover(function() { $(this).animate({ opacity: 1 }, duration, customFunc); }).mouseout(function() { }); </code></pre> <p>And question now is how to break ...
javascript jquery
[3, 5]
599,533
599,534
Get Selected Value for drop down list
<p>I have filled my drop down list on client side using jQuery script.</p> <p>However, on post back the selected values of drop down list does NOT get maintained.</p> <p>How can i set the selected value to drop down list on server side Or is it possible on client side...</p> <p>I am creating my drop down list dynami...
javascript asp.net
[3, 9]
3,846,600
3,846,601
Javascript: How to check boolean value from code-behind in ASP.NET
<p>I have a boolean property in code-behind ASP.NET, now I want to use it in Javascript of mark-up file, but Javascript do not understand True, or False. SO now, I'm using this:</p> <pre><code>if ( '&lt;%=IsTabVisible%&gt;' == 'True'){ /// } </code></pre> <p>It works, but quite ugly. Is there a better way to do this?...
javascript asp.net
[3, 9]
795,598
795,599
Javascript: How to get the ClientID of the button that was clicked?
<p>Here's the button.</p> <pre><code>&lt;asp:Button ID="_btnSearch" Text="Search" onclientclick="return CheckForEmptySearchBox(this.ClientID)" /&gt; </code></pre> <p>And here's the Javascript function</p> <pre><code>&lt;script type = "text/javascript"&gt; function CheckForEmptySearchBox(id) { aler...
javascript asp.net
[3, 9]
4,213,776
4,213,777
Finding max/min date in multidimensional JavaScript object
<p>What's the easiest way to find the earliest start date and latest end date from the object below?</p> <p>(Sorry - I realize there are a lot of similar questions already out there, but my JS skills are poor and I haven't been able to apply any of the solutions to my own data. So with that said, a code example would ...
javascript jquery
[3, 5]
4,325,540
4,325,541
Is it possible to do conditional statements in the CssClass property?
<p>I'm using a repeater control. One of my item attributes is a boolean. I know I can do a conditional statement in the Text property, such as:</p> <pre><code>Text='&lt;%# Item.Boolean ? "Text 1" : "Text 2" %&gt; </code></pre> <p>However, what if I want the same text but a different CSS style depending on the boolean...
c# asp.net
[0, 9]
5,247,018
5,247,019
how to popup modal before window close?
<p>I am using a fancybox jquery plugin, what i need is to make sure before the website close a modal popup up and get us the details for submission to a form. </p> <p>Please let us know how to make sure that before close a website a modal box fires up.</p> <p>Have tried using unload method. It works when you use retu...
javascript jquery
[3, 5]
721,695
721,696
Jquery post a Array
<p>I am having a Array which is generated by my Javascript in run time. once that array is full with all the values I want to send it using POST to the server. How can I do that ...</p> <p>Pseudo code:</p> <pre><code> for(i=0;i&lt;result.data.length;i++) { result.data[i].id } $.post("re...
javascript jquery
[3, 5]
1,531,967
1,531,968
How can a new object of Activity for each notification?
<p>I have code for creating notification:</p> <pre><code> NotificationManager notifyMngr=(NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); Notification notification=new Notification(mId, "New alert!", System.currentTimeMillis()); Intent alert = new Intent(this, AlertInfoActivity.class); ...
java android
[1, 4]
5,425,769
5,425,770
jquery detach(): [object Object] has no method 'replace'
<p><em>Uncaught TypeError: Object [object Object] has no method 'replace'</em> to be precise. The code:</p> <pre><code>var controls = $('#head_hidden').children().eq(0); var item_mouse_over = function() { $(this).append(controls); } var item_mouse_leave = function() { $(this).detach(controls); //this is the p...
javascript jquery
[3, 5]
177,657
177,658
null object reference in master pages
<p>I have some controls inside my master page, and i want to acces them from its related c# clas..</p> <p>For instance i have:</p> <pre><code>&lt;asp:DropDownList ID="ddlSearch" runat="server" onselectedindexchanged="ddlSearch_SelectedIndexChanged" AutoPostBack="True"&gt; ...
c# asp.net
[0, 9]
5,358,754
5,358,755
Storing HTML 5 LocalStorage using PHP serverside
<p>I've created an account verification system where a user clicks a link in their emailbox which will trigger activate.php, a script which will do some stuff backend in a MySQL db and then present the user with their account. Currently, I'm doing this with a header change:</p> <pre><code>header( www.mydomain.com/user...
php javascript
[2, 3]
1,782,095
1,782,096
How to stretch the image in ImageView?
<p>I have an <code>ImageView</code> and I need to load <code>jpg</code> image from SD card into this view. I have following code:</p> <pre><code>mImageView.setImageBitmap(SDCardUtilities.getBitmapFromSDCard(item)); </code></pre> <p><code>getBitmapFromSDCard</code> is my function that only make <code>Bitmap</code> fro...
java android
[1, 4]
1,533,216
1,533,217
ASP.NET Deleting files on the file system?
<p>As part of some code logic, the component downloads the user uploaded files to a specific directory.</p> <p>I am using </p> <pre><code>System.IO.File.Delete(file1); System.IO.File.Delete(file2); </code></pre> <p>to delete the files. I don't think the local system account IUSR account has permissions to do that. <...
c# asp.net
[0, 9]
2,865,805
2,865,806
How to access element id and other attributes using jQuery?
<p>I have JavaScript method which acts when a particular class (mcb) of forms are submitted:</p> <pre><code>function BindCloseMessage() { $(".mcb").submit(function(event) { alert("closing..."); //Here I want to get the id of form event.preventDefault(); }); } </code></pre> <p>In place of alert...
javascript jquery
[3, 5]
5,981,090
5,981,091
Javascript/jQuery height calculation
<p>Im looking for a way, in javascript, to calculate the size of the browser <code>(px)</code> then calculate the size of a <code>&lt;div&gt;</code> taking away <code>50px</code> from that full screen size:</p> <p>E.g.</p> <pre><code>Browser screen size: 800px (Height) Existing &lt;div&gt; that is always 50px (Height...
javascript jquery
[3, 5]
1,711,151
1,711,152
How can I add a "selected" class to just one row of a table when a row is clicked?
<p>I am using the following code:</p> <pre><code>$("#dataTable tbody").on("click", "tr", function (event) { if (!$(this).hasClass('row_selected')) { $(oTable.fnSettings().aoData).each(function () { $(this.nTr).removeClass('row_selected'); }); $(this).addClass('row_selected'); ...
javascript jquery
[3, 5]
2,973,144
2,973,145
Getting value of Radio buttons with Master Pages
<p>I have an aspx page that uses a master page. On this page I have a group of radio buttons. I need to get at the checked property for each of the elements in the radio button group in javascript. Before the page was converted to use a master page, the following javascript code worked just fine:</p> <pre><code>if(...
asp.net javascript
[9, 3]
4,250,894
4,250,895
How to test android method with J2SE
<p>I have some dynamically generated Android classes. I need to test some of the methods of those classes (these methods have nothing to do with UI). I hope to integrate this feature into an existing J2SE project. Is this possible to run it on standard VM? If I have to use Dalvik VM, is there any command line interface...
java android
[1, 4]
1,366,153
1,366,154
Resetting a form with JavaScript
<p>i am resetting my form with the following:</p> <pre><code>&lt;script type="text/javascript"&gt; window.onload = function () { document.getElementsByName("email_address")[0].value = ""; document.getElementsByName("remove")[0].value = "off"; } &lt;/script&gt; </code></pre> <p>the problem is that the checkbox "re...
php javascript
[2, 3]
539,553
539,554
Global variable not recognized after remove and append of an element
<p>I have a global variable <code>var $test = $('#test');</code> where <code>#test</code> id of div that initially exist in DOM. If i remove the div with <code>remove()</code> and append it again then the global variable $test no longer recognizes the the newly appended div with id <code>#test</code>. What am i doing ...
javascript jquery
[3, 5]
2,672,413
2,672,414
upload and send a file
<p>Hey guys, I created this system of instant messaging now i want to upload and send a file to another user. I am using php and javascript. How to do so? Ok imagine that i am a user chatting for instance with you, now i want to send you a file how can i do it using php. I understand that it is two steps upload the fil...
php javascript
[2, 3]
4,611,374
4,611,375
Scoop.it API access in C#
<p>I'm trying to access the Scoop.it API via C# to retrieve posts in topics. It's pretty much straight forward, in PHP, how are objects managed in C# and how to you access the properties?</p> <p>Here's the php code which i'd like to get a C# equivalent of:</p> <pre><code>$topic = $scoop-&gt;topic(24001); foreach($top...
c# php
[0, 2]
3,626,649
3,626,650
Select an element if ID partially matches
<p>I have the following HTML:</p> <pre><code>&lt;header&gt; &lt;nav&gt; &lt;ul&gt; &lt;li id="menu-item-1"&gt;&lt;a href="javascript:void(0)"&gt;Lien 1&lt;/a&gt;&lt;/li&gt; &lt;li id="menu-item-2"&gt;&lt;a href="javascript:void(0)"&gt;Lien 2&lt;/a&gt;&lt;/li&gt; &lt;li id="menu-item-3"&gt...
javascript jquery
[3, 5]
1,803,883
1,803,884
How do I use scrollTop when trying to figure out sidebar position?
<p>I posted this <a href="http://stackoverflow.com/questions/6539926/how-do-i-get-the-sidebar-to-move-up">question</a> yesterday and the answer I go mentioned that I should check if scrollTop is higher than your header height. My question is how do I do this with query. How do I do this when different people have diffe...
javascript jquery
[3, 5]
5,046,644
5,046,645
Pressed event for children within a tablerow
<p>I've got an imageview and textview within a tablerow. Whenever I press down on the tablerow I want the imageview src to swap to the same image of a different color. I also want the textview to change textcolor. I've been able to accomplish this within a listview using selectors. No luck with tables though. I ca...
java android
[1, 4]
483,464
483,465
Is there any example for jquery slideshow with zoom in, zoom out effect
<p>I have an image slideshow and I want to make a Zoom in, Zoom out effect in that. Now I am using jQuery Cycle plugin. Does anybody have any suggestions on how to do this? Your help would be really appreciated.</p>
javascript jquery
[3, 5]
906,020
906,021
Blocking javascript events on h:outputText where escape=true
<p>I work for a website which is sort of a social network, and people can send messages to anyone. There was a guy who sent a </p> <blockquote> <p><code>&lt;script&gt;alert('bah');&lt;/script&gt;</code></p> </blockquote> <p>And it created a javascript:alert..</p> <p>How can I prevent this to happen? </p> <blockqu...
javascript jquery
[3, 5]
5,599,091
5,599,092
Detecting NON mobile browsers
<p>So I'd like to redirect mobile users to a different page. But instead of trying to detect any number of mobile browsers, I'd just like to see if the user is using IE, Firefox, Safari, Chrome, or Opera; all other users go to the mobile site.</p> <p>My biggest problem is detecting regular Safari from mobile Safari.</...
c# asp.net
[0, 9]
4,499,912
4,499,913
How To: Stackoverflow / Twitter JS dialogue box
<p>I am trying to build a text-bar above the website like <a href="http://techdows.com/wp-content/uploads/2010/12/older-verison-of-twitter.png" rel="nofollow">Twitter or SO does.</a> Any advice on how to build this would be great. I do not know what you call this feature, but maybe there is a jQuery plugin to do it?</p...
javascript jquery
[3, 5]
2,118,021
2,118,022
include button into .cs file
<p>I'm trying to read a text file containing the name of the image, and display it opon pageload.</p> <p>Let's say that the content in the text file is </p> <pre><code>Australia Picture101 Singapore Picture201 </code></pre> <p>Following is the code i tried and it does not display the image.</p> <pre><code>tab...
c# asp.net
[0, 9]
5,688,787
5,688,788
a relationship between C++ / C# and PHP
<p>I couldn't find any document about a relationship between C++ / C# and PHP. Can someone share example page or codes ( like echo, functions etc ) ? thank you</p> <p>--- edit -- I want to use C++ or C# in PHP</p>
c# php c++
[0, 2, 6]
2,030,139
2,030,140
How to insert additional text using jquery or javascript
<p>I want to know is it possible to insert additional text in HTML elements using jquery or javascript?</p> <p>If there is already a text "Down" in paragraph elements, then I just want to append text "full", so that it would be "Down full". Is this possible? Which method should I use? </p>
javascript jquery
[3, 5]
826,767
826,768
How do I request a resource (relative path) from the current server?
<p>If I have a relative path that I need to get from the current server. The following does not work because it is not a valid URI.</p> <pre><code>var request = WebRequest.Create("\path_to_resource") </code></pre> <p>I believe that the easiest way would be to put the path in the web.config, however this is easily bro...
c# asp.net
[0, 9]
5,209,036
5,209,037
Why is typeof my variable an object, and not a number
<p>I have a table which has a couple cells that contain simple numbers (IE: 1.00, 1000.00, 10000.00). I'm trying to format the cell contents using the 'format' function below. I have had success with this function in a different area of my code, but for whatever reason (the reason why I'm here) when I try to feed the c...
javascript jquery
[3, 5]
4,679,965
4,679,966
Javascript error in IE
<pre><code>function OnSuccessPM(results) { $("#ChatBox").html(""); for (var i = 0; i &lt; results.length; i++) { $("#ChatBox").append(results[i].username + " : " + results[i].message + ". &lt;br /&gt;"); } var objDiv = document.getElementById("ChatBox"); ...
javascript jquery
[3, 5]
5,724,086
5,724,087
it is not displaying the messages correctly
<p>I have a javscript function below which displays a message depending on on the result:</p> <pre><code> function stopImageUpload(success){ var result = ''; if (success == 1){ result = '&lt;span class="msg"&gt;The file was uploaded successfully!&lt;\/span&gt;&lt;br/&gt;&lt;br/&gt;';...
php javascript jquery
[2, 3, 5]
3,399,197
3,399,198
Bind('pageinit') fails to call method
<p>I'm trying to bind a page initialize event from, afaik, jquerymobile, to a method so I can set my header, this is done, because later I wish to set it dynamically. But my event doesn't even trigger :'-( Any help would be appreciated.</p> <pre><code>$('#mapmode').bind('pageinit', function(event) { initPageHeader...
javascript jquery
[3, 5]
3,962,800
3,962,801
Dynamically adding js to asp.net file
<p>In my Page_Load I identify the page header block from my master page and add javascript from an XML file to that part of the page.</p> <p>It doesn't seem to be loading in time. If I explicitly put the script reference on the page, it works. But not when I load through the page_load event.</p> <p>Should it be loade...
c# javascript asp.net
[0, 3, 9]
765,268
765,269
Move li elements with certain class into and div
<p>I am trying to use the .append function in jquery. I have a div with li elements in it. They have different classes, lets say odds and evens. I would like the li's with the class "odd" moved into another div with li's in it. How can I do this? Here is my setup: <strong>Edit</strong>. This was in valid markup, I...
javascript jquery
[3, 5]
867,791
867,792
How can I access ListViewDataItem from an ItemTemplate without using code behind?
<p>I'm trying to access <code>ListViewDataItem</code> from inside an <code>ItemTemplate</code> in an ASP.NET C# page that does not have code behind.</p> <p>the page is very simple and does not have any code on it. it is dynamicaly binds to a datasource on page and shows a list of data. </p> <p>Thanks</p>
c# asp.net
[0, 9]
3,877,409
3,877,410
jquery keep live filter in line with fast keystrokes
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4220126/run-javascript-function-when-user-finishes-typing-instead-of-on-key-up">Run javascript function when user finishes typing instead of on key up?</a> </p> </blockquote> <p>I wrote a quick live filter that ...
javascript jquery
[3, 5]
4,199,694
4,199,695
Android get Facebook friends with app downloaded FQL Query
<p>I am trying to get the user's friends who have the app downloaded, I am using the following code</p> <pre><code> String query = "SELECT uid FROM user WHERE is_app_user=1 and uid IN (SELECT uid2 FROM friend WHERE uid1 =" + fbId + ")"; Bundle params = new Bundle(); params.putString("method"...
java android
[1, 4]
2,369,191
2,369,192
Plupload - how to open more than one time and refresh the list?
<p><strong>js:</strong></p> <pre><code>$(".butAnexarDoc").live("click", function(){ $("#anexarArquivos").plupload({ // General settings runtimes : 'html5,html4', url : 'js/plupload/examples/upload.php', max_file_size : '1000mb', max_file_count : 20, // ...
javascript jquery
[3, 5]
4,834,645
4,834,646
Can I simplify multiple if - else statements?
<p>I have the following code in javascript?</p> <pre><code>if ($(form).data('action') == "Edit") { xx } else if ($(form).data('action') == "Create"){ xy } else if ($(form).data('action') == "Delete"){ xz } </code></pre> <p>Is it possible for me to simplify this and also have some default path?</p>
javascript jquery
[3, 5]
1,758,092
1,758,093
How to load user control at run time, in a aspx page?
<p>I have got 5 user controls placed in some Control folder, at run time on basis of some ID I want to load user control from the Control folder to the aspx page. Could any body tell how should I pass that ID to fix which user control to load in some div at run time.</p>
c# asp.net
[0, 9]
5,737,494
5,737,495
Problem in updating database table in asp.net using c#
<p>I want to update Basic table in my database but it doesn't generate any effect in table.<br> I am using following statement</p> <pre><code>sql ="UPDATE Basic SET Current_city='"+ TextBox1.Text +"',Home_Town='"+ TextBox2.Text +"'; SqlCommand cmd = new SqlCommand(sql, con); cmd.ExecuteNonQuery(); </code></pre>
c# asp.net
[0, 9]
5,759,511
5,759,512
Incrementing to next id in javascript
<p>I have an image I click which brings me to a page with some info and two buttons which are previous and next. </p> <p>My code keeps going back to the same slide. How would I increment my "id" attribute to add +1 on my id attribute every time I click the next button or -1 for previous?</p> <p>Here is my code</p> <...
javascript jquery
[3, 5]
4,245,419
4,245,420
How to add a text area
<p>I am trying to add an additional text area so I need to duplicate part of this code but I am not sure which part. Can anyone please help?</p> <pre><code>function mode_add_message() { jQuery("#editor").hide(); jQuery("#cropper").hide(); jQuery("#crop_preview_container").hide(); jQuery("#pxn8_canvas").show(); jQuery...
javascript jquery
[3, 5]
634,071
634,072
How to get position of button in GridView where to place it using tag?
<p>I want to know position, where the button located in GridView using tag, and after getting the position, get letter from that button using position. Here is the code</p> <pre><code>public View getView(final int position, View convertView, ViewGroup arg2) { View v = convertView; if (v == null) { ...
java android
[1, 4]
4,300,968
4,300,969
Testing Graphical Users Interfaces
<p>So I have a fancy GUI in jQuery, which has gotten relatively complex. I would like to write tests for it, e.g. using <code>assert()</code>. However, it seems that writing such tests is difficult because GUIs don't manipulate data or make computations: they are just superficial interfaces to please the user.</p> <p>...
javascript jquery
[3, 5]
3,956,432
3,956,433
looking for a cross browser solution to highlight tabs
<p>I'm looking for a cross browser compatible solution to highlight tabs. On page load the first tab should highlight and on click of the other tabs, the first tab would unhighlight and the selected tab would highlight. Can't get this functionality working in same fashion in IE and Firefox at the same time. Any inputs ...
javascript jquery
[3, 5]
5,905,364
5,905,365
wait until certain code is run
<p>This is a continuation from this post - <a href="http://stackoverflow.com/questions/13946058/visible-selector-issue">:visible selector issue</a></p> <p>Anyway, I was wondering if there is a way to detect if a particular code segment is run until it is completed before running a new line of code.</p> <p>For example...
javascript jquery
[3, 5]
618,482
618,483
EditText cropping characters while editing
<p>I'm working on an application for Samsung Galaxy 5 with Android 2.2-update1 that has various EditText fields and I noticed that all EditText fields below the middle of the screen is not repainted correctly when the user is typing: all the characters appear chopped, leaving their half top plain white. I've tested thi...
java android
[1, 4]
1,486,727
1,486,728
Display PHP data in Jquery AJAX
<p>I have a php page where I display few images with radio buttons. On start two images are pre selected and I merge those and show the combinations. But user can choose a different image and click on MergeImages button, which should display the combination of two images selected.</p> <p>I am doing this in one php fil...
php jquery
[2, 5]
3,623,998
3,623,999
find missing range from array of ranges
<p>I am having array of my class that having Minvalue and Maxvalue property.</p> <p>Suppose in my array i am having three elements</p> <pre><code>First MinValue=0 and MaxValue=25 Second MinValue=26 and MaxValue=50 Third MinValue=75 and MaxValue=100 </code></pre> <p>Minvalue and Maxvalue can be between 0 to 100.</...
javascript jquery
[3, 5]
964,129
964,130
"Replace YouTube Link with iframe Youtube video Player" Using ASP.NET+C#
<p>I run a forum and I want to automatically replace any link to a YouTube video with a iframe youtube video player using ASP.NET+C#.</p> <p>How to replace this Link</p> <p><a href="http://youtu.be/uN-A8eHte1g" rel="nofollow">http://youtu.be/uN-A8eHte1g</a></p> <p>with</p> <pre><code>&lt;iframe class="youtube-playe...
c# javascript jquery asp.net
[0, 3, 5, 9]
5,520,312
5,520,313
Best way to forward user to another page?
<p>I have items displayed that has a countdown timer, and there are "coming soon" items which are to be displayed as well once the previous items' time has ended. My problem now is, I need to redirect the coming soon items' page to the order form page once they are available for buying.</p> <p>What I am thinking is, r...
php javascript
[2, 3]
2,159,335
2,159,336
Vertical display of Header Text in Grid View ASP .NET
<p>Is there a way to display the headerText of the Grid View vertically?</p> <p><a href="http://img371.imageshack.us/img371/4813/testyk6.jpg" rel="nofollow">http://img371.imageshack.us/img371/4813/testyk6.jpg</a></p> <p>I hope the above link works</p> <p>Thanks</p>
c# asp.net
[0, 9]
2,197,353
2,197,354
Custom control that detects first child which will be rendered as a html input field
<p>Im trying to develop a custom control that automatically detects the first child control which will be rendered as an input-tag. I'm doing this because I want to know if I should render my associated title as a label or a span element in the HTML (a bit like the <code>asp:Label</code> works when an <code>AssociatedC...
c# asp.net
[0, 9]
5,935,615
5,935,616
PHP & JQuery Question
<p>I was wondering lets say I have a form that you can save and preview changes before you save the changes, what will be the best way to preview the changes in a different page, the same page or a lightbox? Can you give me some live examples if possible?</p>
php jquery
[2, 5]
5,728,098
5,728,099
Resources for C++ programmer to learn JS
<p>I am proficient in C++, I dont know Java Script and want to learn JS, What should be the way/process for me? I know basic html, CSS.</p>
javascript c++
[3, 6]
5,013,017
5,013,018
How to dynamically create label on run time in asp.net c# to a particular place on web page
<p>I am creating a web page and in that I want to show data on label. The data will be shown through a SQL connection. I know how to create labels but I don't know how to create them to a particular place of web page. </p> <p>Thanks,</p> <p>Jay</p>
c# asp.net
[0, 9]
4,089,093
4,089,094
How I can add and remove the attribute "readonly"?
<pre><code>$(document).ready(function() { //Check City Value var city_value = parseInt($("#city").val()); if( city_value == 0) { $("#state").attr("readonly", true); //$("#rate").attr("readonly", "readonly"); } else { $("#state").removeAttr("readonly"); //document.getElementById("state").r...
javascript jquery
[3, 5]
223,127
223,128
Disabled link button still submitting in asp.net webform
<p>I'm trying to disable a link button to prevent the user from submitting several times.</p> <p>I've seen many questions like this here on SO, most people suggest the following javascript:</p> <p><code>button.disabled = true</code> or <code>button.disabled = 'disabled'</code></p> <p>Which indeed disables the button...
javascript asp.net
[3, 9]
1,107,654
1,107,655
PHP value inside JavaScript
<p>The following code works fine, the function <code>load()</code> sends the selected radio button info to the PHP page and display the returned:</p> <pre><code>&lt;head&gt; &lt;script&gt; $(document).ready(function(){ $('#myButtons input:radio').change(function() { var buttonValue = $("#myButtons input:ra...
php javascript jquery
[2, 3, 5]
5,700,732
5,700,733
Can I restrict a ViewFlipper from flipping until an AsyncTask has been performed?
<p>My application has a <code>ViewFlipper</code> with <code>3 ViewGroups</code> in it. Each <code>ViewGroup interaction</code> is dependent on data from a database. I'm using an AsyncTask to read from a database and return a Cursor when it's done. Before the AsyncTask is executed, I just want to display a single View i...
java android
[1, 4]