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,057,764
2,057,765
Databound Value in href javascript link
<p>I've trawled the net looking for the syntax to get this working and i'm hoping this is a quick fix else i'll go mad. Basically I have a nested repeater and the button below hides another nested repeater.</p> <p><code>((location_details)((RepeaterItem)Container.Parent.Parent).DataItem).tbl_location.location_id</cod...
c# javascript asp.net
[0, 3, 9]
5,763,845
5,763,846
Is there anyway i could dynamically fetch the value of an <option> and pass it to PHP without using AJAX?
<p>I have two <code>&lt;select&gt;</code> one is category and the second is subcategory. </p> <p>here is the first <code>&lt;select&gt;</code> for category.</p> <pre><code>&lt;select name="category" size="10"&gt; &lt;?php foreach($categories-&gt;fetch(array('table' =&gt; 'categories')) as $category) { ?&gt; ...
php jquery
[2, 5]
2,822,925
2,822,926
Dynamic Day of Week Selection
<p>I am searching for a dynamic day of week select.</p> <p>So the code would recognise today is August 1st so... would work like so.</p> <p>So code ( how I would like it to perform )</p> <pre><code>&lt;select id="selectday" name="selectday" tabindex="13"&gt; &lt;option value=""&gt;Please select Preferred Day&lt;/opt...
php jquery
[2, 5]
5,398,744
5,398,745
adding clickable image links to jquery code
<p>i show some images with the simple script shown below. how can i make the images clickable?</p> <p>thank you!</p> <pre><code>$(function() { $('.fadein img:gt(0)').hide(); setInterval(function() { $('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein'); }, 4000); ...
javascript jquery
[3, 5]
2,934,897
2,934,898
How to handle a blank row from the database?
<p>I have the following script which works as long as it is returned data:</p> <pre><code>$(document).ready(function() { $.ajax({ type: 'POST', url: 'notifications.asmx/GetNotifications', data: '{strUser: "pqr"}', contentType: 'application/json; charset=utf-8', dataType: 'js...
javascript jquery
[3, 5]
1,092,288
1,092,289
Managing JavaScript dependencies with CDN in ASP.NET
<p>Generally speaking, individual JavaScript files that a page uses should be combined into a single filed and minified. To this end, we have an <code>AssetController.ScriptTag()</code> that's used like this:</p> <pre><code>&lt;%= ScriptTag ( "/js/global.js", "/js/accounts.js", "/js/googmaps.js" )%&gt; </c...
c# javascript asp.net
[0, 3, 9]
5,537,718
5,537,719
How do I pass a R.drawable as a parameter so I can get images parsed
<p>I try to save a unique image to each object but I get this error, how should the constructor look for it to work that way? The constructor Beer(String, int, int) is undefined</p> <pre><code>m_beer = new ArrayList&lt;Beer&gt;(); final Beer b1 = new Beer("Tuborg", 7, R.drawable.tuborg); fi...
java android
[1, 4]
1,967,316
1,967,317
Take two arrays and make them into key - value pair
<p>I have two arrays as follows.</p> <pre><code>idOne = ["6", "6", "11"] counts = ["2", "1", "1"] </code></pre> <p>How would I make this into a associative array with idOne being the key and counts being the value?</p>
javascript jquery
[3, 5]
3,195,436
3,195,437
How to properly release Android MediaPlayer
<p>I'm trying to add a button to my android app where it plays an MP3 when the button is tapped. I've gotten it working, but without a way to release the mediaPlayer object - therefore it keeps playing even after I leave the activity. If I initialize the MediaPlayer object outside of my react() method(what gets called...
java android
[1, 4]
2,840,858
2,840,859
JQUERY: Dynamic AJAX and html element removal
<p>Consider this code:</p> <pre><code>&lt;tr&gt; &lt;td&gt; &lt;input type="checkbox" name="20081846" value="20081846" class="chk-input"&gt; &lt;/td&gt; &lt;td&gt;20081846&lt;/td&gt; &lt;td&gt;AGONOY, JAY TAN&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>Let's say I have N of these in a table (with different sets of data)....
javascript jquery
[3, 5]
5,506,020
5,506,021
asp.net override
<p>what are the pros and cons of using a standard event handler or overriding the base class of an asp.net page? Are there any? I've seen both used to do the same thing.</p> <pre><code>protected void Page_PreInit(object sender, EventArgs e) { //Put your code here } protected override void OnPreInit(EventArgs e) {...
c# asp.net
[0, 9]
1,284,691
1,284,692
Does jQuery do any initial processing?
<p>Simple question. If you include jQuery in a page of HTML, is there any initialization overhead before one uses any jQuery functions.</p>
javascript jquery
[3, 5]
1,376,525
1,376,526
im getting "function not defined" in firebug. help please
<p>I am using an external javascript file to call a function and it will not. i get function not defined in firebug too. the name of the external js file is getpic.js in the html, i put this in the header:</p> <pre><code>&lt;script src="getpic.js" type="text/javascript"&gt; &lt;/script&gt; </code></pre> <p>php:</p> ...
php javascript
[2, 3]
2,954,305
2,954,306
How to append query parameter at runtime using jQuery
<p>Through JavaScript I am appending one query parameter to the page url and I am facing one strange behaiviour.</p> <pre><code>&lt;div&gt; &lt;a href="Default3.aspx?id=2"&gt;Click me&lt;/a&gt; &lt;/div&gt; $(function () { window.location.href = window.location.href + "&amp;q=" + "aa"; }); </code></pre> <p>...
javascript jquery
[3, 5]
3,444,597
3,444,598
Text field default value overrides user input
<p>I'm setting some default value for my text fields and those fields are in read only mode. When I pass new values to the those fields and submits the form it saved default value not the new one. I have used PostBack function but it's not working. Here is my code,</p> <pre><code>protected void Page_Load(object sender...
c# asp.net
[0, 9]
1,210,908
1,210,909
Bind a onKeyDown to a particular webview android
<p>Hey I am working on implementing the back key functionality for my WebViews. I have got it working with the given code but the problem is I need it to work for 3 different WebViews so none conflict with each other and cause a crash, so far it works for each one singly at a time. My guess is I need to bind the keylis...
java android
[1, 4]
1,585,718
1,585,719
How to pass the dynamic text box value to another php page
<p>i make a dynamic textbox through javascript now i want to post the data of all dynamically generated textboxes to php script and then insert into a table. how can i do this... </p> <pre><code>&gt; var intTextBox=0; &gt; &gt; //FUNCTION TO ADD TEXT BOX ELEMENT &gt; function addElement() { &gt; intTextBox = int...
php javascript
[2, 3]
982,533
982,534
Capture filled PDF form data
<p>I would like to capture filled PDF form data from public facing website and save it in the database on the server. Is it possible?Please let me know.</p>
c# asp.net
[0, 9]
3,158,971
3,158,972
Issue with JavaScript binding?
<p>I have a drag oriented UI I'm putting the finishing touches on. I was having trouble with losing the mousemove event outside of the parent container, and found some code to bind the mousemove and mouseup functions to the document instead of the element. I tried to apply this to my code but have been unsuccessful so ...
javascript jquery
[3, 5]
3,389,424
3,389,425
how to know if UI is idle for X time?
<p>I have a servery app. That ask questions from users. What I want to do. If user did not do any thing with UI for the 1 mint... Then I must terminate the server.</p> <p>What should I do for this?</p> <p>I know ACTION_SCREEN_OFF. This event actually called when screen time out. That may be 30 mint? depend on user se...
java android
[1, 4]
5,911,243
5,911,244
Eliminating server side view | Pros / Cons
<p>My server, implemented in PHP, is now just a data pump. I compose HTML on the client using JavaScript.</p> <p><strong>Pros</strong></p> <ul> <li>Reduces network load (no HTML, just raw data)</li> <li>Reduces server load (server does not have to compose)</li> </ul> <p><strong>Cons</strong></p> <ul> <li>Increases...
php javascript
[2, 3]
4,017,307
4,017,308
Jquery/JavaScript Time Calculation
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7641791/javascript-library-for-human-friendly-relative-date-formatting">Javascript library for human-friendly relative date formatting</a> </p> </blockquote> <p>How to show 2days ago, 3 months ago instead of tim...
javascript jquery
[3, 5]
2,152,625
2,152,626
Client side vs server side basics
<p>For the last 6 months I have been trying to wrap my head around Web development and understanding the diferences beetween client-side programming and server side programming.For the moment I only know the client side at an medium level(javascript/jQuery) but I am also interested in learning PHP and MySQl for server-...
php javascript
[2, 3]
4,947,274
4,947,275
Serialising POST requests jQuery/Javascript
<p>I am working on an application which sends an AJAX POST request (I'm using jQuery currently) every 1500ms. I have noticed that most of the times, these requests succeed within 350-450ms and are sent to the server nicely in the same order as they are generated. </p> <p>However sometimes, one or two requests take nea...
javascript jquery
[3, 5]
4,821,116
4,821,117
Obtain the ID of all selected checkbox in jquery?
<p>I have some checkboxes with class=check. How can I obtain the ID of all selected checkboxes with jQuery?</p>
javascript jquery
[3, 5]
4,189,185
4,189,186
Image storage and retrieval using sqlite db
<p>I have a few questions about database storage and retrieval of images. I have an activity that prompts the user to either take a picture using the camera or selecting an existing from the gallery. When a picture has been taken/selected, it is shown in the activity and should be saved in a sqlite database (I use my o...
java android
[1, 4]
6,008,970
6,008,971
Referencing new Activity in Manifest
<p>From what I understood watching the Android tutorial, to reference a new class you need to reference it in the manifest.</p> <p>Say, I had a class AndroidX and I need to reference it. What I have to do is;</p> <pre><code>startActivity(new Intent("thepackage.RANDOMNAME")) ; </code></pre> <p>and reference it <code...
java android
[1, 4]
152,278
152,279
Having problems with simple jQuery snippet
<p>I am having problems with simple jQuery snippet. Here is the markup:</p> <pre><code> &lt;div class="banner"&gt; &lt;div class="bannerInnerRight"&gt; &lt;span class="box5"&gt;&lt;h4&gt;Reviews&lt;/h4&gt;&lt;/span&gt; &lt;span class="box6"&gt;&lt;h4&gt;Mission Statem...
javascript jquery
[3, 5]
865,964
865,965
Using jQuery to Highlight Selected ASP.NET DataGrid Row
<p>It is easy to highlight a selected datagrid row, by for example using toggleClass in the tr's click event. But how best to later remove the highlight after a different row has been selected? Iterating over all the rows to unhighlight them could become expensive for larger datagrids. I'd be interested in the simp...
asp.net jquery
[9, 5]
4,880,453
4,880,454
Set Time Limit to Expire ASP.NET Website C#
<p>I have a website developed in ASP.Net &amp; C# and this source code is given to my client...</p> <p>Is any way so that <strong>after one Year it will expire and His is not able to use it</strong>...&amp; <em>its hidden from him some where secure..</em> </p> <p>Please Help me out....</p>
c# asp.net
[0, 9]
711,556
711,557
Loading aspx page in JQuery UI dialog
<p>I have a aspx page where I have a linkbutton and upon clicking that link button I am calling another aspx page passing a parameter in a pops up window, like below:</p> <pre><code>&lt;asp:linkbutton id='lbtn1' onClick=&lt;%#"window.open('/testsite/mypage.aspx?param=abcd');return false"%&gt; </code></pre> <p>Till n...
asp.net jquery
[9, 5]
5,418,506
5,418,507
How to get a jQuery item in a collection of selectors
<p>I would like to access a selector in my array:</p> <pre><code>&lt;ul&gt; &lt;li class="elem"&gt;A&lt;/li&gt; &lt;li class="elem"&gt;B&lt;/li&gt; &lt;li class="elem"&gt;C&lt;/li&gt; &lt;/ul&gt; var $elems = $('li.elem'); console.log($elems[1].text()); /* jQuey Method call */ </code></pre> <p>I know there is ...
javascript jquery
[3, 5]
4,427,947
4,427,948
How to see if a user has clicked on two elements?
<p>I am working on a selection menu. I want the user to be able to select two different options and have something displayed depending on what they have selected. Right now, I am just using images to represent the selections. I am wondering if there is a way to see if a user has selected/clicked two of the images conse...
javascript jquery
[3, 5]
5,078,229
5,078,230
Clear gridview using javascript/jquery
<p>Afternoon all.</p> <p>Another hour, another question!</p> <p>I have the following bit of jquery up and running that essentially 'resets' control contents.</p> <p><code> tbxProdAC.Attributes.Add ("onclick", "$('#txtbxHowMany').val(''); SetRadioFocus('" + radProd.ClientID + "');"); </code></p> <p>I hav...
javascript jquery
[3, 5]
4,294,034
4,294,035
WebBrowser InvokeScript
<p>I have a Webrowser with some settings that are changed using javascript. I'm trying to use the example <a href="http://msdn.microsoft.com/en-us/library/cc452443%28v=vs.100%29.aspx" rel="nofollow">here</a> but can't get the correct syntax</p> <p>the script looks like this</p> <pre><code> &lt;div class="Displ...
c# javascript
[0, 3]
881,750
881,751
News Bar with jQuery
<p>I need to make a horizontal "breaking-news" style bar with jQuery. I pick new from the server (the easy part) and I need some way to make them continually scroll from left to right. Any jQuery plugin to help me? thanks</p>
javascript jquery
[3, 5]
3,301,273
3,301,274
Display new page showing user input upon button click
<p>Greetings, all. I'm working on a training project; I have a page for user input which I save to the database; now I need the submit button to bring up a static(?) form which only displays their input, with a link to go back and edit this input. I'm using C# and ASP.NET. Any ideas out there? The examples I found goog...
c# asp.net
[0, 9]
102,392
102,393
JQuery class selectors
<p>I have an html text box with some having class names as <strong>numbers</strong></p> <pre><code>&lt;input type="text" name="msg_timeout" class="numbers" /&gt; </code></pre> <p>similarly there are different text box with class as <strong>numbers</strong>.I want to assign keydown event to those text box that has cla...
javascript jquery
[3, 5]
799,084
799,085
How to add name value pair to existing query string
<p>i need to add new name ,value pair to existing query string when the user click on some button.</p> <p>i'm using jquery for client side operations.</p> <p>any idea..?</p> <p>thank in advance!</p>
javascript jquery
[3, 5]
4,642,674
4,642,675
Is it possible to Post Data from a Java application to a .php page?
<p>im trying to make a quick java app that posts data to a website just basic $_POST variables. Is it possible?</p> <p>Thanks.</p>
java php
[1, 2]
3,441,515
3,441,516
Trouble with Timeout function and jquery
<p>Hello I get the following Javascript error when calling goon() within a jquery function. I thought it is defined...but obviously not...?! Why not?: </p> <blockquote> <p><strong>goon is not defined var timeout= setTimeout('goon()', 3000)</strong>;</p> </blockquote> <pre><code> $('.rs-slideshow').stop().fadeOut...
javascript jquery
[3, 5]
5,346,512
5,346,513
how to cache data repository in asp.net?
<p>I just wonder how to cache my data repository I mean there are some data repositories in my project they are so useful and I have to call their method several times so I need some tools or maybe patterns to cache them on the client to avoid get extra and duplicate queries.</p> <pre><code>&lt;asp:DropDownList ID="Dr...
c# asp.net
[0, 9]
3,245,051
3,245,052
Localization of Confirm dialog box in jQuery
<p>I'm using jquery dialog box to display Confirm &amp; Cancel button as shown below:</p> <pre><code> $("#delete_user").click(function(e) { $("#delete_user_dialog").dialog({ buttons : { "Confirm" : function() { $(this).dialog("close"); DeleteUser(); }, "Cancel" : ...
javascript jquery
[3, 5]
4,261,929
4,261,930
How to show MessageBox on asp.net?
<p>if I need to show a MessageBox on my ASP.NET WebForm, how to do it?</p> <p>I try: <code>Messagebox.show("dd");</code></p> <p>But it's not working.</p>
c# asp.net
[0, 9]
3,187,798
3,187,799
Running PHP under ASP.NET
<p>ASP.NET web server can allows to deploy PHP code, even full applications like phpBB. is it possible? please guide me</p> <p>by googling i found this</p> <p>check this link</p> <p><a href="http://www.communitymx.com/content/article.cfm?cid=F8079" rel="nofollow">http://www.communitymx.com/content/article.cfm?cid=F...
php asp.net
[2, 9]
2,215,408
2,215,409
How to make nested call with jquery
<p>I've below code in JS file:</p> <pre><code>$(document).ready(function() { $("#key_verify").click(function () { $("#errrmsg").html("&lt;img src=\"/images/shim.gif\"/&gt;"); if($.trim($("#key").val()).length != 0){ $.ajax({ type : "POST", cache : false, async : true, url : "/issuekey?key="...
javascript jquery
[3, 5]
5,943,192
5,943,193
Appending to <td> instead of below <tr>. What's wrong?
<p>In this jsFiddle</p> <p><a href="http://jsfiddle.net/littlesandra88/tZqYX/" rel="nofollow">http://jsfiddle.net/littlesandra88/tZqYX/</a></p> <p>would I like that a new <code>&lt;tr&gt;</code> is inserted below the one where "Details" is clicked.</p> <p>I do</p> <pre><code>$('.row').append("&lt;tr&gt;&lt;td&gt;It...
javascript jquery
[3, 5]
516,740
516,741
Detect before user closes/changes mobile browser tab
<p>Is it possible to detect before the user changes tab or closes the tab on a mobile browser. </p> <p>I tried</p> <pre><code>$(window).bind('beforeunload', function () { // AddToCart(123, 123, 123, 123); return "Message"; }); </code></pre> <p>but that did not work.</p> <p>Any help wo...
javascript android jquery iphone
[3, 4, 5, 8]
2,619,484
2,619,485
Javascript alert message Alternative
<p>On my online page I have a simple alert message. I basically need to change the title but I've read that I cannot do that.</p> <p>Here's the code:</p> <pre><code>&lt;script&gt;alert("My Message Here");&lt;/script&gt; </code></pre> <p>In the alert message I get the url of my website and then the message under it. ...
javascript jquery
[3, 5]
5,786,774
5,786,775
How to set JavaScript variable by php with out AJAX?
<p>I need to set JavaScript variable by php variable with out ajax. I try following code:</p> <pre><code>&lt;script type="text/javascript"&gt; var url = &lt;?php echo($url); ?&gt;; &lt;/script&gt; </code></pre> <p>but it will make problem,How can I do it?</p>
php javascript
[2, 3]
5,967,109
5,967,110
Model not showing when creating a controller class
<p>For some reason the add controller class dialog isn't picking up on the Movies, and MovieDBContext classing. I'm new to ASP.NET and Visual Studio 2010, is there something which I should do for the classes to show here?</p> <p><img src="http://imgur.com/Ylnmn.png" alt="Screenshot"></p>
c# asp.net
[0, 9]
5,915,816
5,915,817
jQuery star rating question
<p>I have a around 8 jQuery star rating in my page:</p> <pre><code>&lt;input class= "auto-submit-star" name="star2" type="radio" class="star"/&gt; &lt;input class= "auto-submit-star" name="star2" type="radio" class="star"/&gt; &lt;input class= "auto-submit-star" name="star2" type="radio" class="star" checked="checked"...
javascript jquery
[3, 5]
2,815,132
2,815,133
Android File Association
<p>How do I have a new file type launch my app?</p> <p>For example if I have a new file type 'file.mjl' and I receive this file as an email, I want Android to associate this file type with my app and allow me to open / save it.</p>
java android
[1, 4]
2,567,295
2,567,296
Binding Events rather than using onclick
<p>I have been told its better to bind events to elements rather than having <code>onclick</code>s with functions everywhere. I agree with this as it devolves more from the HTML which means cleaner and easier to debug code. </p> <p>But I am having trouble doing this! I loop through some data with PHP (see below) and I...
javascript jquery
[3, 5]
3,520,462
3,520,463
php and javascript cookie
<p>why php get cookie new value only when i refresh page twice. When run page first time, php do not get cookie value.</p> <p>Thanks</p> <pre><code>&lt;script type="text/javascript"&gt; var name = 'test1'; var value = '1234'; var expirydays = '1'; expiry = new Date(); expiry.setDate(expiry.getDate() + expirydays); d...
php javascript
[2, 3]
3,272,052
3,272,053
Javascript error: Error: ta is not defined
<p>I am new to JavaScript and I am trying to add a character counter to a text field using this code: </p> <pre><code>$(function(){ $('.txtclass').keypress(function(){ ta = $(this); if(ta.val().length &gt;= 350){ ta.val( ta.val().substr(0, 350) ); } else { $("#counter span").tex...
javascript jquery
[3, 5]
569,575
569,576
i'm getting CultureInfo.InvariantCulture format for MM/dd/yyyy. but i want to get dd/MM/yyyy format what i do that
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/12986114/get-the-system-date-and-split-day-month-and-year">get the system date and split day,month and year</a> </p> </blockquote> <p>getting CultureInfo.InvariantCulture format for MM/dd/yyyy. but i want to get...
c# asp.net
[0, 9]
247,260
247,261
Audio tag attribute issue
<p>I need to create audio tag with bunch of attributes.</p> <p>I have </p> <pre><code>var audioPlayer=document.createElement('audio'); var audioSource=document.createElement('source'); audioSource.type="audio/mp3"; audioPlayer.controls="controls"; audioPlayer.autoplay="autoplay"; $('div').append...
javascript jquery
[3, 5]
1,174,994
1,174,995
Creating Threads results in force close in android app
<p>I am trying to create a thread to handle a login function that is executed when the login button is pushed, so that I can show a progressDialog.</p> <pre><code> btnLogin.setOnClickListener(new OnClickListener() { public void onClick(View v) { // Check Login ProgressDialog.show(Ac...
java android
[1, 4]
772,197
772,198
How to make the numbers automatically using jquery append ..?
<p>Hello all I want to ask, how to make the numbers automatically using jquery append ..? I have made ​​it but still failed My source code is : </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Help Help&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;input type="button" id="button" value="Create a number f...
javascript jquery
[3, 5]
1,640,781
1,640,782
need to pass the php value to javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1917576/how-to-pass-javascript-variables-to-php">How to pass JavaScript variables to PHP?</a> </p> </blockquote> <p>Here below my code:</p> <pre><code>function disablefields(){ var suresh=[&lt;?php echo $cryo...
php javascript
[2, 3]
1,796,337
1,796,338
How to determine if my app is running on Android
<p>I have an app that runs on several mobile devices running either Fedora or Android. To consolidate my codebase and distribution I would like to determine which OS I am on. I tried System.getProperty("os.name"), but that just returns "Linux". Is there something unique to Android in the System properties? Thanks</p>
java android
[1, 4]
2,561,602
2,561,603
Java/Android: Increment Algorithm
<p>I have a value of Android accelerometer x axis, and on every <strong>0.18</strong> change of that value, the value of <strong>az</strong> should also be incrementally/decrementally changed by <strong>5</strong> </p> <p>for example:</p> <p>at <code>x=0, az=0</code></p> <p>at <code>x=0.18, az=5</code></p> <p>at...
java android
[1, 4]
1,268,630
1,268,631
Using find() excluding some elements?
<p>I need to use find() to find all inputs in a form and change its value to ''. But I also need to exclude 2 inputs, the name of these inputs are: 'data', and 'date'</p> <p>I tried this (with no success)</p> <p><strong>$('#contactForm').find("input[ @name != 'data' ][ @name != 'date' ]").val('');</strong></p>
javascript jquery
[3, 5]
315,858
315,859
JQuery form auto submit clicking out side the div
<p>I want to auto-sumbit my form once user clicks out side the div of the form.</p> <p>I tried the following but it submits within clicking within the div.</p> <pre><code>&lt;div id="formDiv"&gt; &lt;form id="search"&gt; &lt;input id="target" type="text" value="Field 1" /&gt; &lt;input type="text" value="Field 2"...
javascript jquery
[3, 5]
4,392,350
4,392,351
Simplifying shorthand if bool
<p>I just declared a variable like this:</p> <pre><code>bool b = (x is Foo) ? (x as Foo).Bar == 1 ? false; </code></pre> <p>But resharper told me that I could simplify the expression, so I rewrote it like this:</p> <pre><code>bool b = (x as Foo).Bar == 1; </code></pre> <p>Amd now resharper is satisfied, but is "exc...
c# asp.net
[0, 9]
4,849,501
4,849,502
Prev/next functionality failing
<p>Prev/next functionality not working on new section selection. The idea is that when the the page loads, several slide shows will load and the user will navigate through them with prev/next buttons. When they get to the end of one section, they will select the next section that they want to view. My problem is that t...
javascript jquery
[3, 5]
325,871
325,872
class relations and site architecture
<p>I'm building a asp.net web site<br> i build a class localiziedpage that inherit from System.Web.UI.Page this class in dealing with all localization of the page. ii have a class basepage that inherit from localiziedpage that get all simple data from db for a page (h1,title,main content,description...)</p> <p>now ...
c# asp.net
[0, 9]
4,320,023
4,320,024
Persisting information across repeat form submission attempts
<p>Below is a simplified version of a sign-up page I'm working on. </p> <p>When the user clicks the button I need to collect money from a credit card. Then, if the transaction is successful, create the new user account. </p> <p>My problem is handling the scenario where the credit card transaction succeeds but then t...
c# asp.net
[0, 9]
5,875,567
5,875,568
fadeIn() an invisible list item with jQuery
<p>I have an unordered list whose <code>li</code>s are invisible (<code>display:none</code>) to begin with.</p> <p>I want to make a specific <code>li</code> visible with a JS function. How can I do that?</p> <p>I've tried <code>$("#my-list li:nth-child(1)").fadeIn()</code> but that only works if the <code>ul</code> i...
javascript jquery
[3, 5]
302
303
javascript callback after loop
<p>Iv'e just started a new Wordpress blog and i have started to build the JavaScript base!</p> <p>the issue im having is that i have a fucntion that loops several variables and includes the required JS libraries, what i need to do is execute the callback when the loop is finished!</p> <p>Heres my code!</p> <pre><cod...
javascript jquery
[3, 5]
1,979,708
1,979,709
jquery .find and append img tag
<p>I am trying to load pictures name from a xml object and append to div. I am getting confuse with append typing layout, not able to find where im doing typing mistake. </p> <p>This is working</p> <pre><code>$("#nn").append("&lt;img id='theImg' src='/pic/jas/pic1.jpg'/&gt;"); </code></pre> <p>This not working</p> ...
javascript jquery
[3, 5]
3,599,722
3,599,723
show a string of my div and append
<p>How do I show a string representation of my div emptied then append to it?</p> <pre><code> var x = $('#myDiv').outerHTML(); x = x.empty().append('&lt;h1&gt;test&lt;/h1&gt;'); //result must look like &lt;div id="myDiv"&gt;&lt;h1&gt;test&lt;/h1&gt;&lt;/div&gt; </code></pre>
javascript jquery
[3, 5]
1,408,313
1,408,314
Android set ringtone failure
<p>I try the following code and it doesn't set the ringtone. The logcat entry for "ff" says null so I guess the URI isnt being concatenated properly?, I cant seem to figure out where in my code I am going wrong.</p> <pre><code>String filepath =Environment.getExternalStorageDirectory().toString()+"//media//audio//ringt...
java android
[1, 4]
4,223,878
4,223,879
How to check if textbox is empty in jquery dialog
<p>I have one jquery dialog in my app.</p> <p>Here Is how It is made</p> <pre><code> var routePopup = "Route Name : &lt;input type='text' id='routeName' name='routeName'/&gt;"; document.getElementById('popUp').innerHTML = ""; document.getElementById('popUp').innerHTML = routePopup; $("#popUp").dialo...
javascript jquery
[3, 5]
3,439,245
3,439,246
How to identify IE browsers Build and Sub Build Numbers?
<p><a href="http://msdn.microsoft.com/en-us/library/3yekbd5b.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/3yekbd5b.aspx</a></p> <p>Using this link we are no where able to find the build and sub build version!</p> <p>For more information regarding the build and sub build and how those version being gen...
javascript asp.net
[3, 9]
938,382
938,383
Is there any way to know if a button is not clicked a determined time?
<p>Is there any way to know if a button is not clicked a determined time? I've two increment and decrement buttons (plus and minus )to control the temperature with Ajax request. The value is incremented one to one with the next function:</p> <pre><code>Plugin_increment.prototype.startPluginTempe = function (selector, ...
javascript jquery
[3, 5]
515,261
515,262
output HTML content using Jquery
<p>I want to display a message on the webpage as result of search . below is my JS code. I kept the DIV empty in the HTML. after calling the function nothing is displaying in the browser.I am novice Please correct where I am doing wrong. </p> <pre><code> function test() { var v = "&lt;p class=""noresults""&gt; ...
javascript jquery
[3, 5]
2,783,736
2,783,737
disable textbox Required field validator control
<p>I want to disable the requiredfield validator control for the textbox based on some condition of a variable</p> <pre><code>if(var==null) { //Activate it } else { //disable it } </code></pre> <p>Can some one help me with the code</p>
c# asp.net
[0, 9]
5,881,483
5,881,484
When including your header, in PHP, how do you add things?
<p>I am building one of my first PHP websites, and just playing around with it. I am going to be using PHP includes, so I only have to change my meta stuff once. Currently, I have everything from the doctype to the end of the <code>&lt;/head&gt;</code>.</p> <p>A friend is saying I should not include the <code>&lt;/hea...
php javascript
[2, 3]
5,599,927
5,599,928
How to know text is breaking using javascript or jquery
<p>I have table in some colums text is breaking in two lines. I want to reduce font size for which td text is breaking. I am not getting any clue to where to start coding for this issue <a href="http://jsfiddle.net/WZNPx/" rel="nofollow">http://jsfiddle.net/WZNPx/</a></p> <pre><code>&lt;table width="500" border="0" ce...
javascript jquery
[3, 5]
4,753,469
4,753,470
reading content of .aspx using javascript
<p>i am using javascript to read the content of .aspx page. but i am not able to read it. i am using javascript as:</p> <pre><code>function edit(headtext,totext, bodytext, footertext){ alert('lll'); //var xmlDoc=new ActiveXObject("MSXML.DOMDocument"); xmlDoc.async="false"; xmlDoc.loa...
javascript asp.net
[3, 9]
3,944,046
3,944,047
clearTimeout is not working for some reason
<p>I am not sure what is wrong with my code here, I've set the variable global but the clear timeout is still not working here.</p> <p>Thank you, Kelvin</p> <pre><code>var myslide = null; $(document).ready(function () { var current = null; $('ul#panel li a').click(function () { stopAuto(); $(...
javascript jquery
[3, 5]
737,378
737,379
Alert based on if condition error
<p>I am trying to fire an alert based on wether a flag is set or not. The first time the page is loaded, the alert works fine. If I then alert data after success, then when I close the dialog the old data is still there. So instead of seeing no data, I still see the old data. The idea, is that if user closes the dialog...
javascript jquery
[3, 5]
4,849,665
4,849,666
How to print a nested array inside the value of a cloned input object?
<p>I have a <a href="http://jsfiddle.net/rayd360/7NHXf/2/" rel="nofollow">fiddle</a></p> <p>code:</p> <pre><code>//create array with values thisArray= ['',[]]; thisArray[0] = ['numbers',['one','two','three','four','five']]; // have a clean clone of input var newElem = $('#input').clone(); //search through aray and p...
javascript jquery
[3, 5]
1,541,768
1,541,769
remove entry from javascript array object
<p>I have two object array in Js</p> <pre><code>a = [{"photoId":"1","albumId":"121"},{"photoId":"2","albumId":"131"},{"photoId":"3","albumId":"131"}] ; b = [{"photoId":"2","albumId":"131"}]; </code></pre> <p>I want to remove b object array entry from the a object array..so the output should be</p> <pre><code>c = [{"...
javascript jquery
[3, 5]
5,366,487
5,366,488
execCommand for font-size causes problem in Google Chrome
<p>I am using a jquery based rich text editor "lwRTE"</p> <p>It works well in all ways except in changing fontsize</p> <p>I traced the problem as follows:</p> <p>when i change the font size the command and the argument is chosen correctly as "font size" and "[the font size in number Eg.6]"</p> <p>now the <strong>ex...
javascript jquery
[3, 5]
5,997,122
5,997,123
How to use jquery API over html string
<p>context: I have an ajax request which return data structure with an html key.</p> <p>I would like to wrap this data with a jQuery object to be able to use API like width / height and modify the data before adding it to the DOM.</p> <pre><code>&gt; $('&lt;div width="220" height="200"&gt;&lt;/div&gt;').width() 0 </c...
javascript jquery
[3, 5]
2,833,053
2,833,054
What PDF library should I use for Android?
<p>I have been developing Android application, and I need to read PDF-files in my app. There are some requirements for lib:</p> <ul> <li><p>will the solution be able to read fairly large files? Like if the file is much larger than available memory, would it be able to read piece by piece as the user browses?</p></li> ...
java android
[1, 4]
5,509,634
5,509,635
accordion in jquey ul
<p>I am trying to Convert one header and one content panel into an accordion. </p> <pre><code> &lt;div id="accordion-two"&gt; &lt;h3&gt;Header&lt;/h3&gt; &lt;div&gt;Content panel&lt;/div&gt; &lt;/div&gt; </code></pre> <p>this is jquery</p> <pre><code> $('#accor...
javascript jquery
[3, 5]
750,592
750,593
How to have a smooth transition when showing / hiding text
<p>I need to switch between the short and the full description of an article. Actually i have this markup</p> <pre><code>&lt;div class="post-content"&gt; &lt;p class="corta"&gt;Antonio Colombo Contemporary Art and Atelier Biagetti, have the honour to present&amp;nbsp;a&lt;/p&gt; &lt;span class="points" &gt;...&lt;/sp...
javascript jquery
[3, 5]
5,351,714
5,351,715
Jquery object compare problem
<p>How to compare two Jquery object?</p> <pre><code>$('&lt;p&gt;&lt;/p&gt;')[0] === $('&lt;p&gt;&lt;/p&gt;')[0] false $('&lt;p&gt;&lt;/p&gt;') == $('&lt;p&gt;&lt;/p&gt;') false $('&lt;p&gt;&lt;/p&gt;').get() == $('&lt;p&gt;&lt;/p&gt;').get() false </code></pre>
javascript jquery
[3, 5]
5,416,596
5,416,597
Are there any real risks to continuous polling?
<p>It's sort of been 'against my religion' to poll a condition using a <code>timeOut</code> or similar technique. I'd so much rather handle an event than continuously search for evidence that an event occurred.</p> <p>But, due to spotty support for the <code>onHashChange</code> event, it was suggested I use a plugin t...
javascript jquery
[3, 5]
4,448,670
4,448,671
JavaScript minifier that strips out unused code
<p>Does anyone know of a JavaScript minifer that can detect unused code and strip it out.</p> <p>Google Closure seems alright but it appears to only compact.</p> <p>I'm looking for something much more advanced, where it can look through my JavaScript and not only compact but also remove unused code.</p> <p>Anyone kn...
javascript jquery
[3, 5]
5,034,691
5,034,692
remove/hide table's empty column(s), including <th>
<p>How can I hide the column with all empty cells including the title <code>&lt;th&gt;</code> in that column, while leaving the other columns and their titles as it is. Following jquery hides the entire <code>&lt;th&gt;</code>, which is not I want. <a href="http://jsfiddle.net/F3Hnm/" rel="nofollow">Here</a> is a sampl...
javascript jquery
[3, 5]
2,078,703
2,078,704
preview of another website not thumbnails in php and javascript
<p>I am in the process of creating a site where visitors can preview(not THUMBNAILS!) another url on mypage in an input text box and click on"preview" button-</p> <p>I am using CURL from php to extract the contents of the site and have divided my page into two halves one for accepting url and the other half which wil...
php javascript
[2, 3]
3,317,612
3,317,613
Update label C#
<p>When the page first load i have a label who has 0 or 1. Look at the code and you will se what i trying to do. But it don't work because the page allready loaded.</p> <pre><code>protected void rptBugStatus_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item ||...
c# asp.net
[0, 9]
1,230,552
1,230,553
how to upload ppt and display ppt in website using c#
<p>How can I display an uploaded power point presentation inside a c# asp.net web application?</p>
c# asp.net
[0, 9]
463,384
463,385
Storing an inline style into jquery variables
<p>I have the following img tag,</p> <pre><code> &lt;img id="image1" src="URL" alt="image1" name="image1" width="137" height="119" border="0" style="position: relative; left: -355px; top: 62px;" &gt; </code></pre> <p>I would like to somehow, onclick, store the following items into seperate variables..</p> <pre><code...
javascript jquery
[3, 5]
4,845,313
4,845,314
JQuery add hidden element to form programmatically
<p>This is really getting to me now.I have a form that loads when the page loads.In my jquery 'ready' function I append a hidden to that form like so : </p> <pre><code>$("&lt;input id='thehidden' type='hidden' name='thehidden' value='hiddenval'&gt;").appendTo("#MenuForm") </code></pre> <p>When I check the form conten...
javascript jquery
[3, 5]