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 |
|---|---|---|---|---|---|
499,307 | 499,308 | Nytimes-style popup when the user makes a selection | <p>When you select text in an article on nytimes.com this little ? pops up at the end your selection:</p>
<p><img src="http://img193.imageshack.us/img193/1316/827200941520pm.png" alt="alt text" /></p>
<p>What's the best way to implement something like this on my site? Are there any pre-rolled libraries for doing this... | javascript jquery | [3, 5] |
1,528,198 | 1,528,199 | Assitance in cms design | <p>I am an intermediate asp.net and C# programmer.
I decide to develop a cms that contain below features:</p>
<ul>
<li>modules common data, store in one table(contents table)</li>
<li>modules do not contain any data, only container for displaying data</li>
<li>information displayed in modules retrieve according to app... | c# asp.net | [0, 9] |
7,807 | 7,808 | Does the Width and Height change with orientation? | <p>So my game starts in Vertical orientation and then eventually goes to Horizontal orientation. I know that the width of the screen is the width of the screen and the same with height when it is in Vertical orientation. When it switches to Horizontal orientation does the Height become the Width and the Width becomes t... | java android | [1, 4] |
4,512,793 | 4,512,794 | Can I load just a portion of a page without java script? | <p>I'm using PHP for my server side language and have a form that returns results. I'm currently using jquery to retrieve the results and update a portion of the page. Can this be done without jquery? If so are there any good examples?</p>
<p>My current jquery code looks like this:</p>
<pre><code>$.post("search_ba... | php javascript jquery | [2, 3, 5] |
113,257 | 113,258 | how to implement build in adobe pdf reader in android app | <p>I am doing an assignment to open pdf in an android app but the device has not install any pdf viewer.</p>
<p>How can I easily to create a build in pdf viewer in my app??</p>
<p>I have no ideas...</p>
<p>Thanks</p>
| java android | [1, 4] |
5,844,199 | 5,844,200 | how to create my own color name | <p>Given the following statement:</p>
<pre><code>$('#upLatImb').append('<span style="color:#F62817; text-decoration:blink">' + sprintf("%11.0f",fCargoLatMom).replace(/ /g,'&nbsp;') + '</span');
</code></pre>
<p>I would like to do something like:</p>
<pre><code>var problemcolor=0xF62817;
$('#upLatImb').a... | javascript jquery | [3, 5] |
2,569,002 | 2,569,003 | i made csv file on the server - how i can let the client to download this file? | <p>i have made csv on the server like this:</p>
<pre><code>string Expath = @"d:\A.csv";
protected void Button3_Click(object sender, EventArgs e)
{
FileStream FS = null;
StreamWriter SW = null;
try
{
FS = new FileStream(Expath, FileMode.OpenOrCreate, FileAccess.ReadWr... | c# asp.net | [0, 9] |
3,421,890 | 3,421,891 | How to close another app in Android? | <p>I have been developing an app, and I need to close another app in my code. Does anyone know any api to call to close an app?</p>
<p>BTW: my app will be pre-installed.</p>
<p>thanks</p>
| java android | [1, 4] |
5,682,369 | 5,682,370 | Dynamically formatting text format/Masking in form? | <p>I am attempting to write a form where users may enter a date and time (ie. 12/12/2005 3:45PM), and I'm attempting to mask the users input, such that the '/' and ':' dynamically appear as they type. I've found <a href="http://digitalbush.com/projects/masked-input-plugin/" rel="nofollow">http://digitalbush.com/project... | javascript jquery | [3, 5] |
4,444,146 | 4,444,147 | count elements of a class within another class | <p>What is the best way to count elements of a particular class within another element?</p>
<p>I have the class of the parent element, but there are other elements with that class. So if for example I have an element that i get to like this:</p>
<pre><code>$(document).on('click', '.countButton', function(){
var ... | javascript jquery | [3, 5] |
2,814,885 | 2,814,886 | Confirmation prompt before PHP execution | <p>I've build a decent CMS for my website. It allows me to manage the entire content, as well as delete an article. I just want to make some kind of Javascript(any other suggestions are most welcome) stop and ask function. When someone clicks delete(my employees are going to use the CMS in the very near future) show a ... | php javascript | [2, 3] |
5,529,448 | 5,529,449 | Make button with function in jquery? | <p>I am trying to make a button with click function to run my jquery:</p>
<pre><code>Function tester(){alert("test")}
</code></pre>
<p>My raw html button code is:</p>
<pre><code><button class="t1" id="52" onClick="tester()">sometext</button>
</code></pre>
<p>But i want to make the button using just jque... | javascript jquery | [3, 5] |
3,949,959 | 3,949,960 | Run AsyncTask every X second to update GPS position | <p>I have a class that extends <code>AsyncTask</code>, which fetches the gps cordinates from the device.</p>
<p>I would like to keep the data updated, so my initial though was to call the class from a timer or a handler. Is this a smart way to implement it, or am i better off listening to the <code>onLocationChanged</... | java android | [1, 4] |
2,327,121 | 2,327,122 | Convert Dataset element to string array in c# | <p>I am trying to convert the dataset item into the string and save into the array. But it gives me syntax error. Please help me out. This in VS 2005 and C#</p>
<p>Thanks in advance!!</p>
<pre><code>string strdetailID[] = new string[4];
for(int i = 0; i < x ; i++)
{
strdetailID[i] = dsImages.Tables[0].Rows[i... | c# asp.net | [0, 9] |
5,939,111 | 5,939,112 | insert text between 2 controls | <p>I want insert ":" between 2 dropdownlist in a cell.</p>
<pre><code>tableCell.Controls.Add(DropDownListOraInizio);
tableCell.Controls.Add(DropDownListMinutoInizio);
</code></pre>
<p>How can i do?</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
4,113,018 | 4,113,019 | Data in string - how to get Hours with functions for datatime? | <p>I have:</p>
<pre><code>var datatime = '2012-01-25 07:44:00';
</code></pre>
<p>How can i make object Datatime with this, and get only Hours? In php is option ->format("H"). And here?</p>
| javascript jquery | [3, 5] |
720,967 | 720,968 | jQuery addClass() removeClass() methods | <p>I am having a problem with jQuery methods .addClass() .removeClass</p>
<p>JsFiddle : <a href="http://jsfiddle.net/HEM7Q/4/" rel="nofollow">http://jsfiddle.net/HEM7Q/4/</a></p>
<pre><code>$(document).ready(function () {
$(".button").click(function(e) {
$(".position1").animate({left:"400px"},2000, function(e){
... | javascript jquery | [3, 5] |
2,266,953 | 2,266,954 | change text on show/hide | <p>I have a some content which I want show/hide using jquery.
Till now using below code:</p>
<pre><code>$(document).on("click",".class", function(){
$(this).next().slideToggle("fast");
});
<div class="class" Title="Click to view/hide all" id="flip">View &#9660;</div>
<div class... | javascript jquery | [3, 5] |
5,643,051 | 5,643,052 | How to calculate file upload and download time using asp.net C# | <p>I have a scenario in which need to calculate the Server Time for uploading files as per the Connection speed.</p>
<p><strong>Example:</strong></p>
<blockquote>
<p>Need to calculate time to upload files with Connection speed 256Kbps and more
If connection breaks then checking the remaining time and restart the ... | c# asp.net javascript | [0, 9, 3] |
374,947 | 374,948 | Separate save actions jQuery and PHP | <p>I have a form for saving the attendance of students to the MySQL database.</p>
<p>Students' data is read from the database and create the data entry form.</p>
<p>The form is designed to store the code, name, presence status of each student and a short description in case of absence.</p>
<p>I have designed the dat... | php jquery | [2, 5] |
5,336,699 | 5,336,700 | problem in Installing android sdk platform | <p>i am getting the following error when i download android sdk version lower than 2.3
and </p>
<p>Downloading SDK Platform Android 2.2, API 8, revision 2
Installing SDK Platform Android 2.2, API 8, revision 2
Unzip failed: C:\Program Files\Android\android-sdk\platforms\android-8\tools\dexdump.exe (Access is denied)</... | java android | [1, 4] |
4,045,445 | 4,045,446 | manipulate css on multiple spans with javascript | <p>I am trying to manipulate spans based on what is contained in them. on my company's ecommerce site there are two spans that contain the price of an item and the sale price of an item. not all items have sale prices. problem is the original price span is shown with the text-decoration set to line-though regardless of... | javascript jquery | [3, 5] |
614,447 | 614,448 | Are there any widget sets (and application frameworks) that build on jquery? | <p>It seems clear that jquery has become the standard “low level” JavaScript library. </p>
<p>We also have extjs and dojo that provide application frame works and widgets etc. </p>
<p>I was expecting an application framework and widget set that builds on the jquery foundation to have become <em>fashionable</em> by n... | javascript jquery | [3, 5] |
2,557,606 | 2,557,607 | Android application development | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2869338/where-to-start-to-learn-android">Where to start to learn Android?</a> </p>
</blockquote>
<p>I am a newbie in Android. Please suggest some code examples so I can look at them and learn.</p>
<p>Please don... | java android | [1, 4] |
477,540 | 477,541 | How to create mentions for names like "@myname" using javascript? | <p>I'm planning to build web app and i heve question how to create mentions for name "@myname" like facebook or twitter</p>
| php javascript | [2, 3] |
2,800,374 | 2,800,375 | Error while taking SUM() of column in datatable | <pre><code>DataTable dtStock = new DataTable();
DataColumn dcTotalCases = new DataColumn("TotalCases");
dcTotalCases.DataType = System.Type.GetType("System.Int32");
dcTotalCases.ReadOnly = false;
dtStock.Columns.Add(dcTotalCases);
</code></pre>
<p>Method 1</p>
<pre><code>int sum = Convert.ToInt32(dtStock.Compute("Sum... | c# asp.net | [0, 9] |
1,739,455 | 1,739,456 | Including and Excluding Libs at Run Time | <p>In my new Android app, I'm required to use a library when Android Version in 1.6 and 1.5 and include some other library when the version is more than 1.6.
I know how to get the Android SDK version, but I'm stuck at inclusion of specific library at run time.
Any Help ??</p>
| java android | [1, 4] |
4,602,216 | 4,602,217 | Java - Is there Java equivalent for C# new keyword in method signature? How I can replace final methods in Java? | <p>As you maybe know, as Java language perspective all method in C# are final by default (also vice versa, all methods in Java are virtual as C# language perspective).</p>
<p>In C# we can replace final (non-virtual) methods by <code>new</code> keyword (<a href="http://msdn.microsoft.com/en-us/library/435f1dw2%28v=vs.8... | c# java | [0, 1] |
3,153,377 | 3,153,378 | jQuery: conversion from string type to string object in $.each | <pre><code>$.each(["foo","bar"],function(){console.debug(this);});
</code></pre>
<p>will convert "foo" and "bar" of string type to their equivalent in string object.</p>
<p>whereas...</p>
<pre><code>$.each(["foo","bar"],function(i,e){console.debug(e);});
</code></pre>
<p>will keep "foo" and "bar" in their original ... | javascript jquery | [3, 5] |
429,078 | 429,079 | How can I exit from a javascript function? | <p>I have the following:</p>
<pre><code>function refreshGrid(entity) {
var store = window.localStorage;
var partitionKey;
...
...
</code></pre>
<p>I would like to exit from this function if an "if" condition is met. How can I exit? Can I just say break, exit or return?</p>
| javascript jquery | [3, 5] |
728,288 | 728,289 | Create a widget not reliant on a DOM element | <p>I'm trying to make my code cleaner, and for this, I really like <code>JQuery widgets.</code></p>
<p>Today, I would like to create a widget not related to a Dom Element :</p>
<pre><code>$.widget('ui.resaWidget', {
options : {
viewer : null
}...
});
</code></pre>
<p>The only way I've found to call t... | javascript jquery | [3, 5] |
5,933,680 | 5,933,681 | JQuery server side method call internal | <p>i often call my aspx server side method with the help of jquery....like</p>
<pre><code>$.ajax({
type: "POST",
url: "login.aspx/Authenticate",
data: JSON.stringify(DTO),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: ... | javascript jquery asp.net | [3, 5, 9] |
4,522,605 | 4,522,606 | Changing div text with jquery | <p>When I click on a div, I would like to change the text inside it to <code>New Text</code>. </p>
<p>How can I do that with jquery</p>
<pre><code>$('#mydiv').????
</code></pre>
| javascript jquery | [3, 5] |
2,123,049 | 2,123,050 | Create any number of divs inside a main div and asssign positions at runtime using jQuery | <p>I want to place many divs in a form of a circle. I will use relative positioning for the divs. For a start I am trying to place four divs around the circle </p>
<p>div 1 - top 50,
left 100</p>
<p>div 2 - top 100,
left 150</p>
<p>div3 -
top 150,
left 100</p>
<p>div 4 -
top 100,
left 50</p>
<p>I will be cal... | javascript jquery | [3, 5] |
5,628,430 | 5,628,431 | Disable select function Jquery 1.9 | <p>The following script works in all versions of Jquery except 1.9 (ahhh). It's very simple I have 5 dropdown list with the same 20 options in each list. Everytime they choose one option it is disabled and can not be chosen in the next list. And before anyone mentions the idea of using a checkbox function I did this al... | javascript jquery | [3, 5] |
5,200,818 | 5,200,819 | JavaScript class function this operator | <p>I have a JS class that contains a AJAX post. I'm trying to refer to the class members from within the post function using <code>this</code> but it doesn't seem to be working. </p>
<p>For example, from this: </p>
<pre><code>function Classy() {
this.goal = 0;
$.post(
"class/initial.php",
function(ba... | javascript jquery | [3, 5] |
1,300,044 | 1,300,045 | C#: access cache variables in .ashx.cs | <p>How can one access cache objects in handler class? </p>
<pre><code>public void ProcessRequest (HttpContext context) {
//Cache["asd"] = "asd";
//context.Response["1"]="sfd";
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
string ss=(string)context.Cache["aasd"]... | c# asp.net | [0, 9] |
3,760,971 | 3,760,972 | jQuery/Javascript will chaining be the solution? | <p>dummy.html:</p>
<pre><code><button id="do">Do</button>
</code></pre>
<p>external.js:</p>
<pre><code>$("#do").click(function() {
history.go(-1);
alert('One page back');
history.go(1);
alert('back from were you started');
});
</code></pre>
<p>Will execute history.go(-1); and end.</p>
<p>In the... | javascript jquery | [3, 5] |
1,935,255 | 1,935,256 | Get Specific Time in Specific TIme Zone | <p>I am trying to get a calendar object with the a specific time tomorrow in a specific time zone (not the time zone the device is in). In the example below I want to get 12:15am in Central time zone tomorrow not matter where in the world the device is located.</p>
<p>First question, is this the best way to do this?<... | java android | [1, 4] |
4,473,648 | 4,473,649 | Jquery post option value to PHP | <p>How can I post data using Jquery from selected data to the PHP?</p>
<p>HTML code:</p>
<pre><code><select id="test" title="test" class="test">
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
</select>
</code></p... | php jquery | [2, 5] |
597,694 | 597,695 | # in URL with Javascript? | <p>I am implementing a CMS with a fully Ajaxified interface(jQuery) library. Everything happens in one index.php file via Ajax calls etc.
How can I do something like:</p>
<pre><code>www.mysite.com/dashboard#statistics
</code></pre>
<p>when on the statistics page etc?</p>
| javascript jquery | [3, 5] |
2,810,750 | 2,810,751 | how to display hide and show select box? | <p>I google a lot for my requirement.So i am posting this question.
my requirement is when a user select a value from dropdown based on that value a div to be displayed. But in default all the divs with values to be displayed.</p>
<p>here is my code:</p>
<pre><code><select name="lab_1" id="title" >
<... | javascript jquery | [3, 5] |
2,137,352 | 2,137,353 | IF condition not processed | <p>Please, anyone can help me to understand why if not working?
I echo variable to check out values and i have respective 0 and 1, same IF conditions...
Query works, IF not work...</p>
<pre><code>$data = ($_POST);
$cn = $data['cn'];
$email = $data['email'];
$con1 = mysql_query("SELECT * FROM `crm` WHERE cn = '$cn'", ... | php javascript | [2, 3] |
3,237,708 | 3,237,709 | How to do a clear interval in javascript? | <p>My Code:</p>
<pre><code>$(function() {
$('a.startSlideshow').click(function() {
startSlideShow = window.setInterval(function() { slideSwitch() }, 1000);
});
$('a.next').click(function() {
if (startSlideShow) {
clearInterval(startSlideShow);
}
... | javascript jquery | [3, 5] |
823,700 | 823,701 | How can i create a online catch tool which can capture part of a web page? | <p>I saw this demo: <a href="http://www.gbin1.com/technology/democenter/20120720jsoupjquerysnatchpage/index.html" rel="nofollow">Capture demo</a>, it looks it use jsoup to capture the web element. Do we have any other choice for capture the web page content better? FOR example, capture the part of web page, and also in... | java javascript jquery | [1, 3, 5] |
2,674,024 | 2,674,025 | I want to go the previous MENU whenever I press the physical back button on my droid, could someone guide me through that ? | <p>This is my Function that dynamically create menu from a parsed XML, now I want that when I press the physical back button it should move to the previous menu.
I have read a lot of articles on this but still haven't find a single for going back in Menus.</p>
<pre><code>public int create_menu(int level_n){
int l... | java android | [1, 4] |
706,311 | 706,312 | Why can't you directly cast type in java? | <p>In the code snippet below, why would lines 1 & 2 be fine and line 3 cause a compile error? Aren't the first two lines functionally equivalent to the third?</p>
<pre><code>Loader loader = getLoaderManager().getLoader(0);
PatientLoader patientLoader = (PatientLoader) loader;
patientLoader = (PatientLoader) getLoa... | java android | [1, 4] |
3,977,020 | 3,977,021 | Mixing JQuery Ajax with ASP.NET : is there any security risk | <p>I am using jQuery with ASP.NET in a project. Instead of using ASP.NET Ajax, I am using jquery's ajax functions. Is there any security risk if I do that? I mean, since I am using jquery's ajax calls, no view state information will be passed to the server so that it can verify the page's authenticity (though it saves ... | asp.net jquery | [9, 5] |
4,303,629 | 4,303,630 | detect scroll up and down using javascript | <pre><code><script type="text/javascript">
function scrollFunc(e) {
userScroll=true;
if ( typeof scrollFunc.x == 'undefined' ) {
scrollFunc.x=window.pageXOffset;
scrollFunc.y=window.pageYOffset;
}
var diffX=scrollFunc.x-window.pageXOffset;
var diffY=scrollFunc.y-window.pageYOffset;... | javascript jquery | [3, 5] |
3,975,926 | 3,975,927 | Javascript function not being called onblur | <pre><code>function close() {
console.log('close');
$("#display").hide();
}
</code></pre>
<p>I am trying to call a closefunction when the user clicks out of the input box, but it doesn't seem to be working.</p>
<p>Doesn't work:</p>
<pre><code><input type="text" name="searchQuery" id="searchQuery" onblur="jav... | javascript jquery | [3, 5] |
5,868,761 | 5,868,762 | How to set focus on textbox on linkbutton click using javascript | <p>I have this java script function </p>
<pre><code>function showHideSearchPanel(dv) {
var Header = dv == 'Charts' ? 'ChartSearch' : 'ReportSearch';
var div = "ctl00_ContentPlaceHolder1_dv" + Header;
var panel = "ctl00_ContentPlaceHolder1_pnl" + Header;
var hiddenField = "ctl00_ContentPlaceHolder1_hdn" + Header + "Mo... | javascript jquery | [3, 5] |
1,993,093 | 1,993,094 | How to concatenate string and javascript variable inside jquery selector | <p>How do I concatenate a string with a javascript variable inside a jquery selector?
If I execute the code below. All the other form elements gets hidden.</p>
<pre><code>var inputatr = $('input[type=text]').attr(); //button
$('input[value=string ' + inputatr +']').hide(); //textbox
</code></pre>
<p><strong>Update</... | javascript jquery | [3, 5] |
695,542 | 695,543 | Send info to a php page uisng jQuery and $.get | <p>Here's my problem: I'm using the datepicker form jQuery UI for selecting a date and after the date is selected I'm trying to send the date selected to a php file!
Here's what I've tried but does not work:</p>
<pre><code>$( "#datepicker" ).datepicker({
onSelect: function(dateText, inst) {
$.get("myPhpFi... | php jquery | [2, 5] |
2,910,568 | 2,910,569 | returnTrue and returnFalse functions in jQuery source | <p>I can't help but notice there are two seemingly useless functions in the source code of jQuery (For v1.9.1, it's line 2702 and line 2706):</p>
<pre><code>function returnTrue() {
return true;
}
function returnFalse() {
return false;
}
</code></pre>
<p>Which both are called quite often within jQuery. Is the... | javascript jquery | [3, 5] |
2,810,729 | 2,810,730 | jQuery - watch for element height change | <p>I have a element, which is absolute positioned and has a fixed height.</p>
<p>This element has a lot of child elements, which could change their contents, and in consequence their height.
The problem is that the container element doesn't auto expand to fit its children (because of it's fixed height and absolute pos... | javascript jquery | [3, 5] |
1,432,839 | 1,432,840 | OnClient Click not working in IE but works in GChrome | <p>ASP.net Page</p>
<pre><code> <script type="text/javascript" language="javascript">
function show_confirm() {
var r = confirm("Are you sure you want to Save this Transaction");
if (r == true) {
$('#<%=btnConfirm.ClientID%>').click();
... | javascript asp.net | [3, 9] |
1,119,018 | 1,119,019 | Android string extraction | <p>I have an abstract class which contains method for setting header text. It looks like:</p>
<pre><code>TextView header = (TextView) findViewById(R.id.hTitle);
header.setText(getString(this.getHeaderStringID()));
</code></pre>
<p>At this moment methods that override the abstract getHeaderStringID() return integers l... | java android | [1, 4] |
5,021,025 | 5,021,026 | Determine User Input Contains URL | <p>I have a input form field which collects mixed strings. </p>
<p><em><strong>Determine if a posted string contains an URL (e.g. <a href="http://link.com" rel="nofollow">http://link.com</a>, link.com, www.link.com, etc) so it can then be anchored properly as needed.</em></strong></p>
<p>An example of this would be s... | php javascript jquery | [2, 3, 5] |
3,187,659 | 3,187,660 | Cannot passing dynamically created image's ID and alert it | <p>I am creating an image dynamically in Jquery and trying to add a control to it When the user clicks the image, I want to popup alert() with the image's id. But I couldnt succeed to show id of the image in the alert box. Please help me display the id of the image in alert box.</p>
<p>here is the code display the ale... | javascript jquery | [3, 5] |
2,143,891 | 2,143,892 | Opening a file of any extension in an iframe | <p>I have a web application in which i need to open any files in standard formats such as .doc/docx/.csv/.txt/.xls in an iframe . How can I achieve this ? I tried using the sample code below but it is not opening all the file formats in the iframe. I am getting some XML error.</p>
<pre><code>var ext = GetExtension(fil... | c# asp.net | [0, 9] |
551,713 | 551,714 | Is it possible to refresh page before it gets loaded? | <p>What if my website was updated, i mean the CSS and some content, and after the update old visitors when comming back on my page the CSS is not auto refreshing, you have to manually refresh the page. Well, visitors are not experts and they will think first that the page is broken or smthing.</p>
<p>How to make a scr... | php javascript jquery | [2, 3, 5] |
762,121 | 762,122 | interface type method parameter implementation c# | <p>Is it possible to do like this </p>
<pre><code>interface IDBBase {
DataTable getDataTableSql(DataTable curTable,IDbCommand cmd);
...
}
class DBBase : IDBBase {
public DataTable getDataTableSql(DataTable curTable, SqlCommand cmd) {
...
}
}
</code></pre>
| c# asp.net | [0, 9] |
4,827,729 | 4,827,730 | Getting PHP session array values into Javascript | <p>I have stored array values in PHP session.</p>
<p>Now I want to retreive this array and convert it to javascript aray.</p>
<p>This is how I set PHP session:</p>
<pre><code>var listone = ["one", "two", "three"];
function setSession(listone){
$.get(
"setSession.php",
{listone:listone}
);
}... | php javascript jquery | [2, 3, 5] |
1,051,360 | 1,051,361 | Fixed Word Wrap Grid in ASP.Net | <p>I need a fixed width gridview and columns with wrap is true . Here's my code ,</p>
<pre><code><asp:GridView ID="GridView2" runat="server" AllowPaging="True"
AutoGenerateColumns="False"
DataSourceID="SqlDataSource1" EnableModelValidation="True"
Width=... | c# asp.net | [0, 9] |
4,672,568 | 4,672,569 | jquery not work with local refrence but work with google refrence | <p>I use jQuery in my web project.</p>
<p>When I use local reference like this;</p>
<pre><code><script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"></script>
</code></pre>
<p>I receive this error:</p>
<blockquote>
<p>$ is not a function</p>
</blockquote>
<p>but when I use the Google ref... | javascript jquery | [3, 5] |
3,993,245 | 3,993,246 | Get current element's classes in jQuery | <pre><code><button id="test" class="example whatever">Show classes</button>
$('button').click(function(){
var classes = $(this).attr('class');
alert(classes);
});
</code></pre>
<p>The above code returns the content of the <code>class</code> attribute. How... | javascript jquery | [3, 5] |
2,755,130 | 2,755,131 | JQuery Check if input is empty and show status of it | <p>I have an input which I need to check whether it is empty or not:</p>
<pre><code><input id="myinput" name="myinput" type="text" value="hello" />
</code></pre>
<p>The input above could change any time, so I need to check it on <code>onchange</code>?</p>
<p>If my input is not empty then I need to add the clas... | javascript jquery | [3, 5] |
445,978 | 445,979 | Getting selected radio button value here | <p>I have html in my form that looks like this. First, is this code malformed or something? Second, when the selected radio changes, how do I get the value of the selected radio? I do <code>$('#form_options').change(function(){ });</code> but what goes inside to get the value of the selected button</p>
<pre><code><... | javascript jquery | [3, 5] |
4,690,137 | 4,690,138 | How change content value of pseudo :before element by Javascript | <p>I have the grap constructured by CSS, which is dynamically changes by JS. I show graph max value by pseudo element as:</p>
<pre><code>.graph:before {
content:""; //value that want set by JS
position:absolute;
top:0;
left:0;
}
</code></pre>
<p>That's why I need to set this value by JS. I tried <code... | javascript jquery | [3, 5] |
452,039 | 452,040 | Restrict dragging of div based on css class | <p>I use the below code to arrange my divs : </p>
<pre><code>$( ".myDivs" ).sortable({
connectWith: [".myDivs"]
});
</code></pre>
<p>Is it possible to amend this code so as to exclude divs that can be sorted(moved) which contain a particualar css value : </p>
<pre><code><div class="myDivs excludeThisCss">&... | javascript jquery | [3, 5] |
5,744,998 | 5,744,999 | JQuery: how to keep a dialog box open after an asp.net postback has occurred | <p>Looking at the other dialog questions, mine seems to be the exact opposite to postback queries. I have a dialog box which opens when a button is clicked. all that is fine. I have attached the dialog to the form and posting to asp.net is fine too, but, my problem is when a postback occurs of course the dialog closes ... | c# jquery | [0, 5] |
4,858,760 | 4,858,761 | ASP.Net masterpage Response.Redirect before child call | <p>I have a masterpage and inside that masterpage I have to check if a session is null or not. If the session is null, then there has to be a redirect to a login page.</p>
<p>That is no problem, but the problem is that the masterpage also have controls using the session and the child also uses the session so I get a n... | c# asp.net | [0, 9] |
4,658,394 | 4,658,395 | literal object and jquery selectors DRY | <p>I have a case where I want to do this:</p>
<pre><code>var els = {
div: $('div'),
p: els.div.find('p'),
span: els.p.find('span')
};
</code></pre>
<p>But this happens:</p>
<pre><code>console.log(els.div); // Works
console.log(els.p); // undefined
</code></pre>
<p>So I'm currently doing this:</p>
<pre>... | javascript jquery | [3, 5] |
2,069,190 | 2,069,191 | countdown is not working jquery | <p>I am using <a href="http://keith-wood.name/countdown.html" rel="nofollow">Countdown Plugin</a>. I am trying to set a countdown say : Since 06/17/2012 Until 06/18/2012 . For this i tried :</p>
<pre><code> var start = new Date(2012, 06 - 1, 17);
var end = new Date(2012, 06 - 1, 18);
$('div').countdown({ since: st... | javascript jquery | [3, 5] |
3,308,253 | 3,308,254 | jQuery each() with a delay | <p>So, I would like an element to fade in and wait half a second, then fade the next in etc...</p>
<p>My code:</p>
<pre><code>$('.comment').each(function() {
$(this).css({'opacity':0.0}).animate({
'opacity':1.0
}, 450).delay(500);
... | javascript jquery | [3, 5] |
1,998,081 | 1,998,082 | What's the Opposite of $("p + p") in jQuery? | <p>This sounds like a pretty simple question, but I can't find anything in the jQuery documentation. Basically, I need to know what the opposite of jQuery's <a href="http://api.jquery.com/next-adjacent-selector/" rel="nofollow">Next Adjacent Selector</a> is.</p>
<p>Here's what I have for the Next Adjacent Selector:</p... | javascript jquery | [3, 5] |
4,570,072 | 4,570,073 | problem: jQuery click event only works on first occurrence in text | <p>I have this code:</p>
<pre><code><span id="Santiago4">Santiago</span>
<br>more html code here<br>
<span id="Santiago4">Santiago</span>
<script>
jQuery("#Santiago4").click(function() {alert("blabla")} );
</script>
</code></pre>
<p>My problem is that when I click... | javascript jquery | [3, 5] |
599,498 | 599,499 | jQuery Calculate Date | <p>Any reason why this is landing on the wrong day?</p>
<p><a href="http://jsfiddle.net/SparrwHawk/MH5wP/" rel="nofollow">http://jsfiddle.net/SparrwHawk/MH5wP/</a></p>
<p>I've written the code below for reference, but it's obviously clearer on jsfiddle</p>
<pre><code><p>Sun / Closed</p>
<p>Mon / Cl... | javascript jquery | [3, 5] |
5,223,135 | 5,223,136 | adding PHP to an external JAVASCRIPT file | <p>I have a website template which uses an external JAVSCRIPT file to plot data on to the graph. what I want to do is swap the demo content for php variables.</p>
<p>Original graph data</p>
<pre><code> var data = [{
label: "Facebook",
data: [[1, 2], [2, 37], [3, 12], [4, 72], [5, 24], [6, 113], [7, 27]]
},
{... | php javascript | [2, 3] |
908,865 | 908,866 | Can .sortable apply to dynamically added objects? | <p>Can anyone please explain that whether <code>.sortable</code> can apply to future jQuery objects that will be dynamically added, which means it doesn't exist in the <strong>current</strong> DOM , just like the deprecated <code>.live</code> function? Thanks.</p>
| javascript jquery | [3, 5] |
3,645,648 | 3,645,649 | Why can't I bind javascript submit() with variables together? | <p>I created a variable <code>targetForm</code> and tried to bind it with <code>submit()</code>. However, the bound function doesn't catch submit event when I call a function and trigger variable to submit form.</p>
<pre><code>var targetForm;
function Add_Notice_Message(evt){
alert('set up form');
targetFor... | javascript jquery | [3, 5] |
4,126,672 | 4,126,673 | Building first Android App, trying to connect to a URL on load and fetch data | <p>I am trying to learn how to program using Android, and I am trying to make a WEB API call from within the base app that the SDK starts with. I simply copied some code, but I do not detect any connection occuring on my web server. Any ideas?</p>
<pre><code>package com.example.androidhello;
import java.io.InputStrea... | java android | [1, 4] |
35,351 | 35,352 | type conversions string from python to javascript | <p>I have problems with type conversions string from python to javascript. </p>
<p>I create html file from python with these code :</p>
<pre><code>htmlbody = """
<html>
<script>
b = "\x45\x20\x61"
</script>
</html>
</code></pre>
<p>but when i create html file instead in my file </p>
<pre><co... | javascript python | [3, 7] |
5,465,161 | 5,465,162 | Page Refresh in ASP.NET | <p>save dialog saves file to the local machine. But after that, my page stand there and do nothing for the rest of my process. I use below code to open a save dialog</p>
<pre><code>protected void lnkbtnDownload_Click(object sender, EventArgs e)
{
string fileName = startupPath + "bin\\Inbox.mdb";
System.IO.FileInfo... | c# asp.net | [0, 9] |
4,228,275 | 4,228,276 | Using a java project in android project | <p>I am using eclipse to build my android application.The data required for my application is stored in a sql server.In my database i have name,address,phone number,latitude and longitude of a location.I created a program in android which will take an array of addresses and find out its latitude and longitude.But the a... | java android | [1, 4] |
1,293,993 | 1,293,994 | Why does Java not use the out parameter in its language syntax while c# does? | <p>While I am not a huge fan of using the out parameter in c# I would like to know why Java chose not to include it in its language syntax. Is there any special reason or maybe its because a person can simply pass an object as a parameter type?</p>
| c# java | [0, 1] |
1,761,483 | 1,761,484 | Javascript/JQuery - How to get number of specific child elements | <p>I wish to get the number of all TR elements that have a input element in them somewhere. How should I proceed ?</p>
<p>Html :</p>
<p><code><tbody>
<tr>
<td>Ignore this item 1</td>
</tr>
<tr>
<td>Ignore this item 2</td>
</tr>
<tr>
<td><input... | javascript jquery | [3, 5] |
4,909,826 | 4,909,827 | Select all child elements except the first | <p>Say I have the following:</p>
<pre><code><ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>
</code></pre>
<p>How would I select all the child elements after the first one using jQuery? So I can achieve something like:</p>
<pre><code><ul&g... | javascript jquery | [3, 5] |
1,214,545 | 1,214,546 | Resolve function pointer in $(document).ready(function(){}); by json string name | <p>I have a json object retrieved from server in my <code>$(document).ready(...);</code> that has an string that I would like to resolve to a function also defined within <code>$(document).ready(...);</code> so, for example:</p>
<pre><code>$(document).ready(function{
$.getJSON(/*blah*/,function(data){/*more blah*... | javascript jquery | [3, 5] |
1,466,971 | 1,466,972 | selectedindexchanged event of dropdownlist is not working with jquery | <p>hello I have a <code>dropdownlist</code>. I am using jquery plugin to give style to <code>dropdownlist</code>. jquery plugin is <strong>jquery.dd.js</strong>. but my problem is <code>selectedindexchanged</code> event is not working in Internet exlorer 8 although it is working fine in other browsers.</p>
| jquery asp.net | [5, 9] |
3,957,725 | 3,957,726 | How to open file in a new window? | <p>I want to open folder from web page by clicking on a button ...
In my code when I am use a hyper link its working properly.
but when I am using a button its not working.</p>
<p>here is my code: </p>
<pre><code> protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("file://LAP6//C$"... | c# asp.net | [0, 9] |
5,841,705 | 5,841,706 | how to make the json data into jquery code? | <p>the php json_encode($object) result is</p>
<pre><code>[{"price_id":"1","website_id":"0","price_qty":2,"price":"90.0000"},
{"price_id":"2","website_id":"0","price_qty":5,"price":"80.0000"},
{"price_id":"3","website_id":"0","price_qty":8,"price":"70.0000"}]
</code></pre>
<p>someone tell me, <code>var sorted = arra... | php jquery | [2, 5] |
1,625,799 | 1,625,800 | jquery help with back to top | <p>why is this not working?</p>
<pre><code><script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
if( jQuery(".page").height() < jQuery(window).height() ) {
jQuery(".backtop").hide();
}
else {
jQuery(".backtop").show();
}
});
</script>
</c... | javascript jquery | [3, 5] |
1,062,252 | 1,062,253 | Adding, Removing and Adding Element again removes its Event | <p>I have a hyperlink with an ID when clicked will perform a certain event using JQuery. JQuery records the existence of this link on document load. Some time during the course of the users visit. I remove that link and the re-add it later. However, that even is not fired off again when that link is clicked after it ha... | javascript jquery | [3, 5] |
5,723,753 | 5,723,754 | How do I hide jQuery changes to the page until all processing is complete? | <p>I have a page with a large table. At the top of the table I've added several filters for eliminating rows in the table. When someone changes a filter, jQuery processes the changes and shows/hides rows in the table that match the filters.</p>
<p>The processing code starts by showing all the rows in the table. Then, ... | javascript jquery | [3, 5] |
495,833 | 495,834 | GetType on System.Web.UI.Page in ASP.NET - returns different namespace and name | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/202073/asp-net-and-gettype">ASP.Net and GetType()</a> </p>
</blockquote>
<p>I ran into a slight problem today.</p>
<p>As you can see from the code below, I have an ASP.NET Page called "Users" in the namespace "... | c# asp.net | [0, 9] |
5,633,338 | 5,633,339 | How do I add fade in effect when I click expand on this script? | <p>I found this content expand/collapse jQuery plugin. I want to add fade-in effect to this plugin when I click on the EXPAND button. </p>
<p>How do I do this?</p>
<pre><code>$(document).ready(function () {
var maxlines = 15;
var lineheight = 15; // line height in 'px'
var maxheight = (maxlines * lineheight);
var al... | javascript jquery | [3, 5] |
115,787 | 115,788 | JQuery - Javascript | <p>The following is my code for one form of a two form aspx page. Would this code work? Or any help to make it work is much appreciated.</p>
<pre><code><form action="
$(document).ready(function(){
DoSearchSubmit('Search.aspx','Results.aspx')
});"
method="POST"
id="SearchForm" >
... | javascript jquery | [3, 5] |
3,835,580 | 3,835,581 | Getting elements using Javascript | <p>I have a bunch of input elements that have a particular substring in their IDs. Using javascript, is there a way to get these elements as an array? I wouldn't know the full ID - only the substring.</p>
<p>Is this any simpler if I use JQuery?</p>
| javascript jquery | [3, 5] |
1,993,433 | 1,993,434 | jQuery mouseover event not working right? | <p>I have this code:</p>
<pre><code>$("document").ready( function () {
$(".userPic").mouseover(function () {
$(".changePic img").css("display", "block");
})
$(".userPic").mouseout(function () {
$(".changePic img").css("display", "none");
})
})
</code></pre>
<p>... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.