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,730,375
2,730,376
Inserting PHP code inside JavaScript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1849812/php-in-javascript">php in javascript?</a> </p> </blockquote> <p>I need to check an if condition inside the inner html property of javascript. And so for that I need to use php inside it. So is it possib...
php javascript
[2, 3]
3,210,268
3,210,269
What's the best JQuery book?
<p>I am a good javascript/asp.net developer, but i am just starting to learn JQuery, Whats the best book to learn JQuery? Books i like their style: Complete reference How to program</p>
javascript jquery asp.net
[3, 5, 9]
75,267
75,268
Retrieving jQuery.data() values from within setInterval
<p>I've been stuck on this problem for a while now. I'm using jQuery's .data() method to store state in a plugin I'm writing. Everything works fine, except for when I try to retrieve these data values from within a setInterval block. I am able to see the jQuery object inside the setInterval block, but I'm not able to s...
javascript jquery
[3, 5]
4,827,371
4,827,372
making a variable an instance of a class
<p>I'm in a-level computing and I was wondering if someone could please tell me the definition of this. If I have a class with methods etc, then I make another class where I kind of generate a variable of that first class. What is this actually called? It's the variable definition I'm after shown below "whatisThis" is ...
c# java
[0, 1]
2,601,321
2,601,322
Wordpress Javascript / jQuery conflicts
<p>I'm really stuck on a problem. I have already searched Google and even asked on twitter but no avail. My problem is with Wordpress, when trying to use thickbox and jQuery slider on the same page my slider becomes static.</p> <p>(Without the jQuery script) If I remove the jQuery script for {Nivo slider} then my ligh...
php javascript jquery
[2, 3, 5]
5,029,386
5,029,387
Can we display Hyperlink from Javascript alert on ASP.NET Page?
<p>I have the following text that needs to be displayed from Javascript ALert.</p> <p>I am wondering if we can display the hyperlink from the alert itself?</p> <pre><code>alert('User already exists in the system, please &lt;a href='../Login.aspx'&gt;login&lt;/a&gt;'); </code></pre> <p>Appreciate your responses</p> ...
c# asp.net javascript
[0, 9, 3]
831,014
831,015
Dynamically generated table rows never update
<p>I have an ASP.NET table I'm using to create a dynamic section of a form (the user can add multiple items with no limit). The table is defined in the markup of the page with the first row.</p> <p>The code is along the lines of the following:</p> <pre><code>TableRow row = new TableRow(); TableCell tc = new TableCell...
c# asp.net
[0, 9]
3,560,279
3,560,280
Why are singletons considered to be a bad practice?
<h3>Duplicate:</h3> <blockquote> <p><a href="http://stackoverflow.com/questions/137975/what-is-so-bad-about-singletons">What is so bad about Singletons?</a></p> </blockquote> <p>I was reading <a href="http://stackoverflow.com/questions/678669/concurrency-asp-net-best-practises-worst-practises">this</a> question, an...
c# asp.net
[0, 9]
2,397,151
2,397,152
How do I replace HTML escapes in an input stream before parsing it to XML?
<p>I have an input stream which is being converted to XML, and read. When I get down to some text elements in the XML, they are truncated. I believe the parser is dropping everything after escaped HTML such as &amp; Here is the code getting the input stream and then getting the text element.</p> <pre><code>String hv...
java android
[1, 4]
2,771,184
2,771,185
JQuery - Extend and Access Superclass
<p>Is there a way to access the super object when extending objects using $.extend?</p> <p>I would like to extend an object, override a method, but call the overridden superclass method in the subclass method. </p>
javascript jquery
[3, 5]
5,461,295
5,461,296
Want to create a multilingual javascript object, how to handle if lots of labels?
<p>I want to create a javascript file for multilingual functionality</p> <p>i.e. display the error message in the correct language.</p> <p>If I have allot of labels for a page, error messages, etc., what is a smart way of making this so the actual output on the page isn't huge?</p> <p><strong>i guess the best way is...
javascript jquery
[3, 5]
1,942,893
1,942,894
Stop recursion and start over
<p>I have the following function, that is called once in my program. When there is no user interaction it starts over again and again by recursion when the array is printed out. But when a user clicks on a link the function shall be stopped first (no more output from the array) and then be started again with new parame...
javascript jquery
[3, 5]
2,449,734
2,449,735
check if user is visiting pure root url
<p>I'd like to run a js script if a user is visiting my site's root url. I am using this code:</p> <pre><code>&lt;script type="text/javascript"&gt; if(location.pathname == "/") { window.open ('#107','_self',false); } &lt;/script&gt; </code></pre> <p>However <a href="http://example.com/?foo=bar#hash" r...
javascript jquery
[3, 5]
1,142,409
1,142,410
Question about JQuery - Get values of some selected items by class
<p>Hey Guys, I have a form with 4 select tags:</p> <pre><code>&lt;select class="section_1"&gt; &lt;option value="1"&gt;Option 1&lt;/option&gt; &lt;option value="2"&gt;Option 2&lt;/option&gt; &lt;/select&gt; &lt;select class="section_1"&gt; &lt;option value="1"&gt;Option 1&lt;/option&gt; &lt;option valu...
javascript jquery
[3, 5]
759,500
759,501
What is this xPath trying to capture?
<p>I have come across this bit of jQuery and I am failing to understand what the xPath (?) means in this context:</p> <pre><code>var all_line_height = $(this).find("*[style*='line-height']"); </code></pre> <p>I haven't seen this before, is it looking for an element that contains line-height in its style attribute?</p...
javascript jquery
[3, 5]
4,242,262
4,242,263
Write/Read any object to/from Android memory
<p>I'm currently writing to methods to:</p> <ul> <li>read object from memory</li> <li>write object to memory</li> </ul> <p>I tried to save a String object and read it again, yet my code didn't work.</p> <p>This is my code:</p> <pre><code>public void writeObjectToMemory(String filename, Object object) { File...
java android
[1, 4]
2,529,838
2,529,839
Access list element in javascript
<p>I am getting this list from server(php): </p> <pre><code>["Ak-Bulak","Balykchy","Batken"] </code></pre> <p>how can i access it and put into selects options thru js, what i tried is: </p> <pre><code>for (var i in data) { $('#cities').append('&lt;option&gt;'+ data[i] +'&lt;/option&gt;'); } </code></pre> <p>it p...
php javascript jquery
[2, 3, 5]
5,022,528
5,022,529
Can't make "Reload" script inside PHP work
<p>This is what runs after submitting a form:</p> <pre><code>else { echo '&lt;br/&gt; Tu chisme se agregó con éxito.'; echo '&lt;script type="text/javascript"&gt;window.location.reload(true);&lt;/script&gt;'; } </code></pre> <p>Basically after the users submits the form it does a couple of things and finally ...
php javascript
[2, 3]
1,896,188
1,896,189
switching images in application
<p>I have decided that i want to use images for the quesiton of my application, where as before i was using text.</p> <p>The code below changes the questions, which are stored in a string array.</p> <p>I now have an array of images also called questions</p> <p>How would i change image for each question here?</p> <p...
java android
[1, 4]
1,403,675
1,403,676
window.open not working when attached on onload event in chrome and safari
<p>I have attached some javascript on onload event of the form. this script contains window.open. Although this works fine in all the browsers window.open doesn't open a new window nor it gives nay error message in google chrome and firefox.</p> <p>I want to first check the screen resolution if it is less than 1024 th...
asp.net javascript
[9, 3]
856,318
856,319
how does this jquery count get updated?
<p>I am trying to figure out how this javascript works. <a href="http://www.pickhealthinsurance.com/u/search?age=25&amp;people=1&amp;smoker=false&amp;zip=20001" rel="nofollow">On this website</a> that someone else created, if you check the HMO Plan type checkbox in the top left corner, the count changes for Maternity...
javascript jquery
[3, 5]
3,856,138
3,856,139
Using live() with validation and submitting via ajax()
<p>I have this in JQuery:</p> <pre><code>$("form").validate({ rules: { captcha: { required: true, remote: { url: "gb_include/captcha.php", type: "post" }, } }, messages: { captcha: "Correct captcha is require...
javascript jquery
[3, 5]
5,253,516
5,253,517
Trigger onBlur on multiple elements as a single unit
<p>I have two inputs that together form a single semantic unit (think an hours and minutes input together forming a time input). If both inputs lose focus I want to call some Javascript function, but if the user merely jumps between those two, I don't want to trigger anything.</p> <p>I've tried wrapping these two inpu...
javascript jquery
[3, 5]
1,007,612
1,007,613
jQuery select img with src
<p>I want to select an image (with jQuery) by the src attribute. The Image is inside an ul and a collection of div's. The id of the ul is "sortable".</p> <p>Here is my HTML:</p> <pre><code>&lt;ul id="sortable"&gt; &lt;li id="pic_0"&gt; &lt;div class="sortEleWrapper"&gt; &lt;div class="imgWrapper"&gt; ...
javascript jquery
[3, 5]
4,059,458
4,059,459
hide child element on click
<p>I am trying to hide "arrow_o" on click of "thead" but it is not working. Does jquerys "children" not work in tables?</p> <p>html</p> <pre><code>&lt;thead class="thead"&gt; &lt;tr&gt; &lt;th&gt; &lt;div class="arrow_o"&gt;&lt;/div&gt; &lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; </code></pre> <p>js</p>...
javascript jquery
[3, 5]
233,911
233,912
Send/Receive byte[] via TCP Socket
<ol> <li>I would like to send/receive sqlite database files (*.db) in byte[] over TCP socket connection? <br/></li> <li>Is there a similar method in Java/Android for Socket.Poll() C#?</li> </ol> <p>I'm new in Java / Android</p>
java android
[1, 4]
3,384,406
3,384,407
Error when trying to get document.getElementsByName(name)
<p>I have been trying to use this code in one of my projects:</p> <p><a href="https://github.com/cemerick/jsdifflib" rel="nofollow">https://github.com/cemerick/jsdifflib</a></p> <p>EDIT: Link to code in question <a href="http://jsfiddle.net/BvFNf/3/" rel="nofollow">http://jsfiddle.net/BvFNf/3/</a></p> <p>The code in...
javascript jquery
[3, 5]
3,257,585
3,257,586
howto get $('input[name=...]').val() from $('form')[...];
<p>This my html code</p> <pre><code>&lt;div id="list_refer_1"&gt; &lt;form id="refer_1_0"&gt; &lt;input type="hidden" name="channel" value="1"&gt; &lt;input type="hidden" name="url" id="input_1_0" value="http://localhost:8000/"&gt; &lt;input type="button" onclick="pullrefer(1, 0);" value=" - "&gt...
javascript jquery
[3, 5]
3,911,361
3,911,362
Combining document ready scripts?
<p>I'm using a simple show-hide script on various IDs. The issue is as it stands right now each is a seperate JS that calls the document ready function via jQuery. </p> <p>Is there a way to combine this into one more flexible script or at least into one script in some form or another. Thank you so much for your time i...
javascript jquery
[3, 5]
2,223,518
2,223,519
Creating dynamic asp.net label with Javascript
<p>I have a asp.net label inside a </p> <pre><code> &lt;td&gt; &lt;asp:Label ID="errorMesaage" runat="server"&gt; &lt;/td&gt; </code></pre> <p>I want to create an asp.net label dynamically and append it to this td using JAVASCRIPT. Then after appending this td would have another error message with a different i...
javascript asp.net
[3, 9]
5,943,896
5,943,897
How to disable all the controls on the page after the countdown timer stops in asp.net?
<p>I have tried to disable the next button in the following code but its not working....pls help... </p> <pre><code> protected void timer1_Tick(object sender, EventArgs e) { CurrentTime = CurrentTime.AddSeconds(-1); LblTime.Text = "Time Left: " + CurrentTime.TimeOfDay; if (CurrentTime....
c# asp.net
[0, 9]
153,359
153,360
my array "is not a function" error message
<p>I am trying to store some DOM information into an Array so I can use it elsewhere.</p> <p>This works if I use a Variable, but if I try to use an Array I get "Arrayname is not a function" error message? I'm not sure why this would work in a Variable and not an array.</p> <p>This is the code I'm running:</p> <pre>...
javascript jquery
[3, 5]
376,524
376,525
How to set the screen resolution dynamically in Asp.Net application with C# as language
<p>How to set the screen resolution dynamically in Asp.Net application with C# as language</p> <p>I have created an asp.net app on my machine where the resolution is</p> <blockquote> <p>set to 1280 x 1024. When my users view the form on their screen, some of the controls display differently than on my screen. One...
c# asp.net
[0, 9]
2,343,415
2,343,416
aspx.net Adding meta tag sifts control ID
<p>I have aspx application then i added <code>&lt;META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"&gt;</code> to the head and after that all controlls ID where shift up by 1 ctl03_lHeading -> is now ctl04_lHeading .. </p> <p>Is this common behavior?</p> <p>thanks</p>
c# asp.net
[0, 9]
4,904,471
4,904,472
Referring to an object's ID in a jQuery append statement
<p>I have this element:</p> <pre><code>&lt;div class="isthisyou" id="unique_identifier"&gt;&lt;/div&gt; </code></pre> <p>I want to use jQuery to insert a link into the div:</p> <pre><code>$('isthisyou').append('&lt;a href="auth/create_account/'+this.id+'"&gt;Is this you?&lt;/a&gt;'); </code></pre> <p>Right now <cod...
javascript jquery
[3, 5]
3,115,682
3,115,683
Get first item from comma delimited object
<p>Hi I have an object rowObject passed into a javascript function. When I inspect it by putting it into an alert I see something like:</p> <pre><code>435,345,345345,56456 </code></pre> <p>What I want to acheive is to get the first interger ie. 435 from the list.</p> <p>I know how to do this in server side code but ...
javascript jquery
[3, 5]
4,828,850
4,828,851
Javascript to close browser window simultaneously with dialog box
<p>I'm working on an asp.net web form. This form has a button to open a new window (report window) and show a report. But first the user has to select a client from the list in the form before he/she can see the report. For validation matter, I use code to check whether the user has selected one of the client or not, t...
javascript asp.net
[3, 9]
5,952,541
5,952,542
Removing a script tag with a specific content using jquery
<p>I have a page that i dont have access to its an obvius site. I would like to remove a script html tag with a content. For now i have this but is not working. I am using userscripts like coding!</p> <pre><code>function main(){ var def = $('script[type="text/javascript"]').html(); $('script[type="text/javascript"]')....
javascript jquery
[3, 5]
4,600,764
4,600,765
How to make a "tags box" using jquery (with text input field + tags separated by comma)
<p>I am working on a web application that allows users to post content by tags but the thing is, how would I make a nice block around a tag if its separated by a <strong>comma</strong> and the text field value would still be the same only the view to the user would differ.</p> <p>An example would be such as YouTube or...
javascript jquery
[3, 5]
5,225,773
5,225,774
passing a parramter from php to javascript back to php
<p>I have a php page, which using javascript, creates a popup window which contains another php page. the php page in the popup window is basically a form, and will use that value to insert into a database. Using the following function to load the php page in a popup:</p> <pre><code>phppopup('edit_status.php?cmd=EditS...
php javascript
[2, 3]
4,581,569
4,581,570
Headaches with radios in Jquery
<p>I have 2 radios:</p> <pre><code>&lt;input id="a_15_0" type="radio" value="abc" name="a_15"/&gt; &lt;input id="a_15_1" type="radio" value="xyz" name="a_15"/&gt; </code></pre> <p>Both are unselected. I have only the name of the radio, i.e <code>a_15</code>, but not the IDs.</p> <p><strong>1)</strong> How can I get ...
javascript jquery
[3, 5]
898,993
898,994
Is there a way to call Java from JavaScript in Webview?
<p>Is there any way to call Java from JavaScript in Webview like this </p> <blockquote> <p><a href="https://github.com/ochameau/NativeBridge" rel="nofollow">https://github.com/ochameau/NativeBridge</a></p> </blockquote> <p>in Android?</p>
javascript android
[3, 4]
5,297,908
5,297,909
Wrapping a LinearLayout around a TextView
<p>I have the following code that populates a ListView with a TextView in the XML Layout file. But if I try to wrap a LinearLayout around the TextView it crashes!</p> <p>Code:</p> <pre><code>setListAdapter(new ArrayAdapter&lt;MyData&gt;(getApplicationContext(), R.layout.articlelist, items)); ListView lv = get...
java android
[1, 4]
2,521,640
2,521,641
Get the number of weeks between two Dates.
<p>Im working in a project and I got two types in Date. I want to calculate the number of weeks between these two dates. The dates can be in diffrent years. Is there any good solution for this? </p> <p>I have tried to implemenent this with Joda-time which was suggested in other topics.. </p> <p>Im not familar with th...
java android
[1, 4]
1,255,739
1,255,740
ASP.NET Routing webform query
<p>I have a ASP.net Web forms project that I am working on. I need to have a add club page where the admin can add a club to the website.</p> <p>When the club is added it creates a small website within my website for that club automatically. I think this uses some form of string builder.</p> <p>Then that club should ...
c# asp.net
[0, 9]
2,350,999
2,351,000
Where are the executable/launch files stored in Android
<p>Hello I am trying to find out where the binaries for launching an app in Android are stored. I am trying to launch an app using <strong>adb shell</strong> and the emulator and can't find where its located any ideas?</p>
java android
[1, 4]
95,248
95,249
Using javascript and jquery, to populate related select boxes with array structure
<p>Using answers to <a href="http://stackoverflow.com/questions/57522/javascript-array-with-a-mix-of-literals-and-arrays">this question</a>, I have been able to populate a select box based on the selection of another select box. ( <a href="http://stackoverflow.com/questions/57522/javascript-array-with-a-mix-of-literals...
javascript jquery
[3, 5]
1,368,117
1,368,118
How should I remove these <li> elements based on time?
<p>I have 5 <code>&lt;li&gt;</code> elements on page load. </p> <p>Other <code>&lt;li&gt;</code> elements are added randomly at every number of seconds. I need to remove the <code>&lt;li&gt;</code> elements that have been on the page longer than a minute. </p> <p>I was thinking of having an attribute called <code>dat...
javascript jquery
[3, 5]
35,427
35,428
Dynamically create ASP.NET button control using jQuery
<p>I know this can be done for regular HTML buttons, but can asp:Button be created dynamically using jQuery?</p> <p>Here's my button with an onclick that calls a server-side function:</p> <pre><code>&lt;asp:Button ID="btnYesGPS" runat="server" Text="Yes" CssClass="formButton" onclick="btnYesGPS_Click" /&gt; </code></...
jquery asp.net
[5, 9]
2,414,359
2,414,360
A click function not working
<p>my a click jquery function is not working, it just doesn't give any errors at console at all too. Here is the link -</p> <pre><code>&lt;a href="#lang" id="language"&gt;Edit&lt;/a&gt; </code></pre> <p>and here is the click function</p> <pre><code>$('a').click(function() { var item = $(this).attr("id"); aler...
javascript jquery
[3, 5]
1,994,698
1,994,699
How do I combine the best of two Apps into one?
<p>I have two similar iPhone and Android Apps (2 each) in the near future we will be combining/merging the best of these two Apps into one App. The App does have a user login that would need to be combined, but a common data file, so authentication should not be an issue. How do I deploy the combined App via the App St...
iphone android
[8, 4]
2,909,917
2,909,918
Relative position in DOM of elements in jQuery
<p>Given two jquery objects, Is there some way I tell which one is "further ahead" in the document tree than the other? In other words, with a document</p> <pre><code> &lt;p id="p1" &gt;&lt;/p&gt; &lt;div id="div1"&gt; &lt;p id="p2"&gt;&lt;/p&gt; &lt;/div&gt; &lt;p id="p3"&gt;&lt;/p&gt; </code></pre> <p>Is the...
javascript jquery
[3, 5]
2,254,545
2,254,546
create a game like crosswords in Android
<p>I would like to create a game like crosswords, which will have a drag and drop, zoom functionality . Can somebody direct me how can I proceed for this? Is there any 3rd party Jar needed to develop?</p> <p>Which view is perfect for this, I mean, to create a chess board like UI and letters on top of it.</p> <p>I nee...
java android
[1, 4]
5,710,778
5,710,779
jParallax trouble
<p>Hey everyone! I have a problem with this plugin. I have no idea what is wrong here... All I did was the same as in the examples.</p> <p><strong>HTML</strong> </p> <pre><code>&lt;div id="parallax"&gt; &lt;div style="width: 830px; height: 280px;"&gt; &lt;img style="position:absolute; top:0px; left:35...
javascript jquery
[3, 5]
2,542,652
2,542,653
scrollTo top of a div
<p>lets say I have this:</p> <pre><code>var infoBox = $(".info"); </code></pre> <p>lets say then I am expanding one <code>infoBox</code> and I want the document to scroll to the top of that <code>infoBox</code> sot hat I can see its whole content.</p> <p>I know i should first find the offset, the distance of <code>i...
javascript jquery
[3, 5]
3,288,429
3,288,430
IP Address Parameter in ASP.Net
<p>I have a stored procedure that inserts a few columns into a database, IP Address, Name, Comments. I am not sure how to get the ip address of the users machine. Perhaps I am to create a variable of the same type (INT) and then store the IP Address in there. I am kinda of lost on this one. </p> <pre><code>static int ...
c# asp.net
[0, 9]
3,672,080
3,672,081
Getting the height from CSS, not from an element in the DOM
<p>I'm creating multiple elements and adding them to the DOM. As I add them the height of the container grows based on the height of the items being added. All the items being added are the same, based off of a CSS class. I would like to set the height of the container DIV before the individual items are added, as they...
javascript jquery
[3, 5]
1,577,820
1,577,821
how to send a variable from jquery to a template?
<p>how to send a variable from jquery to a template?</p>
javascript jquery
[3, 5]
1,485,928
1,485,929
How do I change the scrollbar's height on this site?
<p>I can't set the scrollbar's height on <a href="http://www.demo.creamama.fr/plugin-scrollbar/" rel="nofollow">this site</a>. Its default height is the window screen's height. How do I change the height?</p> <p>【I repeat the details,the link <a href="http://taxi.bodait.com/scrollbar2.html" rel="nofollow">http://taxi...
javascript jquery
[3, 5]
5,254,226
5,254,227
how to make Dynamic Scrolling list in asp.net
<p>how to make Dynamic Scrolling list in asp.net ?</p> <p>i have a text file that contain sentences, and i want</p> <p>to show those sentences in dynamic scrolling list in my webform (like news)</p> <p>how to do it ?</p> <p>can i get any sample code ?</p>
c# asp.net
[0, 9]
5,455,102
5,455,103
How do i Turn ON/OFF the Caps lock key
<p>We can able to detect the Caps lock key is ON/OFF using Jquery. My question is </p> <p>"can we possible to Turn ON/OFF the Caps lock key using Jquery or Javascript in Keypress event".</p> <p>And also using C#, How to achieve this?</p> <p>Thanks in advance !!!</p>
c# javascript jquery
[0, 3, 5]
1,470,697
1,470,698
jQuery Setting global var
<p>I am using the following JS code in multiple places;</p> <pre><code>$(this).attr("name") </code></pre> <p>I use it in diff places as;</p> <pre><code>var currentKey = $(this).attr("name"); currentKeyVal = retrievedUserDataObj[$(this).attr("name")]; currentKeyVal = UserDataObj[$(this).attr("name")]; </code></pre> ...
javascript jquery
[3, 5]
3,135,451
3,135,452
How to create mobile size emulator in Android 3.0?
<p>If i create the emulator for Android 3.0, it opens for tablet size. Is it possible to create emulator for mobile in Android 3.0?</p>
java android
[1, 4]
4,533,206
4,533,207
jquery-how to detect child id?
<pre><code>&lt;div id="first"&gt; &lt;div id="here"&gt;...&lt;/div&gt; &lt;/div&gt; &lt;div id="second"&gt; &lt;div id="here"&gt;...&lt;/div&gt; &lt;/div&gt; </code></pre> <p>jquery:</p> <pre><code>$("#second #here").click(function(){}); </code></pre> <p>how to write jquery to detect when I click the second ...
javascript jquery
[3, 5]
2,221,071
2,221,072
Web page interfacing with COM port to control page
<p>I'm looking at creating a project that has a touch screen panel on a com port and a front facing website.</p> <p>I want the touch screen panel to interface with the web page, it will have two buttons (left &amp; right) and I want those actions to "do something" on the web page.</p> <p>I'm trying to work out which ...
c# php javascript asp.net
[0, 2, 3, 9]
212,905
212,906
Webcontrol as a property of another webcontrol
<p>In asp.net sometimes a webcontrol needs to reference another webcontrol such as the gridview needs the id of the datasource object that it will bind to.</p> <p>I have a property of my webcontrol that is a string (the id of the webcontrol I want to reference). How do I access the actual webcontrol based on this id?<...
c# asp.net
[0, 9]
3,351,100
3,351,101
How to strip HTML <p> tags injavascript without using regex
<p>I reading a text using .Html() and copying the content to the textarea. I don't want to keep anything except the <code>&lt;br/&gt;</code> tag wich I intend to replace to keep the new line formatting. Basically, I have <code>&lt;p&gt; &lt;p/&gt;</code> which I no more want to keep when I am copying to the textarea...
javascript jquery
[3, 5]
5,392,573
5,392,574
Javascript loader
<p>I have an image carousel on my page with some fairly small images. the issue is not with the images but with the script itself. I want to display a javascript loader image while the entire plugin is loaded and is ready for action. </p> <p>when i launch the page, the carousel <code>&lt;li&gt;</code> first display li...
javascript jquery
[3, 5]
3,221,635
3,221,636
Are there way start activity over lock screen?
<p>I need start activity over lock screen. It can be small activity on lock screen or fully new lock screen. It must start with lock button click</p> <p>How to do this? I already have activity, broadcast reciver and service to do all job, but don't know how to put activity over lock screen.</p>
java android
[1, 4]
4,544,072
4,544,073
Variable pointer to interface between C# and C++
<p>I am currently stuck trying to do this conversion. I have a C++ wrapper that exposes a function...</p> <pre><code>public __gc class InternalModuleConfig : public ModuleConfig { Object* InternalModuleConfig::CommitChanges(IModuleConfig* config) { VARIANT variant = {0}; m_pModuleConfig = config; HRESULT h...
c# c++
[0, 6]
5,061,923
5,061,924
JQuery: How to round an integer up or down to the nearest 10
<p>My JS skills are not good enough to do the following task so I am calling on the community! I could learn to do this, but I need to get this task done quickly, so I appreciate any help.</p> <p>I would like to round a number passed by a user to the nearest 10. For example, if 7 is passed I should return 10, if 33 is...
javascript jquery
[3, 5]
774,046
774,047
Jquery: please help explain this code because I need to tweak it
<p>Can someone explain this to me? I'm trying to understand exactly why drop down lists inside a li tag work okay but when using a form the menu disappears when clicked anywhere. </p> <pre><code>menu.find('ul li &gt; a').bind('click', function (event) { event.stopPropagation(); } </code></pre> <p>It works in combo ...
javascript jquery
[3, 5]
1,421,231
1,421,232
pass php variable value to javascript
<p>Im trying to pass the value of a php variable into javascript but i just cant get it to work. Am I doing anything wrong? Below is the line of code I'm working with.</p> <pre><code>var dist = parseInt("&lt;?php echo json_encode($distance); ?&gt;"); </code></pre>
php javascript
[2, 3]
749,529
749,530
jQuery validation without "form" tag
<p>According to <a href="http://docs.jquery.com/Plugins/Validation" rel="nofollow">http://docs.jquery.com/Plugins/Validation</a> the "form" tag is necessary in order to do validation. In my case I don't have form tag. How can I validate(required field) my textbox on click of "button" type control</p>
javascript jquery
[3, 5]
244,426
244,427
Checkbox onclick is not working in IE8 but working in IE9
<p>I'm creating dynamic checkbox and attaching onclick event with that. Below is the code:</p> <pre><code>var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var checkbox = document.createElement("input"); checkbox.type = ...
javascript jquery
[3, 5]
5,695,390
5,695,391
Bind tag vs codebehind set, best practices
<h2>I would like to know what is the best practice between using bind tag and setting direct property to a control in asp.net.</h2> <p><hr /></p> <p>aspx.cs</p> <pre><code>public string Description {get; set;} </code></pre> <p>aspx</p> <pre><code>&lt;asp:Literal ID="txtDescription" runat="server" Text='&lt;%# Desc...
c# asp.net
[0, 9]
4,467,883
4,467,884
How to read PDF file with url in Android
<p>My Code is :</p> <pre><code>File file = new File(docpath); String mimetype = "application/pdf"; Uri path = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(path, mimetype); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); </code></pre> <p>If I want ...
java android
[1, 4]
5,430,817
5,430,818
Jquery / Javascript - most efficient way to build a select menu?
<p>I'm using jquery and trying to tune my select menu builder to run much quicker. </p> <p>I was using each and append, however I've since switched to a standard for loop and currently trying to convert my options from using append to concatenated string appended to my select option using .html(). I seem to be at a lo...
javascript jquery
[3, 5]
2,055,987
2,055,988
How to blank the hidden field value from Jquery
<p>Assume that a hidden field </p> <pre><code>&lt;input type="hidden" id="hdn" name="hdn" value="100" /&gt; </code></pre> <p>So i want to blank the value of hidden field using Jquery. In javascript we can blank using this syntax</p> <pre><code>document.getElementById("hdn").value = ''; </code></pre> <p>but i want ...
javascript jquery
[3, 5]
2,575,182
2,575,183
Setting the width of columns with an array as parameter
<p>I have the following function:</p> <pre><code>function LoadColWidth(thewidtharray) { for (i = 0; i &lt; thewidtharray.length; i++) { $('#MyGrid .tr:first').eq(i).width(thewidtharray[i]); } }; var NarrowWidth = new Array(70, 72, 97, 72, 97, 72, 96, 76, 76, 76, 76, 75); </code></pre> <p>I'm ca...
javascript jquery
[3, 5]
1,064,578
1,064,579
Prevent keyboard from showing character bubble
<p>when typing on the keyboard a bubble appears to display the character that you pressed , I am looking for a way to prevent it from doing that !!</p> <p><img src="http://i.stack.imgur.com/imGQr.png" alt="enter image description here"></p>
java android
[1, 4]
1,435,963
1,435,964
Write to file when cache expires
<p>How to write to a file the content of cache when Cache expires.</p>
c# asp.net
[0, 9]
3,855,639
3,855,640
move event handler with jQuery
<p>I have an issue which is driving me crazy and as a last resort I am placing a question here.</p> <p>I want to move the onclick event from an element to the onfocus event of the same element and I am using the following code:</p> <pre><code>$("#theElement").bind("focus", {}, $("#theElement").data("events").click); ...
javascript jquery
[3, 5]
145,296
145,297
Upgrading .NET Framework
<p>I want to update my project from .net framework 2 and asp.net 2 to the newest versions. Is there any possible issues I may have?</p>
c# asp.net
[0, 9]
4,381,949
4,381,950
Do I need to put a dollar before variable names with javascript?
<p>I have the following code:</p> <pre><code>var formSubmitHandler = function (link, form) { //e.preventDefault(); var $form = form; var val = $form.valid(); var action = $(form).data('action'); var entity = $(form).data('entity'); </code></pre> <p>Do I need the line "var $form = form"? Can I ju...
javascript jquery
[3, 5]
3,870,808
3,870,809
PHP to C# and Vice versa
<p>I'm in this project:</p> <p>A web page that's gonna be used by the front-end company people to query and update data from a SQL DB. I'm working with visual studio and the code behind (C#) is almost done, so the interactions between SQL and C# and ok. My original idea was to work with ASP.NET which is familiar to me...
c# php
[0, 2]
2,360,390
2,360,391
Simulate multiple keypresses in javascript
<p>I would like to simulate the user pressing tab then enter when they press enter. I know this sounds bad, but I have an asp.net web application that will only allow me to have one form with runat="server" on it so when the user hits return the main form gets submitted. I have another textbox on the page though (that ...
javascript jquery asp.net
[3, 5, 9]
450,437
450,438
Delay in show after 2 second by jquery
<p>I want if user moved the mouse for two seconds (Keep the mouse button for two seconds) on a class, show to he hide class. how is it? ()</p> <p>If you move the mouse tandem (several times) on class, You will see slideToggle done as automated, I do not want this. How can fix it?</p> <p><strong>DEMO:</strong> <a href...
javascript jquery
[3, 5]
5,480,737
5,480,738
jqGrid celledit under certain conditions
<p>I want the cells to be in edit mode when a certain condition is true. I'm using cellEdit true and editable in the column but in some occasions the user shouldn't be able to edit some cells of the same column even though the column is editable=true. I need to use cell editing not inline editing.</p> <p>Any thoughts?...
javascript jquery
[3, 5]
2,252,503
2,252,504
To read all text of all font-family of particular image using MODI in c# asp.net
<p>I have written code for converting text from image using MODI as follows:</p> <pre><code>public void CheckFileType(string directoryPath) { IEnumerator files = Directory.GetFiles(directoryPath).GetEnumerator(); while (files.MoveNext()) { //get file extension string fileExtension = Path.G...
c# asp.net
[0, 9]
2,234,714
2,234,715
Display different aspx file in a popup in asp
<p>I am currently developing an ASP.net application. I am generating a table (standard HTML table not GridView) and populating it with data from a MySQL Database. One column of the table has hyperlinks which should link to a dynamic aspx web page that will display certain information based on the database.</p> <p>When...
c# asp.net
[0, 9]
540,817
540,818
What is the most simple slider to slide divs?
<p>I have 9 small divs with content on my page. I need to show only 3 of them to user, and give user ability to push "arrow" to see next 3 divs. Div example: </p> <pre><code> &lt;img src="/img/icons/1.png" alt="" width="150" height="100"&gt; &lt;div class="elementwrap"&gt; &lt;h3&gt;&lt;a href="/info/vi...
javascript jquery
[3, 5]
1,197,811
1,197,812
jQuery post/ajax post problem
<p>HI im trying to send a jquery post/ajax to send some variables to a php file. </p> <pre><code>&lt;script src="/jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; var music =''; var genre =''; var language =''; var nasheedid = "&lt;? echo $postid; ?&gt;"; var session = "&lt;? echo $_SESSION['SESS_T...
php jquery
[2, 5]
5,929,019
5,929,020
The control of up and down or left and right key on keyboard using jquery in Android
<p>I am using jquery and jquery mobile to develop the program.</p> <pre><code>$(document).keydown(function(e) { if ( e.which == 19) { // get the up key alert("111111"); }) </code></pre> <p>I check online. It is said only Android versions 4.1.1...
android jquery
[4, 5]
2,628,618
2,628,619
How to get the value from a function
<p>How do I get a value from a function inserted into my HTML.</p> <p>I have tried this:</p> <pre><code>function testReturn(value) { var ReturnValue = value; return ReturnValue; } html = "&lt;div&gt;' + testReturn(2) + ' &lt;/div&gt;"; </code></pre> <p>I get an error saying <code>Undefined</code></p>...
javascript jquery
[3, 5]
3,367,957
3,367,958
How can i focus last append value in a textview/ scrollview
<p>I trying to focus the last append value in the text box. But unfortunately i cant able to bring it up. Can you please help me to solve this.</p> <pre><code>&lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="115dp" android:orientation="vertical" &gt; &lt;ScrollView android:id="@+id/ScrollVi...
java android
[1, 4]
3,787,073
3,787,074
How to get only one element
<p>For example I have a function that has one argument, it can be DOM element ID or className. How can I select only first element wrapped with jQuery?</p> <p><code>$(value).get(0)</code> and <code>$(value)[0]</code> returns just the plain DOM element, not a jQuery wrapped element.</p>
javascript jquery
[3, 5]
2,431,979
2,431,980
Format currency in jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4682789/format-currency-using-javascript">Format currency using javascript</a> </p> </blockquote> <p>I used to format the price of the product by asp.net :</p> <pre><code>&lt;%: string.Format("{0:C}", Price)%&g...
javascript jquery
[3, 5]
208,775
208,776
Enhancing the SimpleCursorAdapter to check the data in Android?
<p>I have a sqlite database. I am able to query it and get a cursor with results. It populates the data well in a list view which has 1 image view and 2 text views. However the cursor result set which has 2 columns is of text. This is shown in the 2 text views. Everything till here works fine.</p> <p>Now based on the ...
java android
[1, 4]
4,744,168
4,744,169
how to make readLine() of Filereader to go to previous location
<p>I am creating one text file which will connected to some server. this text file will receive its contents from the server. It will receive the some text data continuously.</p> <p>To limit the file size , I am checking no.of lines in the file and if exceeds the mark I am clearing file content. Server will write from...
java android
[1, 4]