Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
4,592,097 | 4,592,098 | How to pass arguments inside function? | <p>I started to learn Jquery and but I am having trouble understanding function parameters:(
If you look my <b>first</b> code and run it: my script <b>WILL work</b> <i>(WITHOUT parameters)</i>. And if you look my <b>second</b> code <br/><i>(WITH parameters)</i> and run it: <b>second script</b> <i>WILL ALSO WORK!!</i><b... | javascript jquery | [3, 5] |
1,226,515 | 1,226,516 | ASP.NET button and Jquery works together? | <p>I have an <code>ASP button</code>, when I click this button, first I want to run code behind progress such as data delete, update.. </p>
<p>After this progress, I want to run<code>Jquery</code> function related this button.</p>
<p>How can I do that?</p>
| asp.net jquery | [9, 5] |
1,840,015 | 1,840,016 | How do I override a javascript function that is inside another file? | <p>I am having a problem with the asp:Menu control.<br>
A menu control 2 levels deep does not play well with internet explorer on https.<br>
I continually get an annoying popup.</p>
<p>I think in order to fix this I need to override a function in an automatically included script file.</p>
<p>change this</p>
<pre><co... | javascript asp.net | [3, 9] |
2,380,064 | 2,380,065 | Unexpected JS/jQuery Loop Behavior | <p>I have the following loop. The goal is to automatically show text boxes when a user chooses certain options in a dropdown list.</p>
<p>For some reason, in the following code, the loop assigns the "sponsor" field to the associated array for "blurb". I cannot figure out why. How can I make this work?</p>
<p>Thanks s... | javascript jquery | [3, 5] |
5,530,215 | 5,530,216 | not redirecting to handler page | <p>My java script which i had given in aspx page. the info should be redirect to handler page is not working..</p>
<pre><code><script type="text/javascript">
var Name;
var Age;
var Mobile;
var Email;
var Center;
function getdata()
{
alert('Adding');
Name=document.getElementById("txtname").value;
... | javascript asp.net | [3, 9] |
2,902,844 | 2,902,845 | Variable cannot be resolved | <p>I am trying to create an item list, diffrent for each i and j variable. My code is:</p>
<pre><code>if (i == 0) {
if (j == 0) {
final CharSequence[] items = {"4:45", "5:00"}
} else if (j == 1) {
final CharSequence[] items = {"4:43", "4:58"}
} els... | java android | [1, 4] |
1,454,303 | 1,454,304 | Decoding a file resource for scanning in Android | <p>I'm new to Stack Overflow, but I have a question about writing some Java code for an Android program.</p>
<p>I'm building a game for the Android phone, and when we are building levels we are aiming to scan them from text files that are stored in the res/raw for our project. My problem is that I can't figure out how... | java android | [1, 4] |
5,816,733 | 5,816,734 | Javascript: Acceptable way to referencing `this` from given two snippets | <pre><code>var me = null;
var testFn = (function() {
me = this;
return {
me1: me,
fn1 : function() {
me = this;
return {
me2 : me,
fn2 : function() {
me = this;
return {
... | javascript jquery | [3, 5] |
2,100,786 | 2,100,787 | How to convert this string to some array? | <p>I am using one 3rd party plugin which uses stringify and gives me something like:</p>
<pre><code>["ProjectB","ProjectA","Paris"]
</code></pre>
<p>It was an array but it used stringify and serialized into this format.How do I get back my array from this? Now I could very well use split and then remove 1st and last ... | javascript jquery | [3, 5] |
1,357,491 | 1,357,492 | jQuery.extend default action with only one input | <p>Given:</p>
<pre><code>jQuery.extend({
fooBar: function(){ return 'baz'; }
});
</code></pre>
<p>does it modify the base jQuery object?
so afterwards you can call <code>jQuery.fooBar(); // 'baz'</code></p>
<p>There's nothing in the documentation, but that's what the source does as far as I can tell.</p>
| javascript jquery | [3, 5] |
5,870,124 | 5,870,125 | How to change the data in ALL the textfields in a page to uppercase on click of a button | <p>I have a page with some 13 textfields. I want to change the case of data in all the textfields to uppercase on click of a button. I can either user Jquery/javascript. I definitely don't want to use CSS-Text-transform property since it does not convert the case actually but just virtually.</p>
<p>Any suggestions as ... | javascript jquery | [3, 5] |
1,254,779 | 1,254,780 | Microsoft JScript runtime error: ASPx is undefined | <p>I'm getting this error all over the place in my web application and trying to figure out why. </p>
<p>The error is always for some control, ASPxClientTextBox for example. So far the only thing I've found as a potential fix is to check the httphandlers section of the .net web.config (the one in C:\WINDOWS\Microsoft.... | javascript asp.net | [3, 9] |
4,660,927 | 4,660,928 | error in path using JUST BOIL ME plug in for TINYMCE -- php | <p>Hope you can help me solve my issue. I am using <strong>JUSTBOILME</strong> as an image uploader for <strong>TINYMCE</strong> text editor. I am incorporating it to PHP. My question is I am having an error when i am trying to upload an image to the text editor of tinymce using the just boil me plug in. I am having th... | php jquery | [2, 5] |
3,386,446 | 3,386,447 | how to skip table using HtmlAgilityPack | <p>i wrote an app that take values from a table and manipulat them, my problem is that there is 2 tables before the table i want(without id,class) . i want to skip them and go to the third table . my code: </p>
<pre><code> HtmlNodeCollection tables = doc.DocumentNode.SelectNodes("//table");
HtmlNodeCol... | c# asp.net | [0, 9] |
662,819 | 662,820 | How to determine given file is a class file? | <p>I need to determine that whether a given file is a class file or not. Suppose I change the extension to .exe/.xml or some other, I need to determine whether that given file, if a class file will be parsed differently and if it would be some other, it'll be parsed in that manner.</p>
<p>How can I read the class file... | c# java | [0, 1] |
215,233 | 215,234 | Adapting Library for Android | <p>The library given consists of several parts:</p>
<ul>
<li>a network module</li>
<li>a storage module</li>
<li>a 'controller' module</li>
</ul>
<p>They all rely on the former module (storage relies on network, controller relies on storage). Most of the functionality is exposed in controller module.</p>
<p>My first... | java android | [1, 4] |
5,814,246 | 5,814,247 | Working with multiple key press events (windows key) | <p>While working with the multiple keypress events i found this code which worke fine</p>
<pre><code>$(document).bind('keypress', function(event) {
if( event.which === 65 && event.shiftKey ) {
alert('you pressed SHIFT+A');
}
});
</code></pre>
<p>But to make it to work wth combinig with windows... | javascript jquery | [3, 5] |
476,810 | 476,811 | Can I change the ID of a asp.net control programatically - ASP.NET | <p>I've a control</p>
<pre><code><asp:Button ID="btnAjax" runat="server" Text="Ajaxified" OnClick="btnAjax_Click" />
</code></pre>
<p>Now from the code behind I want to change the ID of the button</p>
<pre><code>btnAjax.ID = "newButtonID";
</code></pre>
<p>But it is now working. Is it possible at the first pl... | c# asp.net | [0, 9] |
4,579,966 | 4,579,967 | navigate away alert without saving modifications | <p>I'm developing a website in php.</p>
<p>I want to show a message something like javascript alert, when a user tries to edit or add something in a form and tries to navigate to some other section without saving the modification, i want to show a message to them,</p>
<p>that you are about to navigate about from thi... | php javascript | [2, 3] |
1,449,781 | 1,449,782 | Getting Out of memory on a 3001616-byte allocation error for bitmap decoding | <p>I'm actually getting this error on method Load image inside it i'm doing<br>
i set options size to </p>
<p>bmOptions.inSampleSize = 1;</p>
<p>the method in which the error points line decodeStream()..</p>
<pre><code>private Bitmap LoadImage(String URL, BitmapFactory.Options options) {
Bitmap bitmap = null... | java android | [1, 4] |
3,507,534 | 3,507,535 | How to organise jquery code to be more cleaner and more readable | <p>I discoverd my jquery code is a mess, right now it doesnt follow any type of logic build up. I have lots of ajax calls, nested functions, dom manipulations, plugin calls in my main js file.</p>
<p>Lot of calls are fired on every page, what is a no-no, and get the undefined error on a few pages because some function... | javascript jquery | [3, 5] |
5,062,624 | 5,062,625 | Easy alternative to HttpWebRequest for POST requests? | <p>I need to trigger an action on a remote server using an http <code>POST</code> request. The server sends a response, either <code>Y</code> or <code>N</code>, to inform me if the action suceeded or not.</p>
<p>I am looking at using <code>HttpWebRequest</code> to do this, but this seems too complex. To use this class... | c# asp.net | [0, 9] |
1,975,204 | 1,975,205 | Do we have any api's or web services avialable for monster or naukri to integrate in asp.net website? | <p>Can anyone please help me out suggesting any documentations/blogs available for the above subject.</p>
| c# asp.net | [0, 9] |
2,251,934 | 2,251,935 | Nested Javascript Functions and jQuery | <p>I am learning javascript and jquery and wondered whether it is good or bad practice to nest all my functions within <code>$(document).ready(function)</code>. Is there any difference between this:</p>
<pre><code>function someFunction()
{
return someThing;
}
$(document).ready(function()
{
// some code
...
s... | javascript jquery | [3, 5] |
5,285,888 | 5,285,889 | clientvalidation in asp.net | <p>I am trying to create a required field validation with a customvalidator. However when the field is empty it still does a postback?</p>
<pre><code><body>
<form id="Form1" runat="server">
<h3>
CustomValidator ServerValidate Example</h3>
<asp:Label ID="Message" Font-Name... | c# asp.net | [0, 9] |
4,798,955 | 4,798,956 | How to test if users has made any changes to a form if they haven't saved it | <p>Basically the same functionality as stackoverflow when posting a question, if you start writing a post then try to reload the page. You get a javascript alert box warning message. </p>
<p>I understand how to check if the form has been changed, although how do I do the next step. </p>
<p>I.E: How to I check this wh... | javascript jquery | [3, 5] |
5,471,724 | 5,471,725 | Determine OS using the Environment.OSVersion object - C# | <p>What is the best to determine the Microsoft OS that is hosting your ASP.NET application using the <code>System.Environment.OSVersion</code> namespace </p>
<p>I need an example for Windows XP, Windows Server 2003 and Windows Vista</p>
<p>Here is what I am trying to accomplish using pseudocode</p>
<pre><code>switc... | c# asp.net | [0, 9] |
2,453,280 | 2,453,281 | C# - asp.net - Couple questions on this coding | <p>1) It loads extremely slow, takes over 20 seconds, but it does load the DataBase. Is that normal?</p>
<p>2) I put the hello and bye response to test if it connected well. It writes hello and bye numerous of times like hellohellohellohello...byebyebyebye... is this normal? I was thinking this has something to do ... | c# asp.net | [0, 9] |
4,077,064 | 4,077,065 | What is the difference between Extends Application and Extends Activity in Android? | <p>I am confused as to the difference between the two. In my application I have just used Extends Activity and the application is working perfectly, so what is the purpose of Extends Application?. </p>
<p>Would you use it on the first class you create in the Android application?</p>
<p>Thanks.</p>
| java android | [1, 4] |
5,615,754 | 5,615,755 | How to make tool tip or popupwindow if i click or mouse over on text | <p>In my Asp Application, I've to make one tool-tip or popup window if i mouse-over or click specific text respectively . message(tool-tip or popup window) is get from database table . Please help me to make it . </p>
<p><img src="http://i.stack.imgur.com/323vp.jpg" alt="image"></p>
<p>you can see the red circle in a... | c# asp.net | [0, 9] |
4,220,424 | 4,220,425 | Jquery Is this the correct way? | <pre><code><script type="text/javascript">
if (SOMECONDITION) {
$("#scriptD").attr("src", "../../Scripts/A.js");
} else {
$("#scriptD").attr("src", "../../Scripts/B.js");
}
</script>
<script id="scriptD" src="" type="text/javascript"></script>
</... | javascript jquery | [3, 5] |
3,855,612 | 3,855,613 | Mimic CMYK plates offset with jQuery | <p>I would like to make a visual disturbance effect on certain words in the text of my page, to mimic on-screen the calibration / offset errors that can occur when printing posters, magazines…</p>
<p>The idea is to randomly select a target word in the text, then wrap it in a <code><span class="cmyk intensity-max"&g... | javascript jquery | [3, 5] |
5,128,899 | 5,128,900 | Dealing with expandable jQuery content if javascript disabled | <p>I have a messaging tool within the website I am currently working on. The idea is to have a header div and a details div (display="none") for each message. </p>
<p>Ideally, if javascript enabled, I have just the header showing and when the user clicks on it, the details div slide open.</p>
<p>This is fine but ho... | asp.net javascript jquery | [9, 3, 5] |
3,437,938 | 3,437,939 | To read an image from Android Emulator | <p>This is my code to convert image file into byte array.</p>
<pre><code> public String GetQRCode() throws FileNotFoundException, IOException {
/*
* In this function the first part shows how to convert an image file to
* byte array. The second part of the code shows how to change byte array
* back ... | java android | [1, 4] |
4,763,712 | 4,763,713 | can a web page be manipulated through ajax from new window? | <p>Hi... I want to know that when a user posts a comment to my site ... to open a web page (in new window, with a fixed width and height like <code>window.open</code> ) which contains the form and after submit, I want to close that windows and show that comment in the parent page through ajax ... (or i guess after clos... | php jquery | [2, 5] |
36,295 | 36,296 | How to fill a Jquery multicolumn selectbox from code behind ASP.NET? | <p>I want to use something like <a href="http://code.google.com/p/jquerymulticolumnselectbox/" rel="nofollow">jquerymulticolumn</a>.
But i can't use it from code behind. How can i do it or anyone suggest me another multicolumn selectbox ?</p>
<p>aspx:</p>
<pre><code>.
.
<td>
<div id="datatable">
... | jquery asp.net | [5, 9] |
4,060,870 | 4,060,871 | Ttrigger extra parameter | <p>According to the jQuery manual you can send extra parameters (as an array) when calling a trigger. I am using this at the moment:</p>
<pre><code>$('#page0').trigger('click', [true]);
</code></pre>
<p>How would I pick up whether the paramter has come through or not when using this?</p>
<pre><code>$('ul.pages li a'... | javascript jquery | [3, 5] |
5,556,172 | 5,556,173 | Maximum Length of a filename on Win7 | <p>I have a web application which allows users to download a file. In doing so it asks users to provide the name to it in textbox. The upper limit of this text box is 200 characters. When i try to download a file on my Win7 system while accessing this application i do not get the whole 200 characters, instead i get onl... | c# asp.net | [0, 9] |
1,794,570 | 1,794,571 | Implementing lazy loading in homepage posts instead of pagination | <p>I have lots of posts in <a href="http://blog.kushaljoshi.com.np" rel="nofollow">my website</a>. I have used <code>default pagination</code> function for paging the post list in <em>homepage</em>. But I wanted to implement <code>lazy loading</code> instead of pagination just like in <em>twitter</em>. I don't have any... | jquery javascript | [5, 3] |
4,499,927 | 4,499,928 | Jquery watch certain fields for certain values | <p>I have some test code here</p>
<pre><code><input type="radio" name="group1">1
<input type="radio" name="group1">2
<input type="radio" name="group1">3
<br>
<input type="text" name="text1">
<br>
<input type="radio" name="group2">1
<input type="radio" name="group2">2
<... | javascript jquery | [3, 5] |
4,852,750 | 4,852,751 | Splitting text file in android | <p>I am developing an android app and i need it to read a text file. Once it has read the text file I need to <code>save certain parts</code> to a database.
The text file contains the following:</p>
<pre><code>Title - Hello
Date - 03/02/1982
Info - Information blablabla
Title - New title
Date - 04/05/1993
Info - New... | java android | [1, 4] |
3,116,070 | 3,116,071 | Call a method when another one finishes | <p>I have a function in javascript which consists of an ajax call. Let's call it search();</p>
<p>Then I have an event onKeyUp.</p>
<p>In the onKeyUp event, I have an enterPressed() function.</p>
<p>I want to call this function AFTER search() finishes.</p>
<p>I think callbacks won't help here.</p>
<p>Here's my cod... | javascript jquery | [3, 5] |
5,860,207 | 5,860,208 | ASP.NET website logs out on postback in IE 8 but works fine with IE 9. Why? | <p>My ASP.NET website logs out on postback in IE 8 but works fine with IE 9.</p>
<p>This happens when drop down selection changes, the link button is clicked or any other postback event occurs or even if we directly change the url.</p>
<p>Works fine with Mozilla, Chrome, IE9, and Safari.</p>
<p>How can I resolve thi... | c# asp.net | [0, 9] |
5,279,339 | 5,279,340 | Python for C++ Developers | <p>I'm a long time C++/Java developer trying to get into Python and am looking for the stereotypical "Python for C++ Developers" article, but coming up blank. I've seen these sort of things for C#, Java, etc, and they're incredibly useful for getting up to speed on language features and noteworthy differences. Anyone... | c++ python | [6, 7] |
2,591,241 | 2,591,242 | Append an input's value in included form..PHP | <p>I have several landing pages and the only difference in them is a hidden input's (referred_by_text) value. I would like to just make one form and include it in all the landing pages....<strong>how would I go about setting the value for the input on each landing page for that value?</strong></p>
<p>In the landing pa... | php javascript | [2, 3] |
5,218,452 | 5,218,453 | 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] |
3,695,264 | 3,695,265 | Android unregisterReceiver with onPause | <p>I have something like this in my manifest file - I need one receiver for the situation that a power source was connected and the other receiver for unplugged source.</p>
<pre><code><receiver android:name=".PowerConnectionOnReceiver" >
<intent-filter>
<action android:name="android.... | java android | [1, 4] |
1,018,598 | 1,018,599 | auto tab with exception | <p>I have a form where I primarily input single digit numbers. I want to auto tab to each input field, however, sometimes, there is a need for a two digit number. The two digit number will always start with "1". So I would like to auto tab on all single digit numbers except 1 and if a 1 is entered the auto tab is disab... | javascript jquery | [3, 5] |
5,441,521 | 5,441,522 | Correctly replacing a string with another string | <p>I am work a site that was coded in c# and uses a ssl cert "secure.mydomain.com
To switch from http to https it uses the following code</p>
<pre><code> if (useSsl)
{
if (!String.IsNullOrEmpty(ConfigurationManager.AppSettings["SharedSSL"]))
{
//shared SSL
... | c# asp.net | [0, 9] |
2,279,575 | 2,279,576 | Get php url variable for use in jquery | <p>Okay so I have an html5 audio player that i built with jquery however i need to get the track url from the variable in the url with a get request so that it can then be used in the jquery script. Not sure how to do it. I have the jquery in a seperate file to the markup for easy embedding for users. The url will look... | php jquery | [2, 5] |
5,850,978 | 5,850,979 | How to select option in jQuery using text of option tag | <p>I'm trying to select a certain option in a select box, but it's not working:</p>
<pre><code>var category = $(row + 'td:nth-child(4)').text();
$('#category_id', theCloned).load('/webadmin/video/get_categories',function(){
$('#category_id', theCloned).val(category);
});
</code></pre>
<p>There's no error thrown, b... | javascript jquery | [3, 5] |
1,077,384 | 1,077,385 | How can I remove "(?) " from a variable in jQuery? | <p>I am trying to write some code that will look a the contents of a variable and remove "(?) " if it is in the variable. The "?" could be any number, but I want to remove the parentheses, the content between them, and the space after.</p>
| javascript jquery | [3, 5] |
1,829,282 | 1,829,283 | ASP.NET & C# - Two values in a listbox? | <p>I'm adding ListItems to a ListBox from two controls, both are DropDownLists.</p>
<p>The ListItem has the properties ListItem.SelectedItem and ListItem.SelectedValue, but I also want the ListBox to keep track of which DropDownList the ListItem came from.</p>
<p>What would be the best way to do this?</p>
| c# asp.net | [0, 9] |
300,812 | 300,813 | Using Trulia API in an Android app | <p>I have a question about pulling data from Trulia api, and display it on an android app I am developing. Essentially all I need is to be able to get the Home value and the Tax evaluation values. The app will then be able to take these values and do what it's supposed to do. I have the apikey (trulia apikey), but I ... | java android | [1, 4] |
3,746,582 | 3,746,583 | dynamically generated html buttons: source of onclick event caller | <p>I have a DataTable which has a column like such:</p>
<pre><code>string temp = row["date"].ToString();
rowDetail[0] = "<input type='button' onclick='showArchive(this)' value='" + temp + "'/>";
myTbl.Rows.Add(rowDetail);
</code></pre>
<p>So, when I bind myTbl to a datagrid.datasource, these column cells appear... | c# javascript asp.net | [0, 3, 9] |
5,221,358 | 5,221,359 | Strange javascript chrome issue with menu | <p>Visit the following site in chrom and teh first time the page loads the top nav displays on two lines, if you click to another page then home again the top nav displays correctly (all on one line), why is this?</p>
<p>I thinkit may be javascript related but can't get to the bottom of it.</p>
<p>Any ideas?</p>
<p>... | javascript jquery | [3, 5] |
4,097,270 | 4,097,271 | How to convert the Username column in the GridView an email hyperlink (mailto) and to be clickable using GridView1_DataBound? | <p>I developed a web-based training matrix that shows the training record for each employee in each division in my department in the company. The matrix will show many columns such as the employee name, username, job title... etc. what I want now is to make the username for each employee to be clickable which means whe... | c# asp.net | [0, 9] |
864,188 | 864,189 | How pass null from code behind with textboxes | <p>I have two textboxes and a drop down.User has a option that he should select drop down and enter value in any one of the texbox . </p>
<p>My procedure accepts null values . only problem is how to pass tht from code behind tht the any text box value submitted it shud return the data.</p>
<p>Can any one help me on t... | c# asp.net | [0, 9] |
2,845,335 | 2,845,336 | togglebutton error not working correct | <p>i am using togglebutton so i can do tow function one when it is check and one when it is not check the first function (when it is check ) is working fine but the second is not
it said in logcat</p>
| java android | [1, 4] |
2,341,705 | 2,341,706 | jQuery question: what does it really mean? | <pre><code>(function($, window, undefined){
... jquery code...
})(jQuery, window);
</code></pre>
<p>What does it really mean? Does it also mean <code>$(document).ready()</code>? Or just two different things?</p>
| javascript jquery | [3, 5] |
2,203,508 | 2,203,509 | In JQuery where does the 'load' method's relative path start when its referencing an html file within the project? | <p>I have a JEE project that uses lots of html, javascript, java etc. I'm looking to use JQuery to load up an html template into a div tag however I'm unsure of where the relative path of the load method starts from. The html file I'm trying to load is within the project but in a different directory. Would I have to... | javascript jquery | [3, 5] |
1,470,836 | 1,470,837 | Use session inside script tag | <p>my code is</p>
<pre><code> $(document).ready(function () {
var control_btn21 = $('.mine'), interval21;
$.ajax_upload(control_btn21, {
action: 'FileHandler.ashx',
name: 'control21',
onSubmit: function (file, ext) {
$('#uploadResume').addClas... | jquery asp.net | [5, 9] |
3,281,476 | 3,281,477 | How do I loop through elements and use the index number to present the relative array object properties? | <p>I have created an array object with some dummy properties, I have have also dynamically created some list items that I would like to attach a click handler to. When a list item is clicked I would like to present the appropriate data inside #container using the template Ive set up. Im assuming I can use the index fro... | javascript jquery | [3, 5] |
2,403,093 | 2,403,094 | how to disable Design and enable true Toolbar at Preview at RadEditor? | <p>how to disable Design and enable true Toolbar at Preview at RadEditor. Thank u. Please Help me .</p>
| c# asp.net | [0, 9] |
2,879,853 | 2,879,854 | jQuery check click for each link | <pre><code>$("#showKey").each(
$(this).click(function(){
alert($(this).attr("value"));
})
);
</code></pre>
<p>And</p>
<pre><code><a id="showKey" href="#" value="{{ customer.key }}">
<span class="icons icon-key"></span>
Show key
</a>
</code></pre>
<p>The alert gives and u... | javascript jquery | [3, 5] |
4,410,229 | 4,410,230 | Hiding Linkbutton controls in a Formview using page index events | <p>I want to be able to hide some item controls on a <code>Formview</code>. I have defined a method so that when a certain requirement is met, the <code>Add</code>, <code>Update</code> and <code>Delete</code> linkbuttons that I have set won't be displayed in my Formview. The code that I use to achieve this is the sam... | c# asp.net | [0, 9] |
1,525,834 | 1,525,835 | Javascript module pattern, ajax functions callbacks | <pre><code>var ajaxStuff = (function () {
var doAjaxStuff = function() {
//an ajax call
}
return {
doAjaxStuff : doAjaxStuff
}
})();
</code></pre>
<p>Is there any way to make use of this pattern, and fetch the response from a successful ajaxcall when calling my method? Something like t... | javascript jquery | [3, 5] |
2,293,087 | 2,293,088 | How to programmatically hide a button within Android SDK using NFC | <p>I have two buttons within my Android application. It currently shows the two buttons when you open the application. What I would like to do is to hide these buttons from the user until they have interacted with an NFC tag so if they were to open the application independently they would not be able to see them but if... | java android | [1, 4] |
869,252 | 869,253 | Problem with two JavaScript codes | <p>I have these two codes - </p>
<pre><code>new function($) {
$.fn.getCursorPosition = function() {
var pos = 0;
var el = $(this).get(0);
// IE Support
if (document.selection) {
el.focus();
var Sel = document.selection.createRange();
var SelLength = document.selection.createRange().text.length;
Sel.mov... | javascript jquery | [3, 5] |
3,065,778 | 3,065,779 | On the server, player movement is not rendered | <p>This code renders the motion of the player, changing the picture. Locally it works fine on the server change picture is not visible. But if you uncomment the alert ("right1"); and alert ("right2"); will be seen as an image change. How do I make the server was also seen pictures change?</p>
<pre><code>var timer;
fun... | javascript jquery | [3, 5] |
4,398,700 | 4,398,701 | Return values of checked checkboxes as CSV - jQuery | <p>I have a form and I have check-boxes inside like;</p>
<pre><code><form id="testid">
<input class="chkbx" type="checkbox" value="option 1" />option 1
<input class="chkbx" type="checkbox" value="option 2" />option 2
<br/><br/><a id="test">test</a>
</form>
</code></p... | javascript jquery | [3, 5] |
4,135,136 | 4,135,137 | unable to start a new project eclipse | <p>I am a new android developer. </p>
<p>I was trying to install eclipse in my system and after installation when I was to open a new project the column of build target is been empty. </p>
<p>So i can't create or start a project... please help me in rectifying this problem.</p>
| java android | [1, 4] |
5,267,920 | 5,267,921 | Javascript loader | <p>I have an image carousel on my page with some fairly small images. the issue is not with the images but with the script itself. I want to display a javascript loader image while the entire plugin is loaded and is ready for action. </p>
<p>when i launch the page, the carousel <code><li></code> first display li... | javascript jquery | [3, 5] |
3,156,061 | 3,156,062 | Messagebox asp.net c# | <pre><code>int approvalcount;
if (approvalcount > 0)
{
string script = @"confirm('Click OK or Cancel to Continue') ;";
ScriptManager.RegisterStartupScript(this, this.GetType(), "confirm_entry", script, true);
}
else
{
return true;
}
</code></pre>
<p>I need help for the above code. If click ok need to r... | c# asp.net | [0, 9] |
2,262,448 | 2,262,449 | Make a sliding div stop when reaches end of post div | <p>i have a floating box on the side of my post. This is the code of the post div</p>
<pre><code> <div class="post-entry>
<div class="float-div">
data
</div>
divs and text
</div>
</code></pre>
<p>And this is the javascript code that make it to move with a nice effect</p>
<p... | javascript jquery | [3, 5] |
194,694 | 194,695 | Delay each iteration of loop by a certain time | <p><strong>JSFiddle:</strong> <a href="http://jsfiddle.net/KH8Gf/27/">http://jsfiddle.net/KH8Gf/27/</a></p>
<p><strong>Code:</strong></p>
<pre><code>$(document).ready(function()
{
$('#expand').click(function()
{
var qty= $('#qty').val();
for (var counter = 0; counter < qty; counter++)
... | javascript jquery | [3, 5] |
4,273,122 | 4,273,123 | assistance using array in android | <p>I am developing a basic android app which must handle several different things typically adding data and deleting an entry, must make use of an array.</p>
<p>at the moment I have a class that deals with adding a product this makes use of 2 edit texts fields and 4 spinners, when the user clicks on add product it wil... | java android | [1, 4] |
2,194,018 | 2,194,019 | Timer not working | <p>My problem is that timer doesn't pause correctly. When I hit pause it looks like it has stopped but actually it continues to cycle, and when I hit start it doesn't continue from where I paused, but from the location it had reached.</p>
<pre><code><div class="stopwatch">
<span>00:00:00,000</span&g... | javascript jquery | [3, 5] |
1,275,230 | 1,275,231 | Setting up Android code for different runtimes | <p>I am working on an Android application that is supposed to run on Android 1.5 and later devices. I am using <code>RawContacts.CONTENT_URI</code> enumeration for registering a <code>ContentObserver</code> in my application subclass. Now, RawContacts was introduced in Eclair and running this code on Android devices ha... | java android | [1, 4] |
1,644,322 | 1,644,323 | How to set an alarm for a selected date and time? | <p>I have this code from where I can set a time and date from date picker and time picker at once:</p>
<pre><code> private void dialoguetime() {
final Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.custom_dialogue);
dialog.setCancelable(true);
dialog.setTitle("This is Dialog 1");
... | java android | [1, 4] |
775,881 | 775,882 | how to get the return value from a JS dialog box in asp.net without tying it to a button | <p>How can one display a confirmation box & get the return value in C# code in ASP.NET without tying it to a button? I need to display the confirmation box from inside the event handler of a button if a certain condition is filled.</p>
<p>Situation:</p>
<pre><code>protected void okBtn_Click(object sender, EventAr... | c# javascript asp.net | [0, 3, 9] |
2,603,543 | 2,603,544 | output buffer empty until tcpdump is killed | <p>I am running the tcpdump on my android emulator and since the tcpdump is running in the background there isnt any data in the buffer and hence the application is stuck at this point.
here is the part of the code:</p>
<pre><code>else if (tcpdumpButton.isChecked())
{
try
{
... | java android | [1, 4] |
4,223,326 | 4,223,327 | in Jquery, how can I alert one part of a JSON object? I get "undefined" | <p>I have a an array: </p>
<pre><code>$result = array('statusAlert' => 'Your input was validated'
'input' => $input); // $input is a string
json_encode($result);
</code></pre>
<p>in jQuery, I want to alert 'statusAlert' and 'input' separately? How do I access them?</p>
<p>I tried <code>alert(... | php javascript jquery | [2, 3, 5] |
3,649,685 | 3,649,686 | Python faster than C++? How does this happen? | <p>I'm using Windows7 using CPython for python3.22 and MinGW's g++.exe for C++ (which means I use the libstdc++ as the runtime library). I wrote two simple programs to compare their speed.</p>
<p>Python:</p>
<pre><code>x=0
while x!=1000000:
x+=1
print(x)
</code></pre>
<p>C++:</p>
<pre><code>#include <ios... | c++ python | [6, 7] |
4,273,642 | 4,273,643 | jQuery ajax POST params with ">" symbol problem | <p>I'm trying to get a textbox value which contains ">" symbol using jQuery ajax with POST method, but I'm not getting the textbox value with ">" symbol. I'm tired of find a solution, please could anyone help me to fix this problem.</p>
<pre><code><div id="subi"><input type="textbox" id="test"><button o... | php jquery | [2, 5] |
4,572,098 | 4,572,099 | Wait for function to finish before executing the rest | <p>When the user refreshes the page, <code>defaultView()</code> is called, which loads some UI elements. <code>$.address.change()</code> should execute when <code>defaultView()</code> has finished, but this doesn't happen all the time. <code>$.address.change()</code> cannot be in the <code>success:</code> callback, as ... | javascript jquery | [3, 5] |
5,785,116 | 5,785,117 | JQuery ASP.Net Performance Question | <p>The ASP.Net app (not MVC) is slow, someone heard that Jquery can speed things up by offloading work to the client.
Due to security reasons Jquery/Client can't make Web Service calls so squirrely ways of having the code behind making Web Sevices calls and passing data back to the client are being done to Jquery popup... | asp.net jquery | [9, 5] |
3,140,681 | 3,140,682 | Check if checkbox is ALREADY checked on load using jQuery | <p>I am currently using</p>
<pre><code> $("#some-box").click(function(){
$("#main-box").toggle();
});
</code></pre>
<p>Which works well, except for when the checkbox is part of a page that saves the checkboxes status. If a checkbox is saved as ticked, the main-box (which is revealed when the checkbox is clicke... | javascript jquery | [3, 5] |
73,294 | 73,295 | Problem with concat string in jquery animate | <pre><code>count = 0;
total = 2;
jQuery("#slide").everyTime(5000,function(i){
if(count == total-1) {
count = 0;
jQuery(this).stop().animate({backgroundPosition: "0px 0"}, {duration:1000});
}
else{
jQuery(this).stop().animate({backgroundPosition: "-"+950*count+"px 0"}, {duration:1000}... | javascript jquery | [3, 5] |
1,663,315 | 1,663,316 | jQuery: Define multiple variables with a single chain? | <p>Is it possible to define multiple variables with a single jQuery chain?</p>
<pre><code>var sectionTable = jQuery("#sectionsTable")
var sectionTableRows = sectionTable.find("tr");
var sectionTableColumns = sectionTableRows.find("td");
</code></pre>
<p>I don't know what the syntax would be if it is possible but if y... | javascript jquery | [3, 5] |
4,862,634 | 4,862,635 | 'Refire' jQuery every second? | <p>The following code adds a class to the last div:</p>
<pre><code>$(".mydivs:last").addClass('added');
</code></pre>
<p>This works on page load but the divs are in an animation, so the order changes. Is there a way to make the code run every second, so the class is added to the last div each time? </p>
<p>For me I ... | javascript jquery | [3, 5] |
528,855 | 528,856 | Disable checkbox based on text value | <p>I need to disable a checkbox when a user enters text into a text area, otherwise it would be active. I have tried most relevant events but I can't get it to work. onkeydown disables for the first press and onchange will work if the user enters something then deletes it. Nothing seems to disable it after they leave t... | javascript jquery | [3, 5] |
2,037,723 | 2,037,724 | Apply Jquery to generated content | <p>Hoping someone can point me in the right direction.</p>
<p>I've got this code:</p>
<pre><code>//nextButton processing
$('.nextButton').on("click", function(){
//$('.nextButton').click(function(){
var querystring = $("#formStep").serialize() + "&step=" + step + "&session=" + session;
... | javascript jquery | [3, 5] |
2,853,008 | 2,853,009 | Highlighting divs while scrolling with arrows | <p>So i've been stuck on this problem for a little while. Here is what im working with right now (a quick mock up). <a href="http://jsfiddle.net/coconnor/2UALk/2/" rel="nofollow">jsFiddle link</a></p>
<p>I can get the thing to scroll and highlight the selected notes (and click on them), but the scroll bar is faster th... | javascript jquery | [3, 5] |
2,456,704 | 2,456,705 | change button background in an function on android sdk 15 and below | <p>on SDK 16 and above I can change button background by </p>
<pre><code>messagesButton.setBackground(swapDrawable);
</code></pre>
<p>but this function does not work on sdk 15 and below. Is there a different way to change button background programmatically ?</p>
| java android | [1, 4] |
192,685 | 192,686 | Parsing using mrss | <p>I'm trying to parse an mrss feed using jquery but am having some difficulty targeting the child element.</p>
<p>Code:</p>
<pre><code>$(xml).find("item").each(function(){
var $item = $(this);
alert($item.find("media\\:thumbnail").text();
});
</code></pre>
<p>MRSS Structure:</p>
<pre><code><media:thumbna... | javascript jquery | [3, 5] |
4,157,528 | 4,157,529 | How to get All Files Name Of Particular Folder From Server in Android without webservices | <p>How to get All Files Name Of Particular Folder From Server without webservices ?
Suppose my folder is Located On LAn And its Address is <strong>http://192.168.93.23/DATA</strong></p>
<p>Data Folder Contains Many Files So I want to Get All Files Name From Data Folder ?
How i get all Files Names in Android Or Java ?<... | java android | [1, 4] |
2,785,192 | 2,785,193 | Why can I not access the data attribute of an element with jQuery. | <p>I have the following HTML:</p>
<pre><code> <div class="button disabled dialogLink"
id="edit"
data-action="Edit" >
<div class="sprite-blank" ></div>
</div>
</code></pre>
<p>This javascript</p>
<pre><code>$('.dialogLink')
.click(function () {
adm... | javascript jquery | [3, 5] |
2,167,805 | 2,167,806 | need help with jQuery when not hovering over a particular element | <p>I am having a navigation div (the id is navigation) i am thinking of writing a code that executes when i am not hovering over the navigation. Can somebody explain me how can that be possible with jQuery.</p>
<pre><code>
<ul id='navigation'>
<li>a</li>
<li>b</li>
<li>c... | javascript jquery | [3, 5] |
710,619 | 710,620 | Using System Exception | <p>I have a project I am creating and I am adding a reference to a class that generates an email where the exception happened and lots of good stuff. </p>
<p>My question is. If I was to put this in a method and call it in the <code>Catch{}</code> how would i do this for the whole project so i could just name the metho... | c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.