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

javascript file and php - runs ok in html page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-14-2004, 10:50 PM
 
scott_dev scott_dev is offline
 

Member
  
Join Date: May 2004
Location: San Diego, California
Posts: 12
 

Default javascript file and php - runs ok in html page

This setup works fine on a test html page, but when I place it on my php include page, I get "object expected" javascript error:


<?php
#
# You can place your php here for the WELCOME PAGE of your site
#
$the_welcome="Welcome";
echo $the_welcome;
?>

<html>
<script type="text/javascript" src="overlib.js"></script>
<body>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>

</body>
</html>
__________________
Scott Robinson
X-Cart 4.0.0 - Heavily Modified
PHP version 4.3.9
Operating system Linux
Kernel version 2.6.8.1
Machine Type i686
Apache version 1.3.32 (Unix)
PERL version 5.8.4
MySQL version 4.0.20-standard
Reply With Quote
  #2  
Old 11-15-2004, 03:07 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

maybe you dont need to redeclar the <html><body> etc bits
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 12:24 AM.

   

 
X-Cart forums © 2001-2020