Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Closed Thread
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 Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 15th, 2006, 09:31 AM
marnixR's Avatar
marnixR marnixR is offline
i don't do negative rep
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2006
Posts: 617 marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 3 h 27 m 47 sec
Reputation Power: 216
JavaScript or VBScript for form checking ?

In order to make sure that people enter proper data in a HTML form I often use JavaScript triggered by the OnSubmit command. However, the same things could be dealt by VBScript in a form handling page, which sends the user back to the form page if the data are not of the expected format.

As things stand I think JavaScript is the better tool to handle the data, but that's just my personal opinion. What's the opinion of web designers out there ?

Reply With Quote
  #2  
Old June 15th, 2006, 04:59 PM
Moridin's Avatar
Moridin Moridin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 160 Moridin User rank is Sergeant (500 - 2000 Reputation Level)Moridin User rank is Sergeant (500 - 2000 Reputation Level)Moridin User rank is Sergeant (500 - 2000 Reputation Level)Moridin User rank is Sergeant (500 - 2000 Reputation Level)Moridin User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 15 h 21 m 40 sec
Reputation Power: 12
Well I am off the same opinion. Javascript would be better in this situation, at least for me because of several reasons. It is a simpler code in JavaScript and I think that the VBscript equivalent has some browser issues, but I'm not 100% sure on that.

But in the end, it all depends on what kind of web site you have, what other scripts you have on it etc.

The script you use for this might conflict with another script you wish to apply in the future and a change would have to take place.

What other scripts do you have on your web site?

- Moridin

Last edited by Moridin : June 15th, 2006 at 05:01 PM. Reason: fixed typo

Reply With Quote
  #3  
Old June 16th, 2006, 01:41 AM
marnixR's Avatar
marnixR marnixR is offline
i don't do negative rep
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2006
Posts: 617 marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level)marnixR User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 3 h 27 m 47 sec
Reputation Power: 216
i tend to stick to javascript for client side and vbscript for server side

haven't had any conflicts so far, but then again, i tend to favour the KISS philosophy

Reply With Quote
  #4  
Old June 19th, 2006, 06:58 AM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Salem, OH
Posts: 340 Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)  Folding Points: 177284 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177284 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177284 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177284 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177284 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177284 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Days 11 h 55 m 56 sec
Reputation Power: 50
Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo
I tend to agree with the general consensus here. Javascript is better for client-side scripting because it is generally more compatible across browsers and the code of often simpler.

To be honest, I don't even use VBScript for server-side programming unless I'm making use of ActiveX controls.

Outside of that, it just depends on which one you're more comfortable in programming.
__________________
Ask the Windows Guru!

Open me for some very useful links!    

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsWeb Site ManagementScripts > JavaScript or VBScript for form checking ?


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway