Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help required with column_left


snoopy

Recommended Posts

Posted

Hi,

 

I want to display different categories boxes depending on whether javascript is enabled on the browser. I can display the non-js version using <noscript>, but how do I prevent also displaying the js version?

 

<?php require (DIR_WS_BOXES . 'information.php'); ?>

<script language="javascript"><!--
//--></script>

<noscript>
<?php include (DIR_WS_BOXES . 'categories.php'); ?>
</noscript>

<?php include (DIR_WS_BOXES . 'categories_dhtml.php');
     require (DIR_WS_BOXES . 'shopping_cart.php');
     require (DIR_WS_BOXES . 'tell_a_friend.php'); ?>

 

Is there a way to tell whether the browser is javascript enabled, or can I say in php 'don't include this file if you are including that one'?

 

I'm a bit out of my depth and would appreciate any advice or a point in the right direction.

 

Snoopy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...