Guest Posted February 25, 2006 Share Posted February 25, 2006 Greetings all OSCer's, This might be the wrong place to raise this point, if it is then I apologise, but is it really necessary to use javasript to validate the various forms in OSC? I have been playing around with one of my sites today with javascript turned off and everything seems to work fine, to the best of my knowledge. When a problem occurs in a form you get the lovely CSS styled messageStack tableBox which is much more attractive than the horrible javascript alert box! I understand that the validation is taking place server side, as opposed to client side, but it enables you to theme your error/sucess & warning messages with the rest of the site making for a much more pleasant user experience in my opinion. So I guess my real question is whether there is a major difference in performance between the two methods? If not can I just kill all the un-necessary javascript? Any opinions/advice/abuse welcome, Keep up the good work all, *Ringo* Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2006 Share Posted February 25, 2006 Javascript is just faster - the page does not need to reload. Matti Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2006 Share Posted February 25, 2006 Javascript is just faster - the page does not need to reload. Matti I realise that the form doesn't need to be sent to the server for validation, thus increasing the speed, but is the speed difference great enough to adversely effect performance? Thx for the speedy response btw. Link to comment Share on other sites More sharing options...
cannuck1964 Posted February 26, 2006 Share Posted February 26, 2006 the php based check is all that is needed. You could easily remove the javascript checkig without issue. The biggest issue I have found with the script is a lack of a php based solution to stop users from hiting the submit button twice which can be an issue. cheers, Peter M Peter McGrath ----------------------------- See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2006 Share Posted February 26, 2006 the php based check is all that is needed. You could easily remove the javascript checkig without issue. The biggest issue I have found with the script is a lack of a php based solution to stop users from hiting the submit button twice which can be an issue. cheers, Peter M Ah, I hadn't thought of that, thx cannuck. :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.