473,473 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

JavaScript to PHP?

I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.

Mar 30 '06 #1
6 1187

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.

Mar 30 '06 #2
The Numerator wrote:
I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.


Are you referring to server-side or client-side Javascript?

Mar 30 '06 #3
"The Numerator" <al*********@gmail.com> wrote in
news:11**********************@g10g2000cwb.googlegr oups.com:
I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.


No.
Javascript is capable of interacting with the DOM in ways that PHP cannot.
Javascript functions are able to be "activated" event handlers whereas PHP
cannot.

--
Karl Groves
http://karlcore.com
http://chevelle.karlcore.com

Accessibility Discussion List: http://smallerurl.com/?id=6p764du
Mar 30 '06 #4
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>
F'up2 cl.php

PointedEars
Mar 30 '06 #5
"The Numerator" <al*********@gmail.com> wrote:
I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.


Javascript is (nearly always, anyway) run on the client. PHP is run on
the server. That being the case, they do quite different things. There
is a small set of things that can be accomplished from either end.
There are *many* things that can be done client-side but not
server-side, and there are *many* things that can be done server-side
but not client-side.

--
Tim Slattery
Sl********@bls.gov
Mar 30 '06 #6
Tim Slattery wrote:
"The Numerator" <al*********@gmail.com> wrote:
I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.
Javascript is (nearly always, anyway) run on the client.


JavaScript, JScript, and other ECMAScript implementations are.
There is no "Javascript".
PHP is run on the server. That being the case, they do quite different
things.
PHP can also run without a server.
There is a small set of things that can be accomplished from either
end. There are *many* things that can be done client-side but not
server-side, and there are *many* things that can be done server-side
but not client-side.
True.
--
Tim Slattery
Sl********@bls.gov


A signature part is to be delimited by "-- ".
F'up2 cl.php

PointedEars
Mar 30 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.