Or, you could do it that way, it would be easier [wink] ! Paul Ellis
[hammer] I've been programming since you had to punch holes in cards to code. (Always remember, number your cards!)
It seems to me that you're going to need to cookie whatever value you want, then set a global variable to the cookied value or if the cookie doesn't exist, set it to the default value. Set the cookie to expire in one hour (or some other similarily short time value), so you don't run into the a...
OK, we've got two things going on here.
DISABLED for the checkbox. This is just for the user to see (apparently).
INPUT TYPE=HIDDEN. This is for your coding purposes.
Now, whatever code sets the checked property of the checkbox (either CHECKED or not) should then set the value of the hidden...
<input type=hidden name=fauxCheckbox value="SomeValueHere"> Paul Ellis
[hammer] I've been programming since you had to punch holes in cards to code. (Always remember, number your cards!)
... or you could store the form information in a temporary cookie and refresh the form elements in the event of a DOH! Paul Ellis
[hammer] I've been programming since you had to punch holes in cards to code. (Always remember, number your cards!)
The Hard Way
Put the last modified info in divs with unique IDs for each page you want to list on your homepage. Then load these pages in hidden frames on your homepage. Now, you'll have access to the last modified information for all those pages ... and your homepage could take forever to...
Let's say your popup window is a global popwin = window.open(blahblahblah). First you'll need a function:
function refocus(){
if(popupwin){
if(!popupwin.closed&&popwin.document.readyState){
do{
}while(popupwin.document.readyState<>'loaded')...
Does showOrHide() also hide the visible layers and/or reset the z-indexes? Paul Ellis
[hammer] I've been programming since you had to punch holes in cards to code. (Always remember, number your cards!)
Actually leave.html is ideally suited for just that! I skipped that part when I gave you the above code. Now, here it is in all it's cross platform glory (IE5+ and NS4+). Be VERY careful if you decide to edit the red parts.
<html>
<head>
<title>You are leaving our site!</title>...
OK, you've got some options. Here's the way I would approach this, bearing in mind that I'm big on easy code maintainability:
popup.js include file:
function popup(url){
window.open("leave.html?url="+escape(url), "popwin", "location=no,width=350,height=300");
}...
Hmmmm. I'm not sure I follow, because the first thing that comes to my mind is to just cram the extras into the query string:
[tt]
?url1=blah&url2=blahblah&url3=blahblahblah
[/tt}
? Paul Ellis
[hammer] I've been programming since you had to punch holes in cards to code. (Always remember...
Pack it in the query string.
F'rinstance:
index.html would build the link:
document.write('<a target="_blank" href="popup.html?url='+
escape('http://outsidelink')+">');
popup.htm would parse the url and build the link:
<head>
<script type="text/javascript">...
Try window.location='http://www.twinhelix.com'; instead, and see how that works for you. Paul Ellis
[hammer] I've been programming since you had to punch holes in cards to code. (Always remember, number your cards!)
Sorry so late on this one, but here's a cross-browser solution that should work in IE, NS4.x & NS6+:
<html>
<head>
<title>Countdown Test</title>
<script type="text/javascript">
<!--
var countdownFrom=5; // number of seconds
var countdownwin;
var stp...
Why is it that the simplest solutions are always the last considered?
Does this effect happen when you "spring forward", too? Paul Ellis
[hammer] I've been programming since you had to punch holes in cards to code. (Always remember, number your cards!)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.