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 |
|---|---|---|---|---|---|
343,730 | 343,731 | Downloading a file from a PHP page in C# | <p>Okay, we have a PHP script that creates an download link from a file and we want to download that file via C#. This works fine with progress etc but when the PHP page gives an error the program downloads the error page and saves it as the requested file. Here is the code we have atm: </p>
<p>PHP Code:</p>
<pre><co... | c# php | [0, 2] |
598,952 | 598,953 | Android: Executing method from specific thread | <p>I'm developing an application in Android. The application can post a HTTP request to specific web server. That post request must run asyncronously, so I create a thread to do the job. But I need a callback that will be called at thread end and it must be called from thread that call the `post` method.</p>
<p>My <co... | java android | [1, 4] |
1,931,041 | 1,931,042 | How to get an object's properties in JavaScript / jQuery? | <p>In JavaScript / jQuery, if I <code>alert</code> some object, I get either <code>[object]</code> or <code>[object Object]</code></p>
<p>Is there any way to know:</p>
<ol>
<li><p>what is the difference between these two objects</p></li>
<li><p>what type of Object is this</p></li>
<li><p>what all properties does thi... | javascript jquery | [3, 5] |
663,840 | 663,841 | Multiplying a number without using * operator | <p>I was going through a programming class and was asked this tricky question which was left unanswered till the end of the class.</p>
<p><strong>Question</strong>: </p>
<p>How can I multiply any input(Float,int etc) by 7,
<code>without using the</code> <code>*</code> operator
in <code>TWO steps</code>. </p>
<p>I... | java c++ | [1, 6] |
1,825,146 | 1,825,147 | Cross Language Variables - Implementation | <p>Certain Variables I use acrross Javascript and PHP, for example JSON_ON.</p>
<p>I need it set to either 1 on both sides or 0 on both sides...this sets encoding and decoding of structured data.</p>
<p>One way I could implment this is to just have PHP open up the .js file and read the variable.</p>
<p>Is this done?... | php javascript | [2, 3] |
4,593,656 | 4,593,657 | How to load a table on a cell by cell basis | <p>I have a simple table with a link and an image in a div in each cell. the simplified code is like:</p>
<pre><code><td>
<a href="#"></a>
<div>
<img src="image01.jpg" />
</div>
</td>
</code></pre>
<p>I pull the values for the link and the image from a the... | c# asp.net | [0, 9] |
1,330,567 | 1,330,568 | How to return a value from inside an interator in Javascript | <p>I have a function that I want to return true or false.</p>
<p>Inside the function I iterate through some elements on the page and check their values.</p>
<p>But if I put a return statement inside the iterator, it will return from the anonymous function right? (and not the outer function).</p>
<pre><code>function... | javascript jquery | [3, 5] |
2,640,357 | 2,640,358 | asp - Cannot find method 'IsNullOrEmpty(String)' in 'String' | <p>Trying to only print if a string isn't empty, and am using the code below, but it keeps coming up with that error... </p>
<pre><code><%if(!String.IsNullOrEmpty(o_handler.renderDesc())) { %>
<strong>Description:</strong><BR>
<HR SIZE="1">... | c# asp.net | [0, 9] |
295,945 | 295,946 | How to show Who's online in a user control in masterpage? | <p>I need to get online users of my website and show the online users name in a repeater.</p>
<p>The reapeter will be in a usercontrol.</p>
<p>How to get online users?</p>
<p>Please help.</p>
| c# asp.net | [0, 9] |
248,558 | 248,559 | How to access created enum in C# from code behind to aspx file | <p>Below is my code behind C# code:</p>
<pre><code>namespace Test
{
public enum en
{
One,
Two
}
}
</code></pre>
<p>How can I access this created enum in my aspx file? Like using the enum in this code:</p>
<pre><code><%
%>
</code></pre>
<p>Thanks</p>
| c# asp.net | [0, 9] |
4,390,836 | 4,390,837 | java android app execute every 10 seconds | <p>I have this code, for a android app i'm working on:</p>
<pre><code>package com.exercise.AndroidInternetTxt;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import android.app.Activity;
import android.os.Bundle;... | java android | [1, 4] |
4,366,138 | 4,366,139 | Check if css property has !important attribute applied | <p>If I have a style like this -</p>
<pre><code>div#testdiv {position:absolute;top:10px !important;}
</code></pre>
<p>I can query the <code>top</code> value with jQuery like this -</p>
<pre><code>$("#testdiv").css("top");
</code></pre>
<p>which will return the value <code>10px</code>. Is it possible to use jQuery... | javascript jquery | [3, 5] |
4,136,710 | 4,136,711 | Create opening application | <p>I would like to display an image at the opening of my application Android (Java), is like a toast in full screen only.</p>
<p>That is, when you open the application and an image appears and disappears after you start the program.</p>
<p>What better way to do this?</p>
| java android | [1, 4] |
915,727 | 915,728 | A quick question about keypress and jQuery | <p><code>$(document).keydown(function(e) {</code></p>
<p>Well, that's my code - I was wondering if it is possible to have something like:</p>
<p><code>$(document).not('#pinkElephant').keydown(function(e) {</code></p>
<p>(Except, that doesn't work...)</p>
<p>Any Ideas?</p>
<p>Thanks very much!</p>
<p>p.s. All that... | javascript jquery | [3, 5] |
847,190 | 847,191 | Can I use jQuery or javascript to make an <Img> behave like a link without the <a> based on class? | <p>I have a large number of images of the same class "linkImg" and I would like them to behave as links without adding tags.</p>
<p>What I'm tryng is something like this:</p>
<pre><code><script type="text/javascript">
$(function()
{
$('.linkImg').click( function( event )
{
... | javascript jquery | [3, 5] |
138,902 | 138,903 | The background color I'm setting in main.xml isn't showing when the app runs | <p>I'm setting a background color in main.xml.</p>
<p>When I preview the layout in Eclipse, the background color shows up correctly, but when the app runs on my device, the background color is default black. It seems none of my changes in main.xml are reflected when the app runs.</p>
<p>Here is my main.xml file</p>
... | java android | [1, 4] |
72,898 | 72,899 | how to access asp.net checkbox control in repeater for update panel trigger? | <p>I am using an update panel. There are lots of checkbox in repeater and I want to use an update panel trigger but I can't access the checkbox control. How can I access it?</p>
<pre><code><asp:UpdatePanel ID="up" runat="server">
<ContentTemplate>
</ContentTemplate>
<Triggers>
... | c# asp.net | [0, 9] |
4,273,249 | 4,273,250 | Weird issue on IE (IE9 and lower) with JavaScript (jQuery) | <p>I am experiencing a weird problem on IE (IE 9 and lower).</p>
<p>I have a form having a select and a radio. When anyone changes anything in the select or radio, it calculates the total price.</p>
<p>Here is the code: <a href="http://jsfiddle.net/Debiprasad/DLQ82/8/" rel="nofollow">http://jsfiddle.net/Debiprasad/DL... | javascript jquery | [3, 5] |
2,090,624 | 2,090,625 | How to declare an custom object's instance into array in javascript or jQuery? | <p>I have some declare syntax problem here:</p>
<p>Say I have two object, one is call List and another is called Car. They have following interface:</p>
<pre><code>function List()
{
.....some variables
//bug point
this.car = new Car();
}
function Car()
{
this.make="";
this.year="";
...
}
</cod... | javascript jquery | [3, 5] |
829,782 | 829,783 | asp.net,c#.net Read Only Field | <p>I have a textbox.Texbox is readonly. And on Page_Load the Texbox automaticlly displayed
with a value from the data base.i have a 'if' loop for check the text box value is null
or not.But i cant retrive the textbox value.What may be the reason for that?
my web page code is</p>
<pre><code><asp:TextBox ID = "text1"... | c# asp.net | [0, 9] |
839,127 | 839,128 | Convert string "04/09/2013" MM/DD/YYY to Date Format in JavaScript | <p>I want to convert "04/09/2013" to date so I can compare start date and end date like, if (stardate < enddate) { //do this } else {}. I want to convert it to MM/DD/YYYY format.</p>
| javascript jquery | [3, 5] |
2,720,033 | 2,720,034 | bind dropdownlist according to the header of the gridview | <p>I have a dropdownlist and the gridview and I want to bind the dropdownlist according to the header of the grid view</p>
<p>eg.</p>
<p>If I have a grid view header like</p>
<pre><code> A B C D edit delete
</code></pre>
<p>Then the dropdown should have values like </p>
<pre><code>A
B
C
D
</... | c# asp.net | [0, 9] |
5,769,565 | 5,769,566 | An Image inside a dynamically created div tags | <p>What is required is to dynamically create six div tags using Javascript, that will resize with the width of the window( either computer, iphone,ipad, Blackberry etc). that task has been succesfully achieved. The next task is to place an image in each of the created div tag, <strong>Remember the divs are created dyna... | c# javascript | [0, 3] |
4,711,534 | 4,711,535 | jQuery: how to select every cell in a table except the last in each row? | <p>I want every cell in each row except the last in each row. I tried:</p>
<pre><code>$("table tr td:not(:last)")
</code></pre>
<p>but that seems to have given me every cell except the very last in the table. Not quite what I want.</p>
<p>I'm sure this is simple but I'm still wrapping my head around the selectors.... | javascript jquery | [3, 5] |
1,705,406 | 1,705,407 | How do I get my Android Application to have this part of the user interface? | <p>I want to add this to my user interface, i'm new to Android, so please be kind with the terminology :):
<img src="http://i.stack.imgur.com/mPG7X.png" alt="enter image description here"></p>
<p>How do I make sections for the "SearchBox" and the "Btns"?</p>
<p>Thank you.</p>
| java android | [1, 4] |
581,680 | 581,681 | ASP.NET Call Another Element's DoPostBack Function | <p>I have an ASP.NET control that has an onclick event handler rendered inline on the element. I would like to call that function and have it raise the target control's server side event handler.</p>
<pre><code><asp:CheckBox ID="Foo"
runat="server"
AutoPostBack="true"
Text="Foo" />
<a href="#... | asp.net javascript | [9, 3] |
379,493 | 379,494 | how do i stop a form submit with jQuery | <p>I have this form <a href="http://posnation.com/shop_pos/" rel="nofollow">here</a> and i dont want them to go to the next page without certain selections</p>
<pre><code><form method="post" action="step2/" id="form1">
....
....
....
<input type="submit" class="submit notext" value="Next" />
</code></pre>
... | javascript jquery | [3, 5] |
2,799,799 | 2,799,800 | Dropdownmenu SELECTED value as per value return fromDB | <p>All i am trying to do is to set the selected value of drop down menu according to the particular value returned from the database</p>
<p>like if person saved his gender as 'Male' and he wants to update his profile then the selected option shown on the Gender's dropdown llist should be
shown as Male
cause if this d... | php javascript | [2, 3] |
3,507,351 | 3,507,352 | Call a function on DOM ready from outside <head>? | <p>In jQuery you can wrap all your code in <code>$(function() { ... });</code> and have it fire when the DOM is ready, but what if you want to put that in the middle of the page somewhere? Isn't it possible that the DOM ready event will fire before it processes that chunk of code and it'll get missed? Is there a way to... | javascript jquery | [3, 5] |
5,692,738 | 5,692,739 | How do I do os.getpid() in C++? | <p>newb here. I am trying to make a c++ program that will read from a named pipe created by python. My problem is, the named pipe created by python uses os.getpid() as part of the pipe name. when i try calling the pipe from c++, i use getpid(). i am not getting the same value from c++. is there a method equivalent in c... | c++ python | [6, 7] |
4,518,919 | 4,518,920 | Get class input with closest | <p>I want to get class <code>.mGMZs</code> in input <code>name=age</code> with <code>.closest</code>, I try it in following demo but i doesn't work as expected, how can I fix it?</p>
<pre><code><div class="age">
<div class="column">
<input name="age[0][]" class="mGMZs" placeholder="Age(Getin... | javascript jquery | [3, 5] |
2,955,895 | 2,955,896 | How to get the values of a cell from a datagridview by using hyperlinks? in c# using asp.net | <p>I am new to asp.net.
I need to use a datagridview with hyperlinks for the frist column.
when clicked on any of the cell in that first column, details of the entire row should be available in the textboxes.</p>
<p>Thanks in advance :)</p>
<p>The Html code for the gridview is</p>
<p>
<pre><code> onselectedi... | c# asp.net | [0, 9] |
4,325,856 | 4,325,857 | Using jquery, what is the simplest function to post some json data and process a returned json response? | <p>When users click on an element in my webpage, I would like to call a javascript function that reads the values of a few text boxes on the page, wraps their contents as json where the keys are the ids for the text boxes and the values are the contents of each text box, and then posts the resulting json to a url. </p>... | javascript jquery | [3, 5] |
5,949,117 | 5,949,118 | How to use Spinner to Save selection to shared preference | <p>I have a spinner view called <code>Spinner_Gender</code>, I made array, array adapter and made <code>onItemSelectedListener</code>. I want to save the selected item position which is integer to shared preference, I tried using a string with Editor and putInt, it saved well. But when reloading the saved data to the... | java android | [1, 4] |
4,892,470 | 4,892,471 | ASP.NET drop down list filtered by JavaScript + button postback error | <p>I have an asp.net drop down list that has a number of items, users are allowed to type some text into an asp.net textbox and javascript will filter the data in the drop down list. This all works perfectly until the user enters text that matches no item. When this occurs I create a new option in javascript with "no X... | asp.net javascript | [9, 3] |
4,329,172 | 4,329,173 | Help me with my selector, the ID is dynamically changing every page load | <p>I want to scan a website using jQuery, but the ID is constantly changing, but there's a permanent pattern for the ID that I'm searching for:</p>
<pre><code>app7019261521_the_coinb4678bc2
app7019261521_the_coind42fgr23
app7019261521_the_coing0992gvb
app7019261521_the_coin12e5d0aa
</code></pre>
<p>The IDs always sta... | javascript jquery | [3, 5] |
3,256,427 | 3,256,428 | JQuery $(document).ready() and document.write() | <p>Firstly, is there a way to use document.write() inside of JQuery's $(document).ready() method? If there is, please clue me in because that will resolve my issue.</p>
<p>Otherwise, I have someone's code that I'm supposed to make work with mine. The catch is that I am not allowed to alter his code in any way. The par... | javascript jquery | [3, 5] |
3,083,850 | 3,083,851 | How do you add the values from input fields and update another field with the result in jQuery? | <p>Preamble: I'm more of a PHP/MySQL guy, just starting to dabble in javascript/jQuery, so please excuse this dumb newbie question. Couldn't figure it out from the Docs.</p>
<p>I have a form without a submit button. The goal is to allow the user to input values into several form fields and use jQuery to total them up ... | javascript jquery | [3, 5] |
5,548,321 | 5,548,322 | Button On Click event not firing | <p>the on click event works in other pages though.</p>
<p>here's the header of the page i'm trying to get it to work:</p>
<pre><code><%@ Page Title="Report" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Report.aspx.cs" Inherits="Report" %>
<%@ PreviousPageType Virtual... | c# asp.net | [0, 9] |
5,871,078 | 5,871,079 | Can't create the sum of two values (2+2 isn*t 4 but 22)? | <p>sorry if this is a noob question, but well, I'm a noob.
I want to get the sum of the values of several text field into another text field. My code looks like this:</p>
<pre><code>$('.button').mouseup(function() {
var sum = $("#field1").val()+$("#field2").val();
$("#result").val(sum);
});
</code></pre>
<p>... | javascript jquery | [3, 5] |
4,647,335 | 4,647,336 | C++ and java frameworks for augmented reality | <p>anyone could help me about this one? I think it would be nice to be my thesis on my next year of college. I would like to develop a desktop application not a mobile application. I want to develop it in a linux platform. </p>
| java c++ | [1, 6] |
5,722,111 | 5,722,112 | is there any convert reference between java (for android) and C#? | <p>is there any convert reference between java (for android) and C# ?</p>
<p>for example: </p>
<p>in C#: <code>messagebox.show(sum.tostring());</code> ==> in java ???</p>
<p>thanks in advance</p>
| c# android | [0, 4] |
373,056 | 373,057 | jRecorder not working above 50 seconds | <p>any of you know why jRecorder does not work above 50 seconds. the file uploaded to server is 0KB.
if the recording is shorter, it works perfectly.</p>
<p>Thanks in advance. </p>
| php javascript jquery | [2, 3, 5] |
2,812,463 | 2,812,464 | android: creating a textfield display on the same activity with a ListActivity | <p>I have an activity that pulls a String Array from xml and displays a ListActivity (the class extends ListActivity) and I'd like to know if it is possible to also display a textfield or textView below the list?</p>
<p>If so, what method should I research to do this? Have code samples?</p>
<p>Thanks!</p>
<p>CODE:</... | java android | [1, 4] |
1,284,424 | 1,284,425 | Android multitasking problem | <p>I have an android application which main view consists of a tab-bar with three tabs in it.</p>
<p>When developing and running the application on the device through adb I get the following behavior:</p>
<ul>
<li>When clicking the phone button "Home screen" and relaunching the application it seems as the application... | java android | [1, 4] |
2,813,925 | 2,813,926 | android : How to know about a new process start in device? | <p>I am writing a program which respond when a new process got start.</p>
<pre><code>private final BroadcastReceiver mBatInfoReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context arg0, Intent intent) {
// what to write here
}
};
</code></pre>
<p>I do no... | java android | [1, 4] |
1,899,416 | 1,899,417 | How to pass msg_id into jquery modal form? | <p>I have a following data where I am showing data from database. When i click Comment a dialog appear, there i need to show data in modal from db. but for getting data from db i need msg_id in modal form.</p>
<pre><code><?php
$msg_id = $data['message_id'];
?>
<a data-toggle="modal" href="msg_id=<?php echo... | php jquery | [2, 5] |
4,063,202 | 4,063,203 | Should I filter a Html index with Javascript or do it Server side? | <p>I have an index of titles that I am currently filtering by user entered keywords on the server before sending to HTML. I am wondering if it would be better to send the entire index to the page and have javascript show or hide the items in the list based on the user input. </p>
<p>I am concerned that the server sid... | asp.net javascript | [9, 3] |
4,752,499 | 4,752,500 | dynamically add another item using jquery? | <p>I have item <code><ie:menuitem</code> on the page with <code>id=zz15_Upload</code>. I want add another <code><ie:menuitem</code> after <code></ie:menuitem></code> tag and but change (add) on <code>onMenuClick="window.location = 'Allsame add extra at end of the string &amp;MultipleUpload=1';"</code> ... | jquery asp.net | [5, 9] |
3,925,955 | 3,925,956 | Calling onserverclick from input type:file fails in Internet Explorer | <p>below are the code in my aspx files, i am trying to call onserverclick of hdnBtn from hdnBtn.click()</p>
<p>the code belows work in Firefox and Chrome but not working in IE, any idea why? thx for helping</p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
btnBrowse.Attributes.Add("oncli... | c# asp.net | [0, 9] |
2,263,175 | 2,263,176 | How do I send url parameters via GET method to PHP with JavaScript? | <p>Here's my JS code... </p>
<pre><code>function da(){
var a=document.forms["user"]["age"].value;
if(this.age.value < 18 || this.age.value > 85) {
alert('some text...');
this.age.focus();
return false;
}else{
window.location.href='file.php?&'+a;
}
}
</code><... | php javascript | [2, 3] |
5,834,638 | 5,834,639 | anr broadcast of intent. What is my mistake? | <p>anr broadcast of intent { act=android.provider.Telefony.SMS_RECEIVED cmp=com.site/.SmsReceived {has extras}} in}}</p>
<p>What is my mistake?</p>
<p>Shows the error when it comes to SMS. BroadcastReceiver: connects to sqllite and search number is the same sender SMS.</p>
| java android | [1, 4] |
1,236,793 | 1,236,794 | jqGrid celledit under certain conditions | <p>I want the cells to be in edit mode when a certain condition is true. I'm using cellEdit true and editable in the column but in some occasions the user shouldn't be able to edit some cells of the same column even though the column is editable=true. I need to use cell editing not inline editing.</p>
<p>Any thoughts?... | javascript jquery | [3, 5] |
5,227,136 | 5,227,137 | How do I increase the height of drag and drop area in wdCalendar(JQuery Event Calendar Plugin) | <p>Anybody familiar with <strong>wdCalendar</strong> ,a google look a like event calendar plugin in jquery .
I got this from <a href="http://www.web-delicious.com/jquery-plugins/" rel="nofollow">http://www.web-delicious.com/jquery-plugins/</a>.
I need to increase the drag and drop area of wdcaledar. I installed fresh ... | php jquery | [2, 5] |
546,005 | 546,006 | Alternative to offsetLeft and offsetTop? | <p>I wrote a little canvas application and finally tried to incorporate it into my blog, however now I find that on a mouse click offsetLeft and offsetRight are always 0.</p>
<p>I don't really know why, but how do I get that info back?</p>
<p>In case anyone is not seeing the tags on this post: yes I am using jQuery f... | javascript jquery | [3, 5] |
3,500,909 | 3,500,910 | Array notation or .method() - which is faster? | <p>I came across the array notation in JavaScript, and I wondered which way would be faster or better to write. I think the second version is harder to read, but are there any benefits of it ? Or does somebody use this way of calling the methods? Or is there no difference between those regarding their speed?</p>
<ul>
... | javascript jquery | [3, 5] |
4,287,139 | 4,287,140 | Adding a link using JQuery html() is not click-able on IE6 | <p>I add html to a page using JQuery's html() function. This works great on most browsers except IE6.</p>
<p>I can work round this by adding a click event etc but I want to fix the issue without extra tape!</p>
<p>Any ideas why this doesn't work on IE6?</p>
<pre><code>$('#button_holder').html('<a href="#" onclick... | javascript jquery | [3, 5] |
3,252,715 | 3,252,716 | Get a file given a path to the file | <p>I want to get a file which i saved in a specific directory on my phone.
How can I find and get a ref to it so I can do with it something different like uploading to a server?</p>
<p>Thanks in advance.</p>
<p>Shiran</p>
| java android | [1, 4] |
5,232,775 | 5,232,776 | How can i add two double values without exponential in android | <p>Please help me to solve this. I trying to get value from textview and stored as string. Then it converts to double. While converting up to 7 characters functioning normally but if i try to add more than 7 result is 1.23456789E8. Here is my code</p>
<pre><code>String value = tvInput.getText().toString();
\\tvInput i... | java android | [1, 4] |
5,879,460 | 5,879,461 | How do i remotely force membership users to logout asp.net? | <p>I would like to let the members of the Administrators role force any user to logout without interaction.</p>
<p>Let us say, I would like to get a list of all online users in a gridView, then by selecting one of the users, the user will be logged out.</p>
<p>What do I write in the selection button click in order t... | c# asp.net | [0, 9] |
4,315,882 | 4,315,883 | provide software as a service just like google docs | <p>I want to view file on my client machine through web browser which is uploaded on server...without client having that file and software to open it...in short to give software as a serrvice to my clients just like google docs.I have done uploading of file to server..not getting further part of viewing my file on bro... | c# asp.net | [0, 9] |
505,639 | 505,640 | jQuery Validation on check box click disable TextBox? | <p>Hi I am trying to get this JavaScript work for me.</p>
<p>Can any one help me with this.</p>
<p>When user clicks the Check box the next text box should disable,
if unchecked then enable.</p>
<p>selectors are working fine when I debug scrip in IE9 developer tool.</p>
<p>function is running fine as needed.</p>
<p... | javascript jquery | [3, 5] |
5,003,277 | 5,003,278 | What is the java equivalent to javascript's String.fromCharCode? | <p>What it the java equivalent of javascript's:</p>
<pre><code>String.fromCharCode(n1, n2, ..., nX)
</code></pre>
<p><a href="http://www.w3schools.com/jsref/jsref_fromCharCode.asp" rel="nofollow">http://www.w3schools.com/jsref/jsref_fromCharCode.asp</a></p>
| java javascript | [1, 3] |
4,527,636 | 4,527,637 | ajax "busy" indicator but only for longer requests | <p>Is it possible to specify time after which I can show busy indicator?</p>
<p>My code for busy indicator is quite simple:</p>
<pre><code>jQuery.ajaxSetup( {
beforeSend:function ()
{
jQuery( "#busy-indicator" ).show();
}, complete:function ()
{
jQuery( "#busy-indicator" ).hide();
... | javascript jquery | [3, 5] |
4,141,907 | 4,141,908 | Ignoring overflow:hidden elements in jQuery | <p>I'm using jQuery to calculate highlight masks for DOM elements for a webapp with in-page editing. Since elements can change dimensions, the mask is calculated dynamically on hover.</p>
<p>One of the elements is an image scroller, so has an overflow:hidden with images inside an extra wide div. The problem i'm havi... | javascript jquery | [3, 5] |
458,840 | 458,841 | Similar to Pass in Python for C# | <p>In python we can .. </p>
<pre><code>a = 5
if a == 5:
pass #Do Nothing
else:
print "Hello World"
</code></pre>
<p>I wonder if it a similar way to do this in C#</p>
| c# python | [0, 7] |
3,780,825 | 3,780,826 | Save a MotionEvent for latter processing | <p>I'm starting with a 2D game.</p>
<p>I followed the hints of the book "Beginning Android 4 Games Development", there the autor process each MotionEvent,transform the touch from the screen coordinates to the game coordinates, create its own "TouchEvent" and store it in a pool for being processed with the next UI refr... | java android | [1, 4] |
5,681,029 | 5,681,030 | How to pass parameters to the flyout of windows 7 gadget? | <p>This is my code i want to pass parameters to the flyout function but it doesnt work, i remove parameters it work . is this code true? </p>
<pre><code>$(document).ready(function() {
var now = new Date();
$.ajax({
type: "GET",
url: 'http://sarafandnet.com/sites.xml',
dataType: "xml",... | javascript jquery | [3, 5] |
876,384 | 876,385 | Asp.net - Do changes to session objects persist? | <p>I'm using the session to hold a custom object UserSession and I access the session like this:</p>
<pre><code>UserSession TheSession = HttpContext.Current.Session["UserSession"] as UserSession;
</code></pre>
<p>Then, in my code, I modify a property of TheSession like this</p>
<pre><code>TheSession.Prop1 = some new... | c# asp.net | [0, 9] |
5,478,470 | 5,478,471 | How to get $(this) selected option in jQuery? | <p>The following code works:</p>
<pre><code>$("#select-id").change(function(){
var cur_value = $('#select-id option:selected').text();
. . .
});
</code></pre>
<p>How to refactor the second line to:</p>
<pre><code>var cur_value = $(this).***option-selected***.text();
</code></pre>
<p>What do you use for <code>**... | javascript jquery | [3, 5] |
2,589,668 | 2,589,669 | jquery get object value | <p>How do I get get the value <code>url</code> from this string:</p>
<pre><code>[{
"url": "https://www.filepicker.io/api/file/WGS4Wmkk",
"filename": "4827889.jpg",
"mimetype": "image/jpeg",
"size": 53113,
"key": "be7BxONVHe_48278891840.jpg",
"isWriteable": false
}]
</code></pre>
<p>With jquery... | javascript jquery | [3, 5] |
5,115,513 | 5,115,514 | Javascript comparison help | <p>I am having trouble with this statement and I was hoping I could get some help. Essentially, if <code>edweek</code> and <code>edevenings</code> (which are checkboxes) are not equal then I want to push to my array. The problem I am having is that I can get one of the values to be not equal, but when I add the secon... | javascript jquery | [3, 5] |
5,684,721 | 5,684,722 | How to use a variable's contents to declare another variable in javascript? | <p>I have a problem that I hope to use one variable's contents as another variables name in javascript. In this case, I do not know what is the contents in that variable, I only know it is a text type and I hope the variable I need to declare will use that text as its name.</p>
<p>Anyone could kindly give me some sugg... | javascript jquery | [3, 5] |
4,297,670 | 4,297,671 | On MultiThreading on the Android platform | <p><code>Multithreading on Android</code> is to some extent an easy task due to the various possibilities available for us.</p>
<p>However it would be nice to understand the difference between the approaches.</p>
<p><strong>What is the best way to multitask and based on what preferences is it the "best"?</strong></p>... | java android | [1, 4] |
3,760,740 | 3,760,741 | set div position to fixed after scrolling 100px? | <p>I tried to use the following function in order to set the div's position to 100 px from top after scrolling 100 px.</p>
<pre><code><script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(window).scroll(function(){
$("#header").css("top",Math.max(0,100-... | javascript jquery | [3, 5] |
5,791,501 | 5,791,502 | Compare text input's value against default value | <p>For a text input defined as:</p>
<pre><code><input type="text" name="Email0" id="Email0" value="1st Email" /><br />
</code></pre>
<p>If the user changes the value of that text box I simply pass it along with the form submit...if they _haven't changed it - i need to pass a value of 'null'.</p>
<pre><co... | javascript jquery | [3, 5] |
2,181,213 | 2,181,214 | Unable to create Android Virtual Device | <p><img src="http://i.stack.imgur.com/T5DP4.jpg" alt="Ok Button not clickable"></p>
<p>Hi, for some reason, the OK button is not clickable when I try to create an AVD. Does anyone know what I'm doing wrong?</p>
<p>Thanks. </p>
| java android | [1, 4] |
562,570 | 562,571 | how to add tipbox when mouse hover on the text | <p><a href="http://bowser.effectgames.com/~jhuckaby/zeroclipboard/multiple.html" rel="nofollow">http://bowser.effectgames.com/~jhuckaby/zeroclipboard/multiple.html</a></p>
<p>is there a way to add a tipbox when the mouse hover on the copied text.the tip box say"the text has been copied" thank you.</p>
<p>HTML:code</... | javascript jquery | [3, 5] |
6,010,620 | 6,010,621 | Switch divs off/on | <p>Once a div is offed can it be onned?</p>
<p>FIRST,</p>
<pre><code> $("#num-one").off();
$("#num-two").off();
$("#num-three").off();
</code></pre>
<p>THEN LATER ON,</p>
<pre><code> $("#num-one").on();
$("#num-two").on();
$("#num-three").on();
</code></pre>
<p>Because... | javascript jquery | [3, 5] |
3,574,957 | 3,574,958 | How to get URL from GridView using javascript? | <pre><code><asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="ID" DataSourceID="SqlDataSourceVideo" >
<Columns>
<asp:BoundField DataField="VideoUrl" HeaderText="VideoUrl"
SortExpression="VideoUrl" />
<asp:BoundField DataField=... | c# javascript asp.net | [0, 3, 9] |
306,753 | 306,754 | How to send values in array format from android application to non web based server and retrive it? | <p>I am working on a cloud computing based android project where front end is android and back end java. At front end I have to enter Add Destinations list and Add activities list. This I want to send in the form of destination array and activity array to a non web based server. I too don't have much idea about it. All... | java android | [1, 4] |
1,288,097 | 1,288,098 | Display a text field with single quotes | <p>I'm working on an application that requires a text field to fade in with the value being loaded by AJAX. (I'm doing this all with jQuery), here's the code:</p>
<pre><code>$("div#p"+eId+"_content").html("<input class='editPost' type='text' value='"
+ oldCont
... | javascript jquery | [3, 5] |
3,501,008 | 3,501,009 | Using the HTML5 boiler plate I would like to know how I could place all my scripts in the plug-ins.js and scripts.js files? | <p>This is a demo files of the script I wish to place in these files in order to use the build script that comes with the HTML5 boiler plate. <a href="http://epecho.com/tst/index.html" rel="nofollow">http://epecho.com/tst/index.html</a></p>
| javascript jquery | [3, 5] |
1,870,652 | 1,870,653 | Javascript checking radiobuttons | <p>I got this code</p>
<pre><code> <?php foreach($this->question as $question): ?>
<div class="question">
<?php echo $question['question'] ?> </div>
<?php if($this->activeEdition["id"]!=20) { ?>
<div class="answers">
<?php
$i = 1;
foreach($que... | php javascript | [2, 3] |
5,394,842 | 5,394,843 | Passing Looped Array Values From PHP to JavaScript & JQuery | <p>I am trying to make a search box in my web application, and I used ajax post to make a request to my server. My question is:</p>
<p>Is it possible to send looped array values from PHP to my JavaScript?
I want to get all of the results from my server.</p>
<p>CLIENT SIDE: Ajax POST request</p>
<pre><code><script... | php jquery | [2, 5] |
153,784 | 153,785 | Simple Website (Apache/PHP/MySQL + JavaScript) | <p>I've been asked to create a fairly straightforward website for a friend. Essentially a user will log in, fill in a set of information, and submit it. This data will then need to written to a database (and read from/presented at a future point).</p>
<p>I'm not really a web developer (I do mostly Java/C++), but about... | php javascript | [2, 3] |
1,248,184 | 1,248,185 | jQuery : how to find the coordinates of center of a div | <p>I want to get the coordinates of center of a divand position another element based on the center of this div. The div is actually movable on the screen ?
Any ideas?</p>
| javascript jquery | [3, 5] |
2,699,355 | 2,699,356 | jquery add <thead> and add <tbody> | <p>How do I add <code><thead></code> and <code><tbody></code> this using jquery?</p>
<p>the problem is my table has 1 or 2 th rows?</p>
<pre><code>$('#myTable tr:has(th)').wrap('<thead></thead>');
</code></pre>
<hr>
<pre><code><table id="myTable">
<tr><th>1</th><t... | javascript jquery | [3, 5] |
3,882,990 | 3,882,991 | Facebook link inspector | <p>I'm building a website and am looking for a way to implement a certain feature that Facebook has. The feature that am looking for is the link inspector. I am not sure that is what it is called, or what its called for that matter. It's best I give you an example so you know exactly what I am looking for.</p>
<p>When... | php javascript | [2, 3] |
5,438,605 | 5,438,606 | How do I get the value of an element by id | <p>I'm using JavaScript and JQuery and when I select a certain page in my application, an id within the content div named myId shows the string "No results found". This means that when I select the page, the search which is included on every page, executes. If there are records to show, I get these records. If not, the... | javascript jquery | [3, 5] |
2,926,072 | 2,926,073 | using jquery to sum the text box value in the child repeater control and show the total in the label in footer | <p>I am trying this code for in jquery to sum the text box value in the child repeater control and show the total in the label in footer. I get <code>null is null or not an object</code> error.</p>
<pre><code>function display(objSecName) {
var objsec = objSecName;
// var lablTotAmount = document.getElementById... | javascript jquery | [3, 5] |
4,287,592 | 4,287,593 | IndexOutOfRange/ System.FormatException in Gridview | <p>I have a gridview with checkbox in my codebehind page. The functionality is that I need to select the records to be deleted using checkbox and click the delete button. I use the below code to do that.. But when I select the last row it does not get deleted. Instead it throws IndexOutOfRange/ System.FormatException .... | c# asp.net | [0, 9] |
3,923,984 | 3,923,985 | Need help with some kind of collision detection via jQuery | <p>i am working on a calendar interaction module. the calendar shows days reserved. a reservation interval is 7 days. i have set up via javascript that hovering a day adds a class and auto-hovers 3 days before and 3 days after this day too to visualize the 7-day-interval setting that class there too. now i stuck with t... | javascript jquery | [3, 5] |
669,626 | 669,627 | Fading colors with jquery? | <p>I have a regular color change using jquery, but I'd like to have it so it has a smooth color change. At the moment, the code changes the color of a link on hover and then removes it when the mouse is removes. I have seen one tutorial but it doesn't explain it and it does not look like my current code. This is what i... | javascript jquery | [3, 5] |
2,424,021 | 2,424,022 | How to access a string variable outside | <pre><code> public void Button1_Click(object sender, EventArgs e)
{
String a = DropDownList1.SelectedItem.Value;
String b = DropDownList3.SelectedItem.Value.PadLeft(3, '0');
String c = TextBox1.Text.PadLeft(5, '0').ToString();
String d = TextBox2.Text.ToString();
String dig... | c# asp.net | [0, 9] |
3,544,603 | 3,544,604 | form validation using javascript in changing input tags | <p>I need to validate a form using JavaScript. The form keep changes since I am using data from a field name table to print each field (like name, address, phone no.). I'm using a loop to print the label for field and corresponding text input tag. (eg. name : textbox to enter name, phone no : textbox to enter phone no.... | php javascript | [2, 3] |
5,786,325 | 5,786,326 | How can I scale my font with different types of screen? | <p>I have made an Android application, but it must work on different types of screen, and I have done that too. But it is 1 thing - for creating scaling screen I use layout_weight and dp instead px. But how can I scale my fonts in .xml files? Thank you. </p>
| java android | [1, 4] |
939,490 | 939,491 | work with checkbox.? | <p>i want usually when the user manually checks all the checkboxes, the checkall checkbox should become checked, and when user unchecks one box so that "all" aren't checked, the checkall box should become unchecked. how is it in my code?<p>
<strong>EXAMPLE:</strong> <a href="http://jsfiddle.net/cQYVE/5/" rel="nofollow"... | javascript jquery | [3, 5] |
1,770,448 | 1,770,449 | How to intercept HTTP requests made by a 3rd party library on Android? | <p>For my project I have to use a 3rd party Java library which makes some HTTP requests to a well known server. I need to add my own header to those requests and wonder how I can realize it?</p>
<p>An HttpRequestInterceptor seems to be the answer, but how can I 'register' this one globally, so that the 3rd party libra... | java android | [1, 4] |
4,990,916 | 4,990,917 | Code Translation: ASP.NET Server.Transfer in PHP | <p>How would I do this in PHP?</p>
<pre><code>Server.Transfer("/index.aspx")
</code></pre>
<p>(add ';' for C#)</p>
<p><strong>EDIT:</strong></p>
<p>It is important to have the URL remain the same as before; you know, for Google. In my situation, we have a bunch of .html files that we want to transfer and it is imp... | php asp.net | [2, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.