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 |
|---|---|---|---|---|---|
683,345 | 683,346 | Store different passwords in android | <p>I am developing an android app which requires multiple default passwords to be stored</p>
<p>Based on the password entered by the user, he will be shown different forms to be filled.</p>
<p>What is the best solution to store the default passwords if the number of default passwords are more say(10 to 20)?</p>
<p>T... | java android | [1, 4] |
1,741,342 | 1,741,343 | How to handle Android portrait and landscape in code? | <p>I'm developing an application in two languages (Arabic and English), When the user press on a Button in the first activity it views another activity contains (Timer, array of strings and many different values)<br>
When the user change between portrait and landscape the values lost, How to handle this problem (Keepin... | java android | [1, 4] |
3,102,012 | 3,102,013 | Size of my Spinner too big | <p>My huge spinner: <a href="http://i.stack.imgur.com/zNxdX.jpg" rel="nofollow">http://i.stack.imgur.com/zNxdX.jpg</a></p>
<p>As you can see in the picture, my spinner is way too huge. I can't seem to find the problem.
Here is the code:</p>
<pre><code> RelativeLayout.LayoutParams lpSpinner = new RelativeLayout.Lay... | java android | [1, 4] |
830,109 | 830,110 | Jquery Keep Autosuggestion Box Show With Last Input | <p>I have an Jquery auto suggestion box, the function is ok. Now I want to when textbox not empty or last input by user, and when user click that textbox again, the suggestion box will appear.</p>
<p>Here is the JS :</p>
<pre><code>function suggest(inputString)
{
if(inputString.length == 0)
{
... | javascript jquery | [3, 5] |
5,872,959 | 5,872,960 | Download file in chunks | <p>I've got the problem as below:
There is some SOAP web service which allows to read stream files. I need to read the whole file divided to chunks and transmit to user. All actions should do not block UI main thread: user presses 'Save' button on save file dialog, and is able to move on to the next page or perform ano... | c# asp.net | [0, 9] |
4,774,518 | 4,774,519 | How to fire a rowclick event | <p>How can i trigger a row click event in ASP.NET GridView</p>
| c# asp.net | [0, 9] |
2,351,000 | 2,351,001 | Why Viewstate can contain only serializable object? | <p>I have a simple class with some properties and other data. Untill i stick serializable attribute to the class, i cannot save the object of the class into the viewstate.</p>
<p>Why Viewstate can contain only serializable objects?</p>
| c# asp.net | [0, 9] |
2,145,492 | 2,145,493 | Are JQuery and its peers helping or hurting JavaScript Knowledge? | <p>I noticed most questions related to client-side script on SO are JQuery related and that got me thinking. I'm wondering what the ease of these libraries is doing to actual KNOWLEDGE of JavaScript and the DOM. </p>
<p>So much is done for you that my fear is there is a growing number of web developers that actually k... | javascript jquery | [3, 5] |
3,383,590 | 3,383,591 | insert text into textarea when option selected | <p>I need your help.
I'm trying to insert some text into a textarea-element when the url contains 'number' and an option with value='option2' of a selectbox is selected.
<code><pre>
var contentToInsert = 'Text';
if (location.href.indexOf("/number")) {
if (value of selectbox == 'option2') {
$("textarea").append(co... | javascript jquery | [3, 5] |
4,956,091 | 4,956,092 | How get values from dynamically created textbox's in another click event in asp.net? | <p>I am adding dynamic textbox's to a panel in page load event, But I'm not able to access textbox's in button click event and it is showing panel controls count ZERO(0) in button click event. Please give me solution to access text box values in button click event .</p>
<p>Thanks in advise.</p>
| c# asp.net | [0, 9] |
5,331,981 | 5,331,982 | Jquery problem with plugin | <p>I have PHP page where users can upload photos (using Ajax & PHP script). Those uploaded photos (thumbs) are shown after upload in DIV below upload field and fancybox plugin (I'm using it for popup window for photos) is working ok then.</p>
<p>Then, after hitting send button I want to clone that DIV at that same... | php jquery | [2, 5] |
3,626,406 | 3,626,407 | how to show image from server without downloading it android | <p>I am building an Android app that will show images - based on exact GPS location. </p>
<p>My idea is to show these images from server <strong>without downloading</strong> them to phone. That way you can view them only if you have downloaded that app and have internet access.</p>
<p>Is it possible in Android?? </p>... | java android | [1, 4] |
4,663,187 | 4,663,188 | asp.net for finding how long a user spend in a website | <p>How to find how long a user spend in a website . It is to find the time span a user send in a website.</p>
| c# asp.net | [0, 9] |
4,066,159 | 4,066,160 | Multiple Checkbox post | <p>What is the best way to post muliple checkbox value and its siblings in jquery and get the post values in arrays by PHP?I have to get all values of checkbox and td.How can I do this?</p>
<p>Here is my checkbox in a table</p>
<pre><code><form action="test.php">
<table>
<tr><td><input type... | php jquery | [2, 5] |
1,893,111 | 1,893,112 | gridview all rows count | <p>I want to retrieve all rows count of Gridview.</p>
<p>When I try this </p>
<pre><code> GridView1.Rows.Count.ToString()
</code></pre>
<p>it returns only active page items count.</p>
<p>I m using generic list of my custom class as my GridView's data source . </p>
<p>How can I do this?</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
1,432,382 | 1,432,383 | How do you handle attaching JavaScript to UserControls in ASP.NET and keep multiple instance isolated? | <p>Lets say you need to attach some JavaScript functionality to an ASP.NET User Control of which there might be multiple instances on any given page. Because JavaScript has shared global state, what techniques can you use to keep the client state and behavior for each instance of a control separate?</p>
| asp.net javascript | [9, 3] |
3,759,256 | 3,759,257 | android: call javascript from java problem | <p>I want to know if there is way to call javascript from java on android?
In my program, I interact java and javascript together. I am using java to receive response(json data) from TCP server and save them into a file. In webview I am using javascript jQuery getJSON() function to retrieve that file and using jQuery p... | java javascript android | [1, 3, 4] |
2,345,761 | 2,345,762 | Save selected value of a dropdown list in a global variable | <p>I am trying to save the dropdown list selected value in a glbal variable .. I have lots of country on the dropdown list , whan I choose one of them and press a button :</p>
<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
Button2.Enabled = true;
Button2.Visible = true;
... | c# asp.net | [0, 9] |
2,344,521 | 2,344,522 | no line breaks in firebug when dynamically loading script with jQuery | <p>When I dynamically load a script with jquery</p>
<pre><code>...
options = {
dataType: "script",
cache: true,
url: "...appContr.js"
}
return jQuery.ajax(options);
...
</code></pre>
<p>and I debug the script with firebug, this script has the name "1" and everything is in
one line (or in a few lines). I can... | javascript jquery | [3, 5] |
5,155,051 | 5,155,052 | InnerHtml empty in HtmlContainerControl ASP.NET | <p>I have a rather specific question, that I couldn't find googling.</p>
<p>I have a div with a runat server like this:</p>
<pre><code><div id="Menu" runat="server">
<!--code-->
<div><%= SomeValue %></div>
<!--code-->
</div>
</code></pre>
<p>The problem is that I need... | c# asp.net | [0, 9] |
1,633,441 | 1,633,442 | Disable submit button on form submit | <p>I wrote this code to disable submit buttons on my website after the click:</p>
<pre><code>$('input[type=submit]').click(function(){
$(this).attr('disabled', 'disabled');
});
</code></pre>
<p>Unfortunately, it doesn't send the form. How can I fix this?</p>
<p><strong>EDIT</strong>
I'd like to bind the submit, ... | javascript jquery | [3, 5] |
5,442,887 | 5,442,888 | Unable to load the Javascript calendar on Href by using Jquery function | <p>I have my function as follows</p>
<pre><code> <script type="text/javascript">
$(function() {
$('#ctl00_ContentPlaceHolder1_TextBox2').datepick();
});
function showDate(date) {
//alert('The date chosen is ' + date);
}
</script>
</code></pre>
<p>I need this to be called when i click on <code>Href</code>... | jquery asp.net | [5, 9] |
3,922,281 | 3,922,282 | How do you retrieve the image source of an image that the user has clicked on? (jQuery) | <p>I am trying to retrieve the image source of an image that the user has clicked on.
This is what I have and it doesn't seem to be working:</p>
<pre><code>var imgSrc = getSrc(image)
function getSrc(image) {
$('img').each(function() {
$(this).click(function() {
$(this).attr('sr... | javascript jquery | [3, 5] |
5,953,596 | 5,953,597 | How to format the output of the javascript function date() ? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3552461/how-to-format-javascript-date">how to format javascript date</a> </p>
</blockquote>
<p>I have the following bit of code </p>
<pre><code> $('#ins_date').attr('value', Date());
</code></pre>
<p>What i ge... | javascript jquery | [3, 5] |
4,903,370 | 4,903,371 | Image caching in when using javascript | <p>its common place to use javascript like in this exsample:</p>
<p>Example: <a href="http://www.htmlite.com/JS019.php" rel="nofollow">http://www.htmlite.com/JS019.php</a></p>
<p>My question is: Does the second image download each time or is it cached when the page first loads. If so how does the server know to cache... | javascript asp.net | [3, 9] |
621,248 | 621,249 | Verifying proper transfer of JSON packet to iOS device | <p>I was wondering what is an easy and good way to verify my packet was transferred to the iPad successfully?</p>
<p>What I thought I could do, is pass the file size with the JSON object on the server side, and verify it's the same size on the iPad. On the server side, it's a rest service written in C#. I know I can... | c# iphone | [0, 8] |
1,295,573 | 1,295,574 | Can "external" javascript functions call "jQuery functions"? | <p>I have this code:</p>
<pre><code>(function ($) {
$(document).ready(function() {
test("hola","caracola");
});
function test(somevar1, somevar2)
{
alert(somevar1+ "" + somevar2);
}
}(jQuery));
function atest2(somevar1, somevar2)
{
test(somevar1+ "" + somevar2);
}
</code... | javascript jquery | [3, 5] |
2,369,945 | 2,369,946 | Passing multiple Eval parameters to a JavaScript function from ASPX | <p>I already know how it works with a single parameter </p>
<pre><code>OnClientClick='<%# String.Format("confirm_ticket({0});return false;",DataBinder.Eval(Container,"DataItem.idAgir"))%> '
</code></pre>
<p>but is it possible to pass 2 parameters?</p>
<p>thanks in advance</p>
| c# javascript asp.net | [0, 3, 9] |
463,193 | 463,194 | Multiple Gradient for single Textview | <p>Refering agradient to textview regard as normal action can be achieved in android ,</p>
<p>as below :</p>
<pre><code> android:background="@drawable/gredient"
</code></pre>
<p>and gradient XML will be as below code :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://sch... | java android | [1, 4] |
3,175,743 | 3,175,744 | lightweight jQuery countdown | <p>I've seen some really nice looking jQuery plugins to count down the number of day, hours, minutes and seconds. They use images and look great.
But I'm looking for a simple little countdown that populates a div with the number of seconds remaining.
I'm going to use it in conjunction with:</p>
<pre><code>function su... | javascript jquery | [3, 5] |
4,473,897 | 4,473,898 | Always return true when click on button when use jquery dialog | <p>I am using jquery dialog box. When I click on Button popup is open but it return true and excute server side event of button.</p>
<p>I want when user clicks on yes then return true and else return false.</p>
<pre><code> function btnCancelClick()
{
$("#dialog:ui-dialog").dialog("destr... | javascript jquery | [3, 5] |
4,809,910 | 4,809,911 | How to make Jquery Validation Error Messages Dynamic? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5618499/jquery-validation-in-different-languages">jQuery validation in different languages</a> </p>
</blockquote>
<p>I am using jquery.validate.js. And I need to show up the error messages in two languages. How ... | php jquery | [2, 5] |
3,760,647 | 3,760,648 | Check whether radio button is checked or not in jquery | <pre><code> <input type="radio" name="a" />
<input type="radio" name="a" />
<input type="radio" name="b" />
<input type="radio" name="b" />
</code></pre>
<p>I want to make sure that the <code>both group</code> of <code>radiobutton</code> must be checked, for this i tried :</p>
<pre><code>if... | javascript jquery | [3, 5] |
593,993 | 593,994 | append and appendTo working inconsistently | <p>I'm trying to build a small portfolio and I came up with the script below.
The problem I'm facing is the fact that there are times when append() doesn't seem to work. Same with appendTo() that I also tried.</p>
<p>I mean the script works but the append() function is inconsistant. </p>
<p>Any help will be highly ap... | javascript jquery | [3, 5] |
1,298,836 | 1,298,837 | What is difference between black and other colors in Android? | <p>Sorry, about my poor English. :c</p>
<p>I'm just trying to draw line by touch event in android.
But some problem is here.</p>
<p>When I try to draw black line, it works normally.
But When I try to draw line using other colors, it makes some kind of shade..</p>
<p>I want to know the reason why.</p>
<pre><code>pub... | java android | [1, 4] |
5,086,169 | 5,086,170 | using php _GET | <p>I am asking two things. </p>
<ol>
<li><p>The first question is am I doing this correctly? I am putting together a link with javascript variables</p>
<pre><code>http://google.com/test.php?var="+class4
</code></pre>
<p>And then I am using php to get the values of the variables from the URL</p></li>
<li><p>Can I use... | php javascript | [2, 3] |
1,676,376 | 1,676,377 | How to get current time of an html video in c# codebehind? | <p>I have added video control in ASP.NET page.</p>
<pre class="lang-xml prettyprint-override"><code><video controls id="movie" width="610" height="344" runat="server" preload="">
</video>
</code></pre>
<p>Javascript version is below:</p>
<pre class="lang-js prettyprint-override"><code>var v = $("#<%... | c# javascript | [0, 3] |
2,002,422 | 2,002,423 | PHP and Python static methods in objects, two different worlds...? | <p>i'm php coder, trying to get into python world, and it's very hard for me.</p>
<p>Biggest enjoy of static methods in php is automatic builder of instance. No need to declare object, if you needed it once, in every file (or with different constructor params , in one line)</p>
<pre><code><?php
class Foo {
fu... | php python | [2, 7] |
1,370,526 | 1,370,527 | Web Site code process with server side and client side code. When should the client side code be implemented? | <p>I'm developing a web site, which would make use of PHP, Javascript (JQuery) and use AJAX to connect the two. My question is, how should the coding process go.</p>
<p>I know that Javascript is supposed to be used as an extra kick, and should not be relied upon because it can be turned off. So, should I code the enti... | php jquery | [2, 5] |
1,641,663 | 1,641,664 | Jquery get each div's sub child divs and grab info into an array | <p>I have a some html that looks like this</p>
<pre><code><div id="main">
<div id="sub_main_1" class="sub_main">
<input type="text" class="sub_name_first" /><br />
<input type="text" class="sub_name_second" /><br />
</div>
<div id="sub_main_2" class="sub_m... | javascript jquery | [3, 5] |
3,564,534 | 3,564,535 | Remote Service. Rethrow exceptions to UI | <p>How can I catch Connection exception when I am calling WEbService methods from separate process(Remote Service) and how can I transfer information about this exception to UI to show appropriate Dialog message.</p>
<p>I am trying and I am getting:</p>
<pre><code>01-01 01:57:20.028: E/JavaBinder(1215): *** Uncaught... | java android | [1, 4] |
753,368 | 753,369 | Javascript function and PHP session variable | <p>I have the following script in my Body Tag inside a PHP page:</p>
<pre><code><script type="text/javascript">
function goNext()
{
<?php
if(isset($_SESSION['current']))
{
?>
window.location="step2.php";
<?php
}
else
{
?>
alert('Please select... | php javascript | [2, 3] |
5,757,971 | 5,757,972 | Rewrite Java code to C# | <p>We have quiet a few java programs that need to be rewritten to C# simply because we do not have java developers to support the code anymore. It was fine until we needed to edit the code because of new requirenments that were needed. I doubt we can use tools like IKVM because we need the code in C# so our developers ... | c# java | [0, 1] |
3,461,538 | 3,461,539 | Click event when not clicking on an element | <p>Maybe I'm, just tired but I have a right click menu that I want to close when the user clicks anywhere else than the menu. But I cant figure out how to make it disappear when the user clicks on something else.</p>
<p>Here is the code for showing the menu:</p>
<pre><code>// If mouse click on was pressed
$('#content... | javascript jquery | [3, 5] |
201,388 | 201,389 | Dynamically change value of hidden field | <p>For an existing site, I have to pass values in hidden fields from a form that's loaded by different pages (eg. City1.aspx, City2.aspx, City3.aspx, etc.), but they are loaded inside an iframe. I also have to dynamically change the value of at least one of those hidden field (let's call it "source") based on the city ... | c# asp.net | [0, 9] |
1,863,644 | 1,863,645 | Difference between $(document).ready and writing open jQuery statements | <p>What is the difference between writing code with and without <code>$(document).ready</code>?</p>
<p>For example:</p>
<pre><code>$(document).ready(function() {
$("#button").click(function() {
//Code
});
});
</code></pre>
<p>And:</p>
<pre><code>$("#button").click(function() {
//Code
});
</code>... | javascript jquery | [3, 5] |
5,355,374 | 5,355,375 | i have two seperate functions in a php page. while, javacript function is loading correctly and but jquery not? | <p>inside <code><head></code> tag i declare a jQuery function as follows (menu animation function) ;</p>
<pre><code><script type="text/javascript">
$(function() {
$("#top_menu").MenuBar({
fx: "backout",
speed: 700,
click: function(event, menuItem) {
... | javascript jquery | [3, 5] |
4,851,911 | 4,851,912 | Best way to handle concatenating string with another function | <p>I am working on cleaning up some adopted code - there is a lot of duplication.</p>
<p>There is a set of jQuery callbacks where we get back JSON like this: </p>
<pre><code>[
{"location":{"id":164,"name":"place 1"},"users":[{"id":1,"name":"joe"},{"id":2,"name":"jack"}]},
{"location":{"id":162,"name":"place 2"},"use... | javascript jquery | [3, 5] |
4,193,429 | 4,193,430 | Image Photo Gallery ---> Jquery. Next and Prev buttons | <p>As I am having only 4 solutions i.e. 4images/videos and I am clicking on next button then why the empty row is showing, again if am clicking on next then the normal 4 solutions are coming.</p>
<p>Please check it out once. that empty row should not come. I need a help</p>
<p><a href="http://jsfiddle.net/T657N/51/" ... | javascript jquery | [3, 5] |
4,991,627 | 4,991,628 | What's a simple way to define multiple jQuery.Callbacks() prerequisites? | <p>What's the simplest way to define multiple jQuery.Callbacks() prerequisites?</p>
<pre><code>// simple pubsub example
var pubsub=(function() {
var callbacksObj={};
return function(id){
if(!id) throw 'callbacks requires an id';
return (callbacksObj[id] = callbacksObj[id] || $.Callbacks('unique... | javascript jquery | [3, 5] |
2,489,021 | 2,489,022 | onStop Error, app shuts down | <p>I am trying to stop a melody from playing when user hit the back-button. This code is working when the file is playing, if not there will be an error and the app shuts down. How come it isnt working?</p>
<pre><code>MediaPlayer melodisnutt;
public void onStop() {
super.onStop();
if ( melodisnutt.isPlaying ()... | java android | [1, 4] |
2,024,359 | 2,024,360 | Href and confirm button | <p>have a href as follows:</p>
<pre><code><a class="eLink" href="http:www.abc.com">chk here xyz</a></li>
</code></pre>
<p>and javascript for "eLink" is as follows:</p>
<pre><code> $("a.eLink").click(function link(evt) {
url = evt.target.href;
if (url.toString().toLowerCase().ind... | javascript jquery | [3, 5] |
2,340,066 | 2,340,067 | How to store data in an attribute and then parse on click? | <p>My end goal is to be able to send:</p>
<pre><code>$('[data-track]').live('click', function () {
mpmetrics.track("Share", {'method': 'twitter'});
});
</code></pre>
<p>My question is how I can store the Share, method, twitter in the data-bind attribute so that they are dynamic and I can change the variables on a... | javascript jquery | [3, 5] |
3,297,214 | 3,297,215 | Screenshot effect Android | <p>i want to create an screen efect like when you take an screenshot in the phone, i mean, a little flash in the screen when i click a button, also i want to change the color of that flash. Is that posible? thank you very much in advance ;)</p>
| java android | [1, 4] |
4,550,887 | 4,550,888 | php date convert to javascript date | <p>I have a php date and wish to echo it out in a javascript alert box:-</p>
<pre><code>$day=15;
$month=8;
$year=2012;
$date_display = date("Y-m-d", mktime(0, 0, 0, $month, $day, $year));
echo $date_display; // 2012-08-15
</code></pre>
<p>Then,</p>
<pre><code><a href="#" onclick="give_date(<?=$date_display;?&... | php javascript | [2, 3] |
5,631,140 | 5,631,141 | Java script how to write an if condition passed to a $.modal() | <p>Hi I have wrote a method like this and i want to include a condition inside the string passed to the model and my method did not work . How to include an if condition? </p>
<pre><code>$.modal("<div id='edit_user_form' class='user_mange_popup' align='center'>/'if(true){//do something}'/</div>")
</... | javascript jquery | [3, 5] |
5,698,289 | 5,698,290 | how can i store visitor infomation like reach time ,duration of visit,and exact location of visitor in php | <p>I want to store visitor information like reach time ,duration of visit and also exact location of the visitor.</p>
<p>Can any one give me any ideas about it? Please help me.</p>
| php javascript jquery | [2, 3, 5] |
4,123,295 | 4,123,296 | Downloading a file from a PHP page in C# | <p>Okay, we have a PHP script that creates an download link from a file and we want to download that file via C#. This works fine with progress etc but when the PHP page gives an error the program downloads the error page and saves it as the requested file. Here is the code we have atm: </p>
<p>PHP Code:</p>
<pre><co... | c# php | [0, 2] |
150,130 | 150,131 | Toggle between borders of a image and remove borders of other existing images | <h1>Context</h1>
<p>I want to select only one image and remove borders of other existing images</p>
<p>Now many images can be selected like that:</p>
<p><img src="http://i.stack.imgur.com/hkA1s.png" alt="enter image description here"></p>
<p>I want help on select and deselecting single images.</p>
<h1>My code</h1>... | javascript jquery | [3, 5] |
3,361,853 | 3,361,854 | Get div from page | <p>I've looked everywhere for a technique, but I failed to find much that suited my needs.</p>
<p>Basically, I would like to utilize JavaScript or jQuery (probably using Ajax) to grab a div that contains a word from a page on my site. </p>
<p>I'm not asking anyone to code this for me, I would just like to be pointed... | javascript jquery | [3, 5] |
3,181,192 | 3,181,193 | make value of a function global to be called in any other function | <p>hello i want to pass the value of a function to any other function or make the value of a function global so that it can be called in any other function . but i dnt knw how to do it , tried some codes still no sucess . </p>
<p>here is the function code </p>
<pre><code>function newalbum(val1,loginuser)
{
$.ajax({
... | javascript jquery | [3, 5] |
5,086,029 | 5,086,030 | Compiling android .apk by java code | <p>I would like to create a java app that actually programaticlly compiles a differnt android project - Meaning i'd like to create .apk files by code. How would i go about this??? Is this feasible?</p>
<p>Thanks</p>
| java android | [1, 4] |
1,559,783 | 1,559,784 | Updating TextBox on the client with Javascript and reading the value from the Server | <p>I used Javascript on the client to update an ASP Textbox control which was rendered as an HTML textbox.</p>
<p>When I tried to access the value in the textbox control on the server, I wasn't too surprised that the Textbox's updated value was not accessible through the normal Text property of the TextBox server cont... | asp.net javascript | [9, 3] |
2,491,933 | 2,491,934 | Union on datatable | <p>How I will convert this SQL query in Linq, sorry but I am not that much expert in LINQ</p>
<pre><code>select ConnectionId
from LearnerConnections
where LearnerId = 1
union
select LearnerId
from LearnerConnections
where ConnectionId = 1
</code></pre>
<p>also can I write the DataTable methode to get the result (like... | c# asp.net | [0, 9] |
494,582 | 494,583 | asp.net,c#.net repeated fields | <p>I have a asp.net webpage <code>abc.aspx</code><br>
it contains </p>
<pre><code> <td class="style1">
<asp:TextBox ID="chqdt1" runat="server" Width="71px"></asp:TextBox>
<a href="javascript:OpenCalFuture('ctl00_ContentPlaceHolder1_chqdt1');">
<img ... | c# asp.net | [0, 9] |
447,778 | 447,779 | Open a new window for each url created | <p>I want to open a new window for each $url created how could I do that?</p>
<pre><code><?php
require_once('sql.php');
$result = mysql_query("SELECT * FROM gamertags ORDER BY id DESC LIMIT 10");
while($row = mysql_fetch_array($result)){
// Prepare gamertag for url
$gamertag = strtolower($row['gamertag'])... | php jquery | [2, 5] |
5,494,096 | 5,494,097 | How do I add a callback to a click event | <p>I need to add a callback to the following event.</p>
<p>The callback needs to fire off another function</p>
<pre><code>$("nav.filter a").on('click', function () {
$(this).siblings().removeClass('active');
$(this).addClass('active');
var data = $(this).data('filter');
$("section.our-work article ... | javascript jquery | [3, 5] |
4,156,271 | 4,156,272 | accessing class that creates list from database | <p>I have the following Class which basically creates a list of categories (called commands, I know it's weird)</p>
<p>Here is CommandDB.cs</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Common;
using System.Data.Sql;
using Syst... | c# asp.net | [0, 9] |
147,341 | 147,342 | Calling a function dynamically | <p>My jQuery function is something like:</p>
<pre><code>$.a.b.c();
</code></pre>
<p>Now I am trying to call it dynamically:</p>
<pre><code>var temp = b;
$.a.temp.c();
</code></pre>
<p>But obviously its not working. How do I get this to work. Please feel free to edit the question title, as am not sure how to really ... | javascript jquery | [3, 5] |
140,621 | 140,622 | Toggle Mute Javascript Function with Jquery Toggle | <p>Hi All I am trying to write both an if/else statement along with toggling an image. Basically my goal is to toggle an image (in this case with an id of soundonoff). However I can't seem to figure out where I am going wrong. The issue is the toggle works, but the detect of whether its muted or not does not work. (In ... | javascript jquery | [3, 5] |
3,340,685 | 3,340,686 | How to Passing value javascript variable to php? | <p>Passing value JavaScript variable to PHP.</p>
<p>Example</p>
<p><strong>JavaScript</strong></p>
<pre><code>Var ddd='aaaa'
</code></pre>
<p><strong>PHP</strong></p>
<pre><code>if (ddd="aaaa"){do somehting...}
</code></pre>
| php javascript | [2, 3] |
435,294 | 435,295 | How to use 2 classes for the same function with jQuery | <p>How do I run the same click function for 2 classes ?</p>
<p>I have this :</p>
<pre><code>$('.buythis').click(function(){ blabla }
</code></pre>
<p>And I want to use the same line for a different class like :</p>
<pre><code> $('.anotherclass').click(function(){ blabla }
</code></pre>
<p>Now ... how can I use ... | javascript jquery | [3, 5] |
4,076,962 | 4,076,963 | How can I add a source code with markup? | <p>Need to add it to textview, for example, standard java-code.</p>
| java android | [1, 4] |
2,846,663 | 2,846,664 | php,java script | <p>i use java script code in print function .i want to , success of the print redirect to another page </p>
| php javascript | [2, 3] |
5,262,627 | 5,262,628 | Can someone explain what the syntax means when defining a jQuery plugin? | <p>I am reading up on creating custom jQuery plugins and am a little confused as to the meaning of the following syntax:</p>
<pre><code>(function($){
$.fn.truncate = function() {
return this.each(function() {
});
};
})(jQuery);
</code></pre>
<p>I understand that function($) is an anonymo... | javascript jquery | [3, 5] |
4,663,319 | 4,663,320 | OnBlur effect for select dropdown | <p>I have a select dropdown and if a user clicks 'outside' of that select dropdown, I want it to disappear. This is what I currently have:</p>
<pre><code>$(this).html($("<select/>", {
id: 'sel',
change: function() {
selectdone(this, title_id, status_type);
},
blur: function() {
selectdone(this, t... | javascript jquery | [3, 5] |
81,350 | 81,351 | Uncaught TypeError: Cannot read property 'firstElementChild' of undefined when expanding posts in a certain order | <p>Can any of you guys help me out with a Javascript problem? I'm trying to write a post expansion feature for my site, and for some reason whenever I expand the first post, the second will no longer expand, and will instead redirect to the full post on the thread page. If I expand the second post and then the first ne... | javascript jquery | [3, 5] |
2,186,384 | 2,186,385 | add elements to select html tag with jquery at runtime | <p>I have a select tag that looks like that:</p>
<pre><code><select name="MySelect"></select>
</code></pre>
<p>At runtime, I have a javascript function that composes some HTML and returns a string that looks like this:</p>
<pre><code>TheOptions = <option>Option 1</option><option>Option ... | javascript jquery | [3, 5] |
4,853,034 | 4,853,035 | Testing if a jquery approach worked fine | <p>What's the easiest way to test performance if a jquery piece of code worked better than the other?</p>
<p>Let's say I have written two pieces of code and want to let my team know which one worked better. How can I do it.</p>
<p>Can you give an example of say inserting elements at runtime in the page and demonstrat... | javascript jquery | [3, 5] |
3,125,138 | 3,125,139 | How to encrypt web config? | <p>I wanted to encrypt the connection string section in the web config.</p>
<p>I did it using visual studio command prompt using this command.</p>
<p>aspnet_regiis.exe -pef “connectionStrings” C:\Projects\DemoApplication</p>
<p>and it encrypted the section and it worked fine.</p>
<p>and I did the same thing using c... | c# asp.net | [0, 9] |
5,340,891 | 5,340,892 | Shopping cart Asp.net | <p>i have a aspx page and inside i have called a .ascx page which is the shopping cart , on the aspx page i have a lot of links to the books and we can add the books to the shopping cart. On clicking the add button i store the bookid,name,price in a cookie and on the ascx page i get the copy and paste the value in the ... | javascript asp.net | [3, 9] |
1,283,021 | 1,283,022 | javascripts arrays | <p>I am playing with my friends on internet</p>
<p>we ask each other to say ( name, or animal, or inanimate) begins with a particular letter</p>
<p>So I am thinking about building a page to help me in training about this game</p>
<p>This is an php code for example:</p>
<pre><code>function getNamesByChars($chars,$ty... | php javascript | [2, 3] |
4,546,211 | 4,546,212 | How a class can extend with two different classes While one class is from a external library and other is built in | <p>I am using SherlockActionBar library in my project.And my class is extending an abstract class SherlockActivity </p>
<pre><code>public class AllAppsInfo extends SherlockActivity{}
</code></pre>
<p>In mean while i want to extend my AllAppsInfo with FragmentActivity as well.Which is not allowed due to negligence of... | java android | [1, 4] |
2,569,290 | 2,569,291 | In Javascript (jquery), is there a way to detect when the page anchor changes? | <p>Basically, I want to have links throughout the page that change the anchor -- the part of the URL after a # symbol. When that part of the URL changes, the JavaScript should respond.</p>
<p>I could add an onclick method to every link, but is there a better way?</p>
| javascript jquery | [3, 5] |
123,965 | 123,966 | Android Java Voice Recognition only need 1 result.......How to obtain 1 result? | <p>I have a speech recognition program that displays 5-6 results. I only want the 1st result to appear. Can you help with this please?</p>
<p>code:</p>
<pre><code>@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
if (requestCode == c... | java android | [1, 4] |
1,958,979 | 1,958,980 | Store answer with javascript to temp array? | <p>I have 10 questions with "YES" and "No" answers. I need user to answer all of them. If all answers marked as "Yes", "Next" button should be enabled. If at least one answer "No" disabled.</p>
<p>Could you please show me how it can be done with javascript or jquery library?</p>
<p>Here is an example of my HTML, lets... | javascript jquery | [3, 5] |
4,505,178 | 4,505,179 | UpdatePanel initial call | <p>I am using an UpdatePaenl in an asp.net page.
It has a button to trigger it. I'm able to show "Loading" when the button is pressed.
Here's my issue: I need it to show "Loading" when the page is first called, not just when a button is pressed.</p>
<p>I would imagine that JavaScript would be used to trigger the Upd... | asp.net javascript | [9, 3] |
1,122,920 | 1,122,921 | JQuery create a list based on another list | <p>what I am trying to do is generate an html list based from another list on the page. I have a list along the lines of below:</p>
<pre><code><ul>
<li class="chosen">content</li>
<li class="something">content</li>
<li class="something">content</li>
<li class="somet... | javascript jquery | [3, 5] |
124,381 | 124,382 | Android Java Sqlite Exception index 0 requested with size of 0 | <p>I think I understand what this error refers to. Basically as I understand it the cursor is empty. Which means the query is not finding any rows that equal its where statement.</p>
<p>The query is basically </p>
<blockquote>
<p>SELECT * FROM questions WHERE _id=2</p>
</blockquote>
<p>Now the thing I don't unders... | java android | [1, 4] |
4,335,725 | 4,335,726 | coloring a substring in a label | <p>I have the following label element where I'd like the asterisk to be colored red.</p>
<pre><code><label> Lastname * </label>
</code></pre>
<p>How can this be done using jQuery, or otherwise?</p>
| javascript jquery | [3, 5] |
456,795 | 456,796 | Show table if a SPAN exists within the first TD | <p>I need to write in either jQuery or Javascript a way of hiding a table if it doesnt contain a specific span:</p>
<p>E.g.</p>
<pre><code><table>
<tr>
<td class="titletext">
<span id="userID">009002</span>
</td>
<tr>
</table>
</code></pre>
<p>So, as ... | javascript jquery | [3, 5] |
4,568,969 | 4,568,970 | Online High Scores Solution | <p>Can anybody advise solution for implementing online high scores table for iPhone game ?
I mean simple engine to publish player result by http query and view global high scores table.
I'm weak in PHP so trying to find existing solution first.
Thanks.</p>
| php iphone | [2, 8] |
2,745,382 | 2,745,383 | Displaying a Large amount of text | <p>I'm looking to display a list of email addresses on a page that can then be copied and then pasted into an email client. Why they want it done this way is not my concern, I just have to do it.</p>
<p>What I'm wondering is what's the best way to go about displaying this? I'm not sure if I should use a giant label or... | c# asp.net | [0, 9] |
676,658 | 676,659 | How to translate jQuery .live() to .on() with events bound to this? | <p>I'm in the process of converting code from the deprecated <code>.live()</code> API to <code>.on()</code> (see the <a href="http://blog.jquery.com/2011/11/03/jquery-1-7-released/">jQuery 1.7 release notes</a>)</p>
<p>I have live events attached to <code>this</code> in multiple custom jQuery plugins, e.g.</p>
<pre><... | javascript jquery | [3, 5] |
1,660,518 | 1,660,519 | android for embedded systems | <p>I know quite a bit of Java, some C, and have released my first app for Android devices. I hear that Android development for embedded systems is becoming a promising area. If someone could kindly let me know where I can start learning Android development for embedded systems, it would be highly appreciated. By the wa... | java android | [1, 4] |
1,248,989 | 1,248,990 | Android (constants) | <p>I've checked the suggested solutions and can't find my answer. If the answer is out there, then I'm sorry for posting it again.</p>
<p>I'm consuming a wcf rest service.</p>
<p>In my test activity I do;</p>
<p>private final static String SERVICE_URI = "http://10.0.2.2/Service1.svc";</p>
<p>This will eventually be... | java android | [1, 4] |
4,480,687 | 4,480,688 | best method to choose to save huge data from excel to Sql | <p>I have an Excel file from which I have to extract the required data and save it to a database. I know by using <code>Range</code> we can get a particular range of data. But my data that was to be extracted was a bit large. So can anyone suggest which was the best and simple method to retrieve the data and store the ... | c# asp.net | [0, 9] |
4,340,407 | 4,340,408 | can i use a .cc proto file in client side and .java proto file in server side | <p>i'm new one to protobuf<br>
i have searched and learned some things about protobuf and i know that using protobuf package we are able to generate the classes in c++ ,java and phython for proto files and even i learnt some thing about third party library for RPC implementation<br>
now my doubt is, suppose if i want... | java c++ | [1, 6] |
1,873,641 | 1,873,642 | Trying to add Javascript to PHP file | <p>I am trying to add javascript to a php file and everytime I add the javascript and save, it just displays the javascript and not the rest of the page content.</p>
<p>The code looks like this:</p>
<pre><code><section class="portlet grid_6 leading">
<header>
... | php javascript | [2, 3] |
4,721,444 | 4,721,445 | PHP if statement if the page was loaded with ajax | <p>I have a page that loads with a div populated from an include file (pullList.php), but if you click a button (let's say a "re-load" button) the content of the div is reloaded with that same file (pullList.php).</p>
<p>The problem now is that when the page is loaded via ajax (with jquery) I need an include file (fun... | php jquery | [2, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.