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,157,119
2,157,120
JavaScript return and php problem (true,false)
<p>now i made JavaScript code (jquery code) and when i click ok it return true if i want true and false if i want false</p> <p>now the problem is php not consider true as <code>php keyword true</code> its just consider it a word like any other word and i must make it like this</p> <pre><code>if($post == 'true') </cod...
php jquery
[2, 5]
3,952,217
3,952,218
Object required?
<pre><code>$(document).ready(function(){ function openEditor(){ $("#editor").show().animate({width: 965, height: 380}, 1500); $("#editor textarea").show(); } function closeEditor(){ $("#editor").animate({width: 985, height: 1}, 1500, function(){ $("#editor").hide(); ...
javascript jquery
[3, 5]
3,582,506
3,582,507
Sys.WebForms.PageRequestManagerServerErrorException 500
<p>While trying to run my application I'm getting this error.</p> <blockquote> <p>Sys.WebForms.PageRequestManagerServerErrorException:500</p> </blockquote> <p>How can i resolve this?</p> <p>Any idea?</p> <p>thank you</p>
c# asp.net
[0, 9]
4,751,890
4,751,891
Issue resetting form with JQuery
<p>I'm having an issue with a form that is built with Ajax. Basically it is one of those forms which populates as you drill down from a parent select. The problem is once you advance forward a page, and go back the first drop down has its option selected, but the others are not processed and therefore just say "Select...
javascript jquery
[3, 5]
379,014
379,015
Javascript or Jquery auto populate one input text based on another input value
<p>I am not good at JS or Jquery. I take the follow code for better explaining what I what. When a user input 400 or more to triglycerides, the LDL is autopopulated with 'N/A'. How do I implement JS or Jqeury to do that? thanks</p> <pre><code>&lt;form&gt; &lt;input name='triglycerides" value="" /&gt; &lt;input name=...
javascript jquery
[3, 5]
1,965,415
1,965,416
How to show boolean values on android device?
<p>I am new to android programming. I want to show only true values of an array to android application. I have an input box, when you enter something into that and click on send. It goes to new page and shows the entered message, I want to show true values of boolean array into that page along with entered name. I am s...
java android
[1, 4]
634,194
634,195
Referencing javascript object within jquery event
<p>I've this code.</p> <pre><code>var NotificationsBox={ HideNotificationBox:function() { document.getElementById("NotificationBox").style.visibility="hidden"; }, toggleNotificationBox:function() { $('#NotificationBox').toggle(); }, SetContainerClick_Notifica...
javascript jquery
[3, 5]
1,289,711
1,289,712
jquery toggle() not working with variable
<p>I wan't to be able to "toggle" a div using jquery through a function but it gives me </p> <p>"Uncaught TypeError: Cannot read property 'defaultView' of undefined"</p> <p>in the chrome debugger. here is my code</p> <pre><code>function hide(id){ $(id).toggle(); } </code></pre> <p>I have also tried</p> <pre><code>...
javascript jquery
[3, 5]
290,084
290,085
Android 101 - How do i iniate a method within main activity from an onInit?
<p>I need to know code to fix my example below to initate a method within my activity.</p> <p>code:</p> <pre><code> public void onInit(int status) { HowDoIStartThisMethodCorrectly?(); &lt;-- cuz this dosen't start that method. </code></pre> <p>}</p> <p>I need a method within my main activity to run when progr...
java android
[1, 4]
3,094,605
3,094,606
what is difference between multidimensional array in java and c++?
<pre><code>char a[][4] = {{'a','a','a'}, {'a','a','a'}, {'a','a','a'}, {'a','a','a'}}; </code></pre> <p>In c++ you must initialize the last index of an array.</p> <p>In java if you do this it will result in an error.</p> <p><strong>Can someone explain me why??</strong><br...
java c++
[1, 6]
1,084,528
1,084,529
Selecting the last child
<p>I was wondering how I'd get an alert of a last child by clicking a link.</p> <pre><code> &lt;h3 id="comment:5" class="myclass"&gt; </code></pre> <p>This is how far I got:</p> <pre><code>$('#lastcomment').click(function() { alert('Handler for .click() called.'); }); </code></pre> <p>My aim is to jump to the ...
javascript jquery
[3, 5]
5,358,964
5,358,965
Simple javascript document.write isn't working
<p><a href="http://www.jsfiddle.net/T6Jqx/13/" rel="nofollow">Here's the code in question</a></p> <p>I'm trying to create a simple application - each of the three men has a <code>rel="x"</code> attribute attached them. I'm using <code>var regionId = $('img.selected-region').attr('rel');</code> to make the <code>rel</c...
javascript jquery
[3, 5]
5,347,052
5,347,053
Javascript to untag spans without id
<p>Would it be possible to find and untag spans that do not have ids within a string? I have a text that has bunch of spans some of which have ids and others don't.</p> <p>Input: </p> <pre><code>&lt;span&gt;Hi there!&lt;/span&gt;&lt;span id="blabla"&gt;This is a test&lt;/span&gt; </code></pre> <p>Output:</p> <pre><...
javascript jquery
[3, 5]
1,075,573
1,075,574
changing text for an input field using php, mysql, and javascript
<p>Ok, i have some data that is being populated via a php query to a database. I am getting comments that a user enters. I am displaying the returned data in a variable as shown below. If a comment does not exist then it would display an "add comment" link. The comment is just displayed as text at first. If a comm...
php javascript jquery
[2, 3, 5]
6,026,986
6,026,987
Exclude specific errors from custom error redirect
<p>Is there a good way to exclude some errors from being redirected to the default custom error page?</p> <p>I'm using aspnet membership provider and have just discovered that if for example a user tries to change their email address to one that is already in the system, rather than show the error message warning in t...
c# asp.net
[0, 9]
5,802,889
5,802,890
jquery overriding href
<p>I have a div (.questionsList) that contains a link. When the div is clicked, I have an element #slider that slides out. However, when the link inside the div is clicked, I want to follow that link. The problem is, when I click the link, the jquery slide effect is overriding the link href so the slider slides out and...
javascript jquery
[3, 5]
1,577,022
1,577,023
detect character before the cursor after keyup in textarea
<p>I am trying to implement tagging just like what facebook does with @friendname. I have a textarea and I wanted to detect when a user typed in @. How do I do so using a keyup listener? Is it possible to get the entered text using keyup? Here's what I have now</p> <pre><code>$("#recommendTextArea").keyup(function () ...
javascript jquery
[3, 5]
3,652,135
3,652,136
Why is the javascript object prototype referred to as `fn`?
<p>What's the etymology of such terminology? Where does it come from? What does it stand for?</p>
javascript jquery
[3, 5]
476,161
476,162
asp.net showing literal on condition
<p>I have a literal in my master page and in the code behind, sometimes I populate it with data and sometimes not. The literal is in a div so that I can access its value in javascript. The mark-up looks like this:</p> <pre><code>&lt;div id="Literal1"&gt;&lt;asp:literal .... ID="TheLiteral1" /&gt;&lt;/div&gt; </code></...
c# asp.net
[0, 9]
4,664,405
4,664,406
How to center a ImageView vertically in its parent?
<p>My layout design is a TextView with long text and a ImageView to the right of the TextView. I want to center the ImageView in its parent vertically, so I used android:layout_centerVertical="true", but it turned out that the ImageView was aligned to the bottom of its parent. If I don't use layout_centerVertical prope...
java android
[1, 4]
4,023,350
4,023,351
Generate charts with Google chart API
<p>i'am trying to generate a chart like this one: <code>http://chartpart.com/</code> but i don't know how to do that exactly.Do i need to make the string that generates the chart manually or do i need to send the data to a google server and receive the string?(if so how do i send the data?) PS:i would like to do all t...
c# android
[0, 4]
2,622,777
2,622,778
Run a .jar file with parameters from JavaScript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1320476/execute-another-jar-in-a-java-program">Execute another jar in a java program</a> </p> </blockquote> <p>I have an executable jar file that accepts two parameters: an input file and an output file:</p> <p...
java javascript
[1, 3]
3,902,769
3,902,770
Get screen size include the source code panel/ debug panel using jquery
<pre><code>$(window).height(); $(window).width(); </code></pre> <p>Currently I am using these two codes to get the screen size,However, if the source code panel/debug panel is on. The size of the screen will exclude, how to include the source code bar in the screen size result? Thanks. </p> <p>Also, is there anyway t...
javascript jquery
[3, 5]
882,593
882,594
Strange behavior in JavaScript
<p>I have 2 elements - "span" (named "divLikedX") and "a" (named "aLikeX"). I have the following javascript (occurs clicking by "a"):</p> <pre><code> function CommentLike(CommentID, aLink) { if (CommentID != null &amp;&amp; CommentID &gt; 0) $.post("/Home/LikeComment", { CommentID: CommentID }, ...
javascript jquery
[3, 5]
2,982,058
2,982,059
Unable to pass the array value in the Hyperlink
<p>Below is the code that I am using with Jquery to pass a value when a hyperlink is selected on sharepoint disp form.</p> <pre><code>for(var i=0;i&lt;retval.length;i++) { strHTML = strHTML + "&lt;a href='url.aspx?ID= '+retval[i]+' &amp;Source= url'&gt;" + retval[i] + "&lt;/a&gt;"; strHTML = strHTML + " "; } st...
javascript jquery asp.net
[3, 5, 9]
3,832,288
3,832,289
Problem with jQuery clone(): clone input without value
<p>I am using jquery <code>.clone()</code> and it is working fine. However my problem is that when I clone my input field it also clones the value of the previous field. I don't want to clone the value. How can I overcome this issue?</p> <p>Here is my code</p> <pre><code>function addrow(){ var num = $('.clone...
javascript jquery
[3, 5]
1,963,567
1,963,568
How to change direction on y axis in JSChart
<p>I create a chart using [JSChart] Library JavaScript but I want to make <em>y</em> axis direction right to left</p>
javascript jquery
[3, 5]
5,237,155
5,237,156
Hide all elements with particular number in id
<p>need help, I try to cut complexity and make simple example:</p> <pre><code>&lt;div id="tree_div"&gt; &lt;ul&gt; &lt;li id="tree_li_401"&gt;401&lt;/li&gt; &lt;li id="tree_li_101"&gt;101&lt;/li&gt; &lt;li id="tree_li_301"&gt;301&lt;/li&gt; &lt;li id="tree_li_201"&gt;201&lt;/li&gt; &lt...
javascript jquery
[3, 5]
5,741,631
5,741,632
getElementById issue
<p>I have got this button:</p> <pre><code>&lt;input type="button" value="Rep" id="rep" name="rep" class="rep" style="width:50px" onclick="triggerLabel(1);this.disabled=true;addRep(&lt;?php echo $comment_id; ?&gt;);"/&gt; &lt;script type="text/javascript"&gt; function triggerLabel($commentID) { ...
javascript jquery
[3, 5]
4,549,317
4,549,318
jQuery preventDefault Not Behaving
<p>I have a simple search function that is misbehaving. The search box is inside of a form that we do not want to submit when searching, so I have the setup below.</p> <pre><code>$(function() { jQuery.fn.onEnter = function(callback) { this.keyup(function(e) { if(e.keyCode == 13) { ...
javascript jquery
[3, 5]
1,963,439
1,963,440
How to get the Win32_battery class information of the battery connected to computer through RS 232 Interface?
<p>I need to get the battery information (Win32_battery class) (using WMI) of the battery connected to the PC through RS 232 Interface(C#.NET app). Can any one help me to get this information?</p>
c# c++
[0, 6]
1,460,960
1,460,961
Need help to do math with PHP and JavaScript
<p>I have the following JQuery/Javascript</p> <pre><code>&lt;script&gt; var Quantity; $("select").change(function() { var str = ""; var price = &lt;?php echo $row[price];?&gt;; $("select option:selected").each(function() { str += $(this).text() + " "; }); $("...
php javascript jquery
[2, 3, 5]
1,713,447
1,713,448
Change visibility of ASP.NET label with JavaScript
<p>I have a ASP.NET page with an asp:button that is not visible. I can't turn it visible with JavaScript because it is not rendered to the page.</p> <p>What can I do to resolve this?</p>
asp.net javascript
[9, 3]
1,098,122
1,098,123
How to stop toggle event from being fired multiple times on mouseenter/mouseleave?
<p>I'm using jQuery to toggle the visibility of a <code>&lt;div&gt;</code> using the jQuery toggle method. The toggle is fired on the mouseenter and mouseleave event, thus creating the effect of the div to fold out on mouseenter and fold in on mouseleave. Problem is, if the user drags the mouse over the <code>&lt;div&g...
javascript jquery
[3, 5]
4,869,624
4,869,625
Number Separator in repeater
<p>I have this line in a repeater in my ASP.NET web page:</p> <pre><code>&lt;%# Eval(123456) %&gt; </code></pre> <p>I want to shown my number (123456) with separator (like this: 123,456)</p> <p>what I must to do ?</p> <p>I know something about string format. and I use some string format like "{N3}" and "{#,000)" ....
c# asp.net
[0, 9]
4,261,068
4,261,069
Change the Grid View Pages on button click in C# Asp.net
<p>I have a problem that I want to change the Grid View page on button click. Means Grid View paging concept on button click in C#. I have to click on a button having a particular number text, then this will shows the particular page of gridview corresponding to the Button clicked.</p> <p>Thanks in advance.</p>
c# asp.net
[0, 9]
5,503,270
5,503,271
Working with percents in Jquery
<p>I'm building a site with a fluid layout, and therefore need to use percentages in my Jquery sizes and animations. The problem, as I've discovered, is that Jquery doesn't understand percentages. Here's an example of what I'm after:</p> <p>The page <code>&lt;body&gt;</code> is 100% wide.</p> <p><code>&lt;article&gt;...
javascript jquery
[3, 5]
5,556,204
5,556,205
Loan Pattern / Automatic Resource Management in Java
<p>I have tried to implement automatic resource management for Java (something like C#'s <code>using</code>). Following is the code I have come up with:</p> <pre><code>import java.lang.reflect.*; import java.io.*; interface ResourceUser&lt;T&gt; { void use(T resource); } class LoanPattern { public static &lt;T&g...
c# java
[0, 1]
3,107,614
3,107,615
How to get the first name of each list?
<p>Sorry if the title isn't clear enough, I have five <code>&lt;li&gt;'s</code> in each <code>&lt;li&gt;</code> I have <code>&lt;a&gt;</code> and a <code>&lt;div&gt;</code> and in each <code>&lt;div&gt;</code> I have a <code>&lt;ul&gt;</code>with a class of "config". Then in that I have two <code>&lt;li&gt;</code>.</p>...
javascript jquery
[3, 5]
3,807,009
3,807,010
UPDATED: trying to store an array in php then call a javascript function
<p>I'm trying to store results in an array from mysql using php, then using the results to call a javascript funtion to use the results there. I'm not sure why my map isn't showing up (trying to implement google maps into my page)</p> <p>My php/html/javascript call</p> <pre><code> &lt;?php ..... &lt;div id="content" ...
php javascript
[2, 3]
3,149,658
3,149,659
Send nullable int from Android to C# web service
<p>I want to call a JSON C# web service that receives the following parameters:</p> <pre><code>getMensajesByParameters(int param1, int param2, int? param3) </code></pre> <p>Notice that the third parameter is defined as a <code>int?</code>? That means that is a "nullable int".</p> <p>By the other side I am writing an...
c# java android
[0, 1, 4]
5,524,020
5,524,021
Android: How can I get ip address from an android app?
<p>Is it possible to get the ip address from android app?</p>
java android
[1, 4]
2,610,111
2,610,112
How do you dynamically assign a Master Page?
<p>Is it possible to assign a Master Page dynamically?</p>
c# asp.net
[0, 9]
669,623
669,624
Dynamic Product Comparison Page
<p>I'm working on creating a product comparison page for a website and am looking for a direction to take. Essentially what will happen is a the page will receive 2-4 product IDs in the query string (delimited in some way) and then build the comparison page.</p> <p>Now this would be easy if I just needed to databind d...
c# asp.net
[0, 9]
2,359,089
2,359,090
calling object method in jquery each loop - scope issue?
<pre><code>My.Awesome.Obj = function() { return { // PUBLIC PROPERTIES legendObj: null, // PUBLIC METHODS init: function() { this.assignLegendClick(); }, assignLegendClick: function() { console.log('*** drawLegend()'); var checkb...
javascript jquery
[3, 5]
4,454,075
4,454,076
Android Custom Listview
<p>I went through tutorials and searched, but still I can't understand how the,</p> <pre><code>getView(int position, View convertView, ViewGroup arg2) </code></pre> <p>method works when extends <code>BaseAdapter</code> to create a custom listView in my android application. Therefore I cant Edit the Custom list view e...
java android
[1, 4]
4,921,216
4,921,217
masterpage page_load return
<p>I've a master page and A.ascx, B.ascx. These user controls embedded in master page.</p> <p>master.page cs</p> <pre><code> protected void Page_Load(object sender, EventArgs e) { if(exitMode){ //return } } </code></pre> <p>If I coded like this, The code debug mustn't enter A and B's page_load, only must go ...
c# asp.net
[0, 9]
1,297,278
1,297,279
Method in C# returning value
<p>I want to write a generic method in C# in asp.net application where i need to pass the sql server stored procedure name as the parameter. It will be a generic function and will take any stored procedure name as a parameter and execute it.Please help me</p>
c# asp.net
[0, 9]
1,252,796
1,252,797
Clearing all fields in an asp.net form
<p>I have an <code>asp.net</code> <code>form</code>. In this <code>form</code>I want to clear all the data what I entered in <code>textbox</code>,<code>dropdownlist</code> etc. So how can I do without going to each textbox and set the value.</p> <p>like <code>TextBox1.Text="";</code> etc. How can i clear all values o...
c# asp.net
[0, 9]
2,807,546
2,807,547
primitive vs managed types on android - which one should i use in my app
<p>im trying to port an iphone app to android. i am completely new to java and android environment</p> <p>i see different code samples on the internet, some use int and boolean where as some use Integer and Boolean</p> <p>i wanted to know the pros and cons of both and which is the best way forward?</p> <p>since prim...
java android
[1, 4]
4,788,003
4,788,004
how to modify the value of src attribute of <img> tag using jquery or javascript
<p>I am parsing a html string fragment and changing the src attribute of image tags. (i.e. replacing paths that start with ".."</p> <pre><code>var hstr = $.parseHTML(str); $(hstr).find('img').each(function(e){ var srcvalue = $(this).attr('src'); srcvalue = srcvalue.replace(/../gi, ""); $(this).attr('src', srcvalue); }...
javascript jquery
[3, 5]
5,486,767
5,486,768
Find and replace in div table using jQuery?
<p>I have a text "First Name (Given Name, Forename):" that needs to replaced with "Something" using jquery. Please see below text.</p> <pre><code> &lt;div id="ctl00_m_g_23e3c2e9_71b9_464f_9ad3_46a603eb384f_ctl00_PanelSearch" sizcache="3" sizset="0"&gt; &lt;table width="100%" sizcache="2" sizset="0...
javascript jquery
[3, 5]
4,828,422
4,828,423
Keeping timestamps accurate in chat system - using timeago jQuery plugin
<p>I'm creating a web-based chat/messaging system. Since the chats can be saved, each message of a chat and the time in which each message was sent are stored on the server in a mysql database. Timestamps are stored in mysql DATETIME format in UTC time and the timestamps are generated on the server.</p> <p>As messages...
php javascript jquery
[2, 3, 5]
4,313,546
4,313,547
all validators executed when page is loaded
<p>Can i run all validators when page is loaded. I need to show * in all input text fields that are necessary. I have require field validators for that fields, can i run it by default when page is loaded?</p>
c# asp.net
[0, 9]
634,248
634,249
Finding tables assinging ID's Shrinking to fit parent div And making bigger
<p>Hi this is a follow on question from a previous post. <a href="http://stackoverflow.com/questions/10503276/reducing-font-size-in-table-so-the-table-fits-inside-a-div">here</a></p> <p>I have html pages generated from a database some of which may contain multiple tables, these tables may not fit there parent div so w...
javascript jquery
[3, 5]
4,917,709
4,917,710
DateTime JavaScript vs C#
<p>Regardless of many posts I've read the magic still in my code. I have DateTime value in db ('2011-03-30 00:00:00.000') that I process for asp.net/mvc page where some javascript needs to read it and compare. The magic in the following:</p> <pre><code>&lt;% DateTime unixTimeOffset = new DateTime(1970, 1, 1, 0, 0, 0...
c# javascript
[0, 3]
601,500
601,501
How do I check on whether my synchronized methods are blocking (Android + Java)
<p>I have a feeling that my synchorization may be a little coarse (juddering UI) and was wondering how do I find out when/if my synchronized java methods are blocking on each other. My current project is on Android but I am interested in the more general Java case as well.</p> <p>Thanks, </p>
java android
[1, 4]
1,441,318
1,441,319
Pull data from a jQuery input box
<p>I have found a lovely bit of jQuery for a pop out calender. However I want to use the date(s) the user selects in a Stored Procedure. To keep this example simple how do I pull/push this date to say label? </p> <p>I have tried putting the label into the function but without joy. </p> <p>The date shows in <code>&l...
jquery asp.net
[5, 9]
2,738,428
2,738,429
How to add action to the disabled elements via JQuery?
<p>Purpose: To make sure some elements couldn't be modified, I disabled some elements once the page was loaded. But if I double clicked the element, the element could be modifiable.</p> <p>Please see the below code.</p> <p>My version is jquery-1.5.min.js</p> <pre><code>function disableAccounts($column){ $column....
javascript jquery
[3, 5]
252,261
252,262
Javascript PHP pop up an image when click on search, upon closing the image show results
<p>When I click on search the image pop up, But the values of the form did not get pass to the php script.</p> <p><strong>Click on search run this code-></strong></p> <pre><code>&lt;?php $loan_amt = $_POST['loan_amt']; if($_POST['search']){ if($_POST['loan_amt']=="" || $_POST['loan_tenure']==""){ $error = "Please f...
java php javascript
[1, 2, 3]
5,601,774
5,601,775
Script integration in Java application
<p>I have a java application(runnable jar) and VB scripts which I'm using to telnet to a remote machine and executing some cmds. So, I first execute the vbs files and then run my jar(in all everything is working fine).</p> <p>But, now I want to integrate scripts and my java jar such that, running the jar should first ...
java javascript
[1, 3]
4,689,491
4,689,492
Filter rows based on some function
<p>I got the following table:</p> <pre><code>&lt;table&gt; &lt;tr class="applyFilterOnThis"&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;span class="timeAdded"&gt;15.03.2011 05:42&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr class="applyFilterOnThis"&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;span class="timeAdd...
javascript jquery
[3, 5]
2,384,471
2,384,472
Selecting first # of elements with jQuery
<p>I have the following HTML:</p> <pre><code>&lt;input id="1" type="checkbox"/&gt; &lt;label for="1"&gt;bla bla&lt;/label&gt; &lt;br/&gt; &lt;input id="2" type="checkbox"/&gt; &lt;label for="2"&gt;hello hello&lt;/label&gt; &lt;br/&gt; . . . etc... </code></pre> <p>Is there a way to select first few inputs here in one...
javascript jquery
[3, 5]
3,386,676
3,386,677
Declaring variables jQuery and JS
<p>It may be a silly question but I haven't been able to find any documentations on this on the internet.</p> <p>When declaring variables to use within Javascript i normally use <code>var x = 0</code> but I've seen in jQuery tutorials that they use <code>$x = 0</code>. What is the difference of those two ?</p> <p>Als...
javascript jquery
[3, 5]
3,863,448
3,863,449
Trigger jquery function on blur unless specific elements are clicked
<p>I have a login form. When the inputs get focused the "forgotten password" and "remember me" elements get shown by adding a css class, when they blur, the elements are hidden again by removing the class "sho". I would like the elements to keep the class "<code>show</code>"if I click either one of them or the login li...
javascript jquery
[3, 5]
442,887
442,888
Find value in array jQuery
<p>So I need to get the part of the array that is holding a specific id, so that I can use the other variables within it.</p> <p>Here is my current code to create the array:</p> <pre><code>&lt;?php foreach ($list_subjects as $subject): ?&gt; subjects.push({ id: parseInt(&lt;?php echo $subject['subject_id'...
javascript jquery
[3, 5]
5,395,067
5,395,068
making div/htmlgeneric control visible using asp.net
<p>I have a user control with a div like this:</p> <pre><code> &lt;div runat="server" id="pnlShippingMethods" class="checkoutstep"&gt; &lt;div class="steptitle"&gt; &lt;%=GetLocaleResourceString("CheckoutOnePage.ShippingMethods.Title")%&gt; ...
c# asp.net
[0, 9]
5,785,637
5,785,638
getting some problem with gridview paging
<p>I have two pages.</p> <p>In one page I have placed a <code>GridView</code>. In the grid I am using two hyperlinks for select and edit. When I click for the edit page I am redirected to another page. When I have finished editing the record it goes back to the first page.</p> <p>The problem is when I was on the 2nd ...
c# asp.net
[0, 9]
5,196,608
5,196,609
Replacing only part of an iframe src
<p>I need to use javascript to change part of an iframe src, is there a way to change '500' to '800' in that iframe src? I tried the following code but it did not work. If anyone could help that'd be appreciated.</p> <pre><code> function bigPhotosets() { $('iframe.photoset').each(function(){ ...
javascript jquery
[3, 5]
5,822,473
5,822,474
How to replicate the "popup" messages seen in SE sites?
<p>StackOverflow and other sites in the SE Network have nifty things that pop up with messages, for example, when you click on an upvote link while not logged in. I'm not sure what this sort of thing is called, though.</p> <p>I'm assuming that this is done with CSS somewhere, but looking at the source of the pages wit...
c# asp.net
[0, 9]
2,564,925
2,564,926
How to check whether Java plugins are installed or not in a browser using Code .?
<p>How to check whether Java plugins are installed or not in a browser using java or javascript or JSP Code .?</p>
java javascript
[1, 3]
5,210,074
5,210,075
Passing $(this) selector into nested functions
<p>So I have a script in place that needs to go through each <code>P</code> tag within a parent <code>DIV</code> with the class name of <code>entry-content</code> and translate each one using the google translate API.</p> <p>So when a user clicks a link to translate the page from english to spanish this function is ru...
javascript jquery
[3, 5]
1,369,825
1,369,826
Executing JavaScript with Python without X
<p>I want to parse a html-page that unfortunately requires JavaScript to show any content. In order to do so I use a small python-script that pulls the html-code of the page, but after that I have to execute the JavaScript in a DOM-context which seems pretty hard.</p> <p>To make it even harder I want to use it in a se...
javascript python
[3, 7]
373,825
373,826
clickable grid view row asp.net
<p>i want asp.net gridview with its rows clickable.</p> <p>i want to call a function when that row is clicked based on row index.</p> <p>i tried to use RowDataBound event but it did not worked or me</p> <p>i used the following code</p> <pre><code>protected void PeopleGridView_RowDataBound(object sender, GridViewRow...
c# asp.net
[0, 9]
1,482,020
1,482,021
jquery validate
<p>I am using the plugin from here: <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow">http://bassistance.de/jquery-plugins/jquery-plugin-validation/</a></p> <p>and I am wondering if anyone has any code that will allow me to compare 2 form fields and validate that <code>field_1</co...
javascript jquery
[3, 5]
5,537,904
5,537,905
How do I refresh and remove some query on current URL
<p>Example my current URL is</p> <pre><code>http://domain.com/category/health-beauty/?session={%22session_key%22%3A%22df1eca3f79e122bd915651e5-1325102496%22%2C%22uid%22%3A%221325102496%22%2C%22expires%22%3A0%2C%22secret%22%3A%229eb858d1fc7dda2b37be912282a41382%22%2C%22base_domain%22%3A%22domain.com%22%2C%22access_toke...
php javascript
[2, 3]
5,577,490
5,577,491
Alert dialog display even when the application is not running
<p>I want to notify the user of my app when he receives special news (from my app). How can i display some kind of a messeage to the user, even if my app is running in the background (or not running at all if possible).</p> <p>I want him to be notified by text, and sound.</p> <p>Thanks.</p>
java android
[1, 4]
5,557,758
5,557,759
Extend the DropDown for Item ToolTip,Asp.net,C#
<p>i need to extend the DropDownList For adding toolTip For DropDown Item On mouseOver.</p> <p>If(Dropdown size is samller than Dropdownlist item then it will be useful for seeing the item as tool tip)</p> <p>For that i came to know, We need to create ServerControl project in VS2008 but i dont know how to add a prope...
c# asp.net
[0, 9]
618,689
618,690
On events? Turn it off?
<p>On keyup my script does something, I was wondering if I could turn it off, as in, I only want it to check one key up.</p> <pre><code>ckEditorNewsArticle.document.on("keyup", function(){ </code></pre> <p>Edit:</p> <pre><code>ckEditorNewsArticle.document.on('keyup', function(){ alert('key up')...
javascript jquery
[3, 5]
4,906,764
4,906,765
escaping a variable in jquery
<p>I have a function like this... I am trying to insert a class name using a variable <code>gotValue</code>. How do I pass it in jQuery? I have tried that in if clause, but it did not work. </p> <pre><code>function fullData(gotValue) { alert(gotValue); var count = gotvalue.substring(9); if($('.'+gotValue...
javascript jquery
[3, 5]
3,877,205
3,877,206
Android: how to run a thread in service after the device has been rebooted
<p>How to run a thread in background, after the device is rebooted. I'm trying to re schedule the alarm using alarm manager after the device is rebooted. But miserably it is ringing once after reboot and the scheduled alarms are cleared after reboot. so i've to make a thread run in background service that re-schedules ...
java android
[1, 4]
2,715,898
2,715,899
Quick way to create array from another array's variables?
<p>Lets say I have 2 arrays:</p> <pre><code>var a = []; var b = []; a.push({id:1, name:"Joe"}); a.push({id:2, name:"Jeff"}); a.push({id:3, name:"John"}); </code></pre> <p>Is there a quick way to populate <code>b</code> with just <code>a</code>'s names in Javascript, or do I have to use a loop?</p> <p>E.g, something...
javascript jquery
[3, 5]
389,421
389,422
jQuery load function can't won't load
<p>I've been working on this <a href="http://orchidaberdeen.com/" rel="nofollow">website</a> for quite some time now and i've encountered a bug that is trumping me at every point.</p> <p>The problem is in the gallery section of the site. When a user clicks on the circle the website splits open to reveal more thumbnail...
javascript jquery
[3, 5]
3,158,030
3,158,031
How to validate Radio Buttons in a Table using jQuery
<p>I have some Radio Buttons that creates in run time and they are inside of a table.How I can check that one of the surly selected using jQuery?</p> <p>Thanks</p>
jquery asp.net
[5, 9]
5,727,867
5,727,868
Asp.net Event for change tracking of entities
<p>I have an asp.net page with many dozens of controls representing multiple database entities. I would like to track when any of the data for these entities is changed. </p> <p>If I add a page member such as </p> <pre><code>public Page1 : System.Web.UI.Page { protected bool Entity1HasChanged { get;set; } pr...
c# asp.net
[0, 9]
967,873
967,874
ASP.NET control with jQuery. Specific version for control
<p>Is below how you would use a specific version of jQuery (already previously assigned on a page) in a control and set it back to the previous version for remaining control/s.</p> <p>I know this is not ideal but the who app will be cleaned up later.</p> <p>Thanks in advance.</p> <pre><code>&lt;!-- This would be set...
jquery asp.net
[5, 9]
273,358
273,359
Checking if current context is jQuery stack
<p>For example i need to check if current context is jQuery stack. How would you do it? Ignoring methods checking. It's ugly solution. :)</p> <p>For example:</p> <pre><code>if(it_is_jquery_stack_context) { // do some stuff with jQuery support } else { // do some stuff without it } </code></pre> <p><strong>UPDATE</s...
javascript jquery
[3, 5]
4,917,618
4,917,619
asp.net capture client side time and insert it in DB
<p>In my asp.net web application I need to capture the Client time and store it in a DB.For this I have written the follwing script in the head of my master:</p> <p>{ </p> <pre><code>function checkClientTimeZone() { // Set the client time zone var dt = new Date(); alert(dt.toTimeString()); documen...
javascript asp.net
[3, 9]
838,742
838,743
Uploading an Excel sheet with a specified sheet name using oledb
<p>How to upload an excel sheet using asp.net and know the structure of the columns in the sheet so that it would be helpful in using sqlbulkcopy to upload to a table with similar structure.</p> <p>any answers would be appreciated.</p> <p>Thanks in advance.</p>
c# asp.net
[0, 9]
2,877,587
2,877,588
import unique elements out of ArrayList in Java
<p>I've <code>ArrayList</code> (get_unique) of type integer where in I have to insert only unique values in it. how can I do it??</p> <p>I've got it some idea to do the same in javascript but do not know how to do it in Java?</p> <pre><code> &lt;% ArrayList&lt;Integer&gt; get_unique = new ArrayList&lt;Integer&gt;(); ...
java javascript
[1, 3]
2,559,686
2,559,687
Clone a div and then clone again from the child
<p>I have the following simple code, where I double click a div (with class <strong>container</strong>) and it's simply clones itself inside another div (with id <strong>containment-wrapper</strong>):</p> <p><strong>html</strong></p> <pre><code>&lt;span class="container"&gt;div one&lt;/span&gt; &lt;div id="containme...
javascript jquery
[3, 5]
1,724,422
1,724,423
ASP.net Repeater get current pointer/counter
<p>the question is really simple. Is there a way to access the current pointer/counter for an asp Repeater control.</p> <p>I have a list with items and I would like one of the repeaters columns (it repeats and html table) to be something like ...</p> <p>Item 1 | some info</p> <p>Item 2 | some info</p> <p>... and so...
c# asp.net
[0, 9]
4,087,101
4,087,102
How to get file name from a specified folder?
<p>I want to get the file name resides under a specified folder.</p> <p>i.e. there is a file stored under two folders <code>First\Second\test.txt</code> I want have the path of the parent directory of file that is <code>First\Second\</code> in my program. Now I want to get the file name residing under the directory "S...
c# asp.net
[0, 9]
3,852,088
3,852,089
Press a button on keydown? (jQuery)
<p>I have this simple code for keydown. At the moment is fading in div1. I am looking for a code which will press a button?. I know I have to add onClick event on the button but I tried couple of ways which didn't gave me any results.</p> <pre><code>jQuery(document).one('keydown', 'g',function (evt){ $("#Div1").fadeIn...
javascript jquery
[3, 5]
2,522,762
2,522,763
Java -> Python?
<p>Besides the dynamic nature of Python (and the syntax), what are some of the major features of the Python language that Java doesn't have, and vice versa?</p>
java python
[1, 7]
1,856,554
1,856,555
Is it possible to set audio file after receiving call of out side
<p>I want to play audio file at the time the receiver receive call at receiver side.</p> <p>My application will call a caller and if caller receive a call, i want to listen audio file or recorded file to receive.</p> <p>If this is possible, then please give me some instruction for this.</p>
java javascript android
[1, 3, 4]
5,745,526
5,745,527
How to implement Custom Audio Capcha in ASP.Net
<p>We have created a Custom Capcha generator using C#.Net. Now we have requirement to upgrade our Capcha to include audio feature(Listen Capcha). Our major constraint is that we cannot use any third party components(Dlls)</p> <p>Please guide me to implement such functionality.</p> <p>Thanks in advance.</p>
c# asp.net
[0, 9]
4,383,367
4,383,368
Why I get different date formats when I run my application through IIS and Visual Studio's web server on the same computer?
<p>I get the same culture i.e. "en-US" while running the website from both IIS and Visual Studio's web server.</p> <p>But I get a different date format as follows, when I run the following code:</p> <pre><code>HttpContext.Current.Response.Write(System.Threading.Thread.CurrentThread.CurrentCulture.ToString()); HttpCon...
c# asp.net
[0, 9]
4,165,140
4,165,141
Want to add element. What's wrong?
<p>In <a href="http://jsfiddle.net/littlesandra88/w5nAr/5/" rel="nofollow">this</a> JSfiddle have I a checkbox, a label and a submit button.</p> <p>When the checkbox is checked, and submit is clicked a 'x' should appear, like to does now.</p> <p>When the checkbox is unchecked, and submit is clicked a 'x' should disap...
javascript jquery
[3, 5]
5,108,526
5,108,527
fade in div on page load
<p>I need a div to fade in when the page loads.</p> <pre><code>&lt;div id=monster&gt;&lt;/div&gt; </code></pre> <p>Im already using jquery FYI.</p> <p>Thanks in advance.</p>
javascript jquery
[3, 5]