Page 1 of 1

Why is there so much javascript?

Posted: Thu May 26, 2011 10:41 pm
by kkeith
Why does opencart use so much javascript?

I recently started using opencart for a client because I thought it would be what I needed, but I soon found out that it didn't have all the features I needed. I'm am currently doing some heavy modification of the system and found that a lot of the submit buttons are jquery calls to submit the form. Is there a reason for this? Why would you rely on something that can be disabled.

Javascript should be used to improve the user interface, not actually be the user interface. I know this adds another layer of complexity, but the cart should work without it. At the very least, put a noscript tag in the default theme that shows a global message that javascript is disabled.

Overall, good job on this cart though. The MVC is pretty good. Made me rethink how MVC frameworks are used. I have been building my own for years and I am thinking of modifying it to incorporate some of your ideas.

Re: Why is there so much javascript?

Posted: Sun Jun 19, 2011 10:52 am
by avagraphique
I have to agree wit you here, I would prefer some old school forms over the fancypants jquery submit... I may have to change this on my shop if I am going to move forward with it.

Re: Why is there so much javascript?

Posted: Sun Jun 19, 2011 1:26 pm
by rph
kkeith wrote:Why does opencart use so much javascript?
Cutting down on page reloads mayhaps?