RE: [PHP-WIN] Re: [PHP] PHP & JavaScript
| From: | BQ777 | Date: | Thu, 23 Oct 2003 01:13:43 +0000 |
| Subject: | RE: [PHP-WIN] Re: [PHP] PHP & JavaScript | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-167213@lists.php.net to get a copy of this message | ||
Oh I see. Well I thought that, but I wasn't sure.
Ok I will do this way. No I have an direction :)
Thanks a lot.
-----Original Message-----
From: Mike Migurski [mailto:mike@saturn5.com]
Sent: Donnerstag, 23. Oktober 2003 03:11
To: BQ777
Cc: php-general@lists.php.net; php-windows@lists.php.net
Subject: [PHP-WIN] Re: [PHP] PHP & JavaScript
>Have somebody any idea how I could do something like that?
<snip javascript and PHP>
You're somewhat out of luck, as the chain of events in your typical HTTP
transaction looks something like this...
---->[time]--------------------------------->
client request received from browser
|
+-> PHP code executed on server
|
+-> text output to webserver (including javascript source)
|
+-> [drawing of cloud representing internet]
|
+-> text input to web browser on client side
|
+-> javascript executed by client
---->[time]--------------------------------->
...The only way to have the javascript affect the PHP, is to make a
subsequent request /back/ to the server after the javascript has started
executing. You can, for example, package the screen size into a GET
variable appended to an image request.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php