Re: A two flavored post

From: Date: Sun, 07 Oct 2007 14:53:08 +0000
Subject: Re: A two flavored post
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-262894@lists.php.net to get a copy of this message
ALSO: <a href="img.php?i=<?php echo($value);?>" onclick="window.location = this.getAttribute( 'href' ) + '&s=' + s; return false;"> can be altered to be: <a href="img.php?i=<?php echo($value);?>" onclick="this.setAttribute(this.getAttribute( 'href') + '&s=' + s);"> What exactly do you need to do, anyways? Maybe there'll be some better way to do this.
I'm sure there is a better way. I was just trying to get a user's selection (in an CMS I'm developing) without a refresh. Something like this: http://www.webbytedd.com/c/js-maintain-state/ But ultimately, I was faced with a trade-off. 1) I could use javascript with no refresh, but lose hover; 2) Or, I could use php and maintain hover, but be forced to accept refresh. So, I went back to php and accomplished what I wanted with a *lot* less code. My thinking, the user shouldn't object to a refresh while editing. Thanks for everyone's help. Cheers, tedd Rob -- it now works with js turned off. :-) -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#262894) next »