|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Use of JavaScript
When I go through the PHP Coding forum I see a lot of posts related to using JavaScript in their pages with PHP.. Since there was a poll regarding this as well as some coders in here feel that JavaScript shouldn't be used as its more client dependent. Also if the Browser is JavaScript disabled then nothing works right????
I did use JavaScript upto a certain extent. Now of course I try not to use it at all coz I don't want to depend on the client at all.. But there are certain instances where you need to use JavaScript to produce real time feel of the webpage rather than redirecting to pages. I need commments on this.. |
|
#2
|
||||
|
||||
|
RE: Use of JavaScript
I think there isn't such a case the you'd have to use JavaScript. You can usually go around it, right? Name a situation where JavaScript is the only solution.
|
|
#3
|
|||
|
|||
|
RE: Use of JavaScript
Stuff like validation. Validating form fields at the cleint end kinda saves time before posting the values. Checking basic stuff like whether the user has entered the necessary values..
Another point where I use JavaScript is to preview certain information. Where I open up a new window without the menus, scrollbars etc.. |
|
#4
|
|||
|
|||
|
RE: Use of JavaScript
Tk, i see where you're coming from ... JS isnt essential but it can be helpful ....
|
|
#5
|
|||
|
|||
|
RE: Use of JavaScript
I beleive everything can be done with PHP which coded by JavaScript. But, as nazly says it will be pretty slow, irritating to use at times... javascript can be handful idea to use at that times!
Agree with what Hatcher says! |
|
#6
|
|||
|
|||
|
RE: Use of JavaScript
I'm using JavaScript when it can bring an advantage over server-side script or it brings more comfort for a user. For example, form validation is certainly faster. I use Javascript and PHP as well for validation.
Sometimes it is also used for Image preloading but I don't see any point in this. I have even programmed a game based on Lone Wolf gamebook using Javascript... Nowadays, I see no harm in using Javascript but I don't rely on it. |
|
#7
|
|||
|
|||
|
RE: Use of JavaScript
If you rely on JS to much it'll end up not working well ... JS can be helpful in making immediate checks on forms, and such things, but apart from that, which arent really needed, PHP can cope on its own, it doesnt even need a database coz it can use text files ...
|
|
#8
|
|||
|
|||
|
RE: RE: Use of JavaScript
Quote:
I tried to say the same thing |
|
#9
|
|||
|
|||
|
RE: Use of JavaScript
Ah rite, you kinda lost me a bit
|
![]() |
| Viewing: Codewalkers Forums > General > General Chat > Use of JavaScript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|