Re: A two flavored post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx> 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
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux