Jump to content

Javascript Disabled


Recommended Posts

Hi,

 

If a customer has javascript disabled in their browser and you are using the Ajaxcart Template, they don't get any error or warning telling them that they need to enable javascript.

 

Should this be there or is there a way to redirect them to a non javascript template.

 

Thanks.

Link to comment
Share on other sites

I think every template uses Javascript even for example web20cart:

 

onclick="window.location='/clients/cart.php?a=add&pid=25'"

 

It would be nice if the cart didn't require javascript but too be honest the number of users without javascript enabled must be small. Then when you think about those without javascript but interested in hosting it must be tiny :)

Link to comment
Share on other sites

You would add something like this to either your header or footer templates

<noscript>Sorry, your browser does not support JavaScript!</noscript>

I actually didn't have it in mine so I just added this in my header.tpl just under the <body> tag

<noscript><div align="center" class="errorbox">Sorry, your browser does not support JavaScript!<br /><br />To be able to order products you will need to enable JavaScript in your browser.</div></noscript>

Edited by sparky
Link to comment
Share on other sites

As far as I know, WHMCS should automatically re-direct them to an alternative order form.

 

It doesn't look like WHMCS does this.

 

 

You would add something like this to either your header or footer templates

 

I actually didn't have it in mine so I just added this in my header.tpl just under the <body> tag

 

Thanks for this.

Link to comment
Share on other sites

Nobody in their right mind disabled JavaScript nowadays, considering how much of the web depends on it being enabled. I've never seen it disabled anywhere, except by the few paranoid users who you wouldn't want to deal with in the first place :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated