RE: [PHP-WIN] Re: HTML event handling
| From: | gued steph | Date: | Fri, 02 Dec 2005 07:30:17 +0000 |
| Subject: | RE: [PHP-WIN] Re: HTML event handling | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26566@lists.php.net to get a copy of this message | ||
Hi, you can use Js to redirect to PHP.
for example :
onload="PHPeventhanler(this)"
fucntion PHPeventhanler(event)
{
location.href='HTMLeventHandler.php?event='+this;
}
this will call your php page with an Id to the HTML
objetc witch create the event.
there is an event object in Js. In Netscape event.type
send the event type (abort, mouseover,...) fo IE you
have to test event.abort, event.onmouseover, ... to
know event type.
Stephane
--- DvDmanDT <dvdmandt@telia.com> a écrit :
> Not unless you can force all users to install PHP
> and the ActiveScript SAPI
> module.. Then I think you could do it.. But I
> haven't tried it..
>
> --
>
> // DvDmanDT
> mail: dvdmandt¤telia.com
> msn: dvdmandt¤hotmail.com
> "Panos Laganakos" <panos.laganakos@gmail.com> skrev
> i meddelandet
>
news:cea328d10511280520q3adcab19vf3435324aefe6921@mail.gmail.com...
> Is it possible to handle the X/HTML events through
> PHP or, its only
> possible through JS?
>
> i.e. could I handle an onload event?
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com