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,548,137 | 2,548,138 | jQuery .is(":focus") doesn't recognize focus on checkbox in browsers other than IE | <p>I have a checkbox and a text input. Here's how it works: The cursor goes to the text input when the checkbox is checked. When the text input loses focus, I look to see whether the text input value is empty. If it is, I uncheck the checkbox.</p>
<p>Problem is when it loses focus because I click on the checkbox a sec... | javascript jquery | [3, 5] |
5,755,204 | 5,755,205 | Hiding a div with the same class as another using jQuery? | <p>Basically, I would like to accomplish the following with jQuery:</p>
<pre><code> <div class="120 most-voted">
<!-- DON'T HIDE THIS DIV -->
</div>
<div class="110 voted">
<!-- some stuff here -->
</div>
<div class="120 voted">
<!... | php jquery | [2, 5] |
4,315,557 | 4,315,558 | Parsing preferences data in our Dictioanry in android | <p>In my sqlite database, i have a table for preferences Blob type</p>
<p>In <code>Iphone</code> we can do this </p>
<pre><code>NSDictionary *preferencesDictionary = [preferencesData objectFromJSONDataWithParseOptions:JKParseOptionStrict];
</code></pre>
<p>I have initialized <code>preferencesData as byte[]</code> in... | java android iphone | [1, 4, 8] |
4,846,842 | 4,846,843 | regular expression for string that starts with 'http://' | <p>Hi guys just like in the title - I need regular expression that will match anything that starts with 'http://'</p>
| php javascript | [2, 3] |
3,159,730 | 3,159,731 | To delay javascript function call using jquery | <p><strong>CODES:</strong></p>
<pre><code> $().ready(function(){
function sample()
{
alert("This is sample function");
}
$("#button").click(function(){
t=setTimeout("sample()",2000);
});
});
</code></pre>
<p><strong>HTML:</strong></p>
<pre><code><input type="button" name="b... | javascript jquery | [3, 5] |
4,501,024 | 4,501,025 | JS/AJAX Auto submit form: Disabling enter key to prevent page refresh | <p>I am using a function that will submit with ajax and without the help of a button click. But I am currently undergoing two issues which with trial and error haven't found plausible solutions: </p>
<p>First is there any way I can disable the enter button click(this causes the whole page to refresh)?</p>
<p><a href=... | javascript jquery | [3, 5] |
410,491 | 410,492 | How to call WebUserControls based on users request? | <p>I'm building a website where i need to call WebUserControls (.ascx) based on the user request, how can I accomplish this? Is this even possible?</p>
<p>Example:</p>
<pre><code>protected void userclick_click(object sender, EventArgs e)
{
if(textbox1.Text == "2")
{
call WebUserControl1.ascx
}
... | c# asp.net | [0, 9] |
4,604,920 | 4,604,921 | jQuery.clone() causes browser to hang | <p>Why does the following jQuery code cause my browser to hang?</p>
<h3>Caution: do not run this unless you are prepared to force quit your browser</h3>
<pre><code><!DOCTYPE HTML>
<title>Simple clone</title>
<script type="text/javascript" src="jquery.js"></script>
<div>
... | javascript jquery | [3, 5] |
577,025 | 577,026 | Onclick is not working in google chrome for the alternate times in asp.net | <p>I have a button in my aspx page which has on click event.</p>
<pre><code><asp:Button ID="Button2" runat="server" onclick="Button2_Click"
Text="Save changes" />
</code></pre>
<p>Now the Button2_click is not called for the alternate times, i.e. it will be called when clicked for 2nd,4th,6th..but n... | c# asp.net | [0, 9] |
3,941,121 | 3,941,122 | What's the average line number per method/class? | <p>I'm interested what's the <strong>average</strong> line number per <strong>method or class</strong>. Programming language is <strong>JAVA</strong> and it's an <strong>Android</strong> project.</p>
<p>I know there is no specific number, but I'm interested what's the <strong><em>good programming practice</em></strong... | java android | [1, 4] |
3,355,094 | 3,355,095 | java & phpseclib, RSA and OAEP? | <p>I am encrypting in Java using <code>Cipher.getInstance("RSA/ECB/OAEPWITHSHA-512ANDMGF1PADDING")</code> and <code>setEncryptionMode(CRYPT_RSA_ENCRYPTION_OAEP)</code> in phpseclib, but the phpseclib is not decrypting the data correctly. </p>
<p>It worked perfectly when I used <code>RSA/ECB/PKCS1Padding</code> in Java... | java php | [1, 2] |
372,556 | 372,557 | What exactly does !function ($){...}(window.jQuery) do? | <p>I'd like to know exactly what's going on here. I know what <code>$(document).ready(function() {...});</code> does and when it comes into effect. Same goes for <code>jQuery(function($) {...}</code>.</p>
<p>But what does this do?</p>
<pre><code>!function ($) {
$(function(){
var $window = $(window)
//normal... | javascript jquery | [3, 5] |
4,854,933 | 4,854,934 | JQUERY - .html() can also view php | <p>The following script sends data with ajax for login</p>
<p>I want to format the data returned by using, in essence, a session variable ($ _SESSION)</p>
<p>I can do it</p>
<pre><code> $("#login").click(function(){
username=$("#user_name").val();
password=$("#password").val();
$.ajax({
type: "POST",
url: ... | php javascript jquery | [2, 3, 5] |
1,928,761 | 1,928,762 | creating popup content with jquery | <p>Let's say i have this code</p>
<pre><code><p id="test">
some content
<p>
<a href="#" id="test-link">Open</a>
</code></pre>
<p>Now i want -using javascript/jquery- to create a popup window, the window content is the content of <code>test</code> paragraph, when <code>test-link</code> is cli... | javascript jquery | [3, 5] |
2,675,118 | 2,675,119 | Regular expression for decimal? | <p>I want to avoid characters like "^+%&/!'&(" in the textbox(decimal).
What is the correct regular expression?</p>
<p>For instance:
Valid: 1,3 or 1,34 or 1<br>
İnvalid: ^4,^' or %2,4 or !!</p>
| c# javascript | [0, 3] |
2,878,762 | 2,878,763 | this != this in javascript (well, sometimes....) | <p>Example 1</p>
<pre><code>var Reptile = function () {
var reptile = this;
this.showBla = function() {
alert(reptile.bla);
}
}
var turtle = new Reptile();
turtle.bla = 'whatever';
turtle.showBla();
</code></pre>
<p>Example 2</p>
<pre><code>var Reptile = function () {
this.showBla = function() {
... | javascript jquery | [3, 5] |
3,568,797 | 3,568,798 | Creating dynamic hyperlink in asp.net using c# | <p>In my application I have DataSet containing name and Id of user and I want to create a dynamic hyperlink of the all the user name. Please anyone tell me how to create dynamic hyperlink using C#.</p>
| c# asp.net | [0, 9] |
364,960 | 364,961 | Referencing a JavaScript variable | <p>I have 2 variables in a script tag that get populated with string values.
I also have an <code>.each</code> loop that goes through each select box I have on the page. I want a way to append the index value of the loop to the name of the variable, and retrieve its value.</p>
<pre><code>var secQuestion1 = "bla"
var ... | javascript jquery | [3, 5] |
5,751,779 | 5,751,780 | undo, redo, copy, paste, cut with jQuery | <p>Is it possible and if yes then how to implement undo,redo,copy,paste and cut with jQuery on textarea for example.</p>
<p>I did checked <a href="http://docs.jquery.com/Plugins/Undo" rel="nofollow">jQuery undo plugin</a> but it didn't work that well also i tried to implement keypress by myself using jQuery extensions... | javascript jquery | [3, 5] |
1,451,323 | 1,451,324 | How can I get the index of non-sibling elements in jquery? | <p>HTML:</p>
<pre><code><ul>
<li>Help</li>
<li>me</li>
<li>Stack</li>
<li>Overflow!</li>
</ul>
<br>
<ul>
<li>Can</li>
<li>I</li>
<li>connect</li>
<li>these?</li>
<... | javascript jquery | [3, 5] |
5,074,290 | 5,074,291 | Jquery append() isn't working | <p>I have this <code><ul></code></p>
<pre><code><ul id="select_opts" class="bullet-list" style="margin-left:15px;"></ul>
</code></pre>
<p>This javascript code which is meant to go throug a JSON object and add the options
to the UL:</p>
<pre><code>$.each(q.opts, function(i,o)
{ ... | javascript jquery | [3, 5] |
978,908 | 978,909 | jQuery bubble like the one on stackoverflow? | <p>I like the orange bubbles that appears on SO as a warning: Is there a jQuery plugin for that? </p>
| javascript jquery | [3, 5] |
4,307,073 | 4,307,074 | pass a javascript via ajax and process with php | <p>I need to pass a javascript object , info is a javascript object.</p>
<pre><code>register.php?t="+accessToken+"&u="+info
</code></pre>
<p>in php i tried to change </p>
<pre><code>$data = $_GET['u'] ;
var_dump($data);
</code></pre>
<p>It's not working help me to slove,</p>
| php javascript | [2, 3] |
2,848,827 | 2,848,828 | Generating Javascript from PHP? | <p>Are there any libraries or tools specifically designed to help PHP programmers write Javascript? Essentially, converting the PHP logic into Javascript logic. For instance:</p>
<pre><code>$document = new Document($html);
$myFoo = $document->getElementById("foo");
$myFoo->value = "Hello World";
</code></pre>
<... | php javascript | [2, 3] |
1,163,215 | 1,163,216 | jQuery Set Cursor In Home Key | <p>I want after type two number in filed append <code>/</code> and set cursor in home. </p>
<p>My mean of the home is, <code>Home</code> key on the keyboard :
<img src="http://www.barcodeman.com/altek/mule/kbemulator/keypics/key.home.up.png" alt="enter image description here"></p>
<p>I try as: (In my code instead run... | javascript jquery | [3, 5] |
4,192,474 | 4,192,475 | asp.net WebControl event order and ViewState | <p>I have a custom class creating a dropdownlist control as below:</p>
<pre><code>public class IHGridView : System.Web.UI.WebControls.WebControl
{
private string _dataSource = "not set yet";
public string DataSource
{
get { return _dataSource; }
set { _dataSource = value; }
}
}
</code>... | c# asp.net | [0, 9] |
791,091 | 791,092 | Finding value from a hidden field | <p>I am adding value in my webpage as hidden like this:</p>
<pre><code>cell.append('<input type="hidden" class="isTestValue" value="' + bill.IsTestBill + '">');
</code></pre>
<p>Now I wrote to get this value:</p>
<pre><code>function getIsTestId(billIndex) {
var selectedRow = getSelectedRow(billIndex);
... | javascript jquery | [3, 5] |
5,119,547 | 5,119,548 | Binding database data to the GridView in ASP.Net | <p>I try to bind database data to the gridview in c# and asp.net. But I couldn't see the datas in the gridview.Rows are added to the gridview but they are empty. When I run that query in SQLServer, it gives the correct result.I didn't add or change any code to the asp part.Should I? I couldn't find where is the problem... | c# asp.net | [0, 9] |
3,724,975 | 3,724,976 | ParseInt() method on array | <p>I am wondering to how to get number from an array. I have tried its give me NaN error</p>
<pre><code><script type="text/javascript">
$(function(){
var Arr = [ 'h78em', 'w145px', 'w13px' ]
alert(parseInt(Arr[0]))
})
</script>
</code></pre>
| javascript jquery | [3, 5] |
2,146,888 | 2,146,889 | Adding .NET namespaces automatically | <p>I need to add this namespace to my c# file:</p>
<blockquote>
<p>using System.Data;</p>
</blockquote>
<p>Is there a way to automatically add this to newly created pages in c#.net?</p>
<p>I don't want to add this namespace to new pages.</p>
| c# asp.net | [0, 9] |
919,107 | 919,108 | jquery addClass adding subclass not working | <p>this is my 1st time posting here, so thanks to everyone who can give me some advice!</p>
<pre><code><html>
<head>
<style>
</style>
<script src="jquery-1.5.2.js"></script>
</head>
<body>
<div
class="super"
style="
border: solid black 1px;
height:10... | javascript jquery | [3, 5] |
4,231,311 | 4,231,312 | mouse click somewhere else on page (not on a specific div) | <p>I want to close a little pop-up box in page when user has clicked anywhere on the page other than box area. how to find it?</p>
| javascript jquery | [3, 5] |
230,619 | 230,620 | dynamically populated jquery carousel | <p>I am trying to dynamically populate a jquery carousel with linked images. I would like to pull them out of a database (the file ids are in the database, the images themselves are in a file on the site) using specifics, for example I have the images labelled (in the database) as either jpegs, pngs or vector eps(thoug... | php jquery | [2, 5] |
2,496,210 | 2,496,211 | Resize 2x divs width with Jquery Animate - Is this a poor approach? | <p>I've been trying to find a more elegant way to do this function but have not yet figured it out. I have 2 divs that I'd like to resize upon execution of a function. One will slide away (width:'0%') and the other fills the remaining space (width:'100%'). The code below works great but seems a little heavy. Any su... | javascript jquery | [3, 5] |
2,642,898 | 2,642,899 | Trouble applying my function to more than one text box | <p>so I am completely new to jquery and am trying to figure out how to apply my function to more than one textbox, I ultimately need to hook it up to another function similar to the one I have, but I just cannot figure out how to hook them both up so they do not allow certain inputs. Any advice on this is much appreci... | javascript jquery | [3, 5] |
680,955 | 680,956 | How to dynamically set align property for td in javascript? | <p>Here is my code, my question is in the comment:</p>
<pre><code>function (align) {
var column = $(`'<td>'`);
// now i need syntax to set align property to this td element
// column.align = align (not working)
}
</code></pre>
<p>As shown, <code>column.align = align</code> is not working.</p>
... | javascript jquery | [3, 5] |
5,462,531 | 5,462,532 | custom httphandler throwing exception while doing rewrite path | <p>I want redirect to a file which is at the root level of the application , but i am getting the following error.</p>
<p>I did the following things to achieve the same</p>
<ol>
<li>I have a virtual directory under root which is sample</li>
<li>Added handler with some custom name like .zpy which resolves to .net
ro... | c# asp.net | [0, 9] |
239,903 | 239,904 | How to limit the visible items of dropdownlist, which is populated by DataSet | <p>I have a <code>DropdownList ASP control</code>, which is populating by <code>DataSet</code>.</p>
<p>I am using <code>.net 3.5, c#.</code></p>
<p>To control the height of DropDownList, i am using the following code and it is working.</p>
<pre><code><asp:DropDownList size="1"
onMouseOver="this.size=1... | c# asp.net | [0, 9] |
2,489,170 | 2,489,171 | Foreground service: how to handle user enable/disable | <p>My Android application is a foreground service and I would like the option of the user being able to disable the service whenever they like, without having to uninstall the entire application.</p>
<p>I use the enabled = true label in the manifest and boot completed to start the service in the foreground. My concern... | java android | [1, 4] |
689,943 | 689,944 | Android Development in VS 2010 using C# | <p>I would like to use C# for developing mobile apps for the Android Framework. I have looked at MonoDroid, just downloaded, yet to install. I would like to be able to deploy to a device rather than just the emulator. Are there any other options out there of we are stuck with MonoDroid and the $399 that comes with the ... | c# android | [0, 4] |
3,825,720 | 3,825,721 | Removing mark-up from unordered list with jquery | <p>In the follow content I need to remove the mark-up tags <code><div class="sub"></code> and <code></div</code>> but not it's content with jquery. This is to adapt the menu to a responsive layout.</p>
<pre><code><nav id="top">
<ul>
<li class="ti" id="snw"> <a class="mm" href="/snow... | javascript jquery | [3, 5] |
1,329,368 | 1,329,369 | How can I databind to a string array? | <p>How can I databind a string array (<code>string[]</code>) to a <code>dropdownlist</code>?</p>
<p>Does it implement <code>iEnumerable</code>?</p>
| c# asp.net | [0, 9] |
3,900,804 | 3,900,805 | How do I make this web service work? | <p>I am a new developer and trying to develop a web service in C# by following <a href="http://dotnetguts.blogspot.com/2007/09/all-about-web-service-in-net.html" rel="nofollow">this tutorial</a>. I did everything as explained in that tutorial, however, I did not get any data from the Northwind database and I got the fo... | c# asp.net | [0, 9] |
2,991,822 | 2,991,823 | OutofMemory Exception (when cropping an Image) | <p>I am trying to crop an Image that coming from a byte array. Unlucky, I get the OutofMemory Exception in my cropImage function. this part show how I write it on a file.</p>
<pre><code>System.IO.MemoryStream ms = new System.IO.MemoryStream(strArr);
System.Drawing.Rectangle oRectangle = new System.Drawing.Rectangle()... | c# asp.net | [0, 9] |
4,587,834 | 4,587,835 | How to pass an object reference to a function with jQuery? | <p>I have several links which all use a similar function, so I want to call the function and pass it attributes from the object that made the call. How do I do this? </p>
<p>This is my code:</p>
<pre><code>$('.flash').click(function(){
getDimensions($(this));
swfobject.embedSWF(fileRef, "myContent", fileWidth... | javascript jquery | [3, 5] |
210,639 | 210,640 | Loading JWplayer dynamically | <p>Hi and thanks for looking into this.</p>
<p>I have a code I've been working on to add videos to my site. All videos are from youtube. Once a user has clicked on submit, a link becomes visible. When clicking on it the user can preview the video.</p>
<p>One week ago I used the following to achieve this:</p>
<pre><c... | javascript jquery | [3, 5] |
767,697 | 767,698 | Remebering the last value passed to a JavaScript function called on click | <p>I have a simple JavaScript question.</p>
<p>Below is my code fragment:</p>
<pre><code><div onclick = "myClick('value 1')">
button 1
</div>
<div onclick = "myClick('value 2')">
button 2
</div>
</code></pre>
<p>Basically when I for each click on a different div, a different value wi... | javascript jquery | [3, 5] |
2,315,544 | 2,315,545 | Insert a new record (asp .net & c#) | <p>I'm a newbie to asp .net and c# world. I'm trying to insert a very new record into a simple task manager database table, tasks (name, description, priority, start_date, end_date)</p>
<p>Here is my Task.cs and add.aspx code:
<a href="http://pastie.org/691005" rel="nofollow">http://pastie.org/691005</a></p>
<p>When ... | c# asp.net | [0, 9] |
3,698,182 | 3,698,183 | General jquery function for form submission | <p>I have this small tabbed system developed in PHP/JavaScript.</p>
<p>For form submissioni, I bind a JQuery function to the 'submit' event that sends an Ajax query to the server, avoiding to reload the page (and losing other tabs). I have coded one function for every form, but realized that they are the same (take th... | javascript jquery | [3, 5] |
5,148,215 | 5,148,216 | Sliding Tab jumping about jQuery | <p>Ive built a little jquery sliding div on my website that when you hover over the tab, the div slides in from the right, and on the mouse leave event, the div slides back out of view. The problem im having however is if you very quickly move your mouse over the tab then off, then over and keep repeating this the div ... | javascript jquery | [3, 5] |
5,793,700 | 5,793,701 | error when Calling a function inside jquerry plugin | <p>I am developing a jquerry plugin in which, when i click a pause link I need to call a function inside plugin. My code is like this </p>
<pre><code>$("#pauseAnimation").click(function () { $.fn.cjImageVideoPreviewer().pauseAnimation(); })
</code></pre>
<p>and function to be called is this</p>
<pre><code>(function ... | javascript jquery | [3, 5] |
5,399,344 | 5,399,345 | message box in asp.net web application | <p>how to display the 'successfully saved' message box in asp.net web application by using javascript. </p>
<p>any idea ???</p>
| asp.net javascript | [9, 3] |
2,520,719 | 2,520,720 | How to change document.title when clicking a link? | <p>Seems impossible... maybe theres a genius around here!</p>
<h1>jquery only</h1>
| javascript jquery | [3, 5] |
4,503,086 | 4,503,087 | jQuery - Call function when dropping div | <p>I want to run function <code>insertHouse()</code> when dropping div#Draggable. I can't manage to make it work. You can see me trying to call it in the second line from the bottom. What am I doing wrong?</p>
<pre><code><img src="images/door1.jpg" id="draggable">
<div id="items"></div>
// Place hou... | javascript jquery | [3, 5] |
1,540,892 | 1,540,893 | jQuery Number to Number scrolling | <p>OK, I know you can change a <code>id</code> or <code>class</code> text using this <code>$("#test").text("NUMBER_HERE");</code> but... using jQuery, instead of statically going from one number to the next... is there a way so it counts down or up depending on the number you picked?</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
2,891,819 | 2,891,820 | View Changes In Force Portrait Mode | <p>i am new in android platform. I have set my android application to force portrait mode. Now , i have an activity group in my application. When i am in a child view of the activity group , then if i rotate my device the screen remains in portrait mode but the view changes from child view to parent view of the activit... | java android | [1, 4] |
5,380,023 | 5,380,024 | Returning PHP value to the page | <p>I have a remote php program that generates 2 random numbers, I call to it on my form page to populate a text box used in validation. I can't get it to return the numbers.</p>
<pre><code><?php
$randomNum = rand(0,9);
$randomNum2 = rand(0,9);
echo ($randomNum + $randomNum2);
$randomNumTotal = $rand... | php jquery | [2, 5] |
5,735,961 | 5,735,962 | Change theme dynamically without page refresh in ASP.NET | <p>You must have noticed one link in yahoo.com, msn.com or other popular websites named "Page Options". When you click this link you get a popup displaying different small several color icons. After clicking one of these icons your page theme changes without entire page refresh. Now you are able to see the same page wi... | asp.net jquery | [9, 5] |
170,635 | 170,636 | How can I get the corresponding table column (td) from a table header (th)? | <p>I want to get the entire column of a table header.</p>
<p>For example, I want to select the table header "Address" to hide the address column, and select the "Phone" header to show the correspondient column.</p>
<pre><code><table>
<thead>
<tr>
<th id="name">Name</th>
... | javascript jquery | [3, 5] |
3,750,578 | 3,750,579 | convert 1,00 to 100 in .Net | <p>How do I convert the number "1,00" to "100" in .Net?</p>
<p><strong>Clarification:</strong> I have this code:</p>
<pre><code>VALOR = order.Total.ToString("#0.00");
</code></pre>
<p>It returns the text "1,00" but I need "100" (without comma).</p>
| c# asp.net | [0, 9] |
2,075,323 | 2,075,324 | Null PointerException in spinner in android | <p>I am working in Android. I want to design a spinner of song categories. </p>
<p>This is my code:</p>
<pre><code>public Spinner spinner_category_forSong;
String[] arr_Category={"Select","sad","dj","rock"};
ArrayAdapter<String> adapter = new ArrayAdapter<String>(
this,android.R.layout.simple_spinne... | java android | [1, 4] |
2,572,704 | 2,572,705 | Partially expanding a div to preview contents | <p>When I hover over a div, I want another div (which starts as <code>display:none</code>) to partially expand downward, revealing only the top of its contents. How can I partially expand a hidden div with jQuery? Preferably so that the div fades out towards the bottom. There don't seem to be parameters for the <code>t... | javascript jquery | [3, 5] |
595,385 | 595,386 | What is the difference between URI and Uri class | <p>I am confused , how to use <code>Uri</code> because i am using it in android development at <code>Intent's</code> <code>Action dial</code> </p>
<pre><code>Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(“tel:555-2368”));
</code></pre>
<p>what i want to do :</p>
<p>i want to create a file inside which i w... | java android | [1, 4] |
4,075,564 | 4,075,565 | Graph not showing on the Page | <p>I have a graph and an Image button on one of my pages which I am displaying on runtime.
The graph is bound to a datatable and Image button URL is given as the image folder.I am using 3 images based on the value in datatable and setting the ImageURL of the ImageButton Dynamically.</p>
<p>The problem is my graph does... | c# asp.net | [0, 9] |
5,020,675 | 5,020,676 | How do we dynamically change the assembly path in DLLImport attribute? | <p>How do we change the assembly path in DLLImport attribute inside an if conditional statement?
e.g. I want to do something like this:</p>
<pre><code>string serverName = GetServerName();
if (serverName == "LIVE")
{
DLLImportString = "ABC.dll";
}
else
{
DLLImportString = "EFG.dll";
}
DllImport[DLLImportString]
</... | c# c++ | [0, 6] |
3,977,922 | 3,977,923 | Hide button when i submit using jquery | <p>I use 4 buttons in my script when i click any one of the button other three buttons should be hidden. Can anyone suggest me to work out this in jquery or javascript?</p>
<p>Thanks in advance.</p>
| javascript jquery | [3, 5] |
2,656,643 | 2,656,644 | Can I wrap a javascript event in a jQuery event? | <p>I have this code:</p>
<pre><code><html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$('a.one').click(function(event){
event.preventDefault()... | javascript jquery | [3, 5] |
2,075,322 | 2,075,323 | Expertise in C#,java | <p>I am a novice in c#,java and i want to become Professional in both in 2 to 4 weeks.Can anyone please specify me the correct and exact way of achieving my goal.By exact way i mean,what practices to follow,what books to follow,what all available online resources best for me and what all projects to work on from novice... | c# java | [0, 1] |
779,162 | 779,163 | Retain url hash value using Request.UrlReferrer | <p>I have an list of paged results that is using AJAX requests to populate next/previous page clicks. I am using the jQuery history plugin to keep track of the page # the user is on. This basically appends <a href="http://site.com?query#pg=5" rel="nofollow">http://site.com?query#pg=5</a> to the url. </p>
<p>If I click... | c# asp.net jquery | [0, 9, 5] |
4,108,465 | 4,108,466 | Stop executing JavaScript | <p>I have:</p>
<pre><code>$('body').data('data1', '<script type="text/javascript">console.debug('execute');</script><div>example</div>');
</code></pre>
<p>and:</p>
<pre><code><div id="content"></div>
</code></pre>
<p>when I do:</p>
<pre><code>$(document).ready(function () {
... | javascript jquery | [3, 5] |
4,463,669 | 4,463,670 | Problem in exporting Chart to excel | <p>I have dynamically created table in which some data rows and one MS Chart is there.
How can I send that table to excel including chart .</p>
<p>I am using the fallowing code to export but it unable to render chart.</p>
<pre><code> protected void btnGetExcelReport_Click(object sender, EventArgs e)
{
Ta... | c# asp.net | [0, 9] |
3,931,297 | 3,931,298 | C# .net and ASP -- Need to know how to call the url string from C# code and place it in asp code? | <p>Here is what I have but it's not working.</p>
<p>So instead of having Web Site I would like it to show the actual address coming from the database that's stored in lblWebSite.NavigateUrl</p>
<p>I tried changing it to lblWebSite.Text but that showed the web address, but did not act as a link. Any help would be appr... | c# asp.net | [0, 9] |
5,019,609 | 5,019,610 | A very basic JavaScript question about the document.write function | <p>I'm new to JavaScript as well as jQuery. This is the only code I have on an otherwise blank page:</p>
<pre><code><script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
document.write('Hello World');
... | javascript jquery | [3, 5] |
4,331,237 | 4,331,238 | How to open a page in new tab when user clicks ctrl key + link button? | <p>I have this code which opens new page in different tab.</p>
<pre><code> protected void facebook_Click(object sender, ImageClickEventArgs e)
{
myurl = "http://www.facebook.com";
string newWin = "window.open('" + myurl + "');";
ClientScript.RegisterStartupScript(this... | c# asp.net | [0, 9] |
5,828,490 | 5,828,491 | How to sort the date column in gridview? | <p>I am using ASP.NET and C#.This is my code.</p>
<pre><code> private const string ASCENDING = "ASC";
private const string DESCENDING = "DESC";
public SortDirection GridViewSortDirection
{
get
{
if (ViewState["sortDirection"] == null)
... | c# asp.net | [0, 9] |
2,812,666 | 2,812,667 | How to check an object for null values | <p>I am using an object type variable to store a query result for binding to a drop down list. I do not want further processing on an object if it is <code>null</code>.</p>
<p>My code is :</p>
<pre><code>object course;
if (GetWebsiteCurrentMode().ToLower() == "demo")
{
course = from t in context.CourseTestDetails... | c# asp.net | [0, 9] |
843,822 | 843,823 | what are the advanteges and disadvanteges of PHP,ASP.NET and JAVA for developing a datacentric application? | <p>this question is related to my previous question </p>
<p><a href="http://stackoverflow.com/questions/3334580/siutable-tool-and-technology-for-electronic-health-system">http://stackoverflow.com/questions/3334580/siutable-tool-and-technology-for-electronic-health-system</a></p>
<p>i need the comparison and expert op... | java php asp.net | [1, 2, 9] |
3,285,842 | 3,285,843 | how to remove ".mp3" from "xxx.mp3" string | <p>i want to make a music player, i have a problem to toast file name because it always includes the extension(".mp3")</p>
<p>does anyone know how to remove those extension?</p>
<p>this is my code</p>
<pre><code>try {
if (mMediaPlayer.isPlaying()) {
mMediaPlayer.reset();
}
mMediaPlayer.setDataSou... | java android | [1, 4] |
1,882,925 | 1,882,926 | Is using ObjectDataSource a good practice? | <p>In my company few of the employees are using ObjectDataSource. Example snippet is :</p>
<pre><code><asp:ObjectDataSource ID="odsRequirement" runat="server" EnablePaging="True"
MaximumRowsParameterName="intMaxRows"
SelectMethod="GetAll"
StartRowI... | c# asp.net | [0, 9] |
3,260,568 | 3,260,569 | How to detect 404 error in a url then set the url image to display:none using Jquery | <p>I have a table which repeats an image link to a file download for every row of data. I want to use Jquery or Javascript to detect if a image link returns a 404 error, meaning the file its trying to find doesn’t exist, then set the image link to <strong>display:none</strong> so its hidden.</p>
<p>Any help is much ap... | javascript jquery | [3, 5] |
2,133,867 | 2,133,868 | jQuery - Post and reply | <p>Im attempting to add voteup/votedown to one of my sites, however Im having a few problems:</p>
<p>Firstly here is my jQuery:</p>
<pre><code>j(".voteup").click(function(){ // when people click an up button
j("div#response").show().html('<h2>voting, please wait...</h2>'); // show wait message
itemI... | php jquery | [2, 5] |
2,700,158 | 2,700,159 | Android Java code is not doing math correctly | <p>I am having a very odd result in my Android program when adding two numbers. It is the test code I am using to find out what is going out:</p>
<pre><code>private static final float yChannel[] = {12.0f, 8.0f, 4.0f, 0};
protected void onCreate(Bundle savedInstanceState) {
Log.i("Rectangles","y1: " + yChannel[0]+... | java android | [1, 4] |
4,679,407 | 4,679,408 | send array using jquery | <p>i have a variable $visitRecord->getReferallist() which get the list of doctors in an array . i need to send the array to a php file and do foreach action in php file.. how do i send this array variable in the jquery . This code did not work.</p>
<pre><code> function seekOpinion()
{
var queryUrl = "<?ph... | php jquery | [2, 5] |
5,317,213 | 5,317,214 | auto time increment like on facebook (jquery) | <p>Okay , im want to make something like facebook's auto time increment for posts and notificaitons etc.
when the post arrived for example , 5 seconds ago.</p>
<p>How do i use jQuery to make it auto increase without having to parse server for timeago.</p>
<p>It can increase till hours and days.</p>
<p>I have found a... | javascript jquery | [3, 5] |
3,494,533 | 3,494,534 | Padding Menu By JQuery | <p>I want to design a menu that when I hover a link , the link pushed forward and when I move the mouse out of that , the link moves backward.</p>
<p>I know I can done that with .hover function.I don't want to use jQuery Events. I want to use just javascript events that they are embed in html tags.</p>
<p>here is my ... | javascript jquery | [3, 5] |
2,726,138 | 2,726,139 | How to disable the scrollbars is width and height of body bigger than 1000px and 600px? | <p>Preferably with just javascript. But if that's too hard, jquery will be ok (I don't want to load jquery because the page has to load really fast).</p>
| javascript jquery | [3, 5] |
2,173,027 | 2,173,028 | FreeTextBox Editor stop working after jquery post method | <p>Thanks in advance.</p>
<p>I am using FreeTextBox editor in asp.net web application.This editor works fine.</p>
<p>And i use jquery Post method to populate editor and other form fields' with values fetched from database. After successful post i replace the Html with updated content. All the fields gets populated bu... | jquery asp.net | [5, 9] |
5,922,171 | 5,922,172 | I want to truncate a text or line with DOTS using JavaScript but that start and end of string is visible (like dropbox.com does) | <p>I would like to truncate a text or line with DOTS using JavaScript <strong>but</strong> I need to display the end (filename after slash) and start. Something like dropbox.com does on their website. </p>
<p>I'm looking for jQuery extension or something similar. </p>
| javascript jquery | [3, 5] |
5,244,297 | 5,244,298 | jQuery.children selects parent too | <p>I have the following HTML;</p>
<pre><code><div id="pic_options_container">
<div id="pic_options_header">header text</div>
<div id="pic_options_org"></div>
<div id="pic_options_preview"><img id="imgPreview" src="" /></div></div>
<div style="clear:both;... | javascript jquery | [3, 5] |
2,536,118 | 2,536,119 | Farbtastic jQuery Color Picker Callback Issues | <p>I'm trying to play around with the Farbtastic: <a href="http://acko.net/dev/farbtastic" rel="nofollow">http://acko.net/dev/farbtastic</a> color picker plugin but I'm having some issues.</p>
<p>I want to setup a callback function so that I can change the bg color like so:</p>
<pre><code> $('#picker').farbtastic(fu... | javascript jquery | [3, 5] |
5,430,308 | 5,430,309 | jQuery script references | <p>when I write this code:</p>
<pre><code><script type="text/javascript">
function showhide(master, detail) {
var src = $(master).children()[0].src;
if (src.endsWith("plus.png"))
src = src.replace('plus.png', 'minus.png');
else
src = src... | jquery asp.net | [5, 9] |
1,292,962 | 1,292,963 | Jquery How to activate div show/hide | <p>I'm pretty new to Jquery and Javascript and was am working on a project that I am sure has a much simpler way of coming to the same functionality. The following is a simplified version of what I am doing:</p>
<p><strong>HTML</strong></p>
<pre><code><a class="link1" href="#">Link 1</a>
<a class="link... | javascript jquery | [3, 5] |
765,347 | 765,348 | Passing password in session | <p>I am trying to set the password <code>textbox</code> back to the text entered before a <code>checkbox</code> is and has <code>AutuoPostback</code>.</p>
<pre><code>Session["passwordText"] = txt_Password.Text;
</code></pre>
<p>This is on my pageLoad and then I have tried to add(below) in my <code>CheckedChanged</cod... | c# asp.net | [0, 9] |
790,814 | 790,815 | Jquery user control | <p>I have a problem with jquery not loaded in an asp user control.</p>
<p>I want simply to add the click event when a checkbox is clicked.</p>
<p>Here is my javascript file </p>
<pre><code>$(document).ready(function() {
var arr = jQuery(":checkbox[id*='drpAccountType']");
for (i = 0; i < arr.length; i += ... | asp.net jquery | [9, 5] |
1,872,611 | 1,872,612 | make a pop-up window in php | <p>Hi I am having trouble with this piece of php code, right now it just showing a list of fields.
how do I make this a pop-up window in php?
I tried inserting javascript, but php+javascript together really confused me. thanks so much for the help!!!</p>
<pre><code>$output .= '
<div class="item-list">
<ul>... | php javascript | [2, 3] |
3,565,242 | 3,565,243 | Is it possible to have the menu link color change on the table hover for an asp.net menu control? | <p>I'm using an ASP.net menu and when i hover inside my menu item's table, i change the background color on the table column, but unless i hover over the link text itself, the link text color will not change.</p>
<p>Is it possible to have the link text color changed on the table hover?</p>
<p>Example below shows what... | c# asp.net | [0, 9] |
3,985,160 | 3,985,161 | pageload in c# | <p>Here is a piece of code that I've written. The problem that I'm having is:
When i click a button in the gridview "rowcommand" adds the item to an arraylist which works fine.
After the user clicks the button the page loads again and it goes to "rowcommand" AGAIN! As a result the same value is added to the arraylist.... | c# asp.net | [0, 9] |
206,913 | 206,914 | Fire up ajax request when some inputs has changed | <p>I have the following inputs:</p>
<pre><code> <input class="input-text" type="text" name="nombres" id="nombres" />
<input class="input-text" type="text" name="apellidoP" id="apellidoP" />
<input class="input-text" type="text" name="apellidoM" id="apellidoM" />
<input class="input-tex... | javascript jquery | [3, 5] |
5,360,614 | 5,360,615 | How to Execute Command/function in Asp.net Automatically To send Email / Sms Without user logged In | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7645302/doing-scheduled-background-work-in-asp-net">doing scheduled background work in asp.net</a> </p>
</blockquote>
<p>I want To Send Email/SMS To my user Automatically in Asp.net C#, even they are not logged ... | c# asp.net | [0, 9] |
252,229 | 252,230 | Inline script conditional statement inside a ListView | <p>I'm trying to display an image inside a ListView control based on the value of a databound property. I've tried two methods of doing this (one at a time) and both returned errors of "The server tag is not well formed". Consider the code below.</p>
<pre><code><ItemTemplate>
<div class="left">
&l... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.