Re: RES: [PHP] Help Call Javascript Methods Inside PHP
| From: | Nitsan Bin-Nun | Date: | Wed, 21 May 2008 06:53:10 +0000 |
| Subject: | Re: RES: [PHP] Help Call Javascript Methods Inside PHP | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274590@lists.php.net to get a copy of this message | ||
I was surprised it didnt came up before.
As Tedd said, try to ajax-up your javascript
On 20/05/2008, tedd <tedd.sperling@gmail.com> wrote:
>
> At 11:41 AM -0300 5/20/08, Thiago Pojda wrote:
>
>> That way you can conditionally send some JS to client, but running actual
>> JS
>> in PHP is not possible.
>>
>
> While running JS inside of PHP is at best confusing, it is possible to use
> both php and javascript together. For example:
>
> You can use php to run javascript, right?
>
> And, you can use javascript and run php, right?
>
> So, all you need between the two is communication, right?
>
> Think of ajax.
>
> Here's an example:
>
> http://webbytedd.com/b/timed-php/
>
> It just takes a little work.
>
> Cheers,
>
> tedd
> --
> -------
> http://sperling.com
> http://ancientstones.com
> http://earthstones.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>