Is it possible to call javascript function from php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
elim
Forum Newbie
Posts: 8
Joined: Tue Jun 24, 2008 10:19 am

Is it possible to call javascript function from php

Post by elim »

Suppose server php script got some data from client and, is it possible call a javascript function,
pass some value to the function and assign the javascript return to a php variable?

Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Is it possible to call javascript function from php

Post by Christopher »

If the Javascript polls, or perhaps something like Comet.

http://en.wikipedia.org/wiki/Comet_%28programming%29
(#10850)
Post Reply