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 |
|---|---|---|---|---|---|
4,083,879 | 4,083,880 | jQuery: Why is by box collapsing on first click | <p>The homepage of our website (legendboats.com) is 4 small cells, that if you click on, the large image changes. Pretty standard stuff, but there is a problem.</p>
<p>When you click on one of them the first time, the large area collapses before the new image reappears. This doesn't happen again, you can continue to c... | javascript jquery | [3, 5] |
3,128,662 | 3,128,663 | The variable name '@VarName' has already been declared Issue | <p>I am inserting multiple items into table based on a selection from drop down list. When I select one item from the drop down then everything works fine but when I select multiple items then I get this error</p>
<pre><code>The variable name '@CompName' has already been declared. Variable names must be unique within... | c# asp.net | [0, 9] |
5,066,375 | 5,066,376 | Why doesnt 'ListBox1_SelectedIndexChanged' even occur when i select item from the list? | <p>I wrote code in C# for ASP.Net website , but when i select one item from the list above even doesn't occur and the execution goes back to Site.Master. I have to put a button to fetch the item from the list, how can i make that even occur when i select the item from list?</p>
| c# asp.net | [0, 9] |
1,015,732 | 1,015,733 | Xml Serializer in java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6107627/what-is-java-alternative-for-nets-xmlserializer">What is Java alternative for .NET’s XmlSerializer</a> </p>
</blockquote>
<p>What does the <code>XmlSerializer</code> class exactly do in c# and how can I ... | c# java | [0, 1] |
1,799,661 | 1,799,662 | Store a bunch of inputs on page into a javascript array? | <p>I have a bunch of inputs on a page, ie:</p>
<pre><code><input name="user[name]" />
<input name="user[phone]" />
<input name="user[email]" />
</code></pre>
<p>And what I'd like to do, is on submitting the form is grab all those variables of the user array and store them in a javascript array.</p>
... | javascript jquery | [3, 5] |
4,040,617 | 4,040,618 | How to close a tab from code behind? | <p>I want to close current tab from code behind as i want to perform some operation so after performing some operation it should be closed so please help me.. thanks in advance.</p>
<p>I tried it with</p>
<pre><code>function close_window() {
if (confirm("Close Window?")) {
close();
}
}
</code></pre>
<p>but n... | c# javascript asp.net | [0, 3, 9] |
4,996,453 | 4,996,454 | Javascript alert test not working | <p>I should be sleeping but this is really bugging me. I can't get a simple javascript alert box to display in my asp.net project. Hopefully someone can see what I'm doing wrong. My test page is this:</p>
<pre><code><%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="J... | asp.net javascript jquery | [9, 3, 5] |
1,385,305 | 1,385,306 | How to compare the rows in a datatable and manipulate itto show in a particular format in C#/asp.net | <p>I have a data in data table with say 4 columns.Out of those 10 columns first column contains the date.The data in the table is in the form :
I/p</p>
<pre><code>"15/12/2010",username,24,No
"16/12/2010",username,24,No
"17/12/2010",username,24,No
"18/12/2010",username,24,No
"19/12/2010",username,24,No
"20/12/2010",use... | c# asp.net | [0, 9] |
3,906,597 | 3,906,598 | Getting an element as jQuery object from a set of elements | <p>Is there a way to get an element from a jQuery object, but <em>as</em> jQuery object?</p>
<p>If I wanted to get the text of elements, presently I'd write it like this:</p>
<pre><code>var elements = $(".set");
for (var idx=0; idx<elements.size(); idx++) {
var text = $(elements.get(idx)).text();
// do som... | javascript jquery | [3, 5] |
640,113 | 640,114 | Is it possible to select a custom list view item with its list item id instead of list item position in android? | <p>Is it possible to get the list item's id instead of getting the list item through its position? because the problem i face is: I use custom listview. I sort the list items on button click. After the list items are sorted in new order, if i click first item, the list item selected of the original item before sorting.... | java android | [1, 4] |
2,851,513 | 2,851,514 | select specific tr and specific td within selected tr | <p>I have been able to select the specific rows that I wanted but I can't select specific td from those tr.</p>
<p>I used this to select rows:</p>
<pre><code>$('#time-slot tr:not(:first, :last)')
</code></pre>
<p>then within those selected rows I was trying to ignore the first and the last td but it is not working. ... | javascript jquery | [3, 5] |
3,650,921 | 3,650,922 | Single Instance Login Implementation | <p>I am facing a serious problem in my project (a web application built in ASP.NET 2.0) explained below.</p>
<p>Let say I have given userid “singh_nirajan” and A user say “User1” logged into the system using this userid. Now my requirement is whenever other user let say User “User2” try to log in to the system using s... | c# asp.net | [0, 9] |
4,456,158 | 4,456,159 | js number +1 problem | <p>I need click <code>div.toggle1</code>,control slideup, slidedown the <code>div#text1</code>,</p>
<p>click <code>div.toggle7</code>,control slideup, slidedown the <code>div#text7</code>.</p>
<p>here is my code, also in <a href="http://jsfiddle.net/qHY8K/" rel="nofollow">http://jsfiddle.net/qHY8K/</a> my <code>numb... | javascript jquery | [3, 5] |
5,870,759 | 5,870,760 | How can i block script injection in textbox or textarea using jquery or javascript? | <p>I am having a form that contains textbox and textarea. I want to validate it to stop injection of script using textbox or textarea. I need to do it using jquery or javascript.</p>
<p>Is there any RegEx available for that or any other way to detect and stop script.</p>
| javascript jquery | [3, 5] |
3,796,861 | 3,796,862 | Passing variables in a multi-project solution | <p>I am working with a progaram called aspdotnetstorefront.
This is a shopping cart program
The solution has 7 projects in it</p>
<p>There is a file in the web project that is called checkout1.cs that has the checkout1.aspx file</p>
<p>The checkout1.aspx file has a field for state. In the solution, there is project c... | c# asp.net | [0, 9] |
4,231,907 | 4,231,908 | Formatting Eval into a currency, forcing en-US | <p>I have this line of code:</p>
<pre><code><%# Eval( "Balance", "{0:C}" )%>
</code></pre>
<p>How do I always force that to display currency in en-US regardless of what locale they have setup?</p>
| c# asp.net | [0, 9] |
518,301 | 518,302 | Create button within textbox textbox text as button name or button Id | <p>I want create button in textbox,The button should have button name as textbox value.
The button should be displayed within textbox.</p>
<p>Markup</p>
<pre><code><asp:TextBox ID="textbox1" runat="server" AutoPostBack="true" TextMode="MultiLine"
ontextchanged="textbox1_TextChanged">
</asp:Text... | c# javascript asp.net | [0, 3, 9] |
2,142,576 | 2,142,577 | best way to store php data on a page for use with javascript/jquery? | <p>Ok, so im trying to work out the fastest way of storing data on my page without slowing the page load:</p>
<ul>
<li>I need to store information in the
page to be later used by jquery.</li>
<li>My page is an events page and i want to
attach data to each event anchor.</li>
<li>there are 100+ events to attach data to.... | php javascript jquery | [2, 3, 5] |
2,308,281 | 2,308,282 | Create a Jquery Widget for an ASP.NET Texbox | <p>I'm trying to create a JQuery Widget that will be used on an ASP.NET Texbox to add extra html to the rendered input.</p>
<p>If I have:</p>
<pre><code><asp:TextBox ID="TestUpdate" ClientIDMode="Static" runat="server"></asp:TextBox>
</code></pre>
<p>and in a script block at the top of the page:</p>
<pr... | jquery asp.net | [5, 9] |
1,431,511 | 1,431,512 | File Content viewer on browser using asp.net | <p>How to view <strong>content</strong> of uploaded files on browser in asp.net ? And is it possible to view contents of all type of files using common code ? Or there is any free project there ?</p>
<p>Thanks..</p>
| c# asp.net | [0, 9] |
4,820,235 | 4,820,236 | File compression in ASP.Net | <p>In my ASP.Net application I want to compress a file and send it to the user, but the classes which are available compress files which are less than 4 to 5 GB. But through my application i want to compress a file which is more then 5 GB.
Is there any way to do that ?</p>
<p>Thank You.</p>
| c# asp.net | [0, 9] |
3,020,311 | 3,020,312 | Comparison method violates its general contract | <p>I am getting the Comparison method violates its general contract exception with this compareTo method, but I can't track down what is exactly causing the issue. I am trying to sort files by their extension in a particular way. Mind you this doesn't happen for all phones, just ones that I don't have access to which... | java android | [1, 4] |
1,068,250 | 1,068,251 | Wrap certain word with <span> using jquery | <p>I have the following <code>div</code>:</p>
<pre><code><div id="query" style="width:500px; height:200px;border:1px solid black"
spellcheck="false" contenteditable="true"></div>
</code></pre>
<p>where Clients can write their <code>SQL</code> queries. What I was trying to do is wrap words the client en... | javascript jquery | [3, 5] |
3,348,609 | 3,348,610 | How can I set the title on an element from an attribute of the element? | <p>I am using the following code:</p>
<pre><code> $(targetSelector)
.attr({
'data-disabled': 'yes',
'data-title': function() { return this.title },
'title': ''
})
.addClass('disabled')
.prop('disabled', true);
</code></pre>
<p>This sets the elemen... | javascript jquery | [3, 5] |
1,305,453 | 1,305,454 | How to get alerts at client side | <p>I want to set an alert service for my website users for there tasks.</p>
<p>These alerts are like Messenger alerts. My web site is in asp.net C#.</p>
<p>Here is the scenario I want to set for alerts:</p>
<p>I retrieve the alert messages for users through a webservice
and I want utility which displays alerts for ... | c# asp.net | [0, 9] |
5,753,536 | 5,753,537 | How long does my AJAX call take? | <p>I want to do something like</p>
<pre><code>var date = new Date();
var pretime = date.getTime();
$.post(
"ajaxfile.php",
object,
function(data) {
var totalTime = date.getTime()-pretime;
$("#feed").append("Time: " + totalTime + "<br/>" + pretime + "<br/>" + date.getTime(... | javascript jquery | [3, 5] |
3,832,384 | 3,832,385 | JQuery: How do I use the JQuery delay with my own function? | <p>How do I use the JQuery <code>delay</code> in conjunction with my own defined function, pseudo-code like so?:</p>
<pre><code>$('#foo').slideUp(300).delay(800).myOwnFunction(1,2,3);
function myOwnFunction (a,b,c) {...}
</code></pre>
<p>The code above doesn't work, however - per the <a href="http://api.jquery.com/de... | javascript jquery | [3, 5] |
776,265 | 776,266 | Jquery autocomplete | <p>How do I customize the ac_results class generated by the autocomplete plugin?</p>
| javascript jquery | [3, 5] |
1,442,075 | 1,442,076 | Creating unique id for textbox | <p>i like to have unique ids for textboxes and hidden filds .is there any property which will give unique id in asp.net ? </p>
<p>something like </p>
<p><code><asp:textbox id="ctr001_1" runat="server" uniqueid="textbox" /></code></p>
| c# asp.net | [0, 9] |
2,151,080 | 2,151,081 | Use a Javascript variable in C# | <p>I want to use a Javascript variable in C#, is it possible, how do I go about it?
Thanks</p>
| c# javascript | [0, 3] |
1,948,376 | 1,948,377 | error when returning a value of type Double? | <p>In this method I return a value of the type Double, but there is an error saying "Method </p>
<p>Must return value of type Double"???</p>
<p><strong>Code</strong>:</p>
<pre><code>public class Gyro extends Activity {
Double gyro_X;
Double gyro_Y;
Double gyro_Z;
public Double getGyro_X() {
if (this.gyro_X == ... | java android | [1, 4] |
157,853 | 157,854 | Dynamically adding attributes to <head> tag ASP.NET | <p>How would I go about finding on my ASPX page (from codebehind) and then adding the attribute "runat=server" to it?
I have tried using <code>Page.header.attributes.add(...)</code> and<code>(HtmlHead) Page.FindControl("head");</code> The second one obviously won't work as the Head tag doesnt have an ID.</p>
<p>I ca... | c# asp.net | [0, 9] |
1,217,907 | 1,217,908 | how to get columns in one row using jquery | <p>I am trying to get columns inside row. But I only want to get those columns who does not have class element. How can I do this?</p>
<p><strong>Code:</strong></p>
<pre><code>update_data: function() {
$('#add').click(function() {
var uid = $('input[name="id"]').val();
var fname = $('input[name="f... | javascript jquery | [3, 5] |
3,994,735 | 3,994,736 | c# page_unload firing together with after page_load | <p>So i want to delete some files when a user closes the browser.</p>
<p>I'm using the <code>page_unload</code> method shown below: </p>
<pre><code> protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
string[] uploadedFiles = Directory.GetFiles(Server.MapPath("~/testPdfIn"));
... | c# asp.net | [0, 9] |
3,611,453 | 3,611,454 | How to read the value of a variable which is set inside the jquery slide toggle calback function? | <p>I hope everyone is doing fine. My qyes actually I am setting a variable inside slide toggle call back function. I need to perform some action based on this variable's value So, I need to wait for this variable's value to be set in parent method. I think following code snippet will explain better what I am trying to ... | javascript jquery | [3, 5] |
4,936,038 | 4,936,039 | Add Attributes to root HTML Element of a Custom Control | <pre><code>public class CustCtl : WebControl
{
protected override System.Web.UI.HtmlTextWriterTag TagKey
{
get
{
return HtmlTextWriterTag.Div;
}
}
}
</code></pre>
<p>With this bare bones control, it would render the root element as a Div tag. But how can I add att... | c# asp.net | [0, 9] |
3,491,207 | 3,491,208 | Scope of static Variable in multi-user ASP.NET web application | <p>Does static variables retain their values across user sessions? </p>
<p>I have a ASP.NET web application where I have two buttons. One for setting the static variable value, another for Showing the static variable value.</p>
<pre><code>namespace WebApplication1
{
public partial class WebForm1 : System.Web.UI.P... | c# asp.net | [0, 9] |
2,876,864 | 2,876,865 | Want to show dependent popup thru javascript, that also work in IE7 and above | <p>I want to show a popup window by javascript function, with folloing conditions-
-Popup should be in Center of page.
-User can not be able to access parent page when popup opened.
-also work in IE7 or above.</p>
<p>However I am trying with followng code but did not got success.</p>
<pre><code> window.open('PopUp.as... | c# javascript jquery asp.net | [0, 3, 5, 9] |
2,521,008 | 2,521,009 | How to access custom fields from the global class in a webhandler? | <p>I added some custom fields (public booleans) to the global class in global.asax.cs which are initialized during the Application_Start event. How do I access them in a webhandler (ashx)? Or is it better to save them in the Application state object?</p>
| c# asp.net | [0, 9] |
832,167 | 832,168 | How to dynamic select element with JQuery by id | <p>I need to dynamic select element with JQuery, I get in code id of element. How to do that ?
I've tried:</p>
<pre><code>var sel='\'#'+id+'\'';
var elem+$(sel);
</code></pre>
<p>but it doesn't work ( id is string id of element).</p>
| javascript jquery | [3, 5] |
1,377,631 | 1,377,632 | Android: overriding onPause and onResume - proper way | <p>When overriding the <code>onPause()</code> and the <code>onResume()</code> methods of the activity, where is the proper location to call the <code>super.onPause()</code> and <code>super.onResume()</code>? At the beginning of the method or at the end?</p>
| java android | [1, 4] |
599,125 | 599,126 | How to remove all tags after certain tag? | <p>I need to remove tags going after <code>#first</code> and only in <code>#container</code>.
How can I do it with jQuery?</p>
<pre><code><div id="container">
<div id="first"></div>
<div id="remove_me_1"></div>
<div id="remove_me_2"></div>
<div id="remove_me_3">&... | javascript jquery | [3, 5] |
1,788,286 | 1,788,287 | How to get the id of next tr in table using jquery? | <pre><code><table>
<tr id ="tr_id_1">
<td >
Blah
</td
<td>
Blah
</td>
</tr>
<tr id ="tr_id_2">
<td>
Blah
</td>
<td>
Blah
</td>
</tr>
</table>
</code></pre>
<p>i have got the id ... | javascript jquery | [3, 5] |
3,962,931 | 3,962,932 | How to apply jquery code to different targets without rewriting existing code? | <p>Is it possible to execute existing jquery code but apply it to alternate targets?</p>
<p><strong>EXAMPLE</strong></p>
<pre><code>$('#btn1').click(function() {
$('#div1').fadeOut()
});
</code></pre>
<p>Can this code be reused to execute from #btn2 and target #div2 without rewriting the code.</p>
<p><strong>SO... | javascript jquery | [3, 5] |
2,413,084 | 2,413,085 | Javascript YouTube API - Loading Player | <p>I have a list of YouTube videos on my website and this is what each list item looks like:</p>
<pre><code><div class="video_item" id="<YouTubeVideoID>">
// video thumbnail and information
</div>
</code></pre>
<p>If a user clicks on one of these video items, a panel drops down and SHOULD load ... | javascript jquery | [3, 5] |
1,429,741 | 1,429,742 | How to pass Jquery variable to php variable? | <pre><code><script>
// i want to extract time '10:30' from stime jquery string variable
// and transfer value "10:30" in a php variable in this format "10, 30"
var stime = 'Sat Dec 17 2011 10:30:00 GMT+0530 (India Standard Time)';
<?php
$s = "<script>document.write(stime);</script>";
... | php jquery | [2, 5] |
2,078,934 | 2,078,935 | Pattern checking .Check for incorrect operators in an expression | <p>In an expression , How to
1.Check if operators and operands are correct or not.
2.check if brackets match or not.
Example 1: (a+b)- has a one extra operator How do i confirm that the number of operators are incorrect.
Example 2 :((a+b)/(c-d) has one extra opening bracket. how to check such irregularities.
Any re... | c# javascript asp.net | [0, 3, 9] |
551,504 | 551,505 | js check to see if user has connection | <p>Is there an easy way to check whether or not the user has connection to your website?</p>
<p>See if they don't get a connection error.</p>
| javascript jquery | [3, 5] |
986,163 | 986,164 | Android Location Promixity Query | <p>I'm working on an app, where I need to determine which sqlite rows are closest to me given my current lat/long. I have a table with lat and long columns, I'm just having a bit of trouble working out how to get ones that are closest based on my devices current location. Any help would be appreciated. </p>
| java android | [1, 4] |
4,472,393 | 4,472,394 | Object Notation in Javascript | <p>I'm trying to call a blur function on a variable assigned to a jquery object (an input field). How do I call the function on the variable?</p>
<pre><code>var someObject = {
day: $('#dayInputField'), // input text field
init:function(){
console.log("this.day" + this.day); // outputs object
thi... | javascript jquery | [3, 5] |
1,745,085 | 1,745,086 | how to count total number of divs with in a div using javascript | <p>how to count total number of divs with in a div using javascript</p>
| php javascript | [2, 3] |
681,655 | 681,656 | Store comma separate values into array | <p>I want to store comma separate values into array.
Later i want check it with different check.</p>
<pre><code>var_str= name,address,state,city // I want make array from this variable
</code></pre>
<p>How could i do this...</p>
<p>Thanks..</p>
| javascript jquery | [3, 5] |
179,617 | 179,618 | getting pictures into an array in javascript | <p>im kinda new to javascript i mean i know the syntax but not so much the libraries.</p>
<p>i need some help to get some files (pictures) from a folder into an arry lets say:</p>
<pre><code>var[] pictures = ?;
</code></pre>
<p>(the folder is in my project and contain some pictures)</p>
<p>so i can loop over them... | javascript jquery asp.net | [3, 5, 9] |
740,309 | 740,310 | how do i toggle between divs | <p>I have 2 divs. I want div id 1 to be visible when the page is loaded and when i click on anywhere in main div id 2 should be visible.when user click again on main 2 should be hidden and 1 visible.`</p>
<pre><code><div id="main" style="border:1 px dashed red;" >
<div id="1" style="width:300px;height:50px;... | javascript jquery | [3, 5] |
4,246,669 | 4,246,670 | Android running browser ASP page that sends commands to windows PC | <p>I am wondering how i can send a command (like 1, 2, 3..etc) from my web app (classic asp/asp.net) web page on my android web browser to a windows computer thats on the same LAN network. Kind of like an instant messenger type of thing so that i can design a web page with buttons and each button would send a command b... | javascript jquery android asp.net | [3, 5, 4, 9] |
1,836,611 | 1,836,612 | How to set replace command if dynamic target in anchor tag | <p>This is my Html</p>
<pre><code>desc=<a target="_blank" href="http://www.taxmann.com/corporatelaws/fileopencontainer.aspx?Page=CIRNO&amp;id=27000000000000002519&amp;search=">A. P. (DIR Series) Circular No. 46 dated June 14, 2005</a>
String k = replace ( desc, "<a target=\"_blank\" href=\"ht... | java android | [1, 4] |
1,470,668 | 1,470,669 | Proper Variable Declaration in C# | <p>I noticed some people declare a private variable and then a public variable with the get and set statements:</p>
<pre><code>private string myvariable = string.Empty;
public string MyVariable
{
get { return myvariable; }
set { myvariable = value ?? string.Empty; }
}
</code></pre>
<p>and then some people jus... | c# asp.net | [0, 9] |
1,194,919 | 1,194,920 | How to improve RandomAccessFile usage? | <p>I'm using a <code>RandomAccessFile</code> to <strong>rw</strong> data to it constantly. The size of the file can range from 5MB up to 200MB. This file is used as a <strong>circular buffer</strong>. </p>
<p>My main concern is the constant seek before a read and write.</p>
<p>What happens after seek? Does part of t... | java android | [1, 4] |
2,124,999 | 2,125,000 | Workaround for passing parameter to jQuery ready() | <p>I have some code called on jQuery document.ready() which is used in multiple HTML files. Now the difference is each of these HTMLs uses a different div id.
I know one option is to just check for hardcode div ids inside $(document).ready() . But I wanted to write a generic code which would take the div Ids based on ... | javascript jquery | [3, 5] |
2,832,070 | 2,832,071 | jQuery authoring and closure | <p>I'm reading about writting <a href="http://docs.jquery.com/Plugins/Authoring" rel="nofollow">jQuery plugins</a> an there is a section that talks about preserving dollar sign notation so that it doesn't collide with other libraries that use it. </p>
<p>It says: </p>
<blockquote>
<p>it's a best practice to pass ... | javascript jquery | [3, 5] |
2,295,193 | 2,295,194 | Use Comma in variable? | <p>Is there a way to convert this:</p>
<pre><code>$('#id').testfunction({
'source' : [
{'source':'pathimage.jpg','title':'Title 1','description':'This is a description 1.'},
{'source':'pathimage.jpg','title':'Title 2','description':'This is a description 2.'},
{'source':'pathimage.jpg','title':'Title 3',... | javascript jquery | [3, 5] |
823,670 | 823,671 | javascript output with double quote in asp.net c# | <p>when i generate text from database using datatables in asp.net c#, i can generate this <code>"<a href='javascript:txtreplace('text to replace')'>" + lbltext.Text + "</a>"</code> </p>
<p>output is</p>
<p><code><a onclick='txtreplace('text to replace')'>text</a></code> </p>
<p>but is in not... | c# javascript asp.net | [0, 3, 9] |
3,603,084 | 3,603,085 | can anybody help me find what is the js error i get in explorer 7 and 8? | <p>If i run the link in ieTester, in ie7 pops up a js error and the site doens't work, if i try ie8 i don't get a pop msg but it doesn't work neither. It says: Line 219 Char 1 Error expected identifier, string or number Code 0</p>
<p>in here: link off - issues was the answer below</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
2,033,048 | 2,033,049 | Start function with both mousewheel and click jQuery | <pre><code>$('.div').bind('mousewheel', function(e, delta) {
</code></pre>
<p>How do I write if I also want a single click to start the function? I want the user to be able to choose himself.</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
4,359,761 | 4,359,762 | Jquery / Javascript form help? | <p>I have implemented this solution..</p>
<p><a href="http://tutorialzine.com/2010/10/ajaxed-coming-soon-page/" rel="nofollow">http://tutorialzine.com/2010/10/ajaxed-coming-soon-page/</a></p>
<p>However, on submit, I would like the form to disappear and the "thank you" text displayed. Currently, the form remains and ... | javascript jquery | [3, 5] |
2,857,588 | 2,857,589 | Converting Javascript object to jquery object? | <p>when iam trying to convert javascript object to jquery object like obj = $(obj). The object obj is loosing one of the property values and setting the value as true.if iam using obj[0].Validated its returning the exact values.Please suggest on this.</p>
<pre><code>obj = $(obj);
objValue = obj.attr("Validate");
</cod... | javascript jquery | [3, 5] |
2,324,605 | 2,324,606 | Question on popup window | <p>In my code I am using a popup window to display extra information. I also have the ability to export the information in the main window to Excel.</p>
<p>The problem is, after the window pops up -> I see the info -> I close the popup window -> but if I try the export to Excel button, it throws the exception <em>"nul... | c# asp.net | [0, 9] |
4,941,995 | 4,941,996 | How to change the target of any local link when clicked, using javascript / jquery? | <p>I need to change the href of any local link when it is clicked on.
I've worked out how to select the correct links and create the new url, but not sure how to change the location. I need to be certain that any other click events have also run, so I can't just change the location immediately.</p>
<pre><code>var my_h... | javascript jquery | [3, 5] |
1,536,715 | 1,536,716 | Tabbing between jquery EditInPlace fields? | <p>I have a page with a bunch of jquery EditInPlace tags and the client would like to allow the user to tab between fields (i.e. tabbing would launch the next .eip field. Is this even possible? I'm using the 'jquery-in-place-editor' located here: <a href="http://code.google.com/p/jquery-in-place-editor/" rel="nofollow... | javascript jquery | [3, 5] |
5,238,157 | 5,238,158 | what is the use of super() method - Android | <p>I'm new to Android and never studied JAVA before.
I was working on an Android app.
There I didn't get to know the meaning of super method.
for e.g. at a place I saw <code>super(R.string.changing_fragments);</code> but I didn't get it's meaning.</p>
| java android | [1, 4] |
4,309,349 | 4,309,350 | Allowing the user to comment/reply in a webpage? | <p>i am creating an ASP.NET C# web application and I am looking for the easiest way to do a comments system.</p>
<p>I'll explain. </p>
<p>I have a page containing Items (list items containing texts) </p>
<p>I want the users to be able to click on one, and then he is allowed to reply or comment to it. and he can see ... | c# asp.net | [0, 9] |
4,100,404 | 4,100,405 | DRYing out some code | <p>I'm drying to DRY up this code from the jQuery source:</p>
<pre><code>cssNumber: {
"fillOpacity": true,
"fontWeight": true,
"lineHeight": true,
"opacity": true,
"orphans": true,
"widows": true,
"zIndex": true,
"zoom": true
}
</code></pre>
<p>I suggest the following. Can it be done b... | javascript jquery | [3, 5] |
2,715,724 | 2,715,725 | how to touch on two buttons at the same time in Android | <p>I want to implement OnTouchEvent for two buttons and get
MotionEvent.ACTION_MOVE function at same time.</p>
<p>I implemented onTouchEvent but doesn't work</p>
<pre><code> left = (Button)findViewById(R.id.button1);
right = (Button)findViewById(R.id.button2);
left.setOnTouchListener(this);
right.setO... | java android | [1, 4] |
2,461,399 | 2,461,400 | Dynamic Elements not working ASP c# | <p>I am trying to add dynamic HTML elements from the code behind file on page load`</p>
<p><code>
protected void Page_Load(object sender, EventArgs e)
{</p>
<pre><code> for (int i = 98; i < 123; i++)
{
LinkButton btn = new LinkButton();
Char temp = Convert.ToChar(i);
... | c# asp.net | [0, 9] |
2,232,462 | 2,232,463 | Jquery to Zoomin and Zoomout and for Shapes of images on click of button | <p>I am working on Image upload and I need to add functionality to zoomin and zoomout and shapes (like landscape, portrait) of image on click of buttons. But nothing happens when I am clicking on the buttons. My code is: </p>
<pre><code>$(document).ready(function() {
var imagesize = $('img').width();
alert(im... | php jquery | [2, 5] |
1,114,575 | 1,114,576 | How to register js files at the end of a asp.net document instead of within the ScriptManager | <p>In certain circles best practices suggest registering JavaScript files (js) at the end of a document to allow the DOM to completely load before invoking the js. This makes total sense but the question I have is if you are working with an asp.net webform and due to the postbacks I need to register the js files with t... | javascript asp.net | [3, 9] |
5,801,576 | 5,801,577 | link to pdf file(asp.net) | <p>i have saved the pdf file to the database using file upload . now i want to retrive the pdf file from the database and it has to be linked to the linkbuttons that are dynamically created . so for each link button i have a pdf file linked to it. - how to do this in asp.net using C#</p>
| c# asp.net | [0, 9] |
4,110,968 | 4,110,969 | how do we check whether any item in the listbox is selected in asp.net .Net 2.0? | <p>In asp.net, I have to do a for loop and check whether any of the items are checked if I want to know if any of the items are checked.</p>
<p>In C#, there is sth like..</p>
<pre><code>listbox.SelectedItems.Count();
</code></pre>
<p>Any similar method for asp.net???</p>
| c# asp.net | [0, 9] |
6,017,406 | 6,017,407 | Jquery ui-sortable with tabs,multi select | <p>im using jquery ui sortable lists connected with tabs.How can be added multiply selection?</p>
<pre><code> $(function() {
$( "#sortable1, #sortable2" ).sortable().disableSelection();
var $tabs = $( "#tabs" ).tabs();
var $tab_items = $( "ul:first li", $tabs ).droppable({
accept: ".connectedSortable li",
hove... | javascript jquery | [3, 5] |
3,141,260 | 3,141,261 | jQuery position().top returns 0 rather than real value | <p>According to the jQuery official documentation, this function should:</p>
<p><strong>"Get the current coordinates of the first element in the set of matched elements, relative to the offset parent."</strong></p>
<p>The following code is expected to return value 51, but it returns value 0. Could anyone provide insi... | javascript jquery | [3, 5] |
277,663 | 277,664 | How do I force a scrollbar in a <select> to go to the top of the list? | <p>I have this HTML:</p>
<pre><code><select multiple='multiple' size='3'>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</code></pre>
<p>Using jQuery how do I force th... | javascript jquery | [3, 5] |
5,203,952 | 5,203,953 | Box style search form with step by step narrow | <p>Anyone could help me to find a tutorial or a free script which work something like this:</p>
<p><a href="http://www.unixauto.hu/Unix_TipusVal_Form.aspx" rel="nofollow">http://www.unixauto.hu/Unix_TipusVal_Form.aspx</a></p>
<p>The visitor pick a main catergory, than a sub-category..etc...and get the result what he ... | php javascript asp.net | [2, 3, 9] |
4,410,919 | 4,410,920 | Fade in from a background to another one | <p>Let's say my element has background-image:background1.png.</p>
<p>How can I make the element's background fadein into background2.png without fading the first one out.</p>
| javascript jquery | [3, 5] |
5,761,127 | 5,761,128 | Breaking out of jQuery loop vs native JS for loop. Which is better? | <p>First of all, apologies if the heading question doesn't exactly match with what I am going to ask. </p>
<p>My problem is that I want to have a loop, and the control is suppose to break out of this loop, once a condition is met. </p>
<p>Now, is it better to use the native JS 'for loop' and use 'return' or is it bet... | javascript jquery | [3, 5] |
772,549 | 772,550 | GMT Time format to integer format | <p>I am trying to show ticker clock for different timezone. When I looked around the web, it looks like it takes number for the offset(for example +5.5 hours) in javascript. But the way we are getting the gmtformat is +05:30 in php which I am trying to feed in to the javascript function. Is there any function that I ca... | php javascript | [2, 3] |
5,695,950 | 5,695,951 | How to make a callback from a Service to an Activity | <p>Sorry for bugging you again, but I still can't find a way to make a callback from my activity to a service... </p>
<p>Found a similar question - <a href="http://stackoverflow.com/questions/3398363/how-to-define-callbacks-in-android">How to Define Callbacks in Android?</a></p>
<pre><code>// The callback interface
i... | java android | [1, 4] |
1,068,712 | 1,068,713 | Gtranslate plugin add backslash before apostrophe | <p>I'm using <strong>Gtranslate</strong> plugin for a client website and translating some words using the apostrophe I found that the plugin add a backslash before it:</p>
<p><strong>Hello I/'m going to dinner...</strong></p>
<p>How can I remove the backslash before apostrophe?</p>
<p>There is a php fix that I can a... | php javascript | [2, 3] |
1,551,743 | 1,551,744 | Custom fonts in android | <p>I am trying to use custom fonts in a textview:</p>
<pre><code>tv=(TextView)findViewById(res);
Typeface font = Typeface.createFromAsset(this.getAssets(), "fonts/font.ttf");
tv.setTypeface(font);
</code></pre>
<p>But when I run I get the following error:</p>
<pre><code>W/System.err( 542): java.lang.RuntimeExcept... | java android | [1, 4] |
343,527 | 343,528 | Post from PHP page to Java program and output result | <p>I have a PHP page on one server, which asks for some login details from a user. </p>
<p>I then have a Java application on another server.</p>
<p>I am trying to POST the results from the login form to the Java application, then respond with a yes/no as to whether the details were correct. </p>
<p>Whats the simples... | java php | [1, 2] |
1,326,928 | 1,326,929 | Asynchronous Callback functions: Iphone Versus Android | <p>On Callback</p>
<p>On Iphone </p>
<h2>File A:</h2>
<p>@protocol servicedelegate
-(void)taskCompleted:(NSDcitionary*) dict;
@end</p>
<p>-(void) performtask
callback=@"taskCompleted:";</p>
<p>[(id)delegate performSelector:NSSelectorFromString(callback) withObject:data];</p>
<h2>File B:</h2>
<p>-(void) taskcomp... | android iphone | [4, 8] |
5,220,779 | 5,220,780 | Jquery delay being overlooked after .html() call | <p>i am trying to introduce an delay after an image is loaded but it keeps skipping the .delay()</p>
<pre><code>$(\"#output\").html(\"<center><img src='http://i.imgur.com/GM6KJdh.gif' /></center>\").delay(5000);
</code></pre>
<p>I have tried many versions of the above code but it still dosent work <... | php javascript jquery | [2, 3, 5] |
1,700,026 | 1,700,027 | How do you return an embedded resource .aspx page via a httphandler? | <p>Pop quiz hot shots...</p>
<p>I have a Visual Studio 2010 .NET 4 solution with 2 projects, The first project is a c# class library that contains a httphandler and a .aspx page. The .aspx page's build action has been set to "Embedded Resource".</p>
<p>The second project is an asp.net web application which references... | c# asp.net | [0, 9] |
5,482,308 | 5,482,309 | Preventing New line in a multiline text box | <p>How to prevent the new line character at the beginning of the text entering in a multiline text box? Now, I already trimmed the white space at the beginning of the text. but i can't prevent the new line character that has to be occurred by entering the enter key on the most beginning of the text box. Please help me... | asp.net javascript | [9, 3] |
961,605 | 961,606 | Programmatically Setting Number Input Value Not Working | <p>I have a piece of javascript that sets the number input value. However, it won't work. The input's value field is still empty after the call (although console.log() outputing the element's val() does show the correct value). I have tried setting the value three ways jQuery's .val(total), .attr('value', total), and w... | javascript jquery | [3, 5] |
2,987,930 | 2,987,931 | Confused about adding multiple td's to tr using JQuery | <p>So I have the following code:</p>
<pre><code><script type="text/javascript">
$(document).ready(
function () {
$("#txt").click(function () {
var $TableRow = $('<tr></tr>');
var $TableData = $('<td></td>');
var $TableData2 = $('<td></td>');
... | javascript jquery | [3, 5] |
1,407,897 | 1,407,898 | JQuery sorting a table without the plugin | <p>Is there a jquery function to sort a table. I am aware of the JQuery Tablesorter plugin but I want to avoid using it if possible.</p>
<p>As a FYI - The table that I have a header with custom images to indicate ascending and descending. The data type could be pretty much any type.</p>
<p>EDIT:Can I do sorting of a ... | javascript jquery | [3, 5] |
4,818,961 | 4,818,962 | adding a text line and a link button to a GridViewRow | <p>ok so i have this code so far:</p>
<pre><code> for (int i = 0; i < fajlovi.Length ; i++)
{
string filename = fajlovi[i];
string link = Server.MapPath("~/upload" + "//" + Page.User.Identity.Name) + fajlovi[i];
LinkButton button = new LinkButton();
... | c# asp.net | [0, 9] |
1,193,979 | 1,193,980 | Populate dropdown select with array-with multiple options- using jQuery | <p>So I'm trying to populate a dropdown with the states, the value for the option should be the two characters value, and the text for the option should be the full state's name, using the code below is returning a value of 0,1,2,3... and returning all the options in the var as the text.</p>
<pre><code>var states = ["... | javascript jquery | [3, 5] |
573,982 | 573,983 | how to append anchor tag into parent of div? | <p>My html code is:</p>
<pre><code><div title="test" class="xyz">Tesing</div>
</code></pre>
<p>I want it to look like:</p>
<pre><code> <a href='#'> <div title="test" class="xyz">Tesing</div></a>
</code></pre>
<p>How to do it using JavaScript?</p>
| javascript jquery | [3, 5] |
3,264,017 | 3,264,018 | Jquery not updating .val first time round? | <p>I have been doing the booking form on this website here. <a href="http://offline.raileisure.com/" rel="nofollow">http://offline.raileisure.com/</a></p>
<p>if you fill in the booking form on the right hand side.. click extras and add some extras</p>
<p>click get price to get the popup window...</p>
<p>You see wher... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.