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 |
|---|---|---|---|---|---|
755,005 | 755,006 | Find a image in code behind | <p>I would like to use the find control method to find a image on the designer and make it visible, but i keep getting a null</p>
<p>This is my Code:</p>
<pre><code>foreach (ImageShow image in imageList)
{
Image Showimage = (Image)FindControl(image.imageName);
Showimage.Visible = true;
}
</code></pre>
<p>Any... | c# asp.net | [0, 9] |
2,409,648 | 2,409,649 | How to send json data to jQuery.css() | <p>I want to send json formatted data to jQuery.css() function, and i dont know how to do that.
Later on, i will send more properties, this is just example of my problem.</p>
<pre><code>//Sorry, this var x is actually string that i get when i print my json string
var x = {"transform":"rotate(30deg)","-o-transform":"ro... | javascript jquery | [3, 5] |
311,337 | 311,338 | jQuery pseudo selector with variable as selector | <p>I've set a variable equal to a frequently-referenced selector:</p>
<pre><code>var allSteps = $("#makeIntoSlideshowUL > li");
</code></pre>
<p>Additionally, I'm using a custom-defined search function that makes contains (which I'm using to search) case-insensitive</p>
<pre><code>jQuery.expr[':'].Contains = func... | javascript jquery | [3, 5] |
6,026,830 | 6,026,831 | Clear back navigation stack on activity intent | <p>I have a login view at the start of my application. On logging in this view is finished manually (i.e. <code>finish()</code> is called in the code). This is so that the user doesn't have to press the back button past the login page when they want to exit the app.</p>
<p>Now I want to have a <code>logout</code> butt... | java android | [1, 4] |
5,418,435 | 5,418,436 | Mobile Website essentials..? | <p>I have decided i'll have to make a mobile version of my website. so ive tried reading about and come here to confirm and get your approval.</p>
<p>1) I have decided im going to use jquery mobile framework to create it. what are its limitations? according to me...none. educate me.</p>
<p>2) I don't have a smartphon... | php jquery android | [2, 5, 4] |
4,868,040 | 4,868,041 | Doing javascript on an appended HTML item within an accordion | <p>Okay, so I'm populating an accordion with JSON data. The only way I know how to do this is by appending HTML to the div. Here's my code:</p>
<pre><code>$.getJSON('/industry_tree.json', function(data) {
$("#accordion").accordion();
for (i in data) {
acc_html += '<h3><a href="#">'+data[i].... | javascript jquery | [3, 5] |
812,575 | 812,576 | A potencially dangerous Request.FormValue was detected by the client., | <p>I have a aynchronousFileUpload control in a userControl. When I am trying to upload a File I have got an error " A potencially......". Usually when I got this error earlier on an aspx page i made validaterequest=false and then it worked ., but now i got this error with a user control any suggestions ......</p>
<p>T... | c# asp.net | [0, 9] |
5,935,793 | 5,935,794 | why the change event is not called? | <p>When I set the text of a input text with: <code>$('#rif').val('bla bla bla');</code></p>
<p>Why if I add a <code>.change()</code> event on that input text is not called?</p>
| javascript jquery | [3, 5] |
5,592,005 | 5,592,006 | Is there a way to "link" several elements? | <p>Suppose I have 4 visible divs: <br />
- 2 on top <br />
- 2 on the bottom, wrapped in a container <br />
and 1 hidden div.</p>
<p>When a mouse hover over a bottom div it changes its color and changes color of one of the top divs.</p>
<p>When user clicks on a bottom div the hidden div appears and stay... | javascript jquery | [3, 5] |
4,436,434 | 4,436,435 | clone table row, append random or sequential number to ID | <p>So i have this code</p>
<pre><code>$('input.clone').live('click', function(){
//put jquery this context into a var
var $btn = $(this);
//use .closest() to navigate from the buttno to the closest row and clone it
var $clonedRow = $btn.closest('tr').clone();
//append the cloned row to end of the table
... | javascript jquery | [3, 5] |
2,717,760 | 2,717,761 | Use Multiple jQuery and jQuery UI Libraries | <p>Is there a way to use multiple jQuery and jQuery UI Libraries in the same source?</p>
<p>I know about noConflict and using multiple jQuery Libraries with this method, however is it possible to use multiple jQuery UI Libraries?</p>
<p>Essentially I would like to use jQuery 1.2.6 and jQuery UI 1.6 together for a cer... | asp.net jquery | [9, 5] |
5,195,634 | 5,195,635 | loop through table find first td text which have css csstablelisttdselected | <pre><code> <table id="tableWorkList" class="csstablelist" cellspacing="1" cellpadding="1">
<tr><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td class="csstablelisttdselected" style="display: none;">
246
... | javascript jquery | [3, 5] |
5,730,503 | 5,730,504 | Posting Data to another domain thru code-behind of Asp.NET | <p>Since we can't post data to cross domains, I want to post the data to my aspx page and a code-behind code will take the data and submit to cross domain <em>(which is not being operated by me, so I don't have permission to modify source code for jsonp)</em> and also the website to which I pass my post data is also re... | javascript asp.net | [3, 9] |
1,355,499 | 1,355,500 | printwriter in JAVA to pass to python | <p>I have a code in JAVA and i need in python, the code is it:</p>
<pre><code>private static PrintWriter logWriter; //Only one instance to access log file.
PrintWriter.write() manages the lock.
static{
try{
logWriter = new PrintWriter(new FileOutputStream(logTextFileName,true));
}catch(Exception e){
... | java python | [1, 7] |
746,376 | 746,377 | jQuery serialize issue | <p>Making a form submit with jquery ajax and retriving form data with serialize function. But i have a problem with links inside datastring as it converts them into something like this:</p>
<pre><code>url=http%3A%2F%2Fwww.sitename.com
</code></pre>
<p>but i would like to return normal link like</p>
<pre><code>http:/... | php jquery | [2, 5] |
1,167,231 | 1,167,232 | Dynamically add rows to columns | <p>I am adding rows dynamically to a table. The table already has a row consisting of column headers like date, day etc.</p>
<pre><code>for(var i=0; i<=fix;i++){
var cols = 5;
var tr = $('<tr>');
$('<td name=Date"+i+" id=Date_"+i+"></td>').appendTo(tr);
$('<td id=day_"+ i+">"+theday +"</t... | javascript jquery | [3, 5] |
4,981,435 | 4,981,436 | javascript equivalent of jquery code | <p>Can someone help what's the javascript equivalent of below jquery line. </p>
<pre><code>$("#abc option[value='1']").text();
</code></pre>
<p>abc is the id of selectbox</p>
| javascript jquery | [3, 5] |
3,655,267 | 3,655,268 | Learning C# ASAP to get started with ASP.NET? | <p>I have experience writing web apps in Django; scripting in Python; playing with PHP and I understand Object Oriented Programming. I need to get started ASAP with C# in order to start learning and using ASP.NET for a clients project.</p>
<p>Is there a way to get a working knowledge of C# without passing by the over-... | c# asp.net | [0, 9] |
2,376,101 | 2,376,102 | Javascript / Jquery - Multiple on Change (function() | <p>I am kinda new to Jquery / JS and after a little help. I realise there hopefully is a much better way to do this, and any help would be greatly appreciated.</p>
<p>I am building a form that can calculate a total. That is:</p>
<p>'Cost' x '(1 + percent(%))' = 'total cost'</p>
<p>I have it working nicely, though I ... | javascript jquery | [3, 5] |
1,311,778 | 1,311,779 | expiry download links in c# and asp.net | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/4323949/temporary-file-download-link-with-asp-net">Temporary file download link with ASP.NET</a><br>
<a href="http://stackoverflow.com/questions/5703201/create-temporary-link-for-download">Create temporary link f... | c# jquery asp.net | [0, 5, 9] |
4,924,257 | 4,924,258 | how to get text width in pixel javascript or jquery? | <p>I want to get textarea text width. How to get text width in pixel.
I do not want text length. </p>
| javascript jquery | [3, 5] |
5,566,771 | 5,566,772 | foreach statement (get string values) | <p>Can someone please help me out? My code for splitting the strings is working however, i still need to use the splitted string my page. How can i achieve this? Here's my current code</p>
<pre><code> private void SplitStrings()
{
List<string> listvalues = new List<string>();
listva... | c# asp.net | [0, 9] |
1,265,406 | 1,265,407 | Action Attribute | <p>I want to send form data to aspx.cs page view below codes.</p>
<p>But this error generated:Object reference not set to an instance of an object.</p>
<p>Please guide me.</p>
<pre><code> <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html P... | c# asp.net | [0, 9] |
3,802,099 | 3,802,100 | Turn an anchor into a span? | <p>What's the easiest way to turn an <code><a></code> into <code><span></code> keeping all the attributes and content? (except for perhaps the href).</p>
<p><code>.replaceWith()</code> replaces the whole shebang.</p>
| javascript jquery | [3, 5] |
2,220,639 | 2,220,640 | Pikachoose gallery Fancybox: if I want fancy box on only one image | <p>I am using Pikachoose image gallery. And I want to open a fancybox on one image in which I want to show a youtube video. I have already used this code</p>
<pre><code>$(document).ready(function (){
var a = function(self){
self.anchor.fancybox();
};
$("#pikame").PikaChoose({buildFinished:a});
});
<... | php jquery | [2, 5] |
5,914,119 | 5,914,120 | Clear Server Cache on Browser Close Using ASP.NET | <p>for a secure web application , How to clear an item in server Cache on Browser close.</p>
| c# javascript asp.net | [0, 3, 9] |
603,020 | 603,021 | JavaScript/jQuery Chaining Tag Replacement Calls | <p>I'm having trouble having the 2nd call to .replaceWith overwrite the old content written with .replaceWith. How do you handle an issue like below :</p>
<pre><code>if (data==-3){
$('message').replaceWith('ffgd');
} else if (data==-4){
$('message').replaceWith('... | javascript jquery | [3, 5] |
5,237,949 | 5,237,950 | JQuery click function not working on button within parent element which has it's own click function | <p>I have a button which needs to run a javascript function when clicked.</p>
<p>The problem is that this button lives within another element which has it's own click function which seems to be preventing that of the button from running.</p>
<p>Here's the code:</p>
<pre><code> <a id="login">Login
... | javascript jquery | [3, 5] |
1,750,178 | 1,750,179 | problem in passing Id from asp.net to Javascript | <p>I need to call a functoin on button click and pass the value of id into that function...here is what I m doing ...but I bet i m doing sth wrong bcoz its not working</p>
<pre><code>function Datarate(frm) {
var ar = document.getElementById('<%= submit.ClientID%>');
alert(ar);
}
<asp:Button runat="s... | asp.net javascript | [9, 3] |
4,049,136 | 4,049,137 | Communications permission trouble when calling into Java from javascript | <p>I have a little graphics editing Java applet embedded in an HTML/Javascript/jquery page.</p>
<p>I have a save button on the page that pops up a jquery dialogue which calls a Java function.</p>
<p>When that function tries to access the server it dies on a permission error. The identical code works to load the grap... | java javascript jquery | [1, 3, 5] |
1,294,818 | 1,294,819 | Is it possible to do conditional statements in the CssClass property? | <p>I'm using a repeater control. One of my item attributes is a boolean. I know I can do a conditional statement in the Text property, such as:</p>
<pre><code>Text='<%# Item.Boolean ? "Text 1" : "Text 2" %>
</code></pre>
<p>However, what if I want the same text but a different CSS style depending on the boolean... | c# asp.net | [0, 9] |
4,798,978 | 4,798,979 | Access $('selector').data in functions/objects | <p>How do I access values set by $.data() inside a function or object</p>
<pre><code> $('#timers').data('firsttimer', 100);
//prints 100
document.write($('#timers').data('firsttimer'));
function blah(){
//Prints nothing
document.write($('#timers').data('firsttimer'));
}
blah()... | javascript jquery | [3, 5] |
5,555,449 | 5,555,450 | javascript before leaving the page | <p>I want to make a confirmation before user leaving the page.If he says ok then it would redirect to new page or cancel to leave.I tried to make it with onunload</p>
<pre><code><script type="text/javascript">
function con() {
var answer = confirm("do you want to check our other products")
if (answer){
... | javascript jquery | [3, 5] |
4,305,626 | 4,305,627 | Android Queue vs Stack | <p>Why does <code>java.util.Stack</code> allows me to create a new <code>Stack</code> in an android activity with a simple constructor like:</p>
<pre><code>Stack < ImageView> stack = new Stack< ImageView>();
</code></pre>
<p>and i cannot do the same with <code>java.util.Queue</code>? Shouldn't a queue hav... | java android | [1, 4] |
4,343,158 | 4,343,159 | Can you re-use child layouts? | <p>Say I have a (programatically created) parent LinearLayout parent1 and I add a (programatically created) childA layout with <code>parent1.addView(childA);</code> then I set up childA in some complex way - perhaps it has its own children within it. Now can I subsequently somehow un-link it from parent1 without damagi... | java android | [1, 4] |
4,816,802 | 4,816,803 | NullPointerException using append method on a view in android? | <p>I am trying to populate data from database into a TextView using this code:</p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView view = (TextView) findViewById(R.id.textView);
db = (new DatabaseHelper(this)... | java android | [1, 4] |
1,295,311 | 1,295,312 | mega dropdown sharepoint 2010? | <p>How can i implement a similar mega dropdown menu on this site below
<a href="http://www.kraftrecipes.com/home.aspx" rel="nofollow">http://www.kraftrecipes.com/home.aspx</a>
Any ideas?Can Jquery do this...
Anyone done this before?
Thanks in Advance
** i need it for Sharepoint 2010</p>
| jquery javascript | [5, 3] |
3,036,189 | 3,036,190 | Open excel file in asp.net | <p>I am trying to open a Excel(.xls) file from asp.net.The code i am using is given here.It is showing a save as dialog box which i don't want .Please help me !!!</p>
<pre><code> Response.ContentType = "application/xls";
Response.Flush();
Response.WriteFile(fileName);
Response.End();
</code></pre>
| c# asp.net | [0, 9] |
789,787 | 789,788 | Javascript: check if window.fullScreen is false then open url in new window in full screen | <p>I have written a javascript on page load that</p>
<pre><code>if(!window.fullScreen) window.open(document.URL,'','fullScreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');}
</code></pre>
<p>but window.fullScreen always come false so it keep opening window.</p>
<p>any o... | javascript asp.net | [3, 9] |
2,386,080 | 2,386,081 | How to fire javascript method after a page has rendered | <p>Hi guys I need to call a javascript function after the page is rendered.</p>
<p>How can i accomplish this?</p>
<p>Please advise.</p>
<p>I tried the <code>public void Page_LoadComplete(object sender, EventArgs e)</code> event.</p>
<p>But my javascript failed because the controls were not rendered yet.</p>
<p>Th... | javascript asp.net | [3, 9] |
254,693 | 254,694 | jQuery animate - get future position of element | <p>I'm having trouble getting the position of an element because my animation is long and $(this).position().top is calculated too early.</p>
<p>How can I get a future position value of an element before it animates to that position? </p>
| javascript jquery | [3, 5] |
5,335,296 | 5,335,297 | remove all <li> from <ul>? | <p>hi all i am appending li in ul from the following code</p>
<pre><code>for(var i=1;i<=len;i++){
li=document.createElement('li');
element = document.createElement("img");
element.setAttribute("src", path[i]);
li.appendChild(element);
root.appendChild(li);
}
</code></pre>
<p>now i want to remo... | javascript jquery | [3, 5] |
3,799,319 | 3,799,320 | Executing ASP.NET 1.1 Code within Javascript | <p>When the user clicks a certain LinkButton, I need to open a confirmation dialog with OK/Cancel. If the user hits OK, then I need to run a function from ASP.NET (something to update the database).</p>
<p>Something like the following...</p>
<p><strong>Javascript</strong></p>
<p><code>function openConfirm() {
re... | javascript asp.net | [3, 9] |
2,574,915 | 2,574,916 | Jquery pass wrong value to page | <p>I have been struggling with this for days. This works, but does not pass the correct variable to the page ( testMap.php ). I use data from my DB and hovering over the link does show the correct variables in the URL, but for whatever reason jquery is always grabbing the first variable in the loop. Any suggestions?</p... | php jquery | [2, 5] |
5,046,748 | 5,046,749 | Uncaught TypeError: Illegal invocation in js using jQuery | <pre><code> function makePvsApplicantCalls(){
console.log('In makePvsApplicantCalls');
$.ajax({
type: 'GET',
url: "/reppify/RPCPostAdapter/httprpc/applicationFacade/getPreviousApplicants",
data : {jobId : jobId, page: pgNoPA++},
cache: false,
... | javascript jquery | [3, 5] |
5,567,450 | 5,567,451 | How to allow only defined characters as input using jQuery? | <p>How do i allow special characters such as hyphen,comma,slash,space key,backspace key,delete key along with alphanumeric values and restrict the rest in jQuery?</p>
<p>As this criteria(allowed characters/input values) varies from field to field, i would like to make it as a utility method which accepts input field i... | javascript jquery | [3, 5] |
4,417,759 | 4,417,760 | Redirect after iPhone\Android app install | <p>Say I redirected a user to download my app from itunes via an "itms://itunes.apple.com/us/app/facebook/id284882215?mt=8&uo=6" link (or the equivalent Google Play link)</p>
<p>Is it possible to have him redirect to some url after the app is installed? (say my own schema url registered by my app) ?</p>
<p>Thanks... | android iphone | [4, 8] |
453,387 | 453,388 | How to get bounds of Google Map? | <p>I need to do following task: there is Google Map widget and user can move/zoom the map. When user click the button that application should show latitude & longitude of bounds of GMap (north-east corner and south-west corner). But I don't know how I can do it. I hope you can help me. Thank you for, anyway.</p>
| java android | [1, 4] |
1,944,755 | 1,944,756 | updating database on user close the web browser before session expired in asp.net,c# | <p>i am newly developer in .net for developing chat software in web application.i was try to use javascript event onbeforeunload,unload not working every browser. Untill not solve my problem.
i want to sample code for updating database on user close the web browser before session expired in asp.net,c# ...Want advance h... | c# asp.net | [0, 9] |
5,846,591 | 5,846,592 | Undo jQuery or revert DOM? | <p>I have some jQuery that runs on a page. As a short-term fix I want to remove the code within the tags (containing the JS), that are on the page so that this jQuery does NOT run.</p>
<p>Is there any way that I can do this, or stop the code from running? I want to revert back to the typical DOM state, not the manipu... | javascript jquery | [3, 5] |
5,217,316 | 5,217,317 | Jquery: Blur function does not work with Div tag | <p>I am trying to create a Jquery Tree plugin for my current project. In the plugin, there are 3 compomnents: a text box containing the result selected from the tree , a div containing the tree and a button to show the div. It works fine, except that i cannot make it auto lose the popup div if the tree lose its focus. ... | javascript jquery | [3, 5] |
5,996,054 | 5,996,055 | Move div element to the middle of the screen in animation | <p>How do you animate a div element to the middle of the screen from the left side</p>
<p>I get this invalid obect or prperty
i can't seem to reference the jQuery(document) object through jQuery anymore </p>
<pre><code>form.each(function () {
jQuery(this).animate({ marginLeft: jQuery(document).width / 2 }, 750);... | javascript jquery | [3, 5] |
2,291,258 | 2,291,259 | Invoke or call more then one method at same time? | <p>how to call more then one method at same time in my page load in asp.net??
i have 4 methods to called in my page load event.
but i want to call all 4 methods and not wait for 1st method to get finish then call 2nd method.</p>
<p>How to achieve this is in asp.net 4.0?</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
4,994,310 | 4,994,311 | add items in Adapter | <p>I'm new in programming.
I have a problem with filling <code>GridView</code> from the Internet.
Through <code>AsyncTask</code>, I parsed much content (img, txt), create and filling database.
And when I call the adapter to <code>GridView</code> (<code>CursorAdapter</code> or any of the standard adapters), he always f... | java android | [1, 4] |
507,543 | 507,544 | jQuery is locking up browser | <p>I am not sure if I should be clearing everything or resetting something somewhere.</p>
<p>What is happening is that the browser will lock up for 10 - 30 seconds when setting a int value in the input textbox.</p>
<p>Here is a little snippet:</p>
<pre><code>function RunIt() {
$('#txTotW').bind('keyup', function... | javascript jquery | [3, 5] |
621,764 | 621,765 | how to create a multi dimensional array out of dynamically created fields and variables | <p>here is my url: <a href="http://iadprint.com/products?product=business%20card" rel="nofollow">http://iadprint.com/products?product=business%20card</a></p>
<p>the fields that you see on this page are all dynamically created on the backend. i decided to use the fieldnames created as variables to display the price as ... | php javascript jquery | [2, 3, 5] |
4,918,774 | 4,918,775 | manipulating dynamically created form elements without losing their values with jQuery | <p>I want to do a search and replace on a complex bit of dynamically created form. It's as simple as finding all the instances of one string and replacing them with another, made more complicated by the fact there are 11 instances per bit of form and make up only parts of various attributes. </p>
<p>Examples of the ki... | javascript jquery | [3, 5] |
5,436,648 | 5,436,649 | sending request and parameter when submit from using ajax | <p>I want to submit a form using jquery <code>.post()</code>. I want to send all the input names in addition to another parameter, in there any way to send data and the request?</p>
<pre><code> $.post("RegistrarManagementServlet",{"option":"cancelRequest"},function(){
alert("hi");
});
</cod... | javascript jquery | [3, 5] |
4,104,614 | 4,104,615 | disable/enable buttons | <p>I'm working in ASP .Net. I need to be able to click a button, disable it, have the code behind kick in and execute some functions and once they are done, enable the button again. There is no postback taking place per say in this project as we are using an UpdatePanel. About as far as I've been able to get successful... | c# asp.net | [0, 9] |
1,658,190 | 1,658,191 | Trouble witn creating notification in status bar from service Android | <p>I need to create Service in my application for showing notifications. I have the code for service:</p>
<pre><code>package com.bba.droid;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import andr... | java android | [1, 4] |
3,774,463 | 3,774,464 | mouse click somewhere else on page (not on a specific div) | <p>I want to close a little pop-up box in page when user has clicked anywhere on the page other than box area. how to find it?</p>
| javascript jquery | [3, 5] |
3,382,523 | 3,382,524 | More efficient way script the heights of DIVs | <p>Im using this script to find the height of a DIV. I am using it on more than one DIV.
Is there a more efficient way to write this code?</p>
<pre><code>$(document).ready(function() {
$(".block00").height($(".subheader").height());
$(".block01").height($(".subheader").height());
$(".block02").height($("... | javascript jquery | [3, 5] |
4,514,697 | 4,514,698 | How do I use JQuery or JavaScript to remove all links in a table? | <p>I have a table that I would like to export to Excel but I don't want any of the hyperlinks to come through. Is that possible?</p>
<p>I noticed that something similar was being done in the thread
<a href="http://stackoverflow.com/questions/6098958/jquery-remove-images">JQuery remove images</a> but I don't thing it ... | javascript jquery | [3, 5] |
28,725 | 28,726 | How to investigate why Session() expired and let users know | <p>How to investigate what is causing Session expiry?
I would like to give some advise to end-users who have the following problem with our website:</p>
<pre><code>If Session("xxxx") Is Nothing Then say something.. WHY??
</code></pre>
<p>Can I add something to web.config to make sessions last longer or should I read... | c# asp.net | [0, 9] |
4,723,971 | 4,723,972 | how can I allow the user to click only 3 times on a button in jquery? | <p>I'm trying to make a little rock paper scissors game. for that I've written a small javascript in jquery. the whole thing should work like this: user presses button, an ajax event is fired, the selected option is added to a div and a counter increments. but only 3 times! I can't figure it out to work like this... he... | javascript jquery | [3, 5] |
886,046 | 886,047 | JS var function | <p>Please take a look at following code:</p>
<pre><code>var test = {
test2 : {
variable: 'hello world',
test3: {
test4 : test.test2.variable
},
echo : function() {
alert(test.test2.test3.test4);
}
}
};
test.test2.echo();
</code></pre>
<... | javascript jquery | [3, 5] |
3,886,263 | 3,886,264 | Finding duplicate points within an arraylist of points | <p>I'm trying to delete all the duplicate points within two array lists. Each list is created by finding which country links to which country, if they link then it creates a new point in both arrays at the same time.</p>
<p>The idea is so that I can loop though the size of both arrays (Or size of one) and draw lines b... | java android | [1, 4] |
203,735 | 203,736 | JQuery autosuggest plugin to do the following? | <p>I'm looking for an auto suggest plugin that'll allow me to programmatically update the suggested results. I found a plugin which is almost perfect in terms of functionality.. <a href="http://code.drewwilson.com/entry/autosuggest-jquery-plugin" rel="nofollow">http://code.drewwilson.com/entry/autosuggest-jquery-plugin... | javascript jquery | [3, 5] |
5,623,637 | 5,623,638 | Disabling a button doesn't fire click event on server side | <p>I have an imagebutton in my aspx page like:</p>
<pre><code><asp:ImageButton ID="btnProcessPayment" ImageUrl="~/Images/process-payment.png" OnClientClick="return disableButton(this);"
runat="server" OnClick="btnProcessPayment_Click" />
</code></pre>
<p>This is my javascript... | c# javascript asp.net | [0, 3, 9] |
4,647,516 | 4,647,517 | Android - java.lang.NoClassDefFoundError: android.Maps.HomeScreen | <p>I have just opened my code from a few weeks off and now it doesn't seem to work. I have a splash screen on open, which then moves to the home screen. The splash screen works, but when trying to move to the home page it falls over saying <code>No Class Def Found</code>. What does this mean and how can i fix it?</p>
... | java android | [1, 4] |
4,533,432 | 4,533,433 | animation pausing in jquery slider | <p>am using jquery roundrr plugin. I want to stop the animation on mouseover and resume on mouseout, on the roundrr_container div. I tried to edit the code but could not get it done. Can you please help me with this.</p>
<p>the code is here</p>
<p><a href="https://github.com/addyosmani/jquery-roundrr/blob/master/dem... | javascript jquery | [3, 5] |
5,027,886 | 5,027,887 | .Click work with id? | <p>I have just started using JQuery, and i know you can use <code>.click</code> with a <code>class</code> but can you use .click using <code>id</code> as the trigger ? I have had a look around but i can't find any information on triggers. </p>
| javascript jquery | [3, 5] |
3,026,665 | 3,026,666 | Return array from JSON file with JQuery? | <p>I have a JSON file that contains the following:
[{name:joe,number:4},{name:ralph,number:76}]</p>
<p>Simply put, I'm trying to create a function that returns that as an array:</p>
<pre><code>function createArray(){
x = $.getJSON("/names.json", function(json) {
var myArray = [];
$.each(json, func... | javascript jquery | [3, 5] |
3,021,652 | 3,021,653 | Combine JS function mouseup | <p>I want to combine JS functions, but that's not working. Does someone have a suggestion for my code?</p>
<pre><code>$(document).ready(function(){
$(".searchs").keyup(function() {
var searchbox = $(this).val();
var dataString = 'searchword='+ searchbox;
if(searchbox=='') {
$("#display").hide();
... | javascript jquery | [3, 5] |
2,234,249 | 2,234,250 | how to download files from tomcat server | <p>I am using Eclipse. So I have <code>BOOKS</code> folder under <code>WEb-INF</code>. I want to download the files through my Android application. So how do I give the Url path? I have given: <code>"http://adaptive:8080/BOOKS/pdftest.pdf"</code>.</p>
<p>But it is giving <code>filenotFoundException</code>. So what sho... | java android | [1, 4] |
4,223,531 | 4,223,532 | using selected text in asp.net textbox | <p>I have a textbox that has regular text in it. I want a user to be able to select a word and create a hyperlink from that word. I will be doing this by basically using that word and replacing it with an a tag and adding url info. My question is how can I get the users selected text from c# code behind. I saw some... | c# asp.net | [0, 9] |
813,814 | 813,815 | jQuery Plugin: Limiting script tag references to other libraries | <p>I am about to create a jQuery plugin but I was thinking of using a few other libraries. Now for it to be easy to use I was wondering if there are ways to limited the amount of script tag references I have to add. </p>
<p>Few options I was considering:</p>
<p>1: Include the library code into the plugin code. Not su... | javascript jquery | [3, 5] |
2,174,244 | 2,174,245 | Data list binding with some text and validating datalist | <p>I am using this code for datalist validation.</p>
<p>I am binding the image in datalist after that i am trying to give the caption to each image suppose there is 3 image is datalist then for the first image i am able to give but for the other one i am unable to.. i think there is some error in conditions help me in... | c# asp.net | [0, 9] |
2,671,175 | 2,671,176 | Unbinding input type file button with jquery doesn't work | <p>I have an input type file element:</p>
<pre><code><input type="file" name="val1" />
</code></pre>
<p>And jquery:</p>
<pre><code>$("input[name='val1']").off("click");
</code></pre>
<p>But the above JS script (already included in <code>$(function() { });</code> block) doesn't work, means I can click on <code... | javascript jquery | [3, 5] |
4,762,069 | 4,762,070 | Explanation needed on boolean methods return | <p>I've been looking through some code from a decompiled APK file and ran across this syntax for returning a boolean condition that I haven't seen before. Anyone have an explanation on how this works?</p>
<pre><code>public static boolean is2G(NetworkType paramNetworkType)
{
if ((EDGE.equals(paramNetworkType)) || ... | java android | [1, 4] |
4,046,920 | 4,046,921 | How to get the href of a link using jquery? | <p>I have a simple jquery code:</p>
<pre><code>$(function(){
$('#note_pag a').click(function(){
alert('click');
return false;
});
});
</code></pre>
<p>and this is the html code:... | javascript jquery | [3, 5] |
4,288,049 | 4,288,050 | Keep the text of the text box through a PageLoad(); | <p>I am wondering How i can keep the text of my textbox even if i have to make a new page load, clicking on an hyperlink.</p>
<p>It's always an empty string.</p>
<p>Can someone help me ? </p>
<pre><code> lkForgotten.NavigateUrl = string.Format("Logon.aspx?forgotten={0}", "");
lkSend.NavigateUr... | c# asp.net | [0, 9] |
3,685,867 | 3,685,868 | jquery issue with on and live | <p>I have the following code:</p>
<pre><code>var $reviewButton = $('span.review_button');
$reviewButton
.live('click',
function(){
$('#add_reviews').show();
}
)
</code></pre>
<p>Later in the script, I use an AJAX call to load some content and another instance of $('span.review_... | javascript jquery | [3, 5] |
4,806,366 | 4,806,367 | Change the sequence of background images | <p>I have this JavaScript function to display a sequence of background images.
What I want is to change to sequence for every page with php. In this case I want to substitute the x in bg_x_ps.jpg with a number in the range of 1 to 8.
Each background must have an unique number. </p>
<pre><code>$.vegas( 'slideshow', {
... | php javascript jquery | [2, 3, 5] |
5,758,966 | 5,758,967 | Get first two digits of a string, support for negative 'numbers' | <p>I have the following strings in JavaScript as examples:</p>
<pre><code>-77.230202
39.90234
-1.2352
</code></pre>
<p>I want to ge the first two digits, before the decimal. While maintaining the negative value. So the first one would be '-77' and the last would be '-1'</p>
<p>Any help would be awesome!</p>
<p>Th... | javascript jquery | [3, 5] |
1,417,407 | 1,417,408 | ListFragment how to get the listView? | <p>I'm porting my app from AsyncTasks to Fragements.</p>
<p>But how can I access the listView (id: list) element within my fragment?</p>
<pre><code>class MyFragment extends ListFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View... | java android | [1, 4] |
3,122,826 | 3,122,827 | Implement a short pause before jquery animation | <p>Im writing a simple jquery menu system that shows / hides a DIV on mouse over a text link.</p>
<p>I want to implement a short pause before the slide happens, so that the menue doesnt drop down if the mouse just flies over the menu link.</p>
<p>this is how i currently activate the menu:</p>
<pre><code><script t... | javascript jquery | [3, 5] |
1,704,718 | 1,704,719 | Using jQuery.on() vs. loading script when content loads | <p>When loading content inside of a modal box or lightbox, is it better to hook up needed events and scripts through the use of <code>jQuery.on()</code>, or have it load with the content by a script tag?</p>
<p>For example, with the <code>.on()</code> solution:</p>
<pre><code>$('#blah').on('load', function() {
$(... | javascript jquery | [3, 5] |
4,032,238 | 4,032,239 | Creating 2D Bounding Box's | <p>how would I create a bounding box around a object if I am using the canvas surfaceview? Would I have to do it in the object class? Inside of my view class? Any help is highly appreciated. Thanks in advance.</p>
| java android | [1, 4] |
2,186,913 | 2,186,914 | The operator | is undefined for the argument type(s) boolean, void | <p>Hi i just keep getting that error and im kind of a newbie and dont know wahats going on. Thanks for the help in advance</p>
<pre><code> if(txtvi1.getText().toString().equals("") | txtvi2.getText().toString().equals("") | txtvi3.getText().toString().equals("") | txtvi4.getText().toString().equals("")| txt... | java android | [1, 4] |
3,439,884 | 3,439,885 | Forcing custom 404 pages for pages in URL Routing | <p>Coding Platform ASP.NET 4.0 WebForms on IIS7.5</p>
<p>If I request a page <code>blahblah.aspx</code> which does not exist, I get navigated to my custom error page for Page not found Exception. I have implemented URL routing and so I have omitted all my .aspx extensions for routes.</p>
<p>Now, If I type<code> www.m... | c# asp.net | [0, 9] |
3,575,686 | 3,575,687 | jquery context menu plugin | <p>I'm using the context menu plugin, it works, but everytime an ajax load event starts the effect of the context menu isn't showing, the menue no more is valid.</p>
<pre><code> $("").contextMenu({
menu: 'myMenu'
},
function(action, el, pos) {
switch (action) {
case "option":
... | javascript jquery | [3, 5] |
1,163,768 | 1,163,769 | how to convert string in int type in C# | <p>i am taking string value from textbox name txtLastAppointment no. and
want to convert it to int and then store it in databse using Linq to sql but i am getting error "input string was not in proper format"</p>
<p>my Input string is 2.</p>
<p>My Code is.</p>
<pre><code> objnew.lastAppointmentNo=Convert.ToInt... | c# asp.net | [0, 9] |
5,091,345 | 5,091,346 | Maybe I've lost the plot, but why is this small piece of JavaScript not working? | <p>I want a generic error handler for my forms</p>
<pre><code>var errorsBox = function() {
var $errorBox = $('#form-error');
return {
add: function(errors) {
if ($errorBox.length === 0) {
$errorBox = $('<div id="form-error"><ul></ul></div>').appendTo... | javascript jquery | [3, 5] |
4,115,181 | 4,115,182 | Getting DataList selected item in a text box | <p>I have a DataList on my webpage that is populated by <code>ItemTemplate</code>. Each <code><tr></code> in ItemTemplate has a LinkButton with <code>CommandName=Select</code>. When the user clicks on the link button, the corresponding text should appear in the TextBox below.</p>
<p>Inside the ItemTemplate, each... | c# asp.net | [0, 9] |
3,063,622 | 3,063,623 | How to set the dropdownlist value? | <p>I am using this technique: <a href="http://stackoverflow.com/questions/2670327/is-there-a-way-to-hold-the-values-lost-in-postback">http://stackoverflow.com/questions/2670327/is-there-a-way-to-hold-the-values-lost-in-postback</a></p>
<p>After it does the postback, how do I set which item is selected?
<br>
$(documen... | javascript jquery | [3, 5] |
1,190,584 | 1,190,585 | Android emulator queues clicks? | <p>The problem i'm facing at the moment is that the android emulator seems to queue the clicks i do on the button below. If i click in a regular speed, it's no problem what so ever. But whenever i so to say, spam-click the button, it seems that it recieves all clicks and does that number of operations. </p>
<p>Example... | java android | [1, 4] |
441,977 | 441,978 | Problem showing loader GIF in Internet Explorer | <p>I'm trying to show a <a href="http://www.ajaxload.info/" rel="nofollow">loader gif</a>, on a jquery dialog(with no title bar of course) after a user clicks submit on a form.</p>
<p>After doing a couple of thing I came up with this: <a href="http://jsfiddle.net/edaloicaro18/K2tv4/23/" rel="nofollow">demo</a> ,and s... | javascript jquery | [3, 5] |
3,434,956 | 3,434,957 | How to check Android EditText integer value? | <p>I'm trying to make an app that would calculate the income tax of a given person. There is an EditText field where the user must point out his monthly wage and then it's being calculated in the MainActivity.java. The problem is - when I try to do some maths using the given input field, an error <code>The operator * i... | java android | [1, 4] |
5,449,403 | 5,449,404 | how can get only numbers from the text using jquery | <p>I want to get only the numbers(123) not the text(confirm), here is my code</p>
<pre><code><p>123confirm</p>
<script type="text/javascript">
$(document).ready(function(){
$(p).click(function(){
var sd=$(this).text();
alert(sd);
});
});
</script>
</code></pre>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.