Page 1 of 1

I've got a question

Posted: Mon Sep 25, 2006 9:43 am
by MrPotatoes
PHP is completely serverside and no real client side.

why is there no javascript type thing compiled as an extension into PHP so you can do client side things such as dragging/dropping and all that cute crap? you can build a site in Java and do this (it does have to load tho :( ) and i'm assuming you can do this inC# and ASP.NET as well with thier functions

if that is the case then why not do that? why isn't it in there? is javascript something too hard to get eh source for and redo it within PHP? or PHP can have ti's own made as well. PHP is written in C

i dunno, i just thought that this should have been in there from the start *shurg*

Posted: Mon Sep 25, 2006 9:59 am
by CoderGoblin
You have to look at what PHP history is as well as what it is designed to do. [url=http://de2.php.net/history]History

I for one am perfectly happy with what PHP does. It provides a simple/quick to develop scripting language to provide a "baseline" web page which I can customise as I want without the user having to do anything such as downloading a plug-in for a simple text page. If necessary I can build in addional functionality utilising other standards such as javascript but this is not a requirement.

Posted: Mon Sep 25, 2006 10:22 am
by MrPotatoes
CoderGoblin wrote:You have to look at what PHP history is as well as what it is designed to do. [url=http://de2.php.net/history]History

I for one am perfectly happy with what PHP does. It provides a simple/quick to develop scripting language to provide a "baseline" web page which I can customise as I want without the user having to do anything such as downloading a plug-in for a simple text page. If necessary I can build in addional functionality utilising other standards such as javascript but this is not a requirement.
with all the extensions that it has come preinstalled i think that saying it's simple is far from the truth

hey, if i want that type of system i can always do it myself right?

i'm just wondering tho

Posted: Mon Sep 25, 2006 12:09 pm
by panic!
Arrrrghhhh.
you can build a site in Java and do this
I think you're getting JSP and Java applets confused.

a) JSP can't do this

b) Java applets don't make drag and drop JavaScript.

c) An entire website in Java would be s**t...

To be fair there are loads of great JS frameworks out there...Use them. The Rails frame work might do this kinda stuff, but do you really want to learn an entire language AND framework or just learn JS which you'll need to know anyway if you're serious about becoming a web developer (assuming you're not, sorry if I'm making crappy assumtions!).

I really hate mixing and matching server and client side stuff like this...what if the framework's JS's become out of date or are incompatible with browsers (which I'm sure they invariably would be)

In short there are so many reasons to just do it yourself!

This all said I have a few classes for making forms etc.

If it's what you really want to do good luck! :)

Posted: Mon Sep 25, 2006 11:58 pm
by daedalus__
I'd help, if I knew C, that is.