Forum Moderators: open

Message Too Old, No Replies

Add to Cart Ajax Solution

Should I be worried implementing this?

         

dave_c00

10:34 am on Nov 15, 2010 (gmt 0)

10+ Year Member



Hi,

I have an ecommerce website and at present the user gets redirected to the cart page everytime he/she adds a product to it. I would prefer them to now however stay on the same page so I have an AJAX solution ready and waiting in the wings.

Am I at risk that some people might not be able to use AJAX within their browsers? I do use javascript for different things on the site and know that I am probably losing 5% of all users as they don't have it enabled or supported but is it just those people that won't be able to add to cart via AJAX?

Is there a suitable test to find out if they can use AJAX or not?

Thanks

Dave

rainborick

9:22 pm on Nov 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It's hard to suggest a specific solution without knowing more about your site, but I'd say that the general solution is to either provide alternate content and links in a <noscript> section, or to add onclick() functions to links that are originally constructed for those running with JavaScript disabled in order to provide enhancements.

Demaestro

9:35 pm on Nov 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You should definitely allow non js users a way through the site however I think the Internet is getting to a point where we can stop worrying about those people who turn of js.

They are a special group of people who know why a site won't work and decide if the site is worth turning JS on for.

Hopefully in a couple more years there will be no more talk about what to do for non JS browsers because there will be no such thing. Js is a HUGE part of the Internet now... surfing without it seems to me a strange practice now.

daveVk

3:47 am on Nov 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is it just those people that won't be able to add to cart via AJAX?


It will include a few more, such as users of early versions of IE with activeX disabled. It will also depend on how you implement the Ajax, libraries such as Jquery list the browsers supported.