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 |
|---|---|---|---|---|---|
3,663,972 | 3,663,973 | Scroll on document after jQuery slide scroll | <p>I have a 300px height container in which I used a custom scroll made with jQuery slide.
It all works perfect except when I reach the end of the scrolling area (which is 300px) the page doesn't scroll anymore until I move the mouse off that container.</p>
<p>Is there a way to make the document scroll after jQuery sl... | javascript jquery | [3, 5] |
2,010,975 | 2,010,976 | use aspx page and web.config with a new domain | <p>I used a new domain. When I set only html pages than site running correct.
But when I use web.config and aspx page then site give an error. </p>
<p>Error is : HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.</p>
| c# asp.net | [0, 9] |
360,074 | 360,075 | How would I move code to a different class? | <p>In the <a href="http://code.google.com/p/libgdx/wiki/SimpleApp" rel="nofollow">SimpleApp</a> tutorial, the author puts all of his code inside one class file. Causing the rain and the bucket to be within it. </p>
<p>I tried just taking the code and putting it into another class but then I would have duplicate meth... | java android | [1, 4] |
5,682,034 | 5,682,035 | Why do we love using i? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://programmers.stackexchange.com/questions/86904/why-do-most-of-us-use-i-as-a-loop-counter-variable">Why do most of us use 'i' as a loop counter variable?</a> </p>
</blockquote>
<p>Maybe this questions seems to be extreamly stupid but... | c# java c++ | [0, 1, 6] |
4,108,479 | 4,108,480 | Html input value in server side code. Asp.Net | <pre><code><asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
<script type="text/javascript">
$(function () {
$("#slider-range").slider({
range: true,
min: 0,
max: 100,
values: [0, 75],
... | c# javascript jquery asp.net | [0, 3, 5, 9] |
1,016,578 | 1,016,579 | jquery grid bind to sql server throuh page.aspx.vb | <p>I am trying to bind jquery grid to sqldata through .aspx page but i cant</p>
<p>Iam having one jquery grid and one jquery chart so i have to bind the grid and chart to sql server
using asp.net and vb</p>
<p>Alredy im get the data in aspx.vb page and the data in datatable </p>
<p>so frnds help me how to bind that... | jquery asp.net | [5, 9] |
1,680,451 | 1,680,452 | validation of fields in this situation | <pre><code><div id="default-box">
<span class="add"><input type="text" class="name" /><input type="text" class="email"/></span>
<span class="add"><input type="text" class="name" /><input type="text" class="email"/></span>
<span class="add"><in... | javascript jquery | [3, 5] |
2,785,088 | 2,785,089 | Invoking a pop-up 'confirm' message box in ASP.NET | <p>I know how to this when a button is clicked. For example:</p>
<pre><code>imgBtnDelete.Attributes.Add("onclick", "return confirm('Please confirm you want to delete the letter')")
</code></pre>
<p>My question is:</p>
<p>Say I have a piece of code-behind not related to clicking,calculating the value of a boolean, an... | c# asp.net | [0, 9] |
979,925 | 979,926 | setting display property in the code behind | <p>How can i set the display property to block in the code behind?</p>
<pre><code><asp:Panel ID="pnlHedgingTypeI" Style="display:none" runat="server">
pnl.Attributes.Add("display", "block");
</code></pre>
<p>is not helping me ..Could you please help me to resolve this?</p>
| c# asp.net | [0, 9] |
3,351,874 | 3,351,875 | Visible window height instead of $(window).height; | <p>Is there any way to get the visible height of the whole page from inside an iframe , $(window).height() gives me iframes height ?</p>
<p>Thank you in advance.</p>
| javascript jquery | [3, 5] |
3,134,747 | 3,134,748 | Rounded corners AND shadow applied to one div? | <p>How? Any suggestions besides CSS? </p>
<p>I have tried JQuery (dropCurves, shadow, shadedborder, corner osv).</p>
| javascript jquery | [3, 5] |
27,509 | 27,510 | How can i have Response.Redirect() work from MasterPage? | <p>I have a problem: when i call a Response.Redirect() from the MasterPage it doesn't work.
Well, debugging i can see that until the Pre_Render() method the target page is loaded, but then is rendered the previous page.</p>
<p>Here's some code to better explain:</p>
<p>(from MasterPageMain.master.cs)</p>
<pre><code>... | c# asp.net | [0, 9] |
2,209,732 | 2,209,733 | Applying the DRY principle to this jQuery code | <p>I have this jQuery code:</p>
<pre><code>var thumb = $($('#slider').children('.ui-slider-handle'));
setLabelPosition();
$('#slider').bind('slide', function (event, ui) {
$('#boksTimer').html((((ui.value) / 31) * 60).toFixed(0) + ' min pr. dag');
setLabelPosition();
});
function setLabelPosit... | javascript jquery | [3, 5] |
2,498,467 | 2,498,468 | How to change li position using Jquery | <pre><code><ul>
<li id="1">
<li id="2">
<li id="3">
<li id="4">
<li id="5">
<li id="6">
<li id="7">
</ul>
</code></pre>
<p>i want to make a function that foreach time the function is called the first li at the top will be the last one so the first example will look... | javascript jquery | [3, 5] |
5,857,243 | 5,857,244 | Why does my dynamic form submit not use the jQuery-replaced button label value? | <pre><code><button class="gocrazy" label="1"/>
<button class="gocrazy" label="2"/>
<button class="gocrazy" label="3"/>
<form id="crazyform" method="POST" action="/crazyform">
<input type="hidden" id="crazyreplace" value="REPLACE WITH BUTTON LABEL ON CLICK">
</form>
$(".gocrazy").bu... | javascript jquery | [3, 5] |
4,848,164 | 4,848,165 | QueryString containing \ coming through with \\ | <p>I'm have a page which I sent a parameter through the query string.</p>
<p>If I'm retrieving it with Request.QueryString["Format"] I'm having troubles with the type 'CD\DVD'. It's being returned as 'CD\\DVD'. It's important I get this as the right string.</p>
<p>How do I avoid the extra backslash? Or even get rid o... | c# asp.net | [0, 9] |
1,918,306 | 1,918,307 | Create audio tag in html4 issue | <p>I am trying to create audio tag in html4.</p>
<p>I have</p>
<pre><code>var audioPlayer=document.createElement('audio');
var audioSource=document.createElement('source');
audioSource.src=audioFileName;
audioSource.type="type='audio/mp3'";
audioPlayer.appendChild(audioSource);
audioPlayer.width=32... | javascript jquery | [3, 5] |
778,153 | 778,154 | Run jQuery after another jQuery script | <p>Im using <code>curl</code> to fetch the HTML from anothe web page and display on one of my pages:</p>
<pre><code>$("document").ready(function() {
$("#content").load("curl.php .auction_list_closed");
});
</code></pre>
<p>Once the content is returned I want to have another script run. How can I run another lin... | javascript jquery | [3, 5] |
79,756 | 79,757 | What is this pattern in javaScript and where can I read more about it | <p>I have codes similar to the following:</p>
<pre><code> (function(MyHelper, $, undefined){
var selectedClass = "selected";
MyHelper.setImageSelector = function(selector) {
var container = $(selector);
setSelected(container, container.find("input:radio:checked"));
container.find("input:radio").hide().c... | javascript jquery | [3, 5] |
774,337 | 774,338 | cannot read all the lines from file in java | <p>The file looks like this:</p>
<pre><code>14.809034;56.876646;Vaxjo;
15.809035;57.906646;Vaxjo2;
16.809035;58.906646;Vaxjo3;
</code></pre>
<p>and the code is here so far:</p>
<pre><code>InputStream in = getResources().openRawResource(R.raw.cities);
if (in != null) {
InputStreamReader input = new InputStre... | java android | [1, 4] |
2,562,845 | 2,562,846 | How to find the center of the div using jquery | <p>I have a div tag with id container. How can I find its center using either jquery or javascript?</p>
<pre><code><div id="container"></div>
</code></pre>
<p>here is css</p>
<pre><code>#container {
width: 300px;
height: 300px;
border: 1px solid red;
}
</code></pre>
| javascript jquery | [3, 5] |
4,786,591 | 4,786,592 | jquery themeroller - out of the box example does not grey the modal dialog backgound | <p>I'm using the latest jquery themeroller - so far looks great.</p>
<p>Except the modal dialog example and out of the box functionality of modal dialog boxes does not display the transparent curtain behind the current dialog box.</p>
<p>Anyone know how to enable this?</p>
<p>Thanks in advance.</p>
| javascript jquery | [3, 5] |
1,536,081 | 1,536,082 | How to prevent javascript code in text area from executing | <p>How do I prevent user content which contains executable javascript from running when other users view my pages?</p>
<p>For example, if someone added this to a textbox on a page and then saved the form, how would I stop this from being executed when this content is viewed again?:</p>
<pre><code><script type="tex... | javascript jquery | [3, 5] |
603,859 | 603,860 | Android/Java Time difference ISO 8601 with Now | <p>I have an ISO 8601 time string and want to calculate the time difference to now in minutes without using joda time. How is this done?</p>
<p>Thanks</p>
| java android | [1, 4] |
5,683,740 | 5,683,741 | How to check whether a value is a number in javascript or jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/18082/validate-numbers-in-javascript-isnumeric">Validate numbers in JavaScript - IsNumeric()</a> </p>
</blockquote>
<pre><code>var miscCharge = $("#miscCharge").val();
</code></pre>
<p>I want to check misCharge... | javascript jquery | [3, 5] |
3,460,097 | 3,460,098 | Android /java Time Format? | <p>I have time as a "2011-12-03 12:00:19" how to convert it in "Fri 2 December 2011 " ,I know this <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html" rel="nofollow">http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html</a> ,But gives me Error:</p>
<pre><code>... | java android | [1, 4] |
4,246,513 | 4,246,514 | IF IE neglect/hide div | <p>I have page like this</p>
<pre><code><html>
<head>
<div id="container">
Hello, this is NON-IE content.
</div>
</head>
</html>
</code></pre>
<p>What I want is to <strong>Stop</strong> Internet Explorer <strong>[ IE ]</strong> from <strong>loading OR Neglecting</strong> <code>&l... | javascript jquery | [3, 5] |
5,808,753 | 5,808,754 | URL accesses based on login | <p>Hello everyone I have a question that I will describe as good as I can.
I have project that resides in the folder on my server the path for url is like</p>
<p>www.domain.com\project now what I am trying to achieve is to have a \project directory be only accessible if user is login. scenario would be the user opens ... | c# asp.net | [0, 9] |
928,602 | 928,603 | Android / Java Rewriting file makes it empty? | <p>I am writing to file every 10 second in my application, I need to save data regardless of user input. The file writing code goes as follows,</p>
<pre><code>FileOutputStream fos = new FileOutputStream(new File(CurrentContext.getFilesDir() + File.separator + "myFile"));
fos.write(s.toString().getBytes());
fos.flus... | java android | [1, 4] |
4,401,643 | 4,401,644 | change inputType | <p>How can I change the <code>inputType</code> if is verified a particular situation?</p>
<pre><code>if(currentMethod.equals(3))
{
display.setText("");
if(nuovo.equals("")) /**se nell'EditText non ci sta scritto nulla,numero2 = 0**/
{
Toast t = Toast.makeText(Convertitore.this, "Inserire un nume... | java android | [1, 4] |
3,711,886 | 3,711,887 | Specific values as argument for function | <p>I've got a function which has 1 parameter/argument of type String:</p>
<pre><code> public void foo(String myParam)
{
//do something
}
</code></pre>
<p>the possible values of the string are restricted (eg. "test","test2" and "test3"), any different value of myParam would cause an ... | c# asp.net | [0, 9] |
1,946,596 | 1,946,597 | $(this) not selecting element in callback function | <p>I have 2 different set of codes, the only difference is the location of <code>$(this).closest('.organizer_listing').slideUp('fast');</code>. In the first set of code, it works, but I prefer for that line of code to be as in the 2nd set of code inside the callback function, which no longer works - <code>slideUp</code... | javascript jquery | [3, 5] |
1,729,933 | 1,729,934 | 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] |
1,170,335 | 1,170,336 | toggle/vertical slider with multiple Divs | <p>I have 2 div section one div containing video & other has tabular data. I would like to toggle them in horizontal direction i.e from right to left or vice verse. If video display table div is hide, and if table then video div will hide. </p>
<p>This is working fine in vertical direction.</p>
<pre><code><div... | jquery asp.net | [5, 9] |
1,598,574 | 1,598,575 | C#: DataBase Null in RadioButtonList | <p>I would like to have a radiobuttollist were you can select value null.</p>
<p>Something like this:</p>
<pre><code><asp:RadioButtonList ID="rblCD" runat="server" SelectedValue='<%# Bind("tblCD") %>'>
<asp:ListItem Value="RW">RW</asp:ListItem>
<asp:ListItem Value="R"&... | c# asp.net | [0, 9] |
981,193 | 981,194 | How to cancel navigation when user clicks a link? | <p>I'm trying to load some stuff using AJAX when a user clicks a link, but I want the link to actually go somewhere so that the app still works when javascript is disabled. Is there any way to just do something with javascript and cancel navigation when a link is clicked?</p>
<p>What's the best practice? Can that be d... | javascript jquery | [3, 5] |
4,936,383 | 4,936,384 | Is $('.foo').eq(0) faster than $('.foo')? | <p>Suppose I have a huge list of elements with a structure like:</p>
<pre><code><div class="item">
<div class="header"></div>
<div class="body"></div>
<div class="meta"></div>
<div class="..."></div>
...
</div><!-- .item -->
</code><... | javascript jquery | [3, 5] |
266,026 | 266,027 | adding php string to some javascript | <p>I'm trying to add a php string to some javascript:</p>
<pre><code>document.getElementById("button").value = mygetrequest.responseText;
</code></pre>
<p>basically there are a load of buttons on one page. </p>
<p>So i need to add a value at the end of button.
<br>Basically the ID of each row so button<code><? e... | php javascript | [2, 3] |
1,018,995 | 1,018,996 | How to set Progress bar for loading activity with data in android | <p>This is my first class doing Url loading .</p>
<pre><code>public class HelloWebViewClient extends WebViewClient
{
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url)
{
view.loadUrl(url);
return true;
}
}
</code></pre>
<p>This is my Activity Class wh... | java android | [1, 4] |
1,681,312 | 1,681,313 | a button that can only be clicked once, EVER | <p>as the title said
i would like to create a button that says "available" and once any one clicks it it turns to "unavailable" for all future users
any ideas ?</p>
<p>note : its for a school project, nothing fancy or even secured, just trying to prove a point</p>
<p>sorry for being vague for some, all i am trying to... | php javascript | [2, 3] |
3,804,777 | 3,804,778 | GridView onItemClickListener never gets invoked | <p>I have a <code>GridView</code> with custom <code>View</code> in it, which is a <code>Button</code> and a <code>TextView</code>. I defined the <code>setOnItemClickListener</code> but it looks like it never invoked, please see peaces of code below.</p>
<pre><code> gridview = (GridView) findViewById(R.id.main_gridview... | java android | [1, 4] |
4,432,406 | 4,432,407 | How to call multiple js functions on document.ready without putting them jQuery(document).ready(function(){}); | <p>Is there a way to 'bind' multiple functions to jQuery's document.ready function without actually calling them in that method. Basically I don't know which functions I might be calling in document.ready until the page is generated.</p>
| javascript jquery | [3, 5] |
2,627,834 | 2,627,835 | How to check uniq constraint on update/ insert in gridview? | <p>I have a simple gridview and sqldatasource to bind data to gridview , SqlDatabase
I'm trying to set to a column a constraint for unique so If I add new row or update a row and the value already exists It won't update.</p>
<p>For the column Name , I set ->Indexes/keys -> new -> choosed column Name -> Unique key .<... | c# asp.net | [0, 9] |
649,525 | 649,526 | How to call a Javascript function having return value in c# codebehind | <p>I am having a page where i need to <strong>confirm</strong> whether to show updated grid or not</p>
<p>I am calling a javascript function using </p>
<pre><code>ScriptManager.RegisterStartupScript(this, typeof(string), "Error", "confirm('Are u sure');", true);
</code></pre>
<p>What I want to know is how to get the... | c# javascript | [0, 3] |
1,181,835 | 1,181,836 | change DropdownList Datasource Dynamicly | <p>I have a <code>dropDownlist</code> that have tow <code>Datasource</code> with names <code>Datasource1</code>,<code>Datasource2</code>.
when the page_Load accrued the datasource1 is assigned to <code>Dropdownlist</code>. I have a button on page that i want when i clicked on button, Datasource2 assign to <code>Dropdo... | c# asp.net | [0, 9] |
4,858,894 | 4,858,895 | Endless upcoming text using javascript | <p>My task is to create the page with text blocks upcoming endless inside the div block.
Here is my solution:</p>
<pre><code> <script>
var startOffset = 0;
var startOffsetPlus;
var startOffsetMinus;
$(document).ready(function () {
startOffset = $(... | javascript jquery | [3, 5] |
1,256,919 | 1,256,920 | Why does this code get a forceclose error? | <pre><code>public class main extends Activity {
/** Called when the activity is first created. */
EditText username,password1;
Button sub;
String uname,pass;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.m... | java android | [1, 4] |
1,832,967 | 1,832,968 | Using a variable when traversing elements in JQuery | <p>Very quick and hopefully simple question.</p>
<p>I am trying to select a hidden input by value with some predefined variable.</p>
<pre><code>var id = $("#puid").val();
$('input[value=id]').closest('tr').css({'background-color':'red'});
</code></pre>
<p>I thought the above code would have worked, however its not p... | javascript jquery | [3, 5] |
4,198,894 | 4,198,895 | can jquery toggle the original css(style.css) value and the new value(set in the .animate{})? | <p>erm...can jquery toggle the original css(style.css) value and the new value(set in the .animation{})?</p>
<pre><code>$(function() {
$('a.maximize').click(function() {
$($(this).attr('href')).animate({
position: "absolute",
top: 0,
left: 0,
height: '99.5%',
width: ... | javascript jquery | [3, 5] |
4,432,992 | 4,432,993 | What are the most important optimizations in Java code on Android? | <p><br>
I am just starting out programming on Android. </p>
<p>What is the most computationally expensive Java constructs to avoid when programming an Android App? </p>
<p>Of cause every algorithm costs instructions, but what about use of Method calls, Object references, Interfaces, Collections and such? What do I ... | java android | [1, 4] |
485,493 | 485,494 | removing scripts from html data... using javascript | <p>So I have this function to strip out scripts from the page, but some scripts that are many lines long are still showing up. Is there a way to remove all scripts from the page that loads.</p>
<pre><code> function filterData(data){
// filter all the nasties out
// no body tags
data = data.replace(/<?\/body[^>... | javascript jquery | [3, 5] |
5,638,916 | 5,638,917 | How attach html-element to mouse using jQuery? | <p>How do I attach html-element to mouse cursor using jQuery. This should be something like 'draggable', but I want that element clung to the cursor after mouse double-click and to follow the cursor until the left mouse button is pressed.</p>
| javascript jquery | [3, 5] |
2,124,635 | 2,124,636 | Change iframe text to other language | <p>i have an iframe :
<a href="http://www.vantagewire.com/quotes_clients.php?ticker=THG:CA&chscale=1m&stylesheet=http://www.vantagewire.com/_resources/app/general/quotetab_chart_small_hosted.css" rel="nofollow">http://www.vantagewire.com/quotes_clients.php?ticker=THG:CA&chscale=1m&stylesheet=http://www.... | php javascript | [2, 3] |
1,932,298 | 1,932,299 | Creating Java DataInputStream data in Python | <p>I have a Java program that uses a <code>DataInputStream</code> for storing object data. </p>
<p>Example:</p>
<pre><code> DataInputStream tInput = new DataInputStream(getClass().getResourceAsStream(aDirectory + "/ResultItemInfo.dat"));
this._text = tInput.readUTF();
this._image = tInput.readUTF();
this._a... | java python | [1, 7] |
3,142,151 | 3,142,152 | ASP.NET - Sending a PDF to the user | <p>I have a process that creates a PDF. I want these PDF's to be temporary and short lived. I want to be able to perform the following when the user clicks a button:</p>
<pre><code>string CreatePDF()//returns fileName.pdf
PromptUserToDownloadPDF()
DeletePDF(fileName.pdf)
</code></pre>
<p>I want to avoid having to c... | c# asp.net | [0, 9] |
4,942,311 | 4,942,312 | JavaScript: filter() for Objects | <p>ECMAScript 5 has the <code>filter()</code> prototype for <code>Array</code> types, but not <code>Object</code> types, if I understand correctly.</p>
<p>How would I implement a <code>filter()</code> for <code>Object</code>s in JavaScript? </p>
<p>Let's say I have this object:</p>
<pre><code>var foo = {
bar: "Y... | javascript jquery | [3, 5] |
4,451,124 | 4,451,125 | Best Practice: Relative URL | <p>What is the best way/best practice to get a url relative to the current page?</p>
<p>string url = Request.ApplicationPath + "/MyFolder/MyFile.aspx";</p>
<p>or</p>
<p>string url = Page.ResolveURL("~/MyFolder/MyFile.aspx");</p>
<p>I have been using the previous method, but there was a question posted earlier today... | c# asp.net | [0, 9] |
2,227,696 | 2,227,697 | Timer not running more than once | <p>For some reason when I run the below script for the first time, the timer doesn't activate again for a second time, any idea why?</p>
<pre><code> var timer = 0;
$(document).ready(function() {
$('#search').keypress(function() {
if(timer == 0) { $('#sel').html('<iframe src="search.php?p=' + $('#sear... | javascript jquery | [3, 5] |
5,148,146 | 5,148,147 | authenticate to a 3rd party site with jquery? | <p>I have a simple login form that lets users log into my website. Once logged in, there is a 3rd party site that I link which users can access and run searches on (its a database resource that we are partnered with). The problem is in order to access that 3rd party database they first have to log in to THAT site with ... | javascript jquery | [3, 5] |
2,919,199 | 2,919,200 | Loading image from sources other that the gallery | <p>I am working on a slide puzzle and have a piece of code that get an image from the phones gallery, but I would like to use and image I provide that would be stored in either the assets folder or in a drawable folder that will resided in the res folder. Any help is appreciated. here is the method that I need to use t... | java android | [1, 4] |
2,732,667 | 2,732,668 | How can I databind to a string array? | <p>How can I databind a string array (<code>string[]</code>) to a <code>dropdownlist</code>?</p>
<p>Does it implement <code>iEnumerable</code>?</p>
| c# asp.net | [0, 9] |
5,053,573 | 5,053,574 | How to get "fixed" position of an element? | <p>I want to get an element's position relative to the window (fixed position).</p>
<p>Here's what I've got so far:</p>
<pre><code>(function ($) {
$.fn.fixedPosition = function () {
var offset = this.offset();
var $doc = $(document);
return {
'x': offset.left - $doc.scrollLeft(... | javascript jquery | [3, 5] |
2,408,909 | 2,408,910 | jquery get request returning document instead of XML | <p>I have a peice of code that i call inside of $("document).ready() in jquery that tries to open an xml file and parse it. </p>
<pre><code>$.get('cal.xml', function(data){
alert(data);
var xmlDoc = $.parseXML(data);
var $xml = $(xmlDoc);
});
</code></pre>
<p>the alert that pops up is "[object Document]" rather t... | javascript jquery | [3, 5] |
2,187,149 | 2,187,150 | JQUERY: Combining 2 function using OR operator | <p>How would I combine two function with an operator <code>OR ( || )</code>
I would like to combine the 2 ifs statement in the script
<a href="http://jsfiddle.net/andrewvmail/emeYT/7/" rel="nofollow">Here</a> is the fiddle</p>
<p><strong>HTML</strong></p>
<pre><code><form name="formName" method="post" action="#"&g... | javascript jquery | [3, 5] |
967,687 | 967,688 | Calling Method in Android | <p>I am trying to call a method I have written. It compiles except for one line...</p>
<pre><code>public class http extends Activity {
httpMethod(); //will not compile
public void httpMethod(){
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://site/api/");... | java android | [1, 4] |
1,158,951 | 1,158,952 | Content slider like a slideshow | <p>I have almost identical content slider like <a href="http://www.webdeveloperjuice.com/2010/01/12/lightest-jquery-content-slider-ever-made-380-bytes/" rel="nofollow">this one</a>: </p>
<p>How could I make it rotate automatically? I have tried different ways but I cant make it work. I have tried putting a click on t... | javascript jquery | [3, 5] |
2,541,928 | 2,541,929 | Saving file on disk | <p>In Java, while using Glassfish Server, we could only save files relative to our web application root. Thus you cannot directly save file on eg <code>c:\program files\abc.txt</code> whereas with php this is working. Is it valid? One should not be able to refer any location on hard disk outside web application root (u... | java php | [1, 2] |
1,204,845 | 1,204,846 | how to show image proper format? | <p>I retrieve name and image from database that name and image are come in aspx as the requirement but problem is that image show one line only like "[image][image][image][image]"this format but i want 2x2 image </p>
<p>aspx code :</p>
<pre><code><asp:Repeater ID="reapterclient" runat="server" OnItemDataBound="rep... | c# asp.net | [0, 9] |
3,954,437 | 3,954,438 | Difference in $_FILES structure when submitting and using XmlHttpRequest | <p>I'm building a file uploader using the javascript FileAPI and XmlHttpRequest with a fallback to uploading via a hidden iframe. Both uploads are processed with PHP.</p>
<p>I however found an annoying difference in the way the $_FILES array is structured. </p>
<p>When using the iframe fallback, the array will look l... | php javascript | [2, 3] |
5,112,651 | 5,112,652 | android to long text for scrolable view | <p>I have a problem that seems to be very strange. Here is the code;</p>
<pre class="lang-xml prettyprint-override"><code><TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bghome" &... | java android | [1, 4] |
747,249 | 747,250 | Add .00 to an int number using javascript | <p>Is it possible say a person enters an integer value 5 in a <code>Textbox</code> and automaticall a .00 is added in the end say <strong>5.00</strong></p>
<pre><code><asp:TextBox ID="txtAmountTransfer" runat="server" Width="55%" CssClass="right"></asp:TextBox>
</code></pre>
| c# javascript asp.net | [0, 3, 9] |
2,866,294 | 2,866,295 | Javascript regex replace if the matched string length is greater than limit specified | <p>I am using javascript regex to add a html markup for all the urls found like:</p>
<pre><code> var exp = /(((|www\.|(http|https|ftp|news|file)+\:\/\/)[&#95;.a-z0-9-]+\.[a-z0-9\/&#95;:@=.+?,##%&~-]*[^.|\'|\# |!|\(|?|,| |>|<|;|\)]))/ig;
popupText = popupText.replace(exp , "<font color='red'>"... | javascript jquery | [3, 5] |
2,446,300 | 2,446,301 | Maintaining application state in Android | <p>I'm trying to guess why, if I open my application, lock the device and some hours later resume the activity it crashes. I suppose thats why, after some time, Android destroy my app and then tries to resume and im not saving correctly the state of my activities.</p>
<p>How can I force Android to destroy my app as it... | java android | [1, 4] |
2,289,052 | 2,289,053 | Loading content in a PHP file with JQuery | <p>I have the code below loading in the content I have in the test.php file. There's a lot of code in the php file so takes a bit of time to load. When it does load the "load content" text remains. I want to be able to:
- display a loading symbol whilst the page is loading
- hide the "load content" text once the conten... | php javascript jquery | [2, 3, 5] |
4,159,618 | 4,159,619 | timer schedule method exceeds the time | <p>I use the timer schedule method to send location information to the db every 5 min.</p>
<p>Here is the code:</p>
<pre><code>public void onStart(Intent intent, int startId)
{
this.timer.schedule(new Send(), new Date(), TEN_SECONDS*6*5); //ten_seconds = 10000
}
class Send extends TimerTask
{
public void ru... | java android | [1, 4] |
5,613,129 | 5,613,130 | 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,605,366 | 3,605,367 | Is there any overhead to having multiple $(document).ready with jQuery 1.8.1 | <p>I have code like this:</p>
<pre><code>$(document).ready(function () {
$('.accessLink')
.bind('click', accessLinkClick);
$('#logoutLink')
.click(function (e) {
window.location = $(this).attr('data-href')
});
});
</code></pre>
<p>Functionality for each part of my site is... | javascript jquery | [3, 5] |
1,318,328 | 1,318,329 | Need a good JavaScript uploader | <p>I'm trying to upload files directly to Amazon S3. I have tried using <a href="http://www.uploadify.com/">Uploadify</a> and <a href="http://www.plupload.com/">Plupload</a>. Both have their merits. However, I've found both to be incompatible with older browser versions. Particularly IE 7, 8 and 9. I've also tested wit... | javascript jquery | [3, 5] |
3,319,641 | 3,319,642 | Android - Text on Button | <p>I need to show the <strong>text on button's both left & right side</strong>, whenever I touch the left side that should call an intent , and when I touch the right side that should call a separate intent . Is it possible to do like that? Please anyone suggest me.</p>
| java android | [1, 4] |
2,848,962 | 2,848,963 | Execute a javascript function only if session["x"]="ok"; if it is not, not execute! | <p>Well i have 2 aspx
page1 you are going to have amm two buttons or it dontmind but the goal is...</p>
<p>when user press button1 in page1.aspx, session["x"] will be equals to "ok"
if users press button2 in page1.aspx, session["x"] will be eauls to null;</p>
<p>so after press any button user will be redirected to pa... | javascript asp.net | [3, 9] |
2,811,151 | 2,811,152 | javascript/jquery convert utc to local time in short format | <p>So I'm trying to convert a UTC time to the clients local time in short format. I am using the following code:</p>
<pre><code>var date = new Date(call.Timestamp);
date.toLocaleString()
</code></pre>
<p>And I get the output like this on the screen:</p>
<blockquote>
<p>Thu Sep 13 2012 14:33:15 GMT+1000 (AUS Easter... | javascript jquery | [3, 5] |
1,570,335 | 1,570,336 | Moving from PHP to Python | <p>Currently I do all of my web-based programming in PHP, and each day I get more and more anxious to try Python.</p>
<p>Not that I haven't played with it in an interpreter, but I mean really, write a web-based project in Python, and possibly move pretty much exclusively over to Python.</p>
<p>But, I know that Python... | php python | [2, 7] |
3,339,380 | 3,339,381 | Search for immediate selector in jQuery? | <p>I have this function which accepts <code>obj</code> (Jq object) as a parameter </p>
<p>However , in this function , I <strong>only need</strong> <code>obj</code> which is <code>:not(:disabled)</code> and <code>:not([readonly]</code></p>
<p>currently I've managed to do it with : </p>
<pre><code>function CheckReq... | javascript jquery | [3, 5] |
4,581,108 | 4,581,109 | associative arrays as selectors and values in jquery | <p>Is it possible to implement associative arrays as Selectors and Values.</p>
<p>I have an array</p>
<pre><code> var obj = { surgeon:1, asstSurgeon:2, anesthe:3, nurse:4, scrub:5,....... };
</code></pre>
<p>I am able to implement like this.</p>
<pre><code>$("#surgeon").click(function(){
$("$hiddenvariable").v... | javascript jquery | [3, 5] |
352,247 | 352,248 | selecting textViews and getting their values | <p>I am trying to accomplish following things</p>
<p>Suppose I have 5-6 <code>TextViews</code> with values <code>S N A K E</code> </p>
<p>Now, I want to press <code>S</code> textView then slide my finger over <code>N</code> to select it too and then move my way to E. I want to do that so that i can get "<code>SNAKE<... | java android | [1, 4] |
2,593,875 | 2,593,876 | Getting bottom scroll.y when scrolling to the bottom | <p>I'm using a nicescroll a plugin that I use to create scrollbars on divs. </p>
<pre><code>$('#postscroller').niceScroll();
var nice = $("#postscroller").getNiceScroll()[0];
$('#postscroller').bind("scroll",function()
{
if(nice.scrollvaluemax==nice.scroll.y)
{
alert('bottom');
}
alert(nice.scr... | javascript jquery | [3, 5] |
4,213,143 | 4,213,144 | How to set access to file for Un-authenticated user? | <p>I have attached my project's folder structure. I have marked Login.aspx page and Scripts folder with Red color border. I have written required JavaScripts inside Scripts folder.</p>
<p>When the Login.aspx loads, Javascript error is coming. Error is shown below:</p>
<pre><code>Webpage error details
User Agent: Mozi... | javascript asp.net | [3, 9] |
1,972,294 | 1,972,295 | Swapping input field placeholder text with jQuery | <p>I try as following jquery code, but it doesn't work true, how can fix it?</p>
<p><strong>Demo:</strong> <a href="http://jsfiddle.net/pjqcf/" rel="nofollow">http://jsfiddle.net/pjqcf/</a></p>
<pre><code><input type="text" value="Some descriptive text...">
$('input[type=text]').focus(function () {
if ($(... | javascript jquery | [3, 5] |
696,445 | 696,446 | Can jQuery ready() function be used twice for the same element? | <p>I want to use jQuery <code>ready()</code> function for the document element. Here are my scripts:</p>
<p><em>1st page:</em></p>
<pre><code>$(document).ready(function(){
$('form#haberekle').ajaxForm(options);
});
</code></pre>
<p><em>2nd page:</em></p>
<pre><code> $(document).ready(function() {
... | javascript jquery | [3, 5] |
2,085,655 | 2,085,656 | How do I pass parameters to javascript from each page dynamically | <p>The following code provides Remove capability on each of the list page (e.g. sample list page given below), of which only 3 variables (tableId, removeButtonId, headerCheckbox) vary in each page. How do I re-use this script across all pages, instead of defining this in each page. How do I pass parameters to this scri... | javascript jquery | [3, 5] |
2,017,065 | 2,017,066 | jQuery: hide() box when clicking on body but not() on element itself? | <p>I have a <code><a href="#" id="btn">Show Box</a></code> somwhere in my DOM. Additionally I have a <code>div#overlay</code> that is by default set to <code>display:none;</code>.</p>
<pre><code>// Toggle Overlay
$('#btn').click(function(e) {
e.preventDefault();
$('#overlay').toggle();
})
$('body'... | javascript jquery | [3, 5] |
1,880,779 | 1,880,780 | How to detect a MouseUp event outside the window? | <p>I am looking for jQuery solution to detect <code>mouseup</code> outside the window. That is, after the mouse has been <strong>downed</strong> inside the window, dragged outside while still down, and then released outside, is when the event should fire.</p>
<p>I tried <code>document.mouseup = function() {}</code>, i... | javascript jquery | [3, 5] |
591,224 | 591,225 | How to make jQuery functions run in order when a button is pressed? | <p>I have a <code>.click()</code> function that performs certain actions when a button is clicked. I want it to display a loading image, run some "stuff", then delete the loading image when the "stuff" is done. </p>
<p>Example of Javascript code:</p>
<pre><code>$("#button").click(
function(){
shoeLoadingImage();
... | javascript jquery | [3, 5] |
3,179,901 | 3,179,902 | Submit fires twice if I have moved form in the DOM | <p>This works fine alone:</p>
<pre><code> $('#signup').submit(function() {
alert('submit event');
$.ajax({
url: url,
data: data,
success: function(msg) {
$('#mc-response').html(msg);
}
});
... | javascript jquery | [3, 5] |
4,341,658 | 4,341,659 | How do I run different versions of jQuery on the same page? | <p>My company has purchased a product that renders an ASP.NET control on the page. This control uses jQuery 1.2.3 and adds a script tag to the page to reference it. The developers of the control will not support use of the control if it modified in any way (including modification to reference a different version of jQu... | asp.net javascript jquery | [9, 3, 5] |
3,015,933 | 3,015,934 | How to compile Java from C#? | <p>I'm trying to use the following C# code to compile Java using javac:</p>
<pre><code>Process p = new Process();
p.StartInfo.FileName = "javac";
Directory.CreateDirectory(Application.StartupPath + @"/TempJava");
p.StartInfo.Arguments = "-d "Application.StartupPath + @"/TempJava" + files;
p.Start();
</code></pre>
<p>... | c# java | [0, 1] |
1,008,363 | 1,008,364 | How do you handle attaching JavaScript to UserControls in ASP.NET and keep multiple instance isolated? | <p>Lets say you need to attach some JavaScript functionality to an ASP.NET User Control of which there might be multiple instances on any given page. Because JavaScript has shared global state, what techniques can you use to keep the client state and behavior for each instance of a control separate?</p>
| asp.net javascript | [9, 3] |
2,814,518 | 2,814,519 | jQuery: Stopping a periodic ajax call? | <p>I am writing a small jQuery plugin to update a set of Divs with content obtained using Ajax calls. Initially, let's assume we have 4 divs. I am doing something like this:</p>
<pre><code>(function($) {
....
....
//main function
$.fn.jDIV = {
init: function() {
...
...
... | javascript jquery | [3, 5] |
3,635,015 | 3,635,016 | LinkedIn style tagging when adding skills | <p>I was looking online for good javascript tagging libraries. I was reading the following post: <a href="http://stackoverflow.com/questions/519107/jquery-autocomplete-tagging-plug-in-like-stackoverflows-input-tags">jQuery autocomplete tagging plug-in like StackOverflow's input tags?</a></p>
<p>But I'm afraid mine... | javascript jquery | [3, 5] |
4,638,101 | 4,638,102 | return folders from url | <p>I am looking to write a piece of javascript that will do the following:</p>
<p>Look at current url and return any folders in the url ie:</p>
<p><a href="http://localhost/folder1/page.aspx" rel="nofollow">http://localhost/folder1/page.aspx</a> returns -> /folder1/</p>
<p><a href="http://localhost/page.aspx" rel="... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.