You are here: Re: JavaScript to PHP? « PHP Programming Language « IT news, forums, messages
Re: JavaScript to PHP?

Posted by Thomas 'PointedEars' Lahn on 03/30/06 07:01

Steve Chapel wrote:

> Thomas 'PointedEars' Lahn wrote:
>> web.dev wrote:
>>> The Numerator wrote:
>>>> I was just wondering that if it is possible to do almost anything you
>>>> can do in JavaScript in PHP.
>>> Off the top of my head, I would say no. Because in my opinion, one
>>> of the most important essences of javascript is the dynamic DOM
>>> manipulation, which PHP can not do.
>>
>> But it can. You are confusing interface language and object model.
>>
>> <URL:http://php.net/dom>
>
> Yeah, but JavaScript runs on the client, PHP on the server.

Not necessarily.

> In order for PHP to do anything, the browser has to contact the server and
> get a repsonse. How would PHP, running on a server, open a new browser
> window on the client's computer?

The concept and interfaces of the Document Object Model are not restricted
to an HTML UA, nor is opening a window part of the DOM (in the original
sense).


PointedEars

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация