Re: A two flavored post

From: Date: Sun, 07 Oct 2007 02:37:53 +0000
Subject: Re: A two flavored post
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-262887@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. On 10/6/07, tedd <tedd@sperling.com> wrote: > At 1:49 PM -0400 10/6/07, Robert Cummings wrote: > >On Sat, 2007-10-06 at 13:41 -0400, tedd wrote: > > > Unfortunately, my solution isn't unobtrusive. > >> > >> <a href="img.php?i=<?php echo($value);?>" > >> onclick="window.location = > >> this.getAttribute( 'href' ) + '&s=' + s; return > >> false;"> > >> > >> However, I couldn't see a way to make it so. > > > >Why not? I'm guessing because you need to the link to have the > >JavaScript variable in it. If this is the case then the href target > >should link to a page informing the user that they need to have > >JavaScript installed. By doing so you inform them of why clicking on the > >link is not having the desired outcome :) > > > >Cheers, > >Rob. > > Rob: > > I would agree with you IF I was creating a web page for the general > public. However, what I am creating in my laboratory is a monster of > my own making that will be used only by my clients AND those clients > will be required to have javascript turned on. > > Sometimes, programming for the lowest common denominator limits possibilities. > > Cheers, > > tedd > > -- > ------- > http://sperling.com > http://ancientstones.com > http://earthstones.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#262887) next »