General Chat
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralGeneral Chat

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 5th, 2003, 04:48 PM
nazly nazly is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Colombo,SriLanka
Posts: 1,325 nazly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 18 sec
Reputation Power: 5
Send a message via Yahoo to nazly
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..

Reply With Quote
  #2  
Old September 5th, 2003, 04:54 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,332 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 26229 Folding Title: Starter FolderFolding Points: 26229 Folding Title: Starter Folder
Time spent in forums: 6 Days 16 h 34 m 49 sec
Reputation Power: 6
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.

Reply With Quote
  #3  
Old September 6th, 2003, 05:56 AM
nazly nazly is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Colombo,SriLanka
Posts: 1,325 nazly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 18 sec
Reputation Power: 5
Send a message via Yahoo to nazly
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..

Reply With Quote
  #4  
Old September 6th, 2003, 09:46 AM
Hatcher Hatcher is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Yarm, Cleveland, England
Posts: 395 Hatcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via AIM to Hatcher Send a message via Yahoo to Hatcher
RE: Use of JavaScript

Tk, i see where you're coming from ... JS isnt essential but it can be helpful ....

Reply With Quote
  #5  
Old September 6th, 2003, 03:55 PM
CodeKadiya CodeKadiya is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,330 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 50 m 36 sec
Reputation Power: 6
Send a message via Yahoo to CodeKadiya
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!

Reply With Quote
  #6  
Old September 6th, 2003, 05:48 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 3 sec
Reputation Power: 4
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.

Reply With Quote
  #7  
Old September 7th, 2003, 02:34 PM
Hatcher Hatcher is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Yarm, Cleveland, England
Posts: 395 Hatcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via AIM to Hatcher Send a message via Yahoo to Hatcher
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 ...

Reply With Quote
  #8  
Old September 7th, 2003, 05:38 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 3 sec
Reputation Power: 4
RE: RE: Use of JavaScript


Quote:
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 ...


I tried to say the same thing

Reply With Quote
  #9  
Old September 7th, 2003, 06:08 PM
Hatcher Hatcher is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Yarm, Cleveland, England
Posts: 395 Hatcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via AIM to Hatcher Send a message via Yahoo to Hatcher
RE: Use of JavaScript

Ah rite, you kinda lost me a bit

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralGeneral Chat > Use of JavaScript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek