Is it possible to have JavaScript (specifically, JavaScript variables and their content) survive full HTTP requests? I'd like to 'cache' / persist information client-side across page changes, without having to use hidden form fields or anything HTML related at all.
Is this possible?
Edit: Let me add a use case for what I mean.
Let'...
Hi
I'm reworking some site tracking for a site I'm working with. For the tracking we are currently using Google Analytics, which seems to be working fairly well. However, I'm having some troubles resembling the ones in this question, but it's old and no one answered, so I'm bumping a bit here. :)
Basically, I'm tracking two kinds of th...
Hi, I have been messing around with animating caption text from left to right using jQuery animate (toggle). I'm almost there but there are a few wee glitches still - I want to make it smoother (not as jerky when text breaks onto two lines) and I also want the text to animate in on page load - at the moment, it toggles away on page load....
Hi!
In an ASP:ListView control, I have a checkbox for each row. Each row represents a product with a corresponding price. I want the customer to select one or more products and calculate a total price client side.
So far, I've used the following code, but it does not work:
<asp:CheckBox ID="CheckBox"
runat="server"
...
I want to put a google maps on our website,
i know you can add custom markers with javascript onto your map.
but why do that through code if you got my maps ? my co-workers can edit the public created my map easily, add / delete markers without any programming knowledge
you can add that custom map my map to your site with an iframe
But...
Hi,
I have a user form. If the user types in a string with ' or " as part of it I have no problem. The form is submitted and saved correctly to the DB. My problem is when I reload the page (all entries can be modified and are loaded into a list in the jsp before being displayed). On loading the page I get an error saying:
missing )...
I need to update a table when user closed the browswer window and also want to destroy session . its urgent guys
...
Hello,
I have text like
<div style="float:left; width: 250px"> PellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesquePellentesque feugiat tempor elit.
Ut mollis lacinia quam. Sed pharetra, augue aliquam ornare vestibulu...
I am using ASP.NET 2.0 and VB.NET (C# code will also help me out)
On top of my page I have a button called btnViewRecords. When the User click on the button I want to set focus to another button or label further down on the same page. How can this be done.
This code does not work for me..............
btnTheRecords.Focus()
or
lblH...
hi all,
im using javascript to validate keys in textbox. it is not working :(
function numeric(e) {
return ((e.keyCode == 8) ||
(e.keyCode == 9) ||
(e.keyCode > 47 && e.keyCode < 58) ||
(e.keyCode > 36 && e.keyCode < 41) ||
(e.keyCode == 46) ||
(e...
I build a website focussing on loading only data that has to be loaded.
I've build an example here and would like to know if this is a good way to build a wegpage.
There are some problems when building a site like that, e.g.
bookmarking
going back and forth in
history SEO (since the content is basically not really connected)
so here...
I need to detect the id of the element that generated an onchange event.
This code work in most modern browsers:
<input type="text" onchange="return onchange_handler(event);"
function onchange_handler(event) {
var id = event.target ? event.target.id : event.srcElement.id;
...
return false;
}
But it does not work in IE Mo...
Here is a short snippet of HTML (it contains all relevant HTML and javascript code):
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('.remove-temporary-photo').click(function() {
var url = '/my-account/remove-media/id/' + $(this).attr('id');
$.get(url, function(data) {
//
...
The example below is a simple example of an iframe which uses window.parent.[turn designmode on] (this works). In FF all is well, but in IE8 (surprise surprise) any selection made is lost when you click out of the iframe. This totally negates the use of tools outside the iframe. I cannot find a solution 4 days later...
Open in IE8
http:...
In the code HTML+Script below,
an event handler is attached after page load using setAttribute(...).
The event hander is passed an argument which is read dynamically too.
the event hander is attached successfully ( verified by a getAttribute(...)
However, the handler does not fire.
What is wrong with the snippet below?
<HTML>
<...
I'm looking for a simple and easy to integrate graph to display sales stats in a web application.
I will basically supply it the name of the month, and a numerical number of sales in that month. I'd like it to then chart out a graph showing the stats.
What's the best solution for this? I would prefer something attractive but still eas...
What I mean is, lets say I have a content:
"Stackoverflow is the best, bla bla bla..."
I want to print the content in a paper, not computer monitor, how to do that?
I saw a lot of CMS using php, have a print icon, and able to print it? (Well, I am not creating a CMS, just wondering how the printing works in php)
...
I need know what elements are in current mouse position and I'm using jQuery.
...
Hi All,
I have a JSP page where I load an arraylist which has the list of fields to be displayed.If the arrayList has nothing I will not load any inputbox else create as many input boxes as there are in arraylist which is done correctly.I keep a name field1,field2,field3...fieldn where n is the size of the array.Now When I submit my...
Would it be possible to use YUI to change all my input boxes to have rounded corners? I cannot use a background image as the inputs will be variable width and I cannot add divs wrapped around them because some input elements are generated. Also I cannot use border radius or any moz/webkit variation as it needs to appear the same in IE6....