Very new to LemonCart. Throughout the docs I've seen that ajax is added to onclick events. Do you usually/Is there a way of doing this unobtrusively?
Page 1 of 1
AJAX onclick
#4
Posted 26 January 2012 - 09:02 AM
Hello Dominic,
I have accomplished this on several of my stores. This is known as progressive enhancement. You strip out all of the javascript and rebuild it back without the dependency on it. Lemonstand is capable of doing this for most areas out of the box. Areas such as the checkout will need some additional work.
On another note, you may consider giving the community a little time to answer your posts. When I see threads like this with multiple replies to yourself expecting answers it really turns me away from wanting to help. You may get better feedback by posting once and waiting several days to give the community a chance to help you.
I have accomplished this on several of my stores. This is known as progressive enhancement. You strip out all of the javascript and rebuild it back without the dependency on it. Lemonstand is capable of doing this for most areas out of the box. Areas such as the checkout will need some additional work.
On another note, you may consider giving the community a little time to answer your posts. When I see threads like this with multiple replies to yourself expecting answers it really turns me away from wanting to help. You may get better feedback by posting once and waiting several days to give the community a chance to help you.
#5
Posted 31 January 2012 - 09:27 AM
Thanks for the reply.
Regarding posting too often, I was expecting more support from Lemonstand since this is a paid for product. Perhaps I'm in the wrong forum, or I'm spoilt by ExpressionEngine.
Regarding my actual point, unobtrusive != progressive enhancement... Lemoncart is already progressively enhanced. For example, the add top cart function will still work with javascript disabled via a regular form submission. What I really object to is inline JavaScript, it's a nightmare to maintain, bloats the page and does not follow DRY principals. Unobtrusive JS is the standard these days, so I'm amazes it's not implemented here. I can only imagine it's implemented in this way to make it easier for designers to follow. I'll try to move the JS to an external file and see what happens. Thanks for the reply.
Regarding posting too often, I was expecting more support from Lemonstand since this is a paid for product. Perhaps I'm in the wrong forum, or I'm spoilt by ExpressionEngine.
Regarding my actual point, unobtrusive != progressive enhancement... Lemoncart is already progressively enhanced. For example, the add top cart function will still work with javascript disabled via a regular form submission. What I really object to is inline JavaScript, it's a nightmare to maintain, bloats the page and does not follow DRY principals. Unobtrusive JS is the standard these days, so I'm amazes it's not implemented here. I can only imagine it's implemented in this way to make it easier for designers to follow. I'll try to move the JS to an external file and see what happens. Thanks for the reply.
Share this topic:
Page 1 of 1

Help












