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 |
|---|---|---|---|---|---|
568,695 | 568,696 | Cycling Through Three Divs in a Loop - Some Divs Not Changing | <p>Hey all! Quick question about user display and javascript. What I want to do is turn off the update arrow gif, display the rotating arrows , do the update , hide the rotating arrows and finally display the gif that says this item is now set. </p>
<p>My problem is that the rotating arrows never display. I put the sl... | javascript jquery | [3, 5] |
1,283,521 | 1,283,522 | Comparing two time values and storing in an array | <p>I have four integers</p>
<pre><code>int minute; int houre;
int endHour; int endMin;
</code></pre>
<p>Suppose first two are <code>houre = 6 -- minute = 40 so time is 6:40</code>
Second are <code>endHour = 22 endMin = 40 so time is 22:40</code></p>
<p>Now I want to add 10 minutes and add all possible time v... | java android | [1, 4] |
2,035,385 | 2,035,386 | calendar with the current date | <p>I would like to add a calendar in my ASP.NET application with the current date. I used this one:</p>
<pre><code>asp:Calendar ID="Calendar1" runat="server" SelectedDate="<%# DateTime.Today %>"
</code></pre>
<p>But I want the current date to be highlighted for example with yellow colour. Is there a way to do ... | c# asp.net | [0, 9] |
5,650,355 | 5,650,356 | how to deal with delete buttons in php? | <p>I want to know what is the best way to handle delete or edit buttons? </p>
<p>So let's say from a comment box, should I use post or get method for this and then make some validations in the page that is suppose to delete the comment? </p>
<p>As a specific example, I'm gonna point out facebook's comment box, it has... | php jquery | [2, 5] |
271,907 | 271,908 | Session object doesn't store value | <p>I'm currently creating a webpage, and I want to transfer one object that is related to the current visitor of the site, to another page. I chose to do this with the Session item. But there seems to be a problem, I declare it's value on one page like this:</p>
<pre><code>Session["CurrentAccount"] = new Account(tb_us... | c# asp.net | [0, 9] |
1,375,767 | 1,375,768 | How to Center Facebox | <p>I like to center facebox on a project im working on. when i added this code it will center</p>
<pre><code> $(document).bind('close.facebox', function() {
$(document).unbind('keydown.facebox')
$('#facebox').fadeOut(function() {
$('#facebox .content').removeClass().addClass('content')
$('#facebox... | javascript jquery | [3, 5] |
3,179,166 | 3,179,167 | Use an array to target specific element(s) in a repeated class in jQuery/JS | <p>I have a dynamically generated HTML portion on a page with numerous repaeted elements with the class of <code><div class="paraContent"></code></p>
<p>I have access to the <code><head></code> of this page in the CMS, and want to specify the elements in an array or script to hide certain ones.</p>
<p>My ... | javascript jquery | [3, 5] |
2,793,273 | 2,793,274 | How to avoid a postback in JavaScript? | <p>I have an ASP.NET page which has a button it it. The button click launches a modal dialog box using JavaScript. Based on the value returned by the modal dialog box, I want to proceed with, or cancel the post back that happens. How do I do this?</p>
| javascript asp.net | [3, 9] |
299,054 | 299,055 | Best way to write a polling capable application | <p>I'm trying to build a basic application which will have 2 separate components which are:<br>
1. Continually poll an external process and store the results within a DB<br>
2. Grab the results from the DB and display it in a webpage</p>
<p>I'm looking to do this in .Net so I would normally say to do the first com... | c# asp.net | [0, 9] |
5,508,509 | 5,508,510 | How to login in ASP.NET | <p>I made the login control from the visual studio 2008. Now am unable to make the users and their passwords. I also wanna know that how could i redirect it to the next page. As am a new to visual studio.</p>
<p>what is credentials SHA1?</p>
<p>thanxx</p>
| c# asp.net | [0, 9] |
4,724,507 | 4,724,508 | Currency conversion | <p>Does anyone know of a web service(pay or free) that will convert one currency to another based on current market value?</p>
<p>Thanks in advance</p>
<p>ADDITION</p>
<p>I am not looking for a screen scrapeing solution. I am looking for something that I can setup and walk away from not something that I will have to... | c# asp.net | [0, 9] |
1,863,799 | 1,863,800 | JS behavior differs depending on page tree | <p>I'm a developer for a very large real estate plugin and I'm having a lot of trouble with one of our agent sites:</p>
<p>The init methods used to initialize ajax functionality are called using a <code>jQuery(document).ready()</code> handler. However, this doesn't always fire, and it seems to be less dependent on the... | jquery javascript | [5, 3] |
4,399,427 | 4,399,428 | How do I get a Font from a string? | <p>In the the <code>System.Web.UI.DataVisualization.Charting.Chart</code> control a font can be set by referring Font by it's family name. How do I do something similar in code?</p>
<pre><code> <asp:Chart runat="server">
<legends>
<asp:Legend Font="Microsoft Sans Serif, 8.25pt, style=Bold"... | c# asp.net | [0, 9] |
5,623,368 | 5,623,369 | What is the 'html-in-font' page called? | <p>Simple enough question.</p>
<p>What is the 'aspx' or 'ascx' page called? I need the correct term to properly search google or define a question on here that should be fairly simple to answer, but I'm sure I'm not using the correct vocabulary so my question and google searches are not netting me anything.</p>
<p>To... | c# asp.net | [0, 9] |
2,457,821 | 2,457,822 | How to convert asp:label to asp:texbox in asp.net? | <p>On the <code>page_load</code> event I am checking if the authorization is <code>Admin</code> or not. If they are not in the <code>Admin</code> role then I have to change the available <code>**asp:label**</code> control to an <code>**asp:textbox**</code> control in the UI.</p>
<p>1) Will it be possible to dynamical... | c# asp.net | [0, 9] |
4,675,489 | 4,675,490 | Can I use a multiple selector expression on the jQuery filter method? | <p>I have a bunch of anchor tags that I want to select. But if the href attribute of those links equals "#" or "" (an empty string) then I want to exclude them from the selection.</p>
<p>Currently I have the following which filters out the selection if the href <strong>doesn't equal "#"</strong>:</p>
<p><strong>Demo ... | javascript jquery | [3, 5] |
5,145,973 | 5,145,974 | What is it called when you can fill a string with <<< and an end-delimiter? | <p>I know in C++ and in PHP you can fill a string or a file with hard-coded text. If I remember correctly this is how it is supposed to look:</p>
<pre><code>var <<< DELIMITER
Menu for program X
1.Add two numbers
2.Substract two numbers
3.Multiply two numbers
Please pick an option from (0-3);
DE... | php c++ | [2, 6] |
242,172 | 242,173 | foreach for JSON array , syntax | <p>my script is getting some array from php server side script.</p>
<pre><code>result = jQuery.parseJSON(result);
</code></pre>
<p>now I want to check each variable of the array.</p>
<pre><code>if (result.a!='') { something.... }
if (result.b!='') { something.... }
....
</code></pre>
<p>Is there any better way to m... | javascript jquery | [3, 5] |
4,031,961 | 4,031,962 | downloading HTML file does not work hor android | <p>I'm trying to download a file from the server to my local device. I use a PHP script. The file is in HTML format and I use the following header:</p>
<pre><code>header("Content-Disposition: attachment; filename=FILE.HTM");
</code></pre>
<p>It works perfectly in any browser except when I'm using the mobile (Android)... | php android | [2, 4] |
2,284,917 | 2,284,918 | Do we still need to check for different browser types in JavaScript? | <p>This is probably a simple question, and I'm slightly embarrassed to ask it, but I've been working with this chunk of JavaScript ad code for a while and it's bothered me that it's never really made sense to me and is probably out dated now with modern browsers. My question is, do we need to check for browser types st... | javascript jquery | [3, 5] |
3,052,169 | 3,052,170 | Select all elements in between two tags of the same type? | <p>How could i select all the elements between two tags of the same type using javascript or jquery?</p>
<p>For examle if i had:</p>
<pre><code><h1></h1>
<h2><h2>
<li1></li1>
<li2></li3>
<li3></li4>
<h2></h2>
</code></pre>
<p>How could i get all... | javascript jquery | [3, 5] |
2,412,331 | 2,412,332 | PHP code on C++ | <p>I would like to know how this code would look in C++:</p>
<pre><code><?php
$read=fread(fopen('cookie.txt', 'r'), filesize('cookie.txt'));
$pattern = "/[a-f0-9]{32}/";
preg_match($pattern, $read, $matches);
echo $matches[0];
?>
</code></pre>
| php c++ | [2, 6] |
3,784,699 | 3,784,700 | Is there any alternative for System.IO.DirectoryInfo.Exists | <p>The <code>System.IO.DirectoryInfo.Exists</code> always return false if i am giving a UNC like this <code>\\192.168.0.33\Others (F)</code>.</p>
<p>and it occurs only when I run from the installed application, otherwise it will return true if the path is true.</p>
| c# asp.net | [0, 9] |
2,825,477 | 2,825,478 | java equivalent of PHP's implode(',' , array_filter( array () )) | <p>I often use this piece of code in PHP</p>
<pre><code>$ordine['address'] = implode(', ', array_filter(array($cliente['cap'], $cliente['citta'] ,$cliente['provincia'])));
</code></pre>
<p>it clears empty strings and join them with a ",". If only one remains it doesn't add an extra unneded comma. It doesn't add a com... | java php | [1, 2] |
1,875,972 | 1,875,973 | Persisting information across repeat form submission attempts | <p>Below is a simplified version of a sign-up page I'm working on. </p>
<p>When the user clicks the button I need to collect money from a credit card. Then, if the transaction is successful, create the new user account. </p>
<p>My problem is handling the scenario where the credit card transaction succeeds but then t... | c# asp.net | [0, 9] |
5,067,544 | 5,067,545 | How to cancel TimerTask safely? | <p>I have been developing the Android application and I use <code>Timer</code> and <code>TimerTask</code> objects for executing one task after particular time. But there is one problem - sometimes I need to cancel timertask, but if I do it that Android will cause an <code>IllegalStateException</code>. How can I cancel ... | java android | [1, 4] |
2,258,773 | 2,258,774 | Creating FTP user dynamically | <p>I need to create FTP users via a C# software, which is run Client-Side, I have no idea where to start or how to do that, I am not even sure if this is possible as this may require to be logged as root?</p>
<p>My other option would be to call a PHP script via the C# software, which could call a system() script?</p>
... | c# php | [0, 2] |
1,019,946 | 1,019,947 | Why javascript "write() function" isn't working when referring to an element by jquery? | <p>Hey guys,
My array is printing it's values on page when:</p>
<pre><code>document.write(unsorted[i]+"<br/>");
</code></pre>
<p>but not when trying to put it in a div referring the element by jquery</p>
<pre><code>$("#no1").write(unsorted[i]+"<br/>");
</code></pre>
<p>Here's my code: </p>
<pre><code>$... | javascript jquery | [3, 5] |
2,935,678 | 2,935,679 | How to call PHP function from Android? | <p>I want to call specific php function on server and also to send some parameters.
Till now I achieved that I can open php file using HttpClient and executed data transfer to Json and show that in my app.
So, now I want to be able to call specific function and send parameter to it, how can I do that??
Sorry I didn't m... | java android | [1, 4] |
1,303,027 | 1,303,028 | How to play a few video in youtube player on Java, Android? | <p>I have a few videos for Android. My app plays it by code:</p>
<pre><code>Intent youtube=new Intent(Intent.ACTION_VIEW, Uri.parse(link));
startActivityForResult(youtube, 100);
</code></pre>
<p>But it code play 1 video from list. How can I put a few video for Intent in order to standart player play it in series? </p... | java android | [1, 4] |
5,037,410 | 5,037,411 | Close Button (right top X) to act similar to control? | <p>C#, ASP.NET, JS</p>
<p>I have this pop up opened where employees work on different clients.
Once they are done they click on a button and a few proceses run before actually closing the pop up window.</p>
<p>What I want to achieve is the same thing when they hit the X top right button of the screen.</p>
<p>I've tr... | c# javascript asp.net | [0, 3, 9] |
5,925,343 | 5,925,344 | How can I get call on Emulator? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6502242/where-i-can-see-the-log-if-i-have-installed-application-on-phone">Where I can see the Log, If I have installed application on Phone?</a> </p>
</blockquote>
<p>My installed application on phone is getting... | java android | [1, 4] |
4,929,440 | 4,929,441 | How to write a java desktop app that can interact with my website's API? | <p>It's a big question but I just need a push in the right direction. </p>
<p>I have a website being released soon. One of the services it provides is image hosting. I'm thinking about writing a desktop app in Java to help facilitate mass uploads as well as forcing me to use Java for real-world experience.</p>
<p>How... | java php | [1, 2] |
5,657,178 | 5,657,179 | iterate through SparseArray | <p>Is there a way to iterate over java SparseArray (for android) ?
I used sparsearray to easily get values by index.</p>
<p>I could not find one.</p>
<p>Thanks in advance.</p>
| java android | [1, 4] |
694,553 | 694,554 | break jquery $('<div>') into separate opening and closing tags | <p>I have several blocks like:</p>
<pre><code><div class="first">...</div>
<div class="second">...</div>
<div class="third">..</div>
</code></pre>
<p>I want to wrap all 3 blocks with another div.
Is there a way to split $('</div>') in two parts: <div> and </div> s... | javascript jquery | [3, 5] |
2,730,627 | 2,730,628 | Jquery queue issue | <p>I have the following</p>
<pre><code>function test(){
var top = numGanadores + numSuplentes;
var cuponesList = itemsFromAnArray;
for (var g = 0; g < numGanadores; g++) {
$(cuponesList[g]).delay(2000 * g).queue(function (next) {
addNewRow('ganadores', this.parCedula, this.parNombre,... | javascript jquery | [3, 5] |
4,571,450 | 4,571,451 | Displaying messages at top of the form in PHP | <p>I want to display messages at top ids "MessageError" and "MessageOK" according to POST results. Example:</p>
<pre><code><p id="MessageError"></p>
<p id="MessageOK"></p>
<form name="Form" method="post" action="<?php $_SERVER[ 'PHP_SELF' ]; ?>" enctype="multipart/form-data" accept-ch... | php javascript | [2, 3] |
2,873,461 | 2,873,462 | How to select unchecked checkbox | <p>I am using jquery UI tabs. I have 2 tabs with id <code>#tab1</code> & <code>#tab2</code> respectively. Both tab </p>
<p>contains <em>2 checkbox (total 4)</em>. And currently all are <code>unchecked</code>. Now i wrote this jquery code :</p>
<pre><code> $("#tab2").find("input:not(:checked)").each(function () {... | javascript jquery | [3, 5] |
1,501,441 | 1,501,442 | Validation doesn't work after adding an input with jQuery | <p>After clicking on <strong>Add Input</strong> and adding an input, clicking on the added button doesn't call the <code>required_valid()</code> function in <code>$('.submit').submit(function () {...</code>. Why is this?</p>
<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/Jvw6N/" rel="nofollow">http://jsfiddle.... | javascript jquery | [3, 5] |
5,173,065 | 5,173,066 | Wait till image is loaded and resized before triggering animation? | <pre><code>$("#body-background").ezBgResize();
$("#nav").animate({
left: "-725px"
}, 800, "easeOutCirc" );
$("#page .home").animate({
right: "0px"
}, 800, "easeOutCirc" );
</code></pre>
<p>This is essentially my code. </p>
<p>The first line uses jQuery Easy Background Resize: (ref: <a... | javascript jquery | [3, 5] |
1,565,296 | 1,565,297 | Android 1.5/1.6 issue with style and autogenerated R.java file | <p>I'm having strange issue with R.java file and styles defined in my resources.</p>
<p>Here's some code:</p>
<p>In res/values/strings.xml:</p>
<pre><code><style parent="android:Theme.Dialog" name="PopupWindowStyle">
<item name="android:windowBackground">@drawable/bg1</item>
<item name="android:... | java android | [1, 4] |
2,510,229 | 2,510,230 | How can you recognize sign language in a mobile application? | <p>Is it possible to recognize sign language (like American Sign Language, ASL) in an iPhone or Android application? </p>
<p>Are there libraries that are available to do this? If not, how would you suggest I get started in writing an application that could recognize sign language?</p>
| iphone android | [8, 4] |
5,142,774 | 5,142,775 | Show or hide button based on textbox's value in ASP.NET | <p>I will hide the "login" button if both textbox (id and pass) is not filled.
Else I will show it.</p>
<p>inside the script block:</p>
<pre><code>protected void checkField(object sender, EventArgs e)
{
if (id.Text == "" || pass.Text == "")
{
logbutton.Visible = false;
}
else if (id.Text != ""... | c# asp.net | [0, 9] |
5,499,060 | 5,499,061 | Implementing javascript confirm box in code behind on drop down box's selected index change event firing | <p>Inside my boxLang_OnSelectedIndexChanged() event I got this :-</p>
<pre><code> if (txtbox1.Text != "" && txtbox2.Text != "")
{
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "confirm", "confirm('Changing the language will clear the text in the textboxes. Click OK to proceed.'... | c# javascript asp.net | [0, 3, 9] |
2,681,515 | 2,681,516 | how to set startup project through coding in c# | <p>i would like to run a command prompt to run the project and set its startup project </p>
| c# asp.net | [0, 9] |
3,810,310 | 3,810,311 | How to clear the text when clicked on any other controls | <p>the below js script works fine but there is small problem and the problem is that:</p>
<p>i have a textbox with multiline and when the user clicks on it and it does clear the textbox but the problem is; when the user click on Save button (asp.net control button) to save the textbox value and i want that to ignore o... | javascript asp.net | [3, 9] |
1,904,096 | 1,904,097 | Can not work correctly with posting form with jQuery | <p>I am trying to get the return from the mail.php but it does not work. What am I missing here?</p>
<p>this is my form</p>
<pre><code><form name="myform" id="myform" action="" method="POST">
<input type="text" name="email" id="email" size="30" value=""/>
<input type="submit" name="button" id="button... | javascript jquery | [3, 5] |
1,862,214 | 1,862,215 | How to limit textbox template field text length in gridview? | <pre><code> <asp:GridView ID="CommentGrid" GridLines="None" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField HeaderText="No." DataField="Num" >
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundFie... | c# asp.net | [0, 9] |
1,128,824 | 1,128,825 | I can't get the alert to fire. What am I missing? | <p>I can't get the alert to fire. What am I missing?
(the code below is inside a WP plugin)</p>
<pre><code><?php
wp_enqueue_script('jquery');
?>
<script type="text/javascript">
jQuery('#myTest').click(function(){alert('hi');});
</script>
<?php
echo "<div><input type='button' value... | php jquery | [2, 5] |
735,918 | 735,919 | Super Noob Question: Getting a returned integer value from a Method | <p>This is a super noob question... I created a method that gets a sharedpreference and returns it. However, I don't know how to get and use the integer that is returned by the method.</p>
<p>here is the method:</p>
<pre><code>public int getX() {
return mPrefs.getInt("x", 1);
}
</code></pre>
<p>How do I call th... | java android | [1, 4] |
1,291,934 | 1,291,935 | How to Simplify C# query Execution? | <p>I am programmer in asp.net. I am using C#. I have written very lengthy code for query execution in each time. How to re-factor and organize the following code? </p>
<pre><code>MySqlConnection connection = new MySqlConnection(connstring);
string query = "Select fo_region_Name from fo_region where fo_region_DeleteSt... | c# asp.net | [0, 9] |
905,213 | 905,214 | How can I make paginate this simple line of PHP code? | <p>I want to know how can I paginate this very simple of line of code:</p>
<pre><code> <?php
for($i=1;$i<=40;$i++){
echo '<a href="#">'.$i.'</a> | ';
}
?>
</code></pre>
<p>it's ouput:</p>
<p><img src="http://i.stack.imgur.com/F2t42.png" alt="enter image description here"></p>
<p>I want... | php jquery | [2, 5] |
3,196,855 | 3,196,856 | Animated Image Caption in asp.net webform page | <p>I am working on asp.net based Photo gallery & i display image in as a Matrix, I am using following article to implement animated Image caption for of of these image </p>
<p><a href="http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/" rel="nofollow">http://buildinternet.com/2009/03/sliding-... | javascript jquery asp.net | [3, 5, 9] |
5,016,707 | 5,016,708 | Why is the asp.net checkbox not disabled? | <p>I am trying to set the disabled property for my <code>CheckBox</code> to true. However, when I do a postback the <code>CheckBox</code> is still enabled?</p>
<p><strong>HTML:</strong></p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona... | c# jquery asp.net | [0, 5, 9] |
290,097 | 290,098 | Creating tables and displaying textboxes in codebehind | <p>I have a Dataset from the database which i want to display. My aim is to display a month's data on an aspx page using VS 2005 with 5 days per each row. I have written the code like this but i am confused with the i and j. This code displays nothing. </p>
<pre><code>if (ds != null && ds.Tables[0].Rows.Count ... | c# asp.net | [0, 9] |
2,367,272 | 2,367,273 | when dragging a link to the bookmarks bar, the url is changed, but the url on the bookmarks bar is reflecting the old state | <p>As the title suggests, when dragging a link to the bookmarks bar, the url is changing through a jquery call, but the url on the bookmarks bar is reflecting the old state, that is an empty string, how would you go about making sure that the bookmark contains the updated link? </p>
<pre><code> $("#button")
.moused... | javascript jquery | [3, 5] |
639,011 | 639,012 | page loading with JAVASCRIPT | <p>Can anyone tell me when my page is loading very slow in FF, IE,chrome when I use googleapi</p>
<p>link(http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js) in my web page.</p>
<p>My web page has lots data in tabular format.</p>
<p>Can anyone help me?</p>
<p>Thanks,
Kris_1</p>
| javascript jquery | [3, 5] |
1,621,839 | 1,621,840 | How would I get a certain part of a string? | <p>Here's an example string:</p>
<pre><code>survey_questions_attributes_1317784471568_answers_attributes
</code></pre>
<p>I want to get the <code>1317784471568</code> out of the string.</p>
<p>But that part could also be text. For example, I may also need to get a string called <code>new_questions</code> from that s... | javascript jquery | [3, 5] |
5,412,149 | 5,412,150 | Getting Accessibility Error on Public Object | <pre><code>namespace MyApp.MyNamespace
{
public class MyClass:System.Web.UI.Page
{
private DataUtility Util = new DataUtility();
private CookieData cd = MyClass.Toolbox.GetCurrentCookieData(HttpContext.Current);
//below I get the error: "System.Web.UI.Util is unavailable due to its prote... | c# asp.net | [0, 9] |
5,618,721 | 5,618,722 | How do I create a simple search function in javascript? | <p>I start with a short array of some schools and then I want to test if the value of an input matches one of these schools.
Here is my code thus far:</p>
<pre><code> var $schools = [
'University of Tennessee-Knoxville',
'Maryville College',
'Cleveland State Community College',
'East Tennessee S... | javascript jquery | [3, 5] |
4,511,602 | 4,511,603 | Image manipulation using PHP: force 1:1 aspect ratio (sqaure images) | <p>I am looking to add a background to images that users upload that are not square. So if they upload a tall and skinny photo I want to add a white background to the sides of the image to make the resulting image have an aspect ratio of 1:1. Is this possible using PHP or javascript?</p>
| php javascript | [2, 3] |
1,054,529 | 1,054,530 | How should one link to a jQuery library: always link to the latest library or not? | <p>What happened is that we have a page that was previously working then all of sudden some scripts no longer work (for some reason). We figured out that we needed to use the latest jQuery library to fix the problem.</p>
<p>So we were thinking to just link to <a href="http://code.jquery.com/jquery-latest.min.js" rel="... | javascript jquery | [3, 5] |
453,219 | 453,220 | Javascript: How to retrieve a value from a popup after a click event is fired | <p>I have a page where clicking on a link will open a popup window. The popup window will contain some value. Now when user clicks on a div tag, I want to copy the text of that div into a text box of the main window. </p>
<p>I have used following code to open a popup - </p>
<pre><code>popup = window.open(location, "p... | javascript jquery | [3, 5] |
598,700 | 598,701 | jQuery obscurity | <p>This is kind of funky. But take a look at the code snippet below :</p>
<pre><code>$('.classname').bind('click', somefunction);
function somefunction() {
console.log($(this)); // **displays[<div>,context<div>]**
}
</code></pre>
<p>And if I tweak the above to:</p>
<pre><code>$('.classname').bind('cli... | javascript jquery | [3, 5] |
1,094,044 | 1,094,045 | How do you access an asp.net code behind session object member variable in javascript? | <p>I have a class that handles all of my session variables in my asp.net application. Moreover, I sometimes store objects in the session variables so as to allow me to code very similar to a normal .net application.</p>
<p>For example, here is an object in a session variable:</p>
<pre><code>public cUser User
{
ge... | c# javascript asp.net | [0, 3, 9] |
509,244 | 509,245 | Have Android app send a random number to server | <p>I need to send a random number from Android to a PHP script on my server every 5 seconds. This is for a heart-rhythm simulator for learning purposes. The data from the PHP file is then written to a database. I have spent many hours searching for examples, but they have been hard to understand. I need a simple ex... | java php android | [1, 2, 4] |
423,884 | 423,885 | PHP Webserver in Python | <p>How can I make a PHP 5.3 webserver using Pythin? I know how to make a simple http server, but how can I include PHP?</p>
<p>Thanks.</p>
| php python | [2, 7] |
1,190,405 | 1,190,406 | Ideas with REGEX Formatting | <p>Can anyone help please.
I am trying to figure out a Regex format for some data, but am struggling with its complexities.</p>
<p>I want to format some Latitude EditText in the format </p>
<p>"N5123.5" </p>
<p>The first digit must be either N or S (or n or s)
There must be then exactly 4 numerics, exactly 1 full st... | java android | [1, 4] |
456,360 | 456,361 | reposition a div tag after jquery animation | <p>i am using jquery to showing a div tag and keep animation 10px from bottom
but whenever my function rising from iframe</p>
<p>its floating up it is not again repositioning</p>
<pre><code>function Show_NotifyDiv() {
$("#div_NotificationOuter").css({ "bottom": "2px", "right": "5px" });
$("div_Notifi... | jquery asp.net | [5, 9] |
1,790,375 | 1,790,376 | variable initialized in class loses its previous value with the page loading | <p>I've declared a String variable test with "hi". every time I click on Button1, I expect that test will be appended with its previous value. But I have noticed that it loses its previous value when the button is clicked and the page is reloaded. That is every time I click it, it has its text as "hihi". I expect "hihi... | c# asp.net | [0, 9] |
1,145,824 | 1,145,825 | How To Put 2D Array Data To The String Variable in C# Web App? | <p>Hi all i have a array like </p>
<pre><code>string[,] terms;
</code></pre>
<p>if i want to put this array data to the string variable in this format string Va="23,85,69"
such that 2D array have two type of data "name" and "Address" then both will get in separate string variable
hopes for your reply..</p>
| c# asp.net | [0, 9] |
1,575,597 | 1,575,598 | Prevent or clear back history with form submission | <p>I have a small quiz web application to deploy.</p>
<p>Basically I have 2 pages, '1) Quiz page' and '2) Result page'. Upon submitting the Quiz form, it will generate the result on the result page for the user. However I need to prevent user from clicking on back button or keying in Backspace on the keyboard.</p>
<p... | php javascript | [2, 3] |
3,157,825 | 3,157,826 | Can I pass my form values through jQuery .load() and make them readable by PHP $_POST? | <p>Can I pass form values in load() function of jQuery then be able to read them as $_POST parameters in php? ...</p>
| php jquery | [2, 5] |
5,529,631 | 5,529,632 | How can i plot alphabets on a table using JQuery | <p>Lets say I have a html table (50 x 50) with yellow background. I would like to print alphabets(A-Z) in a loop on the 50 X 50 grid using jquery. I can create a table and a pointer which can loop through all the cells of the table such that it can change the background color of a particular cell(x,y) to different colo... | javascript jquery | [3, 5] |
391,414 | 391,415 | Run jQuery function when a certain number of checkboxes are selected | <p>I am trying to achieve the following with jQuery:</p>
<p>Select max 3 check boxes out of 20, when three check boxes are selected run jQuery function.</p>
| javascript jquery | [3, 5] |
4,564,064 | 4,564,065 | Date error in android to store in sqlite | <p>I am trying to in insert date into sqlite using: </p>
<pre><code>SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
String data = format.format(new Date(19900101));
System.err.println("Time is.."+format.format(19900101));
</code></pre>
<p>But i am getting 19700101 in log. i am getting same result even if ... | java android | [1, 4] |
240,841 | 240,842 | How do I make a certain javascript function execute on page load for all its elements? | <p>I have a javascript function defined as follows (note that it does not use jquery):</p>
<pre><code>function getCalculationFormsByType(selectObject, parentNode, countIndex)
{
var operationID = parseInt(selectObject.value, 10);
var divs = parentNode.getElementsByTagName("DIV");
// the rest of the functi... | javascript jquery | [3, 5] |
1,247,334 | 1,247,335 | How do I prevent default tab switching functionality in JQuery? | <p>I have created the tabs below.</p>
<pre><code><ul class="idTabs">
<li><a href="#basic_info" id="basic_info_link" >Personal</a></li>
<li><a href="#add_info" id="add_info_link">Address</a></li>
<li style="width:194px;"><a href="#payment_info" id="payment_... | javascript jquery | [3, 5] |
5,185,590 | 5,185,591 | Which control should I use? Repeater or Gridview? | <p>Just wondering which is the best asp.net control to allow a user to enter data into a table and then save it. Then the codebehind can iterate the the rows and save each row to the database. Then load the table when the user wants to see the data. Would this be the repeater or Gridviewcontrol?</p>
| c# asp.net | [0, 9] |
4,300,077 | 4,300,078 | How to find all the id's associated with a particular class | <p>Using jquery how is it possible finding out all the id's associated with a given class?</p>
<p>Any help??</p>
| javascript jquery | [3, 5] |
5,483,087 | 5,483,088 | Javascript - Iterate the properties of an object and change them | <p>I wish to iterate over an object's properties and change them all to include <code>""</code> around the value stored in them.
This object is passed to a REST call and the above format must be enforced. I prefer to handle the addition of <code>""</code> in a central location, rather when assigning the actual values ... | javascript jquery | [3, 5] |
315,529 | 315,530 | ViewTreeObserver Listener not called after some time | <p>I have great difficulties when using ViewTreeObserver. All works fine for some unpredictable period of time, and then the listener is not operational anymore. It is certainly because of what is written in the doc:<strong>The returned ViewTreeObserver observer is not guaranteed to remain valid for the lifetime of thi... | java android | [1, 4] |
3,145,890 | 3,145,891 | Trigger JS on select elements with onChange, but also if it's already selected? | <p>I am writing a very basic website which involves the user to use a drop down menu to select an option, and it will play a sound when they do. </p>
<p>This works fine if the user wants to pick a different option each time, but not if they play a sound from one <code><option></code>, then want to play it again ... | javascript jquery | [3, 5] |
634,156 | 634,157 | Adding onclick link on response | <p>I have a return from a request set like:</p>
<pre><code>if (ajaxRequest.responseText==234) {
document.getElementById('testi').innerHTML="<br>test <a href='#' onclick="document.getElementById('others').value += 'asdasd';">test</a><br> ";
}
</code></pre>
<p>'Others' is a text area box. T... | javascript jquery | [3, 5] |
403,219 | 403,220 | How to remember the currently clicked url? javascript?PHP? | <p>I have a html select list menu,when user select an option he/she is redirected to the page of choice.
for example he/she will be redirected to
<a href="http://example.com/towns/Faizabad" rel="nofollow">http://example.com/towns/Faizabad</a>
below is the selection menu,this acts as a jump menu.</p>
<pre><cod... | php javascript jquery | [2, 3, 5] |
986,087 | 986,088 | how to send multiple check box item lists to class | <p>I wanted to send all the selected checkbox items to the class how do i send it.if i use <code>check1.selectedvalue/item</code> it sends only one.so how do i do this</p>
<pre><code>protected void check1_SelectedIndexChanged(object sender, EventArgs e)
{
for (int z = 0; z < check1.Items.Count; z++)
{
i... | c# asp.net | [0, 9] |
4,171,993 | 4,171,994 | JQuery Onclick clear action value before submitting | <p>I have a form:</p>
<pre><code><form id="Myform" action="something here" method="post">
...
<input type="image" src="submit.png" id="mysubmit" name="submit" />
</code></pre>
<p>What I need the action value of the form to cleared before it submits.</p>
<p>How could I do that in JQuery?</p>
| javascript jquery | [3, 5] |
5,565,827 | 5,565,828 | jQuery Grids that bind to JSON | <p>I have seen a couple of great jQuery grids out there such as FlexiGrid and jQGrid..</p>
<p>Both of these seem to require that you bind them to a webservice. Can anyone suggest a grid that is like these but does not require a web server? I have JSON that is generated by my application and I want to bind a grid to it... | javascript jquery | [3, 5] |
2,227,370 | 2,227,371 | javascript image uploading and text replacement | <p>Weird to describe but here goes.</p>
<p>I have a table with several rows. One of the fields in each row, is for an image. Now i dont want to show the image itself, but rather the filename of the image as a link.</p>
<p>When i click that link, i want to popup a window that will let me upload or choose a new image f... | php javascript | [2, 3] |
1,404,299 | 1,404,300 | js, How to get selector from element | <p>I am no sure whether I made the question title right, but I want to ask a question below</p>
<pre><code><div title="A"></div>
var a = $([title=A]);
//if I only know a, how can I get what is referring here made a,
//or command I use can get out put of the referring.
//This case the out put will be '[... | javascript jquery | [3, 5] |
5,144,127 | 5,144,128 | Can I exclude a input field from form.reload? | <p>I've got a form.reload piece of JS that adds the chosen form dropdown to a variable, and to the head of the document so I can pass variables to the next page.</p>
<p>Sadly, my form reload is removing input fields that have been inputted. </p>
<p>Here's my simple JS reloading the form:</p>
<pre><code> function ... | javascript jquery | [3, 5] |
5,132,278 | 5,132,279 | How can I find out if someone is actively using a Linux computer in Python or Java? | <p>I want to write a program that ssh's into remote boxes and runs jobs there if the remote computer is not actively being used. I'll be logging in as clusterJobRunner@remoteBox, and the other user will be logged in as someLocalUser@remoteBox. </p>
<p>Is there a way to see if a remote user is actively using the box us... | java python | [1, 7] |
2,919,931 | 2,919,932 | How to use Geocoder to get the current location zip code | <p>I am trying to get the zip code of the users current location.I have a teditText in MyActivity which should get populated based on the zip code I get from this activity.</p>
<pre><code>public class LocationActivity extends MyActivity {
double LATITUDE;
double LONGITUDE;
Geocoder geocoder = new Geocoder... | java android | [1, 4] |
567,354 | 567,355 | how to parse an aspx page | <p>I have a project that I should parse an aspx webpage directly.When a save the page as html and run; it works but I should make it without saving; directly from internet.And I'm using html agility pack.But actually if I can do it without a library it will be perfect:)</p>
<pre><code> htmlDoc.LoadHtml("http://www.tky... | c# asp.net | [0, 9] |
4,438,558 | 4,438,559 | Mixing jQuery and JavaScript too much? | <p>Is this valid jQuery? Or have I mixed it up with regular JavaScript too much? In any case it is not working (I would expect it to print "testing" between the appropriate tags):</p>
<pre><code><script type="text/javascript">
var testing = "testing";
testIt=function() {
$('#cont').html(testing);
}
&l... | javascript jquery | [3, 5] |
1,192,445 | 1,192,446 | A big dilemma - ASP.NET and jQuery | <p>I have a wizard style interface where I need to collect data from users. I've been asked by my managers that the information is to be collected in a step by step type process.</p>
<p>I've decided to have a page.aspx with each step of the process as a separate user control. step1.ascx step2.ascx etc...</p>
<p>The w... | asp.net jquery | [9, 5] |
5,815,737 | 5,815,738 | can I learn and use jQuery with just basic Javascript experience? | <p>I've tried to find an answer here before I submit this Q , but they weren't addressing the problem I have !
I'm wondering if I can code all of my scripts using jQuery, I already have a good background in programming and a good understanding of basic/intermediate javascript ( variables , variable scope , objects ,clo... | javascript jquery | [3, 5] |
5,239,997 | 5,239,998 | Access current running script error log | <p>Is it possible to capture all of the PHP errors that occur during a site execution, save them to a variable and print them out into a javascript section to print?</p>
<p>i.e.</p>
<p>
| php javascript | [2, 3] |
4,735,674 | 4,735,675 | javascript onclick event binding | <p>I have my script here,</p>
<pre><code> <script type='javascript'>
$(LastRow).find('#delete').attr('onclick','Comment_Delete(event,'+cID+')')
</script>
<input type="image" id="delete" border="0" src="../Resource/images/commentcross.jpg";" style="border-width:0px;">
</code></pre>
<p>i want contro... | javascript jquery | [3, 5] |
450,957 | 450,958 | If body class equals X then do something? | <p>I have this code running from an external script for an image slider for every page on a site. </p>
<pre><code>$(document).ready(function() {
$("#slideshow").show();
$('#slider1').anythingSlider({
buildNavigation: false,
delay: 8000
})
</code></pre>
<p>On one of the pages I don't want the image sli... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.