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,207,165 | 4,207,166 | Storing different types of arguments in HashMap | <p>I am using following code:</p>
<pre><code>public boolean initialSetupDone;
public Currency defaultCurrency;
public String userId;
final String kProfileSetupDoneKey = "kProfileSetupDone";
final String kDefaultCurrencyKey = "kDefaultCurrency";
final String kUserIdKey = "kUserIdKey";
</code></pre>... | java android | [1, 4] |
3,166,966 | 3,166,967 | Retrieve the app package and version in Android | <p>I'm implementing an error report system in my app, </p>
<p>how can I retrieve programmatically the package of my app and its version? </p>
<p>Thanks</p>
| java android | [1, 4] |
1,171,892 | 1,171,893 | Inject Javascript from asp.net code behind files | <p>Am I injecting this correctly,</p>
<pre><code> string myScriptName = "EventScriptBlock";
string myScript = string.Empty;
//Verify script isn't already registered
if (!ClientScript.IsClientScriptBlockRegistered(myScriptName))
{
Response.Write('b');
mySc... | c# javascript asp.net | [0, 3, 9] |
4,625,349 | 4,625,350 | How to display jquery on more than 1 field? | <p>i can not use this keypad plugin on multiple fields. The first one works perfect but the other ones do not work. what do i need to do to make it work on all?</p>
<pre><code><script type="text/javascript">
$(function () {
$('#item_fee').keypad();
});
</script>
</head>
<body>
... | php javascript jquery | [2, 3, 5] |
1,743,881 | 1,743,882 | Browsed Time Problem | <p>I want to display the browsed time of a user, But when i refresh it, it will be again start from 0:0:0.
How can it handle?</p>
<pre><code><?php
$total_mints=($live_match['match_name']) * (60);
?>
<script language="javascript">
display_c(<?=$total_mints?>,'ct');
</script>
<script type=... | php javascript | [2, 3] |
440,239 | 440,240 | Combaining two array into single multi dimensional array in javascript | <pre><code>status_name=Array("a","b","c","b","e","f");
status_id=Array( 1, 2, 3, 4, 5, 6);
</code></pre>
<p>How to combine these two arrays and to built multi dimensional array Expected Multidimensional array be like this</p>
<pre><code>[["a", 1],["b", 2],["c", 3],["d", 4],["e", 5],["f", 6]]
</code></pre>
<p>Help me... | javascript jquery | [3, 5] |
2,425,062 | 2,425,063 | Blur event stops click event | <p>Example code: <a href="http://jsfiddle.net/slolife/PnmxM/" rel="nofollow">http://jsfiddle.net/slolife/PnmxM/</a></p>
<p>I am asking this even though there are a number of similar questions, but I feel that they are not the same.</p>
<p>I have an textbox that when it is blurred, should do something.</p>
<p>I also ... | javascript jquery | [3, 5] |
2,283,239 | 2,283,240 | jQuery click event triggering more than once | <p>I am having trouble figuring out what is causing the click event to fire more than once in the webapp below. Please visit the url, click on any level [from Ground - 4], and then click on a unit.</p>
<p><a href="http://plaza.foxqa.com.au/touch/index.html" rel="nofollow">http://plaza.foxqa.com.au/touch/index.html</a>... | javascript jquery | [3, 5] |
3,998,202 | 3,998,203 | Disabled Checkbox is not showing as checked in jQuery | <p>All,
I have the following bit of PHP to check a checkbox:</p>
<pre><code><input type="checkbox" name="check_out_gear[]" id="'.$resultsetgear['gear_checkout_id'].'" value="'.$resultsetgear['gear_checkout_id'].'" class="gear_checkout_checkbox" checked disabled>
</code></pre>
<p>That code works fine and the che... | php jquery | [2, 5] |
1,327,436 | 1,327,437 | jQuery content slider with start/stop/resume functionality | <p>Is there a jQuery content slider plug-in out there with start/stop functionality as well as an auto-resume functionality?</p>
<p>I basically want the plug-in to cycle through content and have the ability to pause it. After 5 minutes of it being paused I want the ability to auto-resume the sliding. </p>
| javascript jquery | [3, 5] |
3,290,423 | 3,290,424 | Is there a PHP equivalent of "new Array (number)" in javascript? | <p>I was trying to convert basic Javascript function into PHP, and I saw that one of the variables was declared <code>var Variable = new Array (13)</code>.</p>
<p>I know that PHP variables are declared like: <code>$variable = array()</code></p>
<p>but what about the "13" in <code>new Array(13)</code>? does that trans... | php javascript | [2, 3] |
2,159,565 | 2,159,566 | jQuery: How do I remove surrounding div tags? | <p>In this line...</p>
<pre><code><div class="textwidget">lorem ipsum dolor sit amet</div>
</code></pre>
<p>I'd like to get rid of the surrounding div tags with jQuery so the output looks like this:</p>
<p><code>lorem ipsum dolor sit amet</code></p>
<p>Is this possible?</p>
| javascript jquery | [3, 5] |
5,565,464 | 5,565,465 | Max value in array, based on a function | <p>I have an array of objects. I want to find the "maximum" of this array based on a function that returns whichever object is bigger when given 2 objects.</p>
<pre><code>function comparison(first, second) {
// ... arbitrary comparison based on properties...
return first; // or second
}
var a = [obj1, obj2, o... | javascript jquery | [3, 5] |
1,826,015 | 1,826,016 | jQuery: fadeToggle() not change text of link Show / Hide | <p>I have a problem with fade toggle, It works when the div is visible to start with and link "Show QR" change to "Hide QR".
Link "Hide QR" should be clicked and div hidden but link of text not change to "Show QR"</p>
<p>html:</p>
<pre><code><a class="emotTab" id="qrshow" href="javascript:void(0);">Show QR</... | javascript jquery | [3, 5] |
3,263,721 | 3,263,722 | Is there a way to input values on a web site's text box using a database table values? | <p>I have a table with username and passwords that I want to input in Hotmail's username and password box. Is there a way to actually program this? Are you allowed to manipulate text boxes of someone else's webpage? Not for illegal purposes, just to make my job easier and to not have to input values manually one by one... | java php javascript | [1, 2, 3] |
124,185 | 124,186 | Unwanted automated creation of new instances of an activity class | <p>I have an activity (called Sender) with the most basic UI, only a button that sends a message when clicked. In the onClickListener I only call this method:</p>
<pre><code>private void sendSMS(String msg)
{
PendingIntent pi = PendingIntent.getActivity(this, 0,
new Intent(this, Sender.class), 0);
... | java android | [1, 4] |
1,063,235 | 1,063,236 | bind but not display items in drop down in c# | <p>I have a question here.</p>
<p>I want to bind a drop down in c# with below values</p>
<pre><code>value text
----- ----
1 abc
2 pqr
3 xyz
4 ppp
</code></pre>
<p>however i want to display only items related to 1,2 and 3.</p>
<p>is it possible to bind all values however display... | c# asp.net | [0, 9] |
5,705,978 | 5,705,979 | What do I need to do reference a c++ dll from a C# application? | <p>The C++ dll is using Win32 to read from and write data to the Serial Port. I need that data in my C# application. Is it simply a case of referencing the dll the way I would any other dll written in C#, import that and then call the methods in it? Or do I need to do something differently?</p>
| c# c++ | [0, 6] |
2,196,461 | 2,196,462 | js jQuery, always have a number display at least two digits 00 | <p>I'm using the following to add one to number:</p>
<pre><code><div id="count">00</div>
<div id="count">03</div>
<div id="count">08</div>
<div id="count">12</div>
$('#count').text(function(i,txt) { return parseInt(txt, 10) + 1; });
</code></pre>
<p>I always want there... | javascript jquery | [3, 5] |
1,461,968 | 1,461,969 | Sequentially Load DIV using Jquery | <p>Is it possible to load a series of DIVS using Jquery using a preloader.</p>
<p>For instance, I have a page with 4 divs nested within 1 main div.</p>
<p></p>
<p> </p>
<p>I'd like to load content1, then content2, and so on.</p>
<p>Plus, only 1 div will load at a time in the sequence.</p>
<p>Is this p... | php jquery | [2, 5] |
3,669,027 | 3,669,028 | validation in asp.net login control | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7213131/validation-problem-in-asp-net-login-control">validation problem in asp.net login control</a> </p>
</blockquote>
<p>I have asp.net login control in my web application. When I give the incorrect username a... | c# asp.net | [0, 9] |
5,595,153 | 5,595,154 | Java v/s PHP, how do this technology stack up for Web Application Development? | <p>I am new to Web Programming and I hear that there are many biggies like Java, .Net and PHP for Web Application Development. </p>
<p>I would certainly appreciate if I can get some insights on how this technology stack up in comparison and in what scenarios one would prefer one technology over the other. </p>
<p>Tha... | java php | [1, 2] |
1,005,360 | 1,005,361 | Object reference not set to an instance of object, help needed | <p>I have the code below </p>
<p>It throws an error <strong>"Object reference not set to an instance of object"</strong></p>
<pre><code>TextBox rateCenterName = (TextBox)row.FindControl("txtRateCenterName");
cmd.Parameters.Add("@RateCenterName", OleDbType.VarChar).Value = rateCenterName.Text;
</code></pre>
| c# asp.net | [0, 9] |
2,457,261 | 2,457,262 | pjs is undefined (processingjs) | <p>if i use this:</p>
<pre><code>$(document).ready(function() {
pjs = Processing.getInstanceById("EyeCanvas");
console.log(pjs);
}
</code></pre>
<p>then pjs is always undefined</p>
<p>when i use this:</p>
<pre><code>function test() {
pjs = Processing.getInstanceById("EyeCanvas");
console.log(pjs);
}... | javascript jquery | [3, 5] |
3,555,153 | 3,555,154 | Disabling element in jQuery | <p>Okay so I want to click an item, then have that item become unclickable, and not execute the jQuery attached to it. I am currently using this </p>
<pre><code>$(clicked_id).prop('disabled', true);
</code></pre>
<p>However that is not working.</p>
<p>Any help is much appreciated!</p>
<p>EDIT:</p>
<p>This is the H... | javascript jquery | [3, 5] |
4,530,032 | 4,530,033 | form updated by javascript missing post values | <p>I have a form that I ad an element to via JavaScript before it is submitted.</p>
<pre><code> parent.document.getElementById('submitcomment' + id).innerHTML = '<img class="image_real" src="/images/site.png" alt="Mostly Dirty," />
<input class="real" name="freshness" type="text" size="5" maxlength="6" />... | php javascript | [2, 3] |
3,262,483 | 3,262,484 | Why my code to set the checked state of a checkbox with query doesn't work? | <p>Why this works</p>
<pre><code> document.getElementById("myCheckbox").checked = false;
</code></pre>
<p>whereas this doesn't with jquery:</p>
<pre><code> $("myCheckbox").attr("checked") = false;
</code></pre>
| javascript jquery | [3, 5] |
744,398 | 744,399 | get url with content after hash | <p>How can I get url with content after hash ?</p>
<p>window.location return me url without hash :/</p>
<p>for example:</p>
<p>www.mystore.com#prodid=1</p>
<p>window.location return only www.mystore.com</p>
| javascript jquery | [3, 5] |
4,125,880 | 4,125,881 | Display vertical-scrollbar for Jquery Mobile for ipad2 | <p>I trying to create dialog with div area that can scroll in it. Currently I'm not found the best way to do it. Welcome every suggestion :).</p>
| javascript jquery | [3, 5] |
1,594,491 | 1,594,492 | Problem occured in IE8 Compatibility view? | <p>I am using the Jquery and asp.net pages in my web application. In IE8 compatibility some of control width not getting render properly : dialog open with some auto width but the dialog title width not getting properly width as its content gets. Also some of the drop down list shown with very less width size. </p>
<p... | jquery asp.net | [5, 9] |
4,286,199 | 4,286,200 | How to find and remove attirbutes in cloned item using jquery? | <p>I trying to clone a div content with below code.</p>
<pre><code>var clonedItem = $("#cloneableSchoolTab").clone();
clonedItem.find(".clonableSchool").addClass("clonedSchoolTab" + schoolTabCount );
$("#clonedSchoolTabsContainer").append(clonedItem);
</code></pre>
<p>First line gets the whole target item. But, the e... | javascript jquery | [3, 5] |
1,357,075 | 1,357,076 | How to set the value of text inputs in a table in jQuery? | <p>I have these text inputs in a table :</p>
<pre><code><td><input type='text' name='arrondi_devis_ht' class='calcul_total' size='8'></td>
<td><input type='text' name='arrondi_devis_ttc' class='calcul_total' size='8'></td>
<td><input type="text" name='marge_pourcent' class=... | javascript jquery | [3, 5] |
3,983,274 | 3,983,275 | How to auto-scroll div content vertically continuously | <p>I need to scroll the div which contains images, vertically. Any help or references will be highly appreciated.</p>
| javascript jquery | [3, 5] |
4,677,639 | 4,677,640 | echo php results to two separate divs | <p>I have one php function that receives drop down variables through javascript. The variables are processed through the function, and the function returns two results. I would like to show one of the results in div 'one' at the top of a page and the other result to display in div 'two' which is at the bottom of the sa... | php javascript | [2, 3] |
2,950,622 | 2,950,623 | How to relaunch a application immediately in android after being killed? | <p>Hi i make an antivirus and anti theft application on android. I want to relaunch my application immediately after being killed by a task killer. For now, i only use <code>START_STICKY</code> method from service, but it takes a few time to restart my application and service after being killed. My antivirus and anti t... | java android | [1, 4] |
226,463 | 226,464 | Validating DOM Elements | <p>I have some input HTML elements which I want to validate whether they are filled up or not. Basically, they are mandatory. I am doing something like this:</p>
<pre><code> var displayNames new Array();
displayNames[0] = "Name";
displayNames[1] = "Address";
displayNames[2] = "Age";
function validForm(... | javascript jquery | [3, 5] |
5,804,291 | 5,804,292 | Need to change div's contents while slider changes | <p>My jquery banner needs to some fixes. I have used echo slider for banner. when banner image change to another image, we need to change the content in a div which is not inside the slider's boundary. The Div is separate div (No connection with slider ).</p>
<p>I have tried with the code. i just put if statement base... | javascript jquery | [3, 5] |
2,883,356 | 2,883,357 | window.opener.doccument.getelementbyid() is not working when popup from iframe | <p>I am calling a popup from an iframe and when I click a button the popup should close and show a message in parent iframe. I am using the javascript below</p>
<pre><code>function ClosePopup() {
var fRame = window.opener.document.getElementByID('lblMessage').innerHTML="testMessage";
self.close();
}
</code></... | javascript asp.net | [3, 9] |
1,173,283 | 1,173,284 | Android Delete Directory Not Working | <p>I am trying o delete an entire directory. I have searched and I am using <a href="http://stackoverflow.com/questions/5701586/delete-a-folder-on-sd-card">this</a> code and I am able to delete everything in the directory, but the directory still remains. Here is the exact code I have just in case I am missing somethin... | java android | [1, 4] |
587,902 | 587,903 | how to write this type of fraction value as shown below? | <p><img src="http://i.stack.imgur.com/ZaLxN.png" alt="enter image description here"></p>
<p>Hot to write this type of fraction Value in java or android code as shown above ? Any idea/suggestion will be appreciated.</p>
| java android | [1, 4] |
4,221,701 | 4,221,702 | JQuery method execution order? | <p>I am trying to use the below to load data from a specific <code><div></code> from a page that contains <code><ul><li></code> structure into a <code><div></code> on this page. What is currently happening is that it "seems" to try and load the menu before the data is there. I say this because... | javascript jquery | [3, 5] |
1,043,570 | 1,043,571 | How to develop a Windows 8 Desktop Application | <p>How to develop a Windows 8 Desktop Application and how to add this application to windows 8 store?</p>
<p>I am not able to understand how to develop this application and what are the requirements for developing this application.</p>
<p>Provide me link and related information.</p>
| c# asp.net | [0, 9] |
5,886,339 | 5,886,340 | How do you dynamically update your Android application? | <p>I am new to android development, but I am wondering how an android application like ESPN Scorecenter or maybe a news application dynamically updates without the user having to do this manually. Will changing/updating the apk file automatically change the user's android app or will they have to update the version?</p... | java android | [1, 4] |
473,377 | 473,378 | Uncaught TypeError: Cannot call method 'show' of null | <p>I am getting an :Uncaught TypeError: Cannot call method 'show' of null" error in a script which points out the error is somewhere in this area, see below:</p>
<pre><code> // Show the correct more view images and if there are moreviews displayed, display the more views title
if (selectedmorevi... | javascript jquery | [3, 5] |
4,073,308 | 4,073,309 | Using beforeunload and unload together? | <p>I heard that Opera doesn't work with beforeunload. And some earlier versions of IE also. So how can I use these together ? If I use below, it runs 2 times (They all work) in Firefox.</p>
<pre><code>$(window).bind('beforeunload', function () {
});
$(window).unload(function () {
});
</code></pre>
| javascript jquery | [3, 5] |
4,254,637 | 4,254,638 | ArrayList Find First and Last Element | <p>Good Evening,</p>
<p>I have an ArrayList (instantiated as ld_data) and I iterate forward and back looking / displaying to the user the element data. In this process I need to know when I am at the first element and the last. Detecting when I am at the last element I do as such:</p>
<pre><code>if((index + 1) <= ... | java android | [1, 4] |
1,929,408 | 1,929,409 | Providing Edior with all features available in ms word and need to be save, edit, update, print options | <p>I need to provide an editor to the end user with all the features available in ms word and also provide edit, update and save options of the document in asp.net application.</p>
<p>I have tried by using third party controls like telerik, dev express, e-ice blue, etc..., but none of these editors have as many featur... | c# asp.net | [0, 9] |
3,518,533 | 3,518,534 | How can I replace just the css selector with jQuery? | <p>I would like to replace just the <code>height</code> attribute to <code>min-height</code></p>
<p>this is how I would normally change the value, but not sure how to change the attribute </p>
<pre><code> $('.mySelector').css('height','650px')
<div class="mySelector" style="cursor: -moz-grab; width: 1266px; heigh... | javascript jquery | [3, 5] |
4,128,572 | 4,128,573 | Trapping 404 and 500 errors when using tth DefaultHTTPClient | <p>I'm using the <code>DefaultHTTPClient</code> in Android to fetch pages. I'd like to trap 500 and 404 errors returned by the server but all I get is a <code>java.io.IOException</code>. How can I specifically trap those two errors?</p>
<p>Here's my code:</p>
<pre><code>public String doGet(String strUrl, List<Name... | java android | [1, 4] |
2,989,848 | 2,989,849 | Expected behavior when an request for a collection will have zero items | <p>Let's say you are given the following...</p>
<pre><code>List<Thing> theThings = fubar.Things.All();
</code></pre>
<p>If there were nothing to return, what would you expect fubar.Things.All() to return?</p>
<p>Edit:
Thanks for the opinions. I'll wait a bit and accept the entry with the most ups.</p>
<p>I ag... | java c# | [1, 0] |
2,325,285 | 2,325,286 | mysql_real_escape_string and jquery | <p>Let say i have a column product name and it has value <code>Shoe's</code>.
When i pick that value from db and use <code>mysql_real_escape_string</code> and placed it in html hidden input it becomes <code><input type='hidden' value='Shoe\'s' id='product_name'></code></p>
<p>When i do <code>$('#product_name').v... | php jquery | [2, 5] |
658,666 | 658,667 | I don't understand what return does in programming? | <p>The question basically says it all. I'm a noob so make it gentle.</p>
| java c++ | [1, 6] |
3,090,551 | 3,090,552 | Which layout to use for a home replacement application/grid of views? | <p>I'm trying to create a home replacement application and I want to know my options, I could use a TableLayout or nested LinearLayouts but the icon size and number of rows and columns of icons can change so I'm looking for something easier to manage, maybe just one layout and have items accomodate automatically someho... | java android | [1, 4] |
5,199,726 | 5,199,727 | Overwriting paddingLeft in a LinearLayout on Android | <p>i am currently making one android application, i moded title bar, so all content for title bar is holded in window_title.xml where i have LinearLayout set: paddingLeft="5dip" . And now i need to load one imageView on the right side of this titleBar how i am able to some kind of overwrite this paddingLeft i cant dele... | java android | [1, 4] |
3,383,688 | 3,383,689 | How to encode a string to replace all special characters | <p>I have a string which contains special character. But I have to convert the string into a string without having any special character so I used Base64 But in Base64 we are using equals to symbol (=) which is a special character. But I want to convert the string into a string which will have only alphanumerical lette... | java android | [1, 4] |
1,221,754 | 1,221,755 | Javascript: Validation for special charaters | <p>Im working on some validations and can't seem to wrap my head around checking for special chars, none should be used. Currently I grab the value, make an array and check for uppercase and numbers. I need a way to check for special chars as well. Another small issue I found is that it passes an uppercase when a numbe... | javascript jquery | [3, 5] |
2,251,527 | 2,251,528 | How do I set up a timer to prevent overlapping ajax calls? | <p>I have a page where search resuts are shown both in a grid and on a map (using KML generated on the fly, overlaid on an embedded Google map). I've wired this up to work as the user types; here's the skeleton of my code, which works:</p>
<pre><code>$(function() {
// Wire up search textbox
$('input.Search').b... | javascript jquery | [3, 5] |
2,376,755 | 2,376,756 | Jquery expand from external link | <p>I am trying to make it so that when a user clicks on a link from one page, it goes to another page that has a simple jquery collapsed text and expands (un-collapses) the text. My attempt is with the code below:</p>
<pre><code>$(function() {
var elem = $('#expand-4' + location.hash);
$('#expand-4-text').slideTo... | javascript jquery | [3, 5] |
3,897,657 | 3,897,658 | jQuery click.modalEvent | <p>Revising code of jQuery.reveal plugin (http://www.zurb.com/playground/reveal-modal-plugin) and trying to understand how it handles the modal behaviour, I see that it binds the closeModal function (that closes the popup) to the event <code>'click.modalEvent'</code>.</p>
<p>But I can't find any information about thi... | javascript jquery | [3, 5] |
5,056,451 | 5,056,452 | Broadcast a message to all available machines on WiFi | <p>my apologies if this is a trivial question.</p>
<p>I've recently begun doing some android programming and I'm writing a simple app that allows you to use your android device as a controller for your windows PC. Specifically it allows the user to do things like turn off the machine, make it sleep, reboot it etc etc.... | java android python | [1, 4, 7] |
4,199,061 | 4,199,062 | Which is better to initialize HTML control values: Javascript or inline server tags? | <p>Which is better/more maintainable, using Javascript to initialize the values of the different HTML controls or writing inline <code><% %></code> tags?</p>
<p>The current page I am writing has many HTML controls and I'm afreaid that putting inline ASP would make it too unmaintainable.</p>
| asp.net javascript | [9, 3] |
2,394,218 | 2,394,219 | In asp.net, how can I tell what triggered an additional page_load call? | <p>Greetings.</p>
<p>Is there a good way to determine what is calling my Page_Load method? I've got a few Componentart WebUI grids that call it, although I've checked all of those (using the gridName.IsCallback property). I've also got an update panel, but I'm not sure how to check if it is the caller.</p>
<p>I'm b... | c# asp.net | [0, 9] |
617,156 | 617,157 | Open word document in browser | <p>I have successfully done code to display pdf file in browser instead of open "Open/Save" dialog.
Now I stuck on to display word document in browser. I want to display word document in firefox, IE7+, chrome etc.</p>
<p>Can any one help. I am always getting "Open/Save" dialog while displaying word doc in browser.</p... | c# asp.net | [0, 9] |
2,159,580 | 2,159,581 | Display dates not in database, only specific days of the week | <p>I have a sql database filled with specific dates for weekly training. We only have weekly training on Tuesdays and Wednesdays. It currently outputs like this:</p>
<pre><code>Training Schedule
Mar 4 - Training Title
Mar 5 - Training Title
Mar 12 - Training Title
Mar 19 - Training Title
</code></pre>
<p>Well now I ... | c# asp.net | [0, 9] |
1,149,106 | 1,149,107 | Jquery Notification Popups - jquery and updatepanels | <p>Hi i want notifications to popup if the need arises. I am using an asp.net timer which checks if a new message has arrived. The problem i am getting is that the jquery notification does not show up. I am guessing this is something to do with the update panel. Because when i tried calling it from pageload it worked f... | c# jquery | [0, 5] |
4,225,980 | 4,225,981 | jQuery Ajax Call to asp.net webmethod | <p>Can any one say
How we can specify a Success Function in Jquery Ajax call.
Suppose I have function like below `function </p>
<pre><code>getComments(data,url,SucessFunction,FailurFunction) {
var list = [data];
var jsonData = JSON.stringify({ list: list });
$.ajax({
type: "POST",
url: url,
data... | jquery asp.net | [5, 9] |
2,451,163 | 2,451,164 | Can any one tell me the issue of this function .. this function isn't working | <pre><code>$(window).unload(function() {
var c = confirm("Are You want to open Foortal.pk");
if (c) {
window.location.replace("http://www.google.com")
return true;
} else {
return false;
}
});
</code></pre>
<p>i don't know about problem</p>
| javascript jquery | [3, 5] |
2,529,025 | 2,529,026 | jQuery make loaded file part of DOM | <p>I've loaded file in div</p>
<pre><code>$("#div").load("file.txt");
</code></pre>
<p>That file has html images .<br>
I want to access them by $('#div>img') (or other selectors), but nothing happens. If they were in page initially, there are no problems.</p>
<p>How can you access loaded content by jQuery as part of... | javascript jquery | [3, 5] |
1,865,768 | 1,865,769 | Get elements width and height | <p>How can i get <code>height</code> and <code>width</code> of element which doesn't a part of <strong>DOM</strong> yet?</p>
<p><strong>For example:</strong></p>
<pre><code>var t = $('<div style="position:absolute;height:100px;width:100px;background-color:steelblue;" >lalala</div>');
var height = t.heig... | javascript jquery | [3, 5] |
4,082,487 | 4,082,488 | Split value into percentage with a slider | <p>im new to jQuery and searching a way for doing smthing like this:</p>
<p>I have a value [100] and 5 categorys [apple, banana, kiwi, lemon, orange]</p>
<p>What I want is to have for each category a slider (a line with a point on it you can move)</p>
<p>So every category starts with a value of 20 (100 / 5).</p>
<p... | javascript jquery | [3, 5] |
2,738,334 | 2,738,335 | Can anyone convert this to jQuery? | <p>I have the following JavaScript to make use of a modal overlay. Can this be converted to jQuery?</p>
<pre><code> function overlay() {
el = document.getElementById("overlay");
el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
</code></pre>
| javascript jquery | [3, 5] |
3,028,760 | 3,028,761 | Can't access a control from LoginTemplate in LoginView | <p>Code in aspx page</p>
<pre><code><asp:LoginView ID="loginView1" runat="server" EnableViewState="false">
<LoggedInTemplate>
<asp:Button ID="btnWatchlist" runat="server" Text="+ Watchlist" />
<asp:Button ID="btnPM" runat="server" Text="PM" />
... | c# asp.net | [0, 9] |
2,451,267 | 2,451,268 | upload image file without post back in asp.net | <p>Does anybody know how can I upload an image file in a specific folder without post back
using c# .</p>
| c# asp.net | [0, 9] |
789,663 | 789,664 | How does one properly set an onclicklistener within another class? | <p>I have an activity which does all the setup process, i.e. creating the initial view and the OnClickListener, which then at some point creates an object passing the activity and OnClickListener as parameters. The object then does it's own setup, changing to view and setting TableRows with the OnClickListener. I run i... | java android | [1, 4] |
4,002,230 | 4,002,231 | Can we change the font size through code behind? | <p>I need to change the font size of bold thing below. I have a css for use but this bold part needs font changed to 8px instead of 10(css). i want someone to help me with how to change in Code behind.</p>
<pre><code>string newpackname = dschkdowngraded.Tables[0].Rows[0]["ChangedTo"].ToString();
DateTime dt = Convert.... | c# asp.net | [0, 9] |
1,730,547 | 1,730,548 | link press using keys in jquery | <p>I have a HTML page with jquery loaded in and 2 links on the page.</p>
<pre><code><a href='www.example.com'>Buttona</a>
<a href='www.example2.com'>Buttonb</a>
</code></pre>
<p>How can I make pressing the "1" key be like pressing the first link, and pressing the "2" key be like pressing the s... | javascript jquery | [3, 5] |
2,636,931 | 2,636,932 | Hide page when second click on menu | <p>I use jQuery to display an accordion menu when clicking on a menu title.</p>
<p>The first click displays the corresponding details page, and it works fine. Now, I need to hide this details page when the user clicks on that link for the second time.</p>
<p>Thanks in advance for help.</p>
| javascript jquery | [3, 5] |
1,596,049 | 1,596,050 | In Netbeans IDE, java web application project doesn't support php? | <p>In NetBeans IDE 6.9 there is no option to create a php file in java web project. But we can create a n empty file and save it as .php . However when i run the project php code is not interpreted. The code inside php tags is printed as it is. What am i doin wrong. Please can someone help me. Please.
Thanks in advan... | java php | [1, 2] |
3,523,592 | 3,523,593 | jQuery Jump Menu Functionality For iPhone | <p>On my page I have a regular list of links.</p>
<p>I found a script that will convert that to a select box and options that replicate the links.</p>
<p>Using the select box, and selecting one of the 3 options jumps to that options value/url.</p>
<p>But, it does not work on my iPhone. Does anyone know how I could a... | javascript jquery iphone | [3, 5, 8] |
1,824,249 | 1,824,250 | simulating mouse click | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4158847/is-there-a-way-to-simulate-key-presses-or-a-click-with-javascript">Is there a way to simulate key presses or a click with javascript?</a> </p>
</blockquote>
<p>I know it's an old and repeated question, b... | javascript jquery | [3, 5] |
288,927 | 288,928 | How to access the values from strings.xml dynamically? | <p>What I want to do is to get a specific text from <code>strings.xml</code> dynamically. I think it will involve to access an object variable dynamically.
There will be a function like:</p>
<pre><code>public void getDynamicString(int level) {
text.setText(R.string.levelText_+level);
}
</code></pre>
<p>And in <code... | java android | [1, 4] |
4,065,035 | 4,065,036 | Jquery/Javascript looping div scroller | <p>I'm trying to make 5 divs that loop in and out forever. The divs will have classes "text1" "text2" "text3" etc. Is there anything wrong with this code? It doesn't seem to work.</p>
<pre><code>$(document).ready(function(){
var num = 1
while(num =< 5) {
$('.text' + num).fadeIn().delay(4000).fadeOut... | javascript jquery | [3, 5] |
2,013,883 | 2,013,884 | how to get property from other function | <p>I want to access var w value from other function. Is it possible.</p>
<pre><code><script type="text/javascript">
var first = {
myFirst: function(){
var w= 90;
var q=12;
}}
var second= {
mySecond: function(){
first.myFirst.w
}}
</script>
</code></pre>
| javascript jquery | [3, 5] |
3,632,384 | 3,632,385 | How to bring focus to a window in jquery? | <p>I am trying to bring focus to window using jquery. The window is popup initiated through a button click on the parent page. I have some ajax calls going on in the child window, so data is being updated. My issue is that if the user clicks on the parent window and hides the child behind it, i would like to bring t... | javascript jquery | [3, 5] |
3,189,902 | 3,189,903 | How can I insert a variable into a variable string? | <p>I have this code which I need to set a unique <code>title</code>:</p>
<pre><code>var tmpImg = '<img src="/admin/icons/cross.png" title="' + title + '" />';
$(this).find("tr td input").each(function(){
title = $(this).attr("value");
$(this).hide().before(tmpImg);
});
</code></pre>
<p>What I want to h... | javascript jquery | [3, 5] |
5,092,587 | 5,092,588 | jquery/javascript menu issue .siblings() .toggle() | <p>I have coded a 3 level drop down menu in jquery and everything is working perfectly except for when I collapse the top level, it doesn't collapse the third level, i.e.:</p>
<pre><code>level 1
level 2
level 3
</code></pre>
<p>when I collapse it I get:</p>
<pre><code>level 1
level 3
</code></pre>
<p>when it should... | javascript jquery | [3, 5] |
4,725,390 | 4,725,391 | i want to store user clicks in database using php and jquery | <p>My users table field is id,name,twitter and clicks
(clicks is hidden )</p>
<p>Logic is : whenever user clicks on another users twitter id then it should be counted and then new updated click should be stored in database.
i can do above logic.</p>
<p>But i don't know that how to detect clicks made by mouse on any l... | php jquery | [2, 5] |
1,682,000 | 1,682,001 | How to make a Dropdownlist in the header reload the main page? | <p>Basically, I have this webpage that is the header on any page you go to. One of the elements in this header is a drop down list that is populated with customer names. On one of these pages there are text fields that need to update with new data depending on if the user selects a different customer from the drop down... | c# asp.net | [0, 9] |
4,244,490 | 4,244,491 | Displaying and retreiving 'seconds' with TimePicker | <p>Currently the TimePicker view shows only hours and minutes by default and I am retrieving the values using <code>getCurrentHour()</code> and <code>getCurrentMinute()</code>.</p>
<p>Is there a solution to add seconds to the TimePicker view?</p>
| java android | [1, 4] |
2,436,681 | 2,436,682 | JQuery's .append() executes 6 times instead of 1 | <p>Basically, what I'm trying to do is create a marquee type thing by scrolling vertically through the banners and then moving each to the bottom after it is out of view. I can't figure out why the banner is being appended six times. I realize that it's not quite complete so don't make a remark about that please. If yo... | javascript jquery | [3, 5] |
1,368,147 | 1,368,148 | Color not changing using Jquery | <p>I want the default "CSS class"to be black, and when using this select function for "selected" to have white text. I don't know where I'm going wrong</p>
<pre><code>$(function() {
$('a.link').click(function() {
$('a.link').removeClass('selected');
$(this).addClass('selected');
$(this).css('co... | javascript jquery | [3, 5] |
4,347,565 | 4,347,566 | conversion type | <pre><code>typedef wchar_t WCHAR buf[1024] ; // code from C++ dll
</code></pre>
<p>how to define above line of code in C# ? </p>
| c# c++ | [0, 6] |
1,997,606 | 1,997,607 | call to a function that changes picture every 2 seconds | <p>i have a picture and i want to change it every 2 seconds when my mouse is on it.
so i write:</p>
<pre><code>$("#profilePic").mouseover(function() {
var t = setTimeout("pictureChanger()",2000);
});
</code></pre>
<p>and this is the function:</p>
<pre><code>function pictureChanger() {
currentPicture++;
c... | javascript jquery | [3, 5] |
3,926,240 | 3,926,241 | How to send dynamic array value in another php file using jQuery | <p>Please, help me to solve this problem</p>
<p>When I am trying Single input value then input value transfer data.php file successfully and I get input value in data.php file to write this code echo $name=$_POST[‘name’]; but I can transfer input array value in data.php file, actually I have not enough knowledge abo... | php jquery | [2, 5] |
2,803,533 | 2,803,534 | 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] |
4,061,453 | 4,061,454 | Can you specify the load order for page elements? | <p>I think I know the answer to this, but want to make sure I've not missed something...</p>
<p>I have a webpage that has a small, flash logo animation at the top of the screen. I've kept it minimal and it's just a logo, so no critical navigation or anything silly in there. Because it's the first large element to load... | javascript jquery | [3, 5] |
441,583 | 441,584 | Bitmap Parameter Invalid | <p>I am facing an error when trying to create a bitmap directly from a string that contains file name and path.</p>
<p>My Code is described below:</p>
<pre><code>if (!string.IsNullOrEmpty(Request.QueryString["imagename"]))
{
string Image = Request.QueryString["imagename"];
Bitmap originalBMP = ne... | c# asp.net | [0, 9] |
5,849,213 | 5,849,214 | Given a string of html code, how can I go through every tag and remove ones that is not in my whitelist (in JQuery)? | <pre><code>var whitelist = ['a','div','img', 'span'];
</code></pre>
<p>Given a block of HTML code, I want to go through <strong>every single tag</strong> using JQuery</p>
<p>Then, if that tag is NOT in my whitelist, <strong>remove it and all its children.</strong></p>
<p>The final string should now be sanitized.</p>... | javascript jquery | [3, 5] |
1,316,384 | 1,316,385 | event contex for live function in jquery | <p>HI ,</p>
<p>I am using JQuery 1.3 , I am facing problem in using <code>live</code> event as in jQuery <code>DOM</code> element "context" is bound to default document root. So how to overcome such thing?</p>
<p>From <a href="http://api.jquery.com/live/" rel="nofollow">jQuery documentation</a>:</p>
<blockquote>
<... | javascript jquery | [3, 5] |
76,593 | 76,594 | How can convert ArrayList<Long> to String in Java (Android)? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/599161/best-way-to-convert-an-arraylist-to-a-string">Best way to convert an ArrayList to a string</a> </p>
</blockquote>
<p>I need your help! I have array of JSon (esponse from Facebook). ArrayList. How can conv... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.