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

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

 



At 9:18 AM -0700 4/27/06, Paul Novitski wrote:

I believe you're seeing monsters in the closet where there are only rumpled socks.

I'm not trying to see, or create monsters, I'm just trying to understand.

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.

URL, querystring, form input, and cookies.

Okay, I understand how js and html can communicate with php -- but, that's not the problem. My statement above was part of a symmetrical requirement regarding communication.

2. A way to send information from php to js and have js act upon it.

HTML, inline script blocks, dynamic script files, and cookies.

But, show me an example of php doing each of the above where js will receive the data and will act upon it.

For example, if php creates a cookie, then how does js know that? How can the presence of a cookie cause js to run?

Can js cycle reading cookies waiting for something to do while php crons writing them as needed -- and vise-versa? Is that a viable method of communication and activation between the two?

Is there anything that php can do that will initiate a js routine? As far as I know (limited as I am) php can't even detect if js is present, or not, let alone cause a javascript routine to run -- is that not correct? If not, please give me an example of where php can make js run.

Thanks.

tedd

--
--------------------------------------------------------------------------------
http://sperling.com

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