Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Remove/hide 'If Javascript is disabled in your browser click

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-16-2006, 06:00 AM
 
sandersdesign sandersdesign is offline
 

Member
  
Join Date: Oct 2005
Posts: 26
 

Default Remove/hide 'If Javascript is disabled in your browser click

Hi, this question has possibly been asked before but has anyone found a way to hide or remove the 'If JavaScript is disabled in your browser click here' option. I guess there is a way to use a JavaScript detect script to switch the option on or off rather than placing text on the screen.

Thanks for any help.
__________________
www.sandersdesign.net
X-Cart Gold v4.0.16, Unix
Reply With Quote
  #2  
Old 01-16-2006, 06:03 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

I usually just remove that all together, but that is just me. Comment it out in auth.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-23-2006, 09:37 PM
 
Eddie Hillegers Eddie Hillegers is offline
 

Advanced Member
  
Join Date: Feb 2003
Posts: 47
 

Default

I thought about commenting it out but that doesn,t get rid of the
no javascript messages in the productpages, that's where i tell them
how to switch on javascript. so just to be absolutely sure "if there is
somebody out there who switched of javascript" i did this
in auth.tpl and authbox.tpl


Code:
{if $usertype eq "C"} <TR> <TD class="VertMenuItems" colspan="2" align="right"> {if $js_enabled} {else} {$lng.txt_javascript_enabled} {/if} </TD> </TR> {/if}

that way it only shows up when javascript is switched off.

Cheers Eddie
__________________
X-cart 4.1.11
PHP 5.2.0
MySQL 5.0
www.ebonist.nl
Reply With Quote
  #4  
Old 07-27-2006, 05:12 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default

Quote:
Originally Posted by Eddie Hillegers
I thought about commenting it out but that doesn,t get rid of the
no javascript messages in the productpages, that's where i tell them
how to switch on javascript. so just to be absolutely sure "if there is
somebody out there who switched of javascript" i did this
in auth.tpl and authbox.tpl


Code:
{if $usertype eq "C"} <TR> <TD class="VertMenuItems" colspan="2" align="right"> {if $js_enabled} {else} {$lng.txt_javascript_enabled} {/if} </TD> </TR> {/if}

that way it only shows up when javascript is switched off.

Cheers Eddie

WHY isn't this an automatic, "everyone must do this" mod?

Thanks a zillion for figuring this one out.

I use my wife as a test site... she doesn't know what javascript is, let alone if it is on or not on her iBook. I can assume that my customers barely know how to turn on their computer and I am grateful that they figured out how to get to my site. I will assume most everyone has js enabled, and for the few that don't, they know exactly what they're doing (and why they disabled it). "js off" is not a default on any brand name browser that I know of...

Once again, the geeks (er, programmers) decided that this warning needs to be visible to all... but the customers couldn't care less. So this little bit of code takes the clutter away from 99% of the customers, and it makes the site less "geeky".

Eddie, you ROCK!

Thanks,

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 10-05-2006, 01:16 PM
 
William William is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Thumbs down Re: Remove/hide 'If Javascript is disabled in your browser click

Quote:
Originally Posted by Eddie Hillegers
that way it only shows up when javascript is switched off.

This bit of code does not detect if the users browser has JavaScript disabled.

All this does is pass a variable to tell x-cart.

Quote:
Originally Posted by carpeperdiem
WHY isn't this an automatic, "everyone must do this" mod?

If you want to let your visitors know that your shop requires JavaScript, then you need to use another method of letting the user know, i.e. <noscript>.
__________________
X-Cart version 4.1.7 (unix)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:53 AM.

   

 
X-Cart forums © 2001-2020