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 |
|---|---|---|---|---|---|
1,161,922 | 1,161,923 | Displaying real time | <p>I am currently displaying date/time on my webpage using the date function PHP provides.
However, using this function, the date/time will only be updated when reloading the page. I wish to have the date/time updated every second instead.</p>
<p>I assume I have to use either javascript or jQuery/ajax for this, howeve... | php javascript jquery | [2, 3, 5] |
4,619,251 | 4,619,252 | Java: updated class files not used | <p>I'm developing a Java program through Eclipse locally, and debugging on a remote machine. Whenever I make a change to my program, I copy the corresponding class file to the bin directory on the remote machine. I run my program (a simulator) through a python script via the OS.system command.</p>
<p>The problem is t... | java python | [1, 7] |
3,606,744 | 3,606,745 | jQuery Swap Image on Click and if/else | <p>Im stuck, Im setting a variable when someone clicks, then testing with if to see if the variable exists and doing something else. Its a simple script which Im probably overthinking, would love someone's thoughts.</p>
<pre><code> $('.view-alternatives-btn').live('click', function() {
//$("#nc-alternate-wines").s... | javascript jquery | [3, 5] |
4,535,987 | 4,535,988 | Why is this valid code? | <p><a href="http://jsbin.com/idazeg/edit#javascript,html" rel="nofollow">http://jsbin.com/idazeg/edit#javascript,html</a></p>
<p>Can someone tell me how and <strong>why</strong> this is working?</p>
<pre><code>$('#pp').click (function () {
ppp:doSomething('2'); //<=== ppp , how is JS **eating** this ?
});
</co... | javascript jquery | [3, 5] |
505,252 | 505,253 | javascript module that is using jquery loaded before jquery | <p>I have javascript module which should only be interpreted only after jquery is loaded</p>
<p>example</p>
<pre><code><script src=myApp.js></script>
<script src=jQuery.js></script>
</code></pre>
<ul>
<li>myApp.js is using jQuery. </li>
<li>script include sequence has to be like provided befo... | javascript jquery | [3, 5] |
402,809 | 402,810 | Rotate images, if last image then hide | <p>I have 3 images that I want to rotate when a button is clicked.</p>
<p>image1, image2, image3.</p>
<p>If the image is at image1, then when clicked it should show image2 (and so on, in order of image1, .., image3).</p>
<p>When I am at image3, it should then hide the image, i.e. don't display it.</p>
<p>I need som... | javascript jquery | [3, 5] |
224,383 | 224,384 | Get image from JSON String in JAVA | <p>I am sending JSON string to Java from php, that consists of some string type data and encoded image. In jJva inputStream is converted to BufferedReader and to String. Now string looks like <code>{"name": "xxx", "image":agrewfefe...}</code>
Is there any possible way to decode the string that represents image to bitma... | java android | [1, 4] |
5,684,956 | 5,684,957 | jQuery conditional select problems | <p>I have some problems with part of jQuery code in my form. Everything works fine except one part of code:</p>
<pre><code>if ( $("#finish_day").val() > 4 ) {
$('#start').attr('', '');
} else {
$('#start, #end').not(this)
.children('option[value=' + this.value + ']')
.attr('selected', '')
... | javascript jquery | [3, 5] |
4,894,247 | 4,894,248 | Continuous movement when a key is held down | <p>Is it possible in jQuery to have an element continuously move when the key is held down?</p>
<p>I've tried a few ways but they always have a break in between animation calls. The code I currently have: </p>
<pre><code>$(document).keydown(function (e) {
if (e.which == 37) {
$('#you').stop().animate({
... | javascript jquery | [3, 5] |
4,250,800 | 4,250,801 | Best way to create dropdownlists in a loop | <p>I have a two db tables one is the table of categories the second is the table of category values.</p>
<p>For each category I need to create a dropdownlist with values of the second table.
The second step is to put these dynamically created dropdownlists in a component similar to a formview to update, delete update ... | c# asp.net | [0, 9] |
3,924,120 | 3,924,121 | How do I handle this error : No overload for 'SQLDisplay_Date_records' matches delegate 'System.EventHandler' | <p>So I basically have two textboxes in the aspx file which get populated by dates (using the jquery datepicker) as given below </p>
<pre><code>Start Date: <asp:TextBox ID="TxtDatepicker_start" runat="server" Width = 125px >
</asp:TextBox>
&nbsp;&nbsp;End Date: <asp:TextBox ID="TxtDatepicke... | c# jquery asp.net | [0, 5, 9] |
5,050,079 | 5,050,080 | unexpected "focusout" event trigering | <p>I try to show text box (#dimVal), when div(#CanvasArea) is clicked. And I want to make this text box disappear, when it loses its focus.</p>
<pre><code> <head>
<script src="jquery-1.5.1.js" type="text/javascript"></script>
</head>
<body>
<div id = "CanvasArea", s... | javascript jquery | [3, 5] |
4,538,998 | 4,538,999 | Put element under focus in jquery | <p>I want to put element under <code>focus</code> just after <code>append</code> it, means something similar to :</p>
<pre><code>$("id").append($("elementid")).focus(); // not working
</code></pre>
| javascript jquery | [3, 5] |
5,774,627 | 5,774,628 | Why can't I call a form content? | <p>I have this simple code:</p>
<pre><code><html>
<body>
<form name="f1">
<asp:Label name="lbl" runat="server" Text="Label" onclick="lblClick()"></asp:Label>
</form>
<script type="text/javascript">
function lblClick(){
document.f1.lbl.text="new text";}
</script>
<... | asp.net javascript | [9, 3] |
3,812,051 | 3,812,052 | Validation on button | <p>I'm doing validation first on an email(mandatory and correct format) and then on a file upload(either blank or correct format) on the button submit.<br>
Here the email is validating well but in file upload if it is blank it also shows an error which is not needed.</p>
<p>Code:</p>
<pre><code><script type="text/... | javascript jquery | [3, 5] |
533,506 | 533,507 | Device to Device Communication in Android | <p>I have been tasked for university to program a mobile phone application. I have oppted for two mobiles to communicate with each other via message.</p>
<p>I would like the application to connect the mobile to the internet to send the message and the other mobile to connect to the internet to recieve the message.</p>... | java android | [1, 4] |
2,318,564 | 2,318,565 | Does anyone know of source code for a web based study group? | <p>I'm looking for source code for a web based study group. I'd prefer something in Python or C#. I have searched google but I'm finding mostly existing study groups on particular topics and not software to host an online study group. </p>
<p>Can anyone help out?</p>
<p><hr /></p>
<p>Edit: Ah, I was unfamiliar with ... | c# python | [0, 7] |
3,470,639 | 3,470,640 | Javascript and css file search path while running python SimpleHTTPServer | <p>I am running a python SimpleHTTPServer and serving a html file. That html file includes couple of javascript files. When the html file is served by the server I get the following errors.</p>
<pre><code>1.0.0.127.in-addr.arpa - - [15/Jun/2012 13:42:54] code 404, message File not found
1.0.0.127.in-addr.arpa - - [15/... | javascript python | [3, 7] |
3,078,769 | 3,078,770 | Table generation from Code Behind | <p>I know what my fault is, but not sure how to resolve. I am trying to generate an asp:table from Code Behind.</p>
<p>The table should be 3 cells wide... I'll work on the row limit later.</p>
<p>Here's my code:</p>
<pre><code>GallaryImage g = new GallaryImage();
var images = g.GetAll();
photos.Styl... | c# asp.net | [0, 9] |
269,555 | 269,556 | explode new line in javascript | <p>How do I convert the php code below into javascript? I google it and found something to do with st.replace(/,/g,"\n") but how to apply it to the variable? I have low knowledge about javascript and trying to learn it.</p>
<pre><code>$items = explode("\n", $model);
</code></pre>
| php javascript | [2, 3] |
3,051,218 | 3,051,219 | Display different aspx file in a popup in asp | <p>I am currently developing an ASP.net application. I am generating a table (standard HTML table not GridView) and populating it with data from a MySQL Database. One column of the table has hyperlinks which should link to a dynamic aspx web page that will display certain information based on the database.</p>
<p>When... | c# asp.net | [0, 9] |
4,160 | 4,161 | Calculate total after retriveing tax rate from JSON | <p>I have 1 select, 2 text inputs & some JSON data in a form:</p>
<ul>
<li><strong>select input</strong>: List of Suppliers</li>
<li><strong>text input 1</strong>: Net Amount</li>
<li><strong>text input 2</strong>: Gross Amount</li>
<li><strong>JSON Data</strong>:contains the rates of various suppliers as <code>JS... | javascript jquery | [3, 5] |
4,880,077 | 4,880,078 | JavaScript and PHP in code - whats the difference? | <p>I have this code in my JavaScript part:</p>
<pre><code>var opConfig = new Product.Options(<?php echo $this->getJsonConfig(); ?>);
</code></pre>
<p>The PHP call returns me some string, to make it easy, lets say the string is <em>abcd</em>. So this code results in:</p>
<pre><code>var opConfig = new Product... | php javascript | [2, 3] |
694,952 | 694,953 | Sending json data using jquery | <p>I have a small doubt. I am trying to send json data to my back end page like this. But i am getting error. where in only $fb_list1 is json data. So how do i send it from here.</p>
<pre><code>$('.fresh_start')
.html("<div class='response1'><img src='/images/preloader.gif' alt='Loading.....'></img&... | php jquery | [2, 5] |
5,292,849 | 5,292,850 | How to convert JavaScript `for` loop to Python? | <p>I am new to Python and want convert this small JavaScript code to Python. How can I do that?</p>
<pre><code>for (var y = 0; y < 128; y += 1024) {
for (var x = 0; x < 64; x += 1024) {
// skipped
}
}
</code></pre>
<p>I searched a lot in Google, but found nothing.</p>
| javascript python | [3, 7] |
3,562,472 | 3,562,473 | jQuery 'click' automatically fires 'live' | <p>Here is a simple piece of code:</p>
<p>HTML:</p>
<pre><code><div id="close">Click me</div>
</code></pre>
<p>JS Code:</p>
<pre><code>$("#close").click(function(){
alert("1");
$(this).attr('id','expand');
});
$("#expand").live('click', function(){
alert("2");
$(this).attr('id','close... | javascript jquery | [3, 5] |
2,322,087 | 2,322,088 | ASP:Login - call Javascript function on wrong password/username | <p>I am using the ASP.net <code>ASP:Login</code>, and i want to call a javascript function if login fails.</p>
<p>How can I accomplish this? </p>
| c# asp.net | [0, 9] |
979,234 | 979,235 | jQuery not detecting enter key pressed in textarea | <p>My setup: jQuery 1.6.2</p>
<p>I have this HTML</p>
<pre><code><textarea class="comment_box"> Write a comment...</textarea>
</code></pre>
<p>And the following Javascript</p>
<pre><code><script>
$('.comment_box').keydown(function (e){
if(e.keyCode == 13){
alert('you pressed enter ^_... | javascript jquery | [3, 5] |
3,401,125 | 3,401,126 | How to get <td> value in textbox | <p>I've done some code in html and in JavaScript ... My query is when I click on <code><td></code>, whatever the value associated with it, has to be displayed in the corresponding text box ...
In front of <code><td></code> I've taken the textbox ... for an example I've taken 3 <code><td></code> and 3... | javascript jquery | [3, 5] |
3,763,446 | 3,763,447 | python import as equivalent in Java? | <p>I have a bunch of idl files that automatically create four packages, with a lot of java files into it.
I need to insert those java files in a com.bla. package architecture. </p>
<p>Thing is in my generated files I have imports UCO.State for example, that do not fit with my new package architecture. </p>
<p>So qu... | java python | [1, 7] |
4,751,710 | 4,751,711 | 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] |
2,075,655 | 2,075,656 | What are some open source web portal applications in C# and ASP.NET? | <p>What are some open source web portal applications, preferably written in C# and ASP.NET, that are suitable for internal use in IT organisations?</p>
| c# asp.net | [0, 9] |
4,590,047 | 4,590,048 | Android connection in piconet | <p>Whether it is possible to stream audio signal over 7 slave device through 1 master device at same time in Android A2DP for good audio signal....If it is possible then kindly give link for source information and code to connect piconet architecture......</p>
| javascript android | [3, 4] |
4,244,851 | 4,244,852 | Angry Birds like scrolling menu | <p>When you start Angry Birds and hit play you are shown a horizontally scrolling menu with a centered line of images that once clicked on you can start the game and what not. I was wondering how to make a menu simular to this in that it scrolls sideways (horizontally) and shows tappable images? Thanks in advance!</p>
| java android | [1, 4] |
1,226,533 | 1,226,534 | Jquery Prepend: Cannot call method 'createDocumentFragment' of null | <p>During page startup I'm trying to add an element to the DOM.</p>
<p>I have the following code:</p>
<pre><code>$(document).ready(function () {
$(document).prepend("<div id=new_div style=z-index:1;></div>");
});
</code></pre>
<p>I've tested this on FF21, Chrome27 and IE10. They all return the error ... | javascript jquery | [3, 5] |
4,973,587 | 4,973,588 | Get escaped html from td and put it into input as value | <p>I have html</p>
<pre><code><table>
<tr><td id="cell">&lt;a href=&quot;&quot;&gt;Google.com&lt;/a&gt;</td></tr>
</table>
<div id="to"></div>
</code></pre>
<p>And I have javascript</p>
<pre><code>$(document).ready(function() {
var html = '&... | javascript jquery | [3, 5] |
1,217,720 | 1,217,721 | How to focus in div tag in javascript | <p>I have created a tabs using div tag in javascript. I have asp.net button on each tab. whenever I clicked on button the focus is set to first tab.</p>
<p>I am using following code in page load event.</p>
<pre><code>HtmlGenericControl content_1 = new HtmlGenericControl("content_1");
HtmlGenericControl content_2 = ne... | javascript asp.net | [3, 9] |
3,226,133 | 3,226,134 | How to get the selected value and key from an html dropdown list in javascript on php | <pre><code> <select id="facetList" style="width:120px;" class="text ui-widget-content ui-corner-all">
<?php
foreach($claAddArray as $k => $v)
{
echo "<option value=\"$k\">$v</option>";
}
?>
</select>
$("#btnSubmit").click... | php javascript jquery | [2, 3, 5] |
1,138,158 | 1,138,159 | Why is XML used for the creation of UI layouts in Android? | <p>I would like to know why we use <strong>XML for the creating user interface layouts in Android</strong>. I know that it decouples the buisness logic from the design but what is the significance of the XML other than that?</p>
<p>Also I would like to know the <strong>significance of autogenerated <code>R.java</code>... | java android | [1, 4] |
632,569 | 632,570 | how to iterate over each row whose third cell has a rowspan attribute | <pre><code>for (var i = 0; row = tableAppointment.rows[i]; i++) {
for (var j = 0; col = row.cells[j]; j++) {
//iterate through columns
//columns would be accessed using the "col" variable assigned in the for loop.
}
}
</code></pre>
<p>How to iterate over each row whose third cell has a <code>rowspan</code>... | javascript jquery | [3, 5] |
5,132,747 | 5,132,748 | how button click event works in combobox? | <p>I am trying to dynamically append options in a combo box.</p>
<p>How does button click event work in a combo box element? I am using change event. But I need button click event in the combo box. How can I 'uniquify' the combo box element in jquery?</p>
| javascript jquery | [3, 5] |
4,083,362 | 4,083,363 | how to get multiple value from one textbox in javasript? | <p>I have created web application and textbox as a textarea.i am using javascript for validation.When i enter value in text box so it should be number not alphabet i have use textmode is multiple line.</p>
<p>My problem is that how i get multiple value from textbox and store in array in javascript and check each value... | asp.net javascript | [9, 3] |
3,784,707 | 3,784,708 | Jquery Image Crop to a dynamic shape | <p>I wish to have an interface that can achieve something similar to the screen shot attached.
Is this possible in Javascript - interested to here of Jquery examples.</p>
<p><img src="http://ploader.net/files/a612027c553e7445b8fed99c4891aa11.png" alt="Screenshot"></p>
| javascript jquery | [3, 5] |
2,747,315 | 2,747,316 | Android prevent back stack from being cleared when home button is pushed | <p>My home button is clearing the back stack. So that when the user re-enters the application and pushes the back button (soft or hard) it quits the app instead of returning to the activity at the top of the back stack.</p>
<p>I have alwaysRetainTaskState set to true, and nothing else has been overriden. Why is this h... | java android | [1, 4] |
472,262 | 472,263 | Checkbox list checked values | <p>I have a checkbox list with 3 items in it. I would like to get all the checked values of checkbox list into a single string. I tried the following code, but it does not give correct results.
Can anyone help me in this.</p>
<pre><code><asp:checkboxlist id="interestedIN" runat="server" repeatlayout="table"
cel... | c# asp.net | [0, 9] |
1,206,879 | 1,206,880 | please explain this jQuery statement | <p>What is this doing exactly?</p>
<pre><code>this.$blah = jQuery("<div id=blahblah1></div>");
</code></pre>
| javascript jquery | [3, 5] |
5,649,337 | 5,649,338 | Android setText with leading zero not showing the zero | <p>An example of what I'm trying to do.</p>
<pre><code>int i = 9;
if (i<10)
i = "0"+v1
</code></pre>
<p>Of course that won't work because int != String, but what would be the best way to do this, to make sure I have a leading zero appear? Convert the int to String?</p>
| java android | [1, 4] |
4,415,541 | 4,415,542 | Converting string into different variables? | <p>I'm working with a function that outputs a string that is always formatted "Month Day, Year".
With this, I'm looking to be able to convert the string into three variables. One for month, one for day, and one for year. The project is jQuery based, so if there is a more elegant solution that way, I would appreciate it... | javascript jquery | [3, 5] |
5,372,292 | 5,372,293 | Can PHP be more like python? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1266911/does-php-have-an-equivalent-to-pythons-list-comprehension-syntax">Does PHP have an equivalent to Python's list comprehension syntax?</a> </p>
</blockquote>
<p>Does PHP have any equivalent of the simp... | php python | [2, 7] |
3,975,002 | 3,975,003 | jQuery or JS: Select input fields with 2 level brackets? | <p>I have a dynamic form that adds users to the site, made so you can duplicate the fields to add several users on one go.</p>
<p>So, my looks like</p>
<pre><code><input name="user[1][name]" value="" />
<input name="user[1][username]" value="" />
<input name="user[1][password]" value="" />
</code><... | javascript jquery | [3, 5] |
6,002,049 | 6,002,050 | What is the purpose/benefit of using ignored parameters in a JavaScript function? | <p>Just so there is no misunderstanding, this question is not about allowing for optional parameters in a JS function. </p>
<p>My question is motiviated by the jQuery <code>parseXML</code> function, which is defined in <code>jQuery.js</code> as follows:</p>
<pre><code>// Cross-browser xml parsing
// (xml & tmp us... | javascript jquery | [3, 5] |
4,509,009 | 4,509,010 | jQuery index of dom element? | <p>I have...</p>
<pre><code>element = document.elementFromPoint(x, y)
</code></pre>
<p>then I want to do something like...</p>
<pre><code>index = $(element).index()
</code></pre>
<p>The DOM element is a <code>li</code> and I need its position in the list. </p>
<p>Thanks!</p>
<p>EDIT: If what i'm doing is correct ... | javascript jquery | [3, 5] |
2,091,516 | 2,091,517 | How do I use Javascript to get the name of the UserControl it is called from? | <p>I am trying to replace postbacks with javascript client side processing whenever I can in my aspnet c# 3.5 code so as to improve the user experience. I am not using any javascript frameworks. I am using vs2008. </p>
<p>I have a usercontrol .ascx file with a dropdown list and button which is used in three places o... | asp.net javascript | [9, 3] |
5,617,252 | 5,617,253 | cycle through list, change style every x seconds | <p>I have a simple slideshow (jQuery Cycle) that displays an image every ten seconds (7 total images). In an adjacent div, I have a list with 7 bullet points. What's the easiest way to script a method in which the css/style of the appropriate bullet point changes as its accompanying image. The idea is to have all list ... | javascript jquery | [3, 5] |
892,411 | 892,412 | Porting c++ to python code | <p>I want to convert this C++ code to Python v2:</p>
<pre><code>static unsigned char asConvCode[3] = {0xFC, 0xCF, 0xAB};
void asConv(char* str, int size)
{
int i = 0;
for (i = 0; n< size; n++)
{
str[i] ^= asConvCode[n % 3];
}
}
</code></pre>
<p>tried to make like that:</p>
<pre><code>def... | c++ python | [6, 7] |
2,010,739 | 2,010,740 | Object ... has no method 'append' -Need help quick | <p>I am currently attempting to write a function that applies unique ids to list item dynamically by ticking checkboxes, though I have encountered a problem, when appending the unique id to the list item I get the following error message in the console:</p>
<pre><code>Uncaught TypeError: Object SpTU 4, 183:false<br... | javascript jquery | [3, 5] |
3,773,761 | 3,773,762 | Wrap all instances of word in tag? | <p>If I have a <code>div</code> containing words, like so:</p>
<pre><code><div class="content">
In condimentum facilisis porta. Sed nec diam eu diam mattis porta viverra.
</div>
</code></pre>
<p>How can I find every instance of a word, say <code>porta</code>, and wrap it with a tag, so that it becomes... | javascript jquery | [3, 5] |
680,293 | 680,294 | Javascript ContextMenu in IE7 | <p>We are using div tag in aspx and javascript functions to show context menu in our web application. In IE6 the sub menus in the context menu are getting displayed at the correct x and y coordinates what we have hard-coded in our application. But in IE7 and IE8, the sub menus are getting overlapped and in some machine... | asp.net javascript | [9, 3] |
649,038 | 649,039 | DecodeStream throwing null while storing in bitmap | <p>This is my code... I am getting exception NULL at <code>imageBitmap = BitmapFactory.decodeStream(is2,null, options);</code></p>
<p>First time it can decode but why now, decodeStream throwing null ?</p>
<pre><code> public void showImageThumb(FileInputStream is)
{
final int IMAGE_MAX_SIZE = 100;... | java android | [1, 4] |
1,713,914 | 1,713,915 | allowing to update gridview depending on user authentication asp.net | <p>i have a web app in asp.net running on windows authentication</p>
<p>i want only a specific user to be able to update, while the other users will only be able to view.</p>
<p>how do customize the gridview so that only a specific user has the option to update?</p>
| c# asp.net | [0, 9] |
749,253 | 749,254 | Making sure my sliding panel remains centered on window resize? | <p>I have created a sliding panel that should appear in the center of any sized window, my problem however is that I have added window.resize around my css calculations which doesnt seem to work, when the page is resized then the window crashes?</p>
<p>My code is as follows:</p>
<pre><code>$(document).ready(function(... | javascript jquery | [3, 5] |
1,999,881 | 1,999,882 | javascript for checkbox checked | <p>Sample of what I need: (click for full image)</p>
<p><a href="http://i.stack.imgur.com/czyQI.png" rel="nofollow"><img src="http://i.stack.imgur.com/czyQI.png" alt="sample"></a></p>
<p>I want that when I click on any of the header checkbox, all the rows below that will be checked.</p>
<p>For example: when I click ... | c# asp.net | [0, 9] |
2,817,058 | 2,817,059 | Equal substring value does not return expected result | <p>Hi I have a problem with this substring where I expected it to be equal. Well I made a function where you will compare two names then whenever those names share a same character it will change all that characters into spaces. Can you check where is my mistake in this one? I'm having a hardtime to figure it out. Here... | java android | [1, 4] |
122,789 | 122,790 | JQuery - Fade Out Elements After Being Created | <p>I'm currently working on a JQuery game (Just to get around with using JQuery) and on certain collisions, an "explosion" class is created. </p>
<p>Right now I'm using <code>$("#game").append("the div html code goes here")</code> to add it in the game div. Now, how do I make it so after the element is created, it fad... | javascript jquery | [3, 5] |
4,738,744 | 4,738,745 | What is the first global.asax event that Session is accessible assuming the context handler is IRequiresSessionState or IReadOnlySessionState? | <p>My app sometimes calls <code>Server.Transfer</code> in the <code>Application_OnPostAuthenticateRequest</code> event of the global.asax to act as kind of url rewite. When this happens and I need to access <code>Session</code> I get an HttpException: "Session state can only be used when enableSessionState is set to t... | c# asp.net | [0, 9] |
2,964,737 | 2,964,738 | Not able to add 15 minute to 00:00 | <p>I have written a function for adding time in a 24 hour format as given below</p>
<pre><code>for (int i = 0; i < cursor.getCount(); i++) {
String RevisedTime="00:00";
// get hour and minute from time string
StringTokenizer st1 = new StringTokenizer(RevisedTime, ":");
int j... | java android | [1, 4] |
5,576,428 | 5,576,429 | Custom dialog box to get confirmation when browser tab is closed | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2132760/how-to-ask-confirmation-when-closing-a-window">How to ask confirmation when closing a window?</a> </p>
</blockquote>
<p>I would like to display a confirmation box and a custom message when the browser ta... | javascript jquery | [3, 5] |
1,663,439 | 1,663,440 | Find out latest version | <p>I would like to get the logic to find out latest versions among two version numbers
for e.g for blackberry mobile OS, it will return the version number like this '6.0.1'. Some other os might return 6.1 only or 6.1.2.4 something like that. I wish to get logic in C# to find the latest version of the provided version n... | c# asp.net | [0, 9] |
2,918,548 | 2,918,549 | Pass variable and DOM element to jquery each | <p>I've been struggling with this for a while, and have tried many searches, but haven't found the right solution, nor words for the issue I have.
I wish to traverse the <code><tr></code>'s in <code><table id="Listeners"></code> with jQuery, and set the rows to either Even or Odd class.</p>
<p>The is yet ... | javascript jquery | [3, 5] |
5,572,425 | 5,572,426 | Send message from a hotspot to a connected client | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10777678/send-message-from-a-basic-server-to-a-specific-client">Send message from a basic server to a specific client</a> </p>
</blockquote>
<p>Here is a scenario. I have enabled a hotspot through wifi tethering... | java android | [1, 4] |
1,296,880 | 1,296,881 | Non-smooth div animation in Firefox | <p>Referring to <a href="http://jsfiddle.net/25EsV/" rel="nofollow">this fiddle</a>. This animation is quite smooth on Chrome and IE (v9), however it is very choppy on Firefox. The whole idea is to animate the border without moving the div itself (referring back to <a href="http://stackoverflow.com/questions/6313847/... | javascript jquery | [3, 5] |
2,816,177 | 2,816,178 | jQuery: Can't cache onclick handler? | <p>I've got a step-by-step wizard kind of flow where after each step the information that the user entered for that step collapses down into a brief summary view, and a "Go back" link appears next to it, allowing the user to jump back to that step in the flow if they decide they want to change something.</p>
<p>The pr... | javascript jquery | [3, 5] |
3,028,850 | 3,028,851 | login redirects infinitly on subdomain | <p>I have a subdomain at:
kezblu.mysite.com.</p>
<p>It is actually at mysite.com/kezblu</p>
<p>I have code that will ask a user to login if they are not:</p>
<pre><code>protected void HandleLoginRedirect()
{
if (IsRequestedPage("Login") && Authorization.IsAuthenticated())
{
Response.Redirect(... | c# asp.net | [0, 9] |
1,593,787 | 1,593,788 | code to run java program from website using php | <p>I have a website and want to be able to allow the user to run a Java file on the server from the website.</p>
<p>I want the user to click a button which will run the Java file on the server AND anything printed to standard-out by the Java program will be printed out on the website for the user to see.</p>
<p>How c... | java php | [1, 2] |
3,802,581 | 3,802,582 | What do I need to do to show the calendar when button is clicked? | <p>I am trying to do a calendar which pops out when a button (...)is clicked, but I am stuck and don't know what I have to do. Below is the code I am using. I am using visual studio 2010 and C# as my programming langauge.</p>
<pre><code><asp:textbox id="TextBox1" runat="server"></asp:textbox>
<input typ... | c# asp.net | [0, 9] |
4,350,015 | 4,350,016 | call an external javascript function from python | <p>I have a javascript function that I can call with input and that returns a result.
I can integrate this javascript function into an html-document (of course).</p>
<p>Now I would like to call exactly this javascript function from python. I have a python programm and want to call the javascript function with input pa... | javascript python | [3, 7] |
1,953,353 | 1,953,354 | Progress dialog during tab switch | <p>When the user switches from tab A to tab B it takes a long time (6 seconds), so I put in a progress dialog to let the user know that the app is working on it. The timeline is as follows:</p>
<ol>
<li>Activity B onCreate - creates ProgressDialog and puts long tasks in a background Thread.</li>
<li>Activity B onStar... | java android | [1, 4] |
494,201 | 494,202 | javascript, jQuery running a single function with two different inputs at the same time | <p>hey guys just doing some messing around and learning a few new things to kill time at the moment im fiddling with javascript and i have encountered a problem.</p>
<p>so the problem is that i have downloaded a small jQuery slideshow thing of the internet being simple fade slideshow (i have hacked it to pieces removi... | javascript jquery | [3, 5] |
3,913,851 | 3,913,852 | ASP.Net C# Where ID equals Cell | <p>Hi all I have this statement:</p>
<pre><code>cmd = new SqlCommand("UPDATE Comments SET Flagged = '" + "Yes" + "' WHERE Comment_ID ='" + Row.Cells[0] + "'", con);
</code></pre>
<p>Visual Studio is underlining Row.Cells[0] saying Row does not exist in current context. </p>
<p>Could you take a look and see where I a... | c# asp.net | [0, 9] |
1,911,324 | 1,911,325 | Re-using programatically created Textviews | <p>I've written code to perform a search and display the results below the search form in the XML file.</p>
<p>However, by creating TextViews dynamically, it keeps adding more TextViews so the number of TextViews increases by 5 everytime I perform a search. How could I re-use the TextViews so I can update the text to ... | java android | [1, 4] |
2,069,117 | 2,069,118 | Domain name resolution in Android | <p>Does anyone know the DNS query implementation from a low level? I mean, in Android, if I call <code>InetAddress.getByName()</code>, what is the underlying call stack to get the IP address of the queried domain name?</p>
| java android | [1, 4] |
2,899,399 | 2,899,400 | Press home button to stop service | <p>i want to if the user press home button my service will be stop , this is my code but it's not working for me, please help me:</p>
<pre><code>@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_HOME) {
stopService(new Intent(this, MyService.class));
return true;
}
retur... | java android | [1, 4] |
2,429,281 | 2,429,282 | Add javascript in php code and php code in Javascript | <p>I am trying to get the info from a PHP variable in to JavaScript while in the PHP <code>if</code> statement. I am not sure what is wrong. I tried to escape the PHP code then I thought I cannot have PHP code tags with in PHP code.</p>
<p><strong>Here is my code but this does not work:</strong></p>
<pre class="lang-... | php javascript | [2, 3] |
1,438,345 | 1,438,346 | How to make my flash file on website non-clickable? | <p>I have a few /swf files on my site - i'm posting them that way:</p>
<pre><code> <div class="cvreation" style="padding-top:25px;" >
<object class="flash_banner" type="application/x-shockwave-flash" data="/prod_bann/flashfile.swf" ></object>
</div>
</code></pre... | php javascript jquery | [2, 3, 5] |
1,451,134 | 1,451,135 | jquery catching QUnit.done | <p>How can I catch QUnit.done from jquery.testHelper.js
<a href="https://github.com/jquery/jquery-mobile/blob/master/tests/jquery.testHelper.js" rel="nofollow">https://github.com/jquery/jquery-mobile/blob/master/tests/jquery.testHelper.js</a></p>
<p>I tried to define </p>
<pre><code>QUnit.done = function ( failed, pa... | javascript jquery | [3, 5] |
3,507,846 | 3,507,847 | Can Android applications have their variables read/set maliciously? | <p>This does not deal with apk piracy what I'm asking about is the code in the apk file.</p>
<p>I know that if you use shared memory and set the mode to public people can change the values that are saved but what about the code in the application? For example if I set a variable to public static int in a game could an... | java android | [1, 4] |
1,858,930 | 1,858,931 | javascript focus to an element | <p>I have a page that scrolls across multiple screens using jQuery's animate function. I am using tab indeces set by jQuery for the form. The problem is that when I give focus to the first element of the form using</p>
<pre><code>$('#myforminput1').focus();
</code></pre>
<p>the page automatically scrolls to the el... | javascript jquery | [3, 5] |
6,027,319 | 6,027,320 | How to get portion of the attribute value using jquery | <p>I have attribute value as:</p>
<pre><code><div id = "2fComponents-2fPromotion-2f" class = "promotion">
</code></pre>
<p>Now I want to get only portion of it, say <code>Promotion</code> and its value <code>2f</code>, how can I get this using jquery ? Do we have built in function for it ?</p>
| javascript jquery | [3, 5] |
2,899,773 | 2,899,774 | Difference between AsyncPostBackTrigger and PostBackTrigger on UpdatePanel? | <p>I have a <code>GridView</code>(ucLAD) in my <code>UpdatePanel</code>(upnlListing). Inside my <code>ucLAD</code> I have a checkbox and an action for <code>rowClicked</code>:</p>
<pre><code><asp:UpdatePanel ID="upnlListing" runat="server" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="u... | c# asp.net | [0, 9] |
691,795 | 691,796 | How can I wrap header text in Gridview? | <p>Hi I am writing some code to display some records in Grid view. I am using Firefox as my Default browser. I wish to wrap a header text. but Firefox is not supporting the wrap property. How can I achieve this?</p>
| c# asp.net | [0, 9] |
3,397,295 | 3,397,296 | Problems with unbinding a function by handler | <p>I have html like this:</p>
<pre><code><div>
<input type="checkbox" id="checkbox", checked="checked"/>
<label for="checkbox">Copy values</label>
</div>
<div>
<input id="source" type="text"/>
</div>
<div>
<input id="target" type="text"/>
... | javascript jquery | [3, 5] |
544,789 | 544,790 | Camera Preview Example | <p>I know this is really basic but it is a error that I cannot find a solution to.</p>
<p><a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html" rel="nofollow">http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphi... | java android | [1, 4] |
2,249,970 | 2,249,971 | jquery Element to DOM Element returns empty string by function | <p>Why does this code:</p>
<pre><code>function fn(el){ return $(el)[0].style.width };
fn('#someElementIdId'); // return -> ""
</code></pre>
<p>But this code...</p>
<pre><code>function fn(el){ return $(el).width() } ;
fn('#someElement'); // return -> correct width
</code></pre>
<p>I have tried different thi... | javascript jquery | [3, 5] |
495,740 | 495,741 | Automatically check checbox when submitting a form | <p>I have a form with a check box and a submit button. I would like the checkbox to be checked automatically when I submit the form.</p>
<p>How can I do that with jquery or javascript?</p>
| javascript jquery | [3, 5] |
3,947,896 | 3,947,897 | how to dynamically (re)position an element according to the bottom of the page using JS / Jquery? | <p><strong>the back story:</strong> i have a tab section on a page which when navigated through displays sections (divs) of varying height. </p>
<p><strong>the result,</strong> is that certain inputs (which are strangely positioned for reasons i can't change) on this page reposition themselves problematically. </p>
<... | javascript jquery | [3, 5] |
5,373,260 | 5,373,261 | How to show the text at lock screen in Android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7569812/how-can-i-interact-with-the-lockscreen-layout-to-display-text-into-it-like-this">How can I interact with the Lockscreen layout to display text into it, like this app:</a> </p>
</blockquote>
<p>I want to ... | java android | [1, 4] |
5,083,897 | 5,083,898 | asp.net checkbox in gridview - checked property is missing | <p>In this asp.net gridview control, the checked property is always missing. I need to access the checked property via jquery</p>
<pre><code>Gridview source:
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="chkSelected" run... | javascript jquery asp.net | [3, 5, 9] |
5,254,101 | 5,254,102 | Convert Datatable to PDF | <p>Can I get a code for converting datatable to pdf in Asp.net Web application. I want to have functionality to export <code>datatable</code> into <code>PDF</code>. I found <a href="http://www.aspsnippets.com/Articles/Export-DataSet-or-DataTable-to-Word-Excel-PDF-and-CSV-Formats.aspx" rel="nofollow">this</a> article ... | c# asp.net | [0, 9] |
129,321 | 129,322 | JS Include File From ASP.Net User Control | <p>This maybe a very basic question but for the life of me I cannot figure it out. So I have a user control that gets loaded on a page. Well, in this user control, I'm wanting to include a js file for some functions that are only specific to that user control. Inside this js file let's say I have a function called '... | asp.net javascript | [9, 3] |
3,436,643 | 3,436,644 | Long running thread + lifecycle | <p>I have a long-running thread which I start on app startup:</p>
<pre><code>public class MyHelper extends Thread {
private AtomicBoolean mRun;
public void run() {
while (mRun.get()) {
...
}
}
}
public class App extends Application {
private MyHelper mHelper;
public vo... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.