Re: php <-> js (was Javascript Navigation)

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

 



On Thu, April 27, 2006 6:39 pm, tedd wrote:
> At 1:57 PM -0700 4/27/06, Paul Novitski wrote:
> variable to js and will cause js to execute. But, isn't there
> anything else? Is that all there is?

That's all there is unless  you really want to chew up all your HTTP
connctions with a hell of a lot of useless information going
back-and-forth...

You could get an ongoing dialog going with PHP and JS as you have done
with AJAX, and you could even get the two of them to send each other
specific messages you would make up that would make the other one poll
back for more info...

But that would be incredibly wasteful.

If you need that kind of real-time client-server interaction, you should:

A) Switch to Java which kinda sorta has a working keep-alive
applet/servelet model.

B) Write a custom client-server application.

But trying to force JS <-> PHP communication the way you are
describing it is only going to make you very unhappy in the long run.

-- 
Like Music?
http://l-i-e.com/artists.htm

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