Hi gang:
I changed the subject line, because I consider the topic important.
Forgive me my simplicity, but trying to tie communication between php
with javascript is like trying to get the past and future to talk to
each other -- they exist at different times. Normally, php is history
when js steps on the stage and while js may say a few lines to php
(i.e., Alas Poor Yorrick, I Knew Him ...), there isn't any real
dialog.
Additionally, with regard to the web, their activations are
different. JS listens and responds to user activities whereas php
only responds to a limited set of prompts.
Ajax appears to blur the distinction somewhat, but it's still nothing
more than a call from js to php and js has no idea if php's task was
successful, or not. In other words, there is no real two-way
communication.
To me, what's needed to combine these two languages successfully is
simply communication, such as:
1. A way to send information from js to php and have php act upon it.
2. A way to send information from php to js and have js act upon it.
Then one of the two languages (most likely js) would need to have
some sort of repeating polling mechanism where instructions could be
handled -- an event loop.
When you have that, then you'll have the makings of a language that
can develop real "desk-top-like" web applications.
But, that's my view.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php