I'm replacing cookies with localStorage on browsers that can support it (anyone but IE). The problem is site.com and www.site.com store their own separate localStorage objects. I believe www is considered a subdomain (a stupid decision if you ask me). If a user was originally on site.com and decides to type in www.site.com on her next vi...
I have the following HTML page (page is simplified here as it is a sample of the real one):
<html>
<head>
<script type="text/javascript" src="JavaScript/Painting.js"></script>
</head>
<body>
<div id="center-wrapper">
<div id="side-menu">
<ul>
<li><a onclick="Paint()">About</a></li>
<li><a onclick="Pa...
I'm using the AnythingSlider tool and am having some trouble with the css and js on this. Basically, the slider has a number of navigation tabs that help jump from slide to slide. I want to change this so that when a coldfusion conditional runs, certain tabs will either remain in a default state or become inactive (change color of tab ...
Im trying to achieve a nice fade to color effect when you mouse over links in jQuery.
So far I have:
$('a').hover(
function () {
$(this).animate({ color: '#fff' }, 1000 );
},
function () {
$(this).animate({ color: '#000' }, 1000 );
});
Which actually does work fine. However, imagine if the links are navigation, being close ...
I've got a bunch of data on the client side, in JS. I want to allow the user to save that data to the local hard drive in text (CSV actually) format.
I can easily accomplish this by posting all of this data up to the server using ajax, then initiate a GET from the client to download the data. But that seems wasteful. Especially if th...
I'm using the Panoramio API to create a little photo widget like the one you see here at this link. My code sets some options up for retrieving photos, namely by creating a bounding box around a lat/long pair and then returning all photos w/in those bounds.
However, sometimes (depending on the coordinates), no photos are returned and m...
Hi,
I am using php. Create a file leftcolumn.php which includes following codes..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<s...
I'm trying to find out the best way to check if an item is already in an array.
I have a number of checkboxes that belong to 1 of 5 groups. When a user clicks on one of these checkboxes, a second and third list that belong to one of the groups is written to the page.
What I'm trying to do is add these groups to an array, and once they'...
In my JavaScript code I am first calling a function to update an image:
document.getElementByID("i1").src = newImage;
then a few statements later the alert() function is called to display a message:
alert("image updated!");
However, when I run this code, what actually happens is that the alert box is popped up before the image is u...
Code is as follows:
<body>
<a href="javascript:;" id="test">hello</a>
</body>
<script type="text/javascript">
document.getElementById("test").addEventListener("click", function () {
test()
}, false)
function test() {
var postTypes = new Array('hello', 'there')
(function() { alert('hello there') })()...
Hi, I am having a bit of trouble adding/removing fields to/from an ExtJS form. My use case is as follows:
Provide a set of radio buttons on the form. Depending on which radio button is selected, show a different set of form fields.
I am not all that familiar with ExtJS, but what I am doing is caching the fields that are to be added/rem...
This runs fast compared to other's.But i dont know how fast it would be at slow computers..
The code filters the results dymanically. The criteria are set in css class..
$(document).ready(function ()
{
$("#filters a").click(function(event)
{
event.preventDefault();
event.stopPropagation();
if($(this).ha...
I usually write scripts for Illustrator and save them in the scripts folder. Then during development I run them using alerts for debugging but this is getting tedious so I thought I would give the Extendscript Toolkit 2 IDE a go so I could use the console for logging.
I've used it in the past a little bit however I can't use it now. In...
In VS i can set breakpoints on javascript code, which are correctly interpreted while debugging with IE.
Is there a way to do this with Google Chrome?
...
[Edit by Author - 10/27/2010 @ 08:49 AM CST ]
HTML
<!-- Contents of div #1 -->
<form id="6hgj3y537y2biacb">
<label for="product_calendar" class="entry_label">Calendar</label>
<input type="text" name="product_calendar" class="entry" value="" />
</form>
<form id="pyc2w1fs47mbojez">
<label for="product_calendar" class="entry_l...
hi, i want to load some content from an "HTML" page in to a windows forms application
the problem is that the content on the HTML page will be generated by javascript so i am confused with what should i do, so if you have a solution then please tell me.
Otherwise if someone can tell me about how can i embed IE into windows forms applicat...
Given:
http://something.com:4567/data/21/28/188
How do I get only the following with JavaScript?
http://something.com:4567/
...
When you scroll, are you changing the position of something?
How can I change the position of the scroll? Specifically to match the cursors movement.
What I want to do is scroll the window when I click and drag with the cursor inside the window.
For example:
I have a 400px by 400px div with a 900px by 900px div inside of it. I want to...
Here is my problem, I have a whole bunch of elements that look like this...
<input type="email" id="email" data-item="email" data-key="contact_details"/>
<input type="tel" id="mobileNo" data-item="mobileNo" data-key="contact_details"/>
<input type="text" id="sleeve_length" data-item="sleeve_length" data-key="measurements"/>
<input type...
I am using ajax to load into an element on my page, but I want this action to be reversed with the back button ... I'd rather the URL change to a real URL like mysite.com/page1 rather than mysite.com/page#page1
I read somewhere about using a hidden iframe to achieve this ? Can anyone help me out?
...