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
912,004
912,005
Uncaught ReferenceError, my function is not defned
<p>I'm creating a dyanamic scrolling div and it works fine on Jsfiddle as seen here --> <a href="http://jsfiddle.net/9zXL5/19/embedded/result/" rel="nofollow">http://jsfiddle.net/9zXL5/19/embedded/result/</a> yet on the browser I get: </p> <blockquote> <p>Uncaught TypeError: Cannot set property 'onscroll' of null</p...
javascript jquery
[3, 5]
2,501,579
2,501,580
Run a Script to Disable a Script
<p>I need to run a script that will disable a another script on the page. How do I do this?</p> <p>(Internet Explorer Issues is why I am having to do this.) I am using jQuery 1.8.</p> <p>Please provide examples. </p>
javascript jquery
[3, 5]
5,762,410
5,762,411
Android draw chart
<p>I want to know API for draw a chart/graph in android. Already I have tried following API</p> <ul> <li><p>achartengine</p></li> <li><p>achartfree</p></li> <li><p>achart4j</p></li> </ul> <p>but I didn't get currect solution can any one help?</p>
java android
[1, 4]
763,012
763,013
Return statement does not work!
<p>I have this simple method here:</p> <pre><code>private Node addItem(Node current, Node target) { if (current.data.getId() &lt; target.data.getId()) { if (current.larger == null) { current.larger = target; Log.i("BinaryTree", "Added item: " + target.data.getId()); retu...
java android
[1, 4]
5,822,105
5,822,106
IE not implemented javascript error
<p>I'm using some basic jQuery at <a href="http://s329880999.onlinehome.us/" rel="nofollow">http://s329880999.onlinehome.us/</a> and I'm getting a "not implemented" error in Internet Explorer. I'm guessing that this is to do with my using top (var s2). How can I make it work in IE?</p>
javascript jquery
[3, 5]
1,473,009
1,473,010
Android List of values with key
<p>I am trying to work out if I can use a resource file, while developing my android app, to hold a list of numbers using a string value as a key. For example</p> <p>numbers("UK")= 999 numbers("US") = 911</p> <p>As I said, this would ideally be in resource file rather than a Java class as it is more maintainable</p>
java android
[1, 4]
37,069
37,070
ASP.NET - Page.Form.Action error
<p>On my local development server, I am running version 2.0.50727.4955 on the live server I am running 2.0.50727.42.</p> <p>On my live server I get:</p> <p>Compiler Error Message: CS0117: 'System.Web.UI.HtmlControls.HtmlForm' does not contain a definition for 'Action'</p> <p>On my development server everything works...
c# asp.net
[0, 9]
3,674,127
3,674,128
include button into .cs file
<p>I'm trying to read a text file containing the name of the image, and display it opon pageload.</p> <p>Let's say that the content in the text file is </p> <pre><code>Australia Picture101 Singapore Picture201 </code></pre> <p>Following is the code i tried and it does not display the image.</p> <pre><code>tab...
c# asp.net
[0, 9]
4,689,177
4,689,178
Extending Python 3 with C++
<p>I'm trying to extend Python 3 using instructions given <a href="http://docs.python.org/release/3.1.3/extending/extending.html" rel="nofollow">here</a> and I'm fairly confident I've followed the instructions correctly so far, but it asks me to include this code:</p> <pre><code>PyMODINIT_FUNC PyInit_spam(void) { ...
c++ python
[6, 7]
1,658,620
1,658,621
disable browser button
<p>I want to remove previously visited url from history in asp.net so that if user click on back button of browser user will not go in previous url.</p> <p>Is there any other method than Window.history.forward()? Thanks.</p>
javascript asp.net
[3, 9]
52,490
52,491
How does Android accelerometer (Java in general) handles call back listeners?
<p>This question is basic for Java, not android. If the code that is inside listener interface does some complex calculations, what happens for callbacks given by the system. In Android accelerometer readings are collected in onSensorChanged(SensorEvent event). If I want to process "event" data and that its called arou...
java android
[1, 4]
1,509,868
1,509,869
jquery that just waits
<p>I normally set up my javascript code to have a function. But due to the fact that the application generates most of the HTML and javascript calls from a VB6 application I would like to create a jQuery function that is more like a listener. So for example if I have a td tag that has the class 'gridheader1' I would ...
javascript jquery
[3, 5]
3,529,855
3,529,856
Reduce power conssumption while wireless should be used
<p>I am working on my MSc dissertation right now. This dissertation has one related app which should be developed by android. One of the objectives of the research is about using wireless to sync data among the phones. In the meanwhile, I must consider power consumption which means reduce power consumption while using ...
java android
[1, 4]
3,627,931
3,627,932
Run a Script to Disable a Script
<p>I need to run a script that will disable a another script on the page. How do I do this?</p> <p>(Internet Explorer Issues is why I am having to do this.) I am using jQuery 1.8.</p> <p>Please provide examples. </p>
javascript jquery
[3, 5]
4,783,861
4,783,862
How to detect when a text input changes with ie8
<p>I want to detect when a text input changes. I tried these, which worked in firefox but not in ie 8.</p> <pre><code>$('#taskSearch').bind('input', function() { alert($(this).val()); }); $('#taskSearch').live('input', function() { alert($(this).val()); }); $('#taskSearch').change(function() { alert($(thi...
javascript jquery
[3, 5]
5,741,822
5,741,823
common gridview for whole project asp.net
<p>How to create a grid view for whole project. (asp.net, c#)</p> <p>in project contains 10 forms and each forms contains a grid.</p> <p>i want to make it a (single grid)user-control .</p> <p>how can i make it. please give some sample source or a reference link</p>
c# asp.net
[0, 9]
3,680,034
3,680,035
How can i use regular expression check in jsvalidate?
<p>I am using jsvalidate.js for my form validation. i need to eliminate addition of quotes inside my textbox by using jsvalidate.js. If anyone knows help me in advance...</p>
javascript jquery
[3, 5]
2,730,136
2,730,137
How can I control the usage of a custom jar library?
<p>I need a way to essentially secure my jar library to allow registered apps to use it in their projects and deny usage to apps that weren't approved by me.</p> <p>It is fine if I hard code things in the lib for each distribution. I currently have this jar obfuscated.</p> <p>What are good approaches to restrict the ...
java android
[1, 4]
421,841
421,842
PHP and Java interoperablity
<p>I am working on windows using tomcat 6 and PHP/Java Bridge. I know how to access a Java file from PHP but how do we do it the other way i.e accessing PHP from Java</p> <pre><code>&lt;?php require_once("java\Java.inc"); $systemInfo = new Java("java.lang.System"); print "Total seconds since January 1, 1970: ".$syste...
java php
[1, 2]
5,779,886
5,779,887
Showing a formatted elapsed time
<p>On my upload file page I want to show an elapsed time (how long the user has been uploading the file for) in this format: <code>00:26</code>, which would be 26 seconds. <code>17:34</code> would be 17 minutes 34 seconds, etc.</p> <p>How could I do this? I have an event that gets called when the upload starts so I ca...
javascript jquery
[3, 5]
3,506,973
3,506,974
Auto incrementing of id and showing it in the textbox in 3 tier architecture
<p>I am using Visual Studio 2008, ASP.NET 3.5 and C# for my project. I am use 3-tier architecture for database connectivity. I have designed a form with the ID, name, age, etc. In the database table, id is the primary key. On the page load I want to display the next value of the id in the text box automatically. Then...
c# asp.net
[0, 9]
2,550,901
2,550,902
How to add a specific class to appended LI which is loaded via ajax?
<p>This is my code. What I am trying to do is add a class "featured" to the first li item which gets added to this UL however, when I try this code, it does not work, it always add the class to every li inserted, while I want the class to be added only if there are no li in the ul and to the first li element added to t...
javascript jquery
[3, 5]
5,620,843
5,620,844
javascript/jQuery anonymous functions to populate an array
<p>Hi I was just wondering if building an array in javascript was possible using a function like so. I have a variable that is getting the margins of a series of elements using <code>$(ele).css('margin');</code>. This returns a string of <code>0px 0px 0px 0px</code> where I only want the left property to check whether ...
javascript jquery
[3, 5]
4,858,882
4,858,883
Update label C#
<p>When the page first load i have a label who has 0 or 1. Look at the code and you will se what i trying to do. But it don't work because the page allready loaded.</p> <pre><code>protected void rptBugStatus_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item ||...
c# asp.net
[0, 9]
526,519
526,520
How do i create a method/function in Jquery
<p>How do i create a method in Jquery</p> <p>For example</p> <pre><code>function dosomething() { // do something } dosomething();// i can call the function this way </code></pre> <p>How can i define function like dosomething() and call them in jquery?</p> <p>Thanks</p>
javascript jquery
[3, 5]
3,738,508
3,738,509
How can I display a dialog box for making a choice before a CALL is processed in android?
<p>I would like to intercept outgoing calls and pass them to a VOIP application. I see that the Google Voice application has a feature for displaying a question before each call is actually initiated. It provides the user with the choice:</p> <ul> <li>Initiate call via Google Voice</li> <li>Initiate call via standar...
java android
[1, 4]
1,819,340
1,819,341
Skip line in ListBox C#
<p>I've want to populate a ListBox with a roulette game but I need to skip lines which doesn't work</p> <p>If the winning numbers doesn't match the list box must print as follow</p> <p>Sorry there was no winning number!</p> <p>You Loose!!!</p> <p>And if the winning number DOES match the betting number it should loo...
c# asp.net
[0, 9]
5,277,922
5,277,923
How to open the new window in C#
<p>I like to open a new window in my project. I am using two panels in my project When I click the "Viewdocument" link in gridview(panel1) it should display the window to open that file. But in my code its not working can any one help me to solve this issue. Here is the code.</p> <pre><code>if (myReader.Read()) ...
c# asp.net
[0, 9]
1,665,018
1,665,019
.click function not working
<p>I have JavaScript for a commenting system, however when I click on the submit button with the class name "com_submit" nothing happens except the page reloads. Even if I leave the form empty and submit the alert should pop up but it isn't. What am I doing wrong?</p> <p>Here is my code: </p> <pre><code>$(function() ...
javascript jquery
[3, 5]
4,971,514
4,971,515
Detect if Javascript disabled, if yes then redirect
<p>I'm having problems with detecting Javascript. I've created a jQuery Popup window which is working only for users who has javascript enabled. However if their browser has JS disabled, I'd like to redirect them to index.php WHEN they click on the button.</p> <p>So basically if someone has JS enabled he/she would get...
javascript jquery
[3, 5]
5,171,129
5,171,130
JS /JQuery Form Submit Delay?
<p>I've implemented this 'locksubmit' plugin <a href="http://blog.leenix.co.uk/2009/09/jquery-plugin-locksubmit-stop-submit.html" rel="nofollow">http://blog.leenix.co.uk/2009/09/jquery-plugin-locksubmit-stop-submit.html</a> where it changes the display state of the button to disabled. I then want the form to be delayed...
javascript jquery
[3, 5]
3,283,605
3,283,606
Function doesn't work at second call
<p>i have this function</p> <pre><code>function notify() { alert('oo'); $("#SuccessNotification").dialog({ bgiframe: true, modal: true, title: 'success', buttons: { Ok: function() { $(this).dialog('close'); } ...
javascript jquery
[3, 5]
2,785,609
2,785,610
need to handle double and single quote in C# code behind
<p>I am trying to handle both double and single quote in my code behind , but none of them are working. Below is my code</p> <pre><code>private String _systemPath; public String SystemPath { get { // return _systemPath = _systemPath.Replace("'", "\'").Replace("\"", @"\\\""); return _systemPath = ...
c# asp.net
[0, 9]
4,390,720
4,390,721
saving webpages in android
<p>Now I am doing an application to save webpages for offline reading. If our application is switched on then the pages we visited will be saved and we can open those pages in offline mode. Please provide the idea that how we can work on the application. Help me friends. </p>
java android
[1, 4]
104,662
104,663
Draw custom lines on chart
<p>I've a requirement,</p> <p>Generate a line chart, then user must be able to draw custom lines on the chart and save the chart with newly added lines. I prefer to use High chart or Google chart for generating the chart, but I couldn't find a solution for drawing custom line on the chart. Is there any way to accompli...
c# jquery
[0, 5]
2,267,257
2,267,258
What is better solution to passing an uknown parameter problem?
<p>My problem is like this:</p> <p>In <code>ASP</code> <code>DetailsView</code> component we have three different EventArgs for different DB operations: <code>DetailsViewInsertedEventArgs</code>, <code>DetailsViewDeletedEventArgs</code>, <code>DetailsViewUpdatedEventArgs</code>.</p> <p>All above EventArgs have common...
c# asp.net
[0, 9]
2,570,931
2,570,932
Android, GridView, Click an Image to show full size
<p>I want to have a gridview where an image click displays the image full screen without creating a new activity. I have the grid set up. </p> <pre><code> GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new ImageAdapter(this)); gridview.setOnItemClickListener(new OnItemClick...
java android
[1, 4]
3,889,744
3,889,745
jQuery attribute selector - am I doing something wrong?
<pre><code>var selector = "ul.lower-menu li a[innerText=\"" + PanelSettings[tab_name_key] + "\"]"; </code></pre> <p>I'm trying to get horizontal menu tab that has innerText property set to the previously stored value. </p> <p>The config value is stored like this:</p> <pre><code>PanelSettings[tab_name_key] = $("ul.lo...
javascript jquery
[3, 5]
1,221,029
1,221,030
How to add months by quarter using java script
<p>Hereby i am the following inputs:</p> <p><strong>Months to be separated by</strong> : 4 months</p> <p><strong>Will have the date with month and year</strong>: 07-05-2011.</p> <p>Now i need to add months by 4 using java script or jquery. How can this be done?</p> <p><strong>For example:</strong></p> <p><strong>I...
javascript jquery
[3, 5]
19,517
19,518
ASP.Net C# JavaScript Popup Window Help
<p>I've looked all over the place and had very little luck.</p> <pre><code>try{ FooError(); } catch (Exception Exc){ ClientScript.RegisterClientScriptBlock(this.GetType(), "errorPop", @"&lt;script language='javascript'&gt; alert(" + Exc.Message + "); &lt;/script&gt;"); return; } </code></pre> <p>I keep ...
c# javascript asp.net
[0, 3, 9]
4,287,746
4,287,747
asp.net json displaying weird results
<p>I am having trouble displaying results recieved from asp.net WebMethod. I have a HTML template and fill in the results from JSON response. The problem is that the first response is being displayed once, the second is displayed 2 times, the third 4 times, the fourth 8 times and so on . Here is the jQuery (I need t...
javascript jquery asp.net
[3, 5, 9]
4,089,096
4,089,097
onchange event - IE error
<p>In my code behind, I have - </p> <pre><code>tbWhatIfBeginDate.Attributes.Add("onchange", "checkDates(" + tbWhatIfBeginDate.ClientID + ", " + tbWhatIfEndDate.ClientID + ")"); tbWhatIfEndDate.Attributes.Add("onchange", "checkDates(" + tbWhatIfBeginDate.ClientID + ", " + tbWhatIfEndDate.ClientID + ")"); </code></pre> ...
c# javascript
[0, 3]
5,615,815
5,615,816
Given a start and end date, create an array of the dates between the two
<p>Right now, I have this on my page:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { var days = [ { Date: new Date($('#hfEventStartDate').val()) }, { Date: new Date($('#hfEventEndDate').val()) } ]; }); &lt;/script&gt; &lt;asp:Hidden...
javascript jquery
[3, 5]
1,519,006
1,519,007
Deserilization an object in web browser
<p>I have a serialized object in C# .net 4 which contains some images and strings. </p> <p>What I want is send that object to web browser and deserialize it in client's web browser. </p> <p>What are the technologies that I will need? Is is possible to do this? My requirement is to save a class with images and few str...
c# asp.net
[0, 9]
639,523
639,524
Call a Javascript function within an inline statement
<p>Quick question: It's kind of tough to describe so let me just show an example.</p> <p>Is there anyway to do this: (I'm using jQuery but this is a general javascript question)</p> <p>$('div.element').offset().x;</p> <p>$('div.element').offset() by itself will return {'x' : 30, 'y' : 180}, so I'm just wondering if ...
javascript jquery
[3, 5]
3,849,382
3,849,383
setInterval works online on same sytem (with 2 browsers open) but not online on separate systems
<p>I have a setinterval code updating a div. This works fine when tested in two separate browsers on the same system but when I test online on say a separate mac and PC and it stops. </p> <p>The code is as follows:-</p> <p>Javascript:</p> <pre><code> function setupAjaxIntervalDiscuss(){ setInterval(function()...
php javascript jquery
[2, 3, 5]
1,877,995
1,877,996
quoting a string
<p>I found a bit of code on the web that I would like to use.</p> <pre><code>$(document).ready(function() { $(".fbreplace").html.replace(/&lt;!-- FBML /g, ""); $(".fbreplace").html.replace(/ --&gt;/g, ""); $(".fbreplace").style.display = "block"; }); </code></pre> <p>The problem is the browser thinks</p> <pre><code>...
javascript jquery
[3, 5]
637,206
637,207
disable certain navigation links in popup window (external website)
<p>Hi I am opening an external website in my pop window. I would like to disable certain links in that popup. </p> <p>i.e. I am opening <a href="http://www.yahoo.com" rel="nofollow">http://www.yahoo.com</a> in pop and I want to disable some links in that pop-up so that who ever visit yahoo.com using my website, will n...
javascript jquery
[3, 5]
3,552,473
3,552,474
In a time when starting to turn off the display of the activity, and then start it
<p>I now have a activity receiver display information from service to send, receive after there will be no closed the activity, led him to stay on after completion of reception interface. The beginning want to once again start time time, to close out the activity, then open it again, service came from the information r...
java android
[1, 4]
31,652
31,653
How can I force a web user to read and check an NDA before proceeding?
<p>Every time a user registers to our site we need to show a NDA (non-disclosure agreement). In order to continue the user has to accept it. My issue is that I have the NDA in all one page and the user does not really read it and accept (like we all do). </p> <p>What I want is to make sure the user reads the NDA and a...
javascript jquery
[3, 5]
2,440,190
2,440,191
Browser is not smooth while using jQuery "replaceWith"
<p>I'm using jQuery replaceWith to update information of my website. Div elements which are returned are small. The function is called after 5 minutes. When I focus on browser, replaceWith function will run but my browser is not smooth and sometime can crash. Which plugin or solution can I use to resolve the problem ? ...
javascript jquery
[3, 5]
5,890,679
5,890,680
Jquery add more buttons
<p>dynamically add more buttons not working in jquery and validations for the form works when I remove the jquery-1.9.1 script. in my php file , and when i keep the jquery 1.9.1 library file add more buttons works fine but validations for the form won't work</p>
php jquery
[2, 5]
5,733,434
5,733,435
Check if a given DOM element is ready
<p>Is there a way of checking if the HTML DOM element/s for a given selector/element are ready yet using jQuery or JavaScript? </p> <p>Looking at the jQuery <a href="http://api.jquery.com/ready">api</a> for the ready function it looks like it can only be used with the document object. If ready cannot be used for this ...
javascript jquery
[3, 5]
2,302,651
2,302,652
Passing jQuery variable to PHP - 500 Internal Server Error
<p>I am trying to pass a jQuery value to PHP as follows:</p> <pre><code>var your_var_value=1200; $.ajax({ type: "POST", url: "scripts/php/controllers/tariff.fare.controller.php", data: { var_value: your_var_value}, error:function(request){alert(request.statusText)}, success:function(result){ ...
php jquery
[2, 5]
3,199,942
3,199,943
Android drawBitmap draws a kind of checkerboard pattern
<p>Okay maybe I'm missing something here but when I do </p> <pre><code> canvas.drawRGB(0x80, 0x80, 0x80); </code></pre> <p>I get a clean and expected grey screen: <img src="http://i.stack.imgur.com/BIqrD.png" alt=""></p> <p>But when I use this code</p> <pre><code>pixels = new int[800*480]; ... for(int x = 0; x &...
java android
[1, 4]
4,263,417
4,263,418
How can I add elements to this object
<p>If I had this structure </p> <pre><code>var data = { "people": [ { "name" : "John", "id" : 1 }, { "name" : "Marc", "id" : 2 } ] } </code></pre> <p>I want to add more elements to this, in JavaScript, specifically in jQuery to then send it like this</p> <pre><code>var dataString = JSON.strin...
javascript jquery
[3, 5]
4,478,949
4,478,950
Android Development: Class That Creates an Object, Calls Some Methods Then Returns That Object (How?)
<p>I'm wondering how I'd go about making a class, let's call it Class Master, where: - You call Class Master and it calls Class A, and calls some of that Class A's methods, then returns Class A so you can call methods from the returned Class A where ever you called Class Master.</p> <p>Basically, I want to turn this c...
java android
[1, 4]
3,350,970
3,350,971
How to put jQuery Dialog popup div into the jQuery code?
<p>I have a very simple message to display in one jQuery popup and I just want to generate it without adding extra divs into my HTML.</p> <p>What I'd like to do is just open a dialog box with a message and thats it.</p> <p>Here is something like that I want:</p> <pre><code>$("&lt;div&gt;Hello sir&lt;/div&gt;").dialo...
javascript jquery
[3, 5]
4,150,428
4,150,429
Slow collision detection using bounding box
<p>I have small library i want to use for creating games. First, i tried to implement pixel perfect collision detection, but that did not went well, so i decided to use simple bounding box collision detection. It works fine, but after amount of objects exceeds around 20, it starts slowing down. Here is my code: (Runs i...
java android
[1, 4]
1,974,674
1,974,675
Changing href attribute
<p>In need to change a part of this href:</p> <pre><code>&lt;a href="media/xxxxx-yyy.jpg"&gt;large pic&lt;/a&gt; </code></pre> <p>I have some designs, and some colors, xxxxx stands for designnumber and yyy for colornumber, when one of the designs is clicked or one of the colors the href should change according to the...
javascript jquery
[3, 5]
474,640
474,641
Choosing between PHP or Java to use
<p>I'm having trouble choosing between PHP or Java to develop a fairly small web application for a school project.</p> <p>Our project is to create a very crude/working/barebones ticket and events management system. Think of the basic functionality of Ticketmaster.</p> <p>I have people in my team who are confident wit...
java php
[1, 2]
2,395,422
2,395,423
.hide/.show jumps to top of page or shows div name in url
<p>The <code>.hide</code>/<code>.show</code> functions jump to top of page with <code>return false</code>, but shows div name in url with <code>preventDefault</code>.</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { //Default Action $(".ar-tab-content").hide(); //Hide all content $...
javascript jquery
[3, 5]
3,550,179
3,550,180
jQuery "please wait" while php executes
<p>I have a script that connects to the PayPal api to check for a valid credit card input. The script can take about 5 seconds to execute and in an effort to keep users from clicking "submit" multiple times if they don't see an immediate response, I'd like to place a "Please wait" indicator.</p> <p>I have a div, "plea...
php javascript jquery
[2, 3, 5]
5,262,496
5,262,497
Adding characters to string (input field)
<p>I have a text box where the value is the result of a calculation carried out in jQuery. What I would like to do, using jQuery, is to display brackets around the number in the text box if the number is negative. </p> <p>The number may be used again later so I would then have to remove the brackets so further calcula...
javascript jquery
[3, 5]
4,471,632
4,471,633
Page_Load not loaded after inheriting my own Page
<p>I am trying to create BasePage Web.UI.Page that is inherited by my main page. But when i create public class mypage : BasePage method Page_Load of this class is not loaded in page live cycle. BasePage does not contain any Page_Load. has anybody got a clue where can be the problem? thanx</p>
c# asp.net
[0, 9]
2,693,874
2,693,875
jQuery select all elements with a common class
<p>I want to handle a click event across a set of links so tried to approach this by adding a secondary class like following:</p> <pre><code>&lt;a href="..." class="foo external"&gt;Test 1&lt;/a&gt; &lt;a href="..." class="bar external"&gt;Test 2&lt;/a&gt; &lt;a href="..." class="car external"&gt;Test 3&lt;/a&gt; &lt;...
javascript jquery
[3, 5]
159,399
159,400
Asp.Net ViewState lost with RegisterClientScriptBlock
<p>I am validating a zip code using Javascript that is generated server-side, and injected when a LinkButton is clicked. Then, I retrieve the return value by calling a server-side function when the page loads. </p> <p>This works nicely, but the problem is that the ViewState is completely lost after PostBack. Below is ...
c# asp.net javascript
[0, 9, 3]
4,225,357
4,225,358
how do I disable the cache on for a single image (a single page)?
<p><strong>ASP.NET Image Caching Problem (How to Disable it?)</strong>.IE browser load old image from directory C:\Documents and Settings...\Local Settings\Temporary Internet Files </p> <pre><code> protected void Page_Load(object sender, EventArgs e) { MembershipUser user = Membership.GetUser(); im...
c# asp.net
[0, 9]
5,506,705
5,506,706
How to execute a python script from Java?
<p>I have a python script and need to run the python script from Java. How to do this?</p>
java python
[1, 7]
3,879,714
3,879,715
Adding Records to Table from Template Field Checkbox selection and Gridview Boundfield
<p>I am currently building a Attendance Register System in ASP.Net using C#. The system has a database including these Sql tables;</p> <pre><code>Attendance Table AttendanceID Present (boolean type) StudentID Student Table StudentID StudentName CourseID Course Table CourseID CourseName </code></pre> <p>I have popul...
c# asp.net
[0, 9]
634,621
634,622
What's mean the "this" context?
<p>I look at a lot of android tutorial on the internet. In these tutorials they use the <code>this</code> context for the context everywhere. I know what's mean in Java the <code>this</code> keyword, but I can't make equal this, with the <code>this</code> keyword in Android programming. For example, at <code>AlertDialo...
java android
[1, 4]
2,297,647
2,297,648
Matching division widths with jquery
<p>This is a question regarding matching division widths with jquery. Here is the html code I am working with.</p> <pre><code>&lt;ul class="thumbs_container"&gt; &lt;li class="thumbs"&gt; &lt;a class="fancybox" href="" &gt; &lt;div class="thumbs_image_container"&gt; &lt;img src="" /&gt; ...
javascript jquery
[3, 5]
935,518
935,519
Android : Searching items using there barcodes in ebay
<p>I have a project idea for my college project to develop an android application which can take images of the bar codes of various electronic equipments like cameras laptops and then to read models and brands of them using that bar codes and then to search for that model and brand in Ebay to point the user to relevant...
java android
[1, 4]
746,798
746,799
Enable/Disable button click handlers in Javascript
<p>Ok, let's say that I have a button and I would like to enable/disable its click handlers.</p> <p>I would like to create functions like these:</p> <pre><code>var bar = []; function storeHandlers(buttonID) { //I would like to store the click handlers in bar[buttonID] } function preventHandlers(buttonID) { s...
javascript jquery
[3, 5]
2,385,002
2,385,003
javascript function call timing. The best way of implementing this
<p>I have The following in my main javascript file:</p> <pre><code>window.onbeforeunload = function () { firstFunction(); } $("a").live("click", function() { secondFunction(); } </code></pre> <p>When user clicks on any link that unloads the page (i.e. navigate to another page), both of those functions get cal...
javascript jquery
[3, 5]
548,845
548,846
Using DateTime.AddHours from a static method does not product the desired result
<p>I have a helper class which among other things gets the current datetime. Because our server is 6 hours behind where ALL our customers are from I want to add 6 hours to the datetime. My public method is static and is as follows:</p> <pre><code>public static DateTime GetCurrentDate() { DateTime dt = Date...
c# asp.net
[0, 9]
514,179
514,180
Android RandomAccessFile usage from resource
<p>How can I access an Android resource using <code>RandomAccessFile</code> in Java?</p> <p>Here is how I would like this to work (but it doesn't):</p> <pre><code>String fileIn = resources.getResourceName(resourceID); Log.e("fileIn", fileIn); //BufferedReader buffer = new BufferedReader(new InputStreamReader(fileIn))...
java android
[1, 4]
3,558,706
3,558,707
Is creating page contents dynamically using javascript faster than loading different pages?
<p>I'm designing a website with different pages and every page has it's contents as like as <code>textbox, label, button, gridview</code> and etc. after that I want to load every pages using <code>$("#xx").load(page url Address)</code> in jquery to prevent postback when the page is necessary.</p> <p>is this method fas...
javascript jquery asp.net
[3, 5, 9]
1,932,641
1,932,642
What is a good program to have done as part of your work history?
<p>I am wondering what is a valuable program (or programs) that a prospective employer hiring in Java, Python, C# or any high level programming language would like to see in the candidates work history? This or these programs would be seen as valuable indicators for the persons knowledge of the language.</p> <p>A lis...
c# java python
[0, 1, 7]
5,180,729
5,180,730
how to restart scripts automatic
<p>What's the best way if you have a big script with a large process and you get an Error, then how to tell the script, wait 1min and begin again from top.</p> <p>It's written in asp.net, c#.</p> <p>Example</p> <pre><code>protected void doAll() { FirstFunction(); // If I get in this function an error it should stop...
c# asp.net
[0, 9]
589,436
589,437
Pass parameters to javascript function of user control
<p>I'm adding user control dynamically on my page.</p> <p><strong><code>MyPage.aspx</code>:</strong></p> <pre><code>MyControl cntl = (MyControl)Page.LoadControl("MyControl.ascx"); </code></pre> <p><strong>The <code>MyControl.ascx</code> has a javascript function:</strong></p> <pre><code>function myfun(a, b) { ....
c# javascript asp.net
[0, 3, 9]
5,593,408
5,593,409
Detect which button is clicked in Page_Load?
<p>In my asp.net web page, there are a few of buttons and checkboxs. They all can cause postback. Can I detect which control is clicked? Because I will add code for if clicked a button then do something. I saw that some examples are done with Jquery. Can we just do it in C#?</p> <p>Thanks.</p>
c# jquery asp.net
[0, 5, 9]
2,026,343
2,026,344
What is the fastest way to work with ajax request?
<p>I am a little bit confused about what is the fastest and the friendly way with the server to request POST or GET from server by AJAX, is it jQuery (<code>$.load()</code>, <code>$.get()</code>, <code>$.post()</code>, <code>$.ajax()</code>) or Javascript like XMLHttpRequest? </p> <p>I need to make a function or class...
javascript jquery
[3, 5]
1,860,312
1,860,313
Simple Login Application in WebForms C#.NET
<p>Can anyone please help me ..I have created a simple login web application in C#.NET and SQL Server with backend db. I Just want to know how to restrict the user if he enters incorrect password more than 3 times . I want to restrict that user for 10 mins and he can try again. So can anyone please post me detail code...
c# asp.net
[0, 9]
5,373,721
5,373,722
C# ASP.Net BlackJack/CardGames Reference
<p>I want to build a card game in C# ASP.Net.</p> <p>Something like blackjack or solitaire.</p> <p>Has anyone any ideas on how to go about doing this or any references I could refer to? Books on card game designs would be a good help.</p>
c# asp.net
[0, 9]
3,945,568
3,945,569
Python faster than C++? How does this happen?
<p>I'm using Windows7 using CPython for python3.22 and MinGW's g++.exe for C++ (which means I use the libstdc++ as the runtime library). I wrote two simple programs to compare their speed.</p> <p>Python:</p> <pre><code>x=0 while x!=1000000: x+=1 print(x) </code></pre> <p>C++:</p> <pre><code>#include &lt;ios...
c++ python
[6, 7]
2,301,814
2,301,815
Customer Validation ASP.Net C#
<p>I am having the same problem as someone else in this forum. My validation control is not firing...and not sure where I have gone wrong. Could someone please take a look and let me know what obvious error I have here...thanks</p> <p>I have set up a customer validator in my aspx page using the following:</p> <pre>...
c# asp.net
[0, 9]
5,693,141
5,693,142
If div is empty, remove it and change class of next div
<p>Some generated output can be as follows:</p> <pre><code>&lt;div class="fivecol"&gt;&lt;/div&gt; &lt;div class="sevencol"&gt;content&lt;/div&gt; </code></pre> <p>if the div.fivecol is empty, I want to remove it and change the div.sevencol to a div.twelvecol</p> <pre><code>$('.fivecol').each(function() { if ($(...
javascript jquery
[3, 5]
331,693
331,694
javascript profanity filter on a contenteditable div
<p>I am currently working on a site which filters bad words on an array. Whenever a user types a word on the textbox, an alert box appears if a word from the array was found. I'd like to do the same but instead of using a textbox, I'd like to use a contenteditable div. I'll be needing jquery on this but there seems to ...
javascript jquery
[3, 5]
1,434,330
1,434,331
How to calculate total size of a page with additional files and scripts
<p>I would like to ask if it's possible to get programmatically in C#, a specific site content size. By size I mean: the full size of the site including all images and scripts referenced in the head section or body and so on. For example if we have a site <a href="http://www.google.com" rel="nofollow">http://www.google...
c# asp.net
[0, 9]
5,683,368
5,683,369
PHP pagination for unordered list
<p>item1 item2 item3</p> <p>I've three items arranged in this order,i've used unordered list to arrange the items in this order. I did n't find a pagination plug in for items arranged in unordered list ,How do i implement pagination for this.</p> <p>Any help would be appreciated!</p>
php jquery
[2, 5]
2,364,116
2,364,117
How to command if ( ..) don't executive setTimeout()
<p>This <a href="http://jsfiddle.net/58PKb/1/" rel="nofollow">Demo</a>, After landing page it will show <code>btn2</code>(green area), then user have 2 option:<p> 1. user do nothing - <code>setTimeout()</code><br> 2. user hover to <code>btn2</code>- show <code>btn3</code>(blue). <br> I stuck in 2. after hover to <cod...
javascript jquery
[3, 5]
853,053
853,054
Using $(this) with jQuery not always working
<p>On line 6 below, I have <code>$("ul.tabrow li").removeClass("active"); //Remove any "active" class</code> If I change it to use <code>$(this).removeClass("active")</code> instead then it does not work as I thought it was.</p> <p>The code works how I want it to right now, I am just wanting to know why what I mention...
javascript jquery
[3, 5]
3,052,808
3,052,809
How to write custom event which gets fired when user click three times
<p>i am trying to write a custom event which should get fire when user click three times on any html node.</p> <p>i know that i can create even using </p> <pre><code>var evt = document.createEvent("Event"); evt.initEvent("myEvent",true,true); </code></pre> <p>but i am not getting how i will capture that three times ...
javascript jquery
[3, 5]
3,324,227
3,324,228
mimicking iPhone main screen slide in JavaScript
<p>I'd like to mimick iPhone main screen in JavaScript on Safari / Chrome / Firefox.</p> <p>By mimicking I mean: - Having a couple of pages - Switching between the pages by clicking &amp; dragging / swiping with my mouse - Having those dots from the bottom iPhone main screen displaying which page it is</p> <p>The clo...
javascript iphone
[3, 8]
1,088,767
1,088,768
Verify External Script Is Loaded
<p>I'm creating a jquery plugin and I want to verify an external script is loaded. This is for an internal web app and I can keep the script name/location consistent(mysscript.js). This is also an ajaxy plugin that can be called on many times on the page. </p> <p>If I can verify the script is not loaded I'll load it u...
javascript jquery asp.net
[3, 5, 9]
4,473,812
4,473,813
My $.extend does not seem to work when inside a function in javascript
<p>I have the following code:</p> <pre><code>File 1: $(document).ready(function () { addDataTableExts(); } File 2: function addDataTableExts() { $.extend($.fn.dataTableExt.oStdClasses, { sWrapper: 'no-margin last-child' } } </code></pre> <p>This seems to work okay. I now tried to replace this with t...
javascript jquery
[3, 5]
5,050,531
5,050,532
How do I properly fade in and out using jQuery?
<p>Can anyone help me with this simple bit of jQuery? I am building a carousel that features many sliding <code>&lt;li&gt;</code>s. Each one has a short description accompanying it, which I want to fade out when the carousel slides, and fade in when the carousel stops at another <code>&lt;li&gt;</code>. The problem is ...
javascript jquery
[3, 5]
1,135,119
1,135,120
Any Hints on getting Android Java code tutorials?
<p>I cant seem to find anywhere the Java codes are mentioned on developer.android.com's training,Please where can I get tutorials with appropriate explanation for the Java source codes because without the codes Im just a designer</p>
java android
[1, 4]
807,936
807,937
Checking password match while typing
<p>I have a registration form with "password" and "confirm password" input fields. I want to check if the "confirm password" matches the "password" while the user is typing it and give the appropriate message. So I tried to do this:</p> <p>This is the HTML:</p> <pre><code>&lt;div class="td"&gt; &lt;input type="pa...
javascript jquery
[3, 5]