Re: A two flavored post

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

 



On Fri, 2007-10-05 at 19:19 +0200, Aleksandar Vojnovic wrote:
> This might be a way to do it:
> 
> *Example 1*
> <script>
> function appendMeBaby(aVar){
>     self.location.href = 'img.php?s=' + aVar + 
> '&someOtherVar=itIsMeTheValue';
> }
> </script>
> <a href="javascript:appendMeBaby(<?php echo($value);?>);">Click here</a>
> 
> *Example 2*
> <script>
> function appendMeBaby(aVar, bVar){
>     self.location.href = 'img.php?s=' + aVar + '&someOtherVar=' + bVar;
> }
> </script>
> <a href="javascript:appendMeBaby(<?php echo($value);?>, 
> 'itIsMeTheOtherValue');">Click here</a>

I don't believe that is standards-compliant use of the href attribute.
Also it doesn't degrade gracefully for people who have JavaScript
disabled.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

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