Date: 09/25/00
- Next message: Wolfgang Zumdohme: "[phplib] phplib / oracle"
- Previous message: mArk.cOLListER: "Re: [phplib] LDAP auth, MySQL session?"
- In reply to: layne <email protected>: "RE: [phplib] $sess->mode='post' workaround"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
layne <email protected> wrote:
>
> I believe that <a href="javascript:myfunction(parameters);"> instead of
> using <a href="" onClick="myfunction(parameters);"> is the preferred method
> for calling functions from links.
>
You won't need <a href="javascript:myfunction(parameters);"> in your pages for
session id propagation on your pages. Of course you can, but your pages won't
work if javascript is disabled. The only purpose of onClick event in the url
here is to pass session id to the script with post, if cookies are forbidden,
but javascript works. The id is passed via post, and it does not spoil your
url, like it does in get mode. But clients that don't support both cookies
(preferred mode) and javascript - usually crawlers (they even don't support
posts, either), accelerators and so on - would be able to follow links and
look through your site, while default authentication take place. They won't
even know about sessions behind the pages (well, they should not either). Your
site would be perfectly indexed, while private areas would remain untouched.
But the url you supplied won't help them much - they won't understand it.
Of course, you can write : <a href="http://host/script" onClick =
"myfunction()"> then. But
where do you intend to place this myfunction() on the page? Are you sure you
would include this function on every page throughout the project at the right
place? I guess there would be more headaches while hunting around the code
checking whether the needed javascript chunk is included properly then to
place it directly in the url - you'll be sure that the code is present. It
adds some bytes to the page, but it will work.
-- Best regards, Max A. Derkachev mailto:kot <email protected> Symbol-Plus Publishing Ltd. phone: +7 (812) 265-0054, 265-1228, phone/fax: 567-8775 http://www.Books.Ru -- All Books of Russia--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Wolfgang Zumdohme: "[phplib] phplib / oracle"
- Previous message: mArk.cOLListER: "Re: [phplib] LDAP auth, MySQL session?"
- In reply to: layne <email protected>: "RE: [phplib] $sess->mode='post' workaround"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

