-----Original Message-----
From: Adam Wilson
To: [EMAIL PROTECTED]

I have split a page up into three sections, header, content and footer.
Header and footer are included in content via PHP. Header contains
Javascript functions. Content and header both call the javascript
functions.
When i look at the source generated it looks exactly like before it was
split.

BUT the javascript generates errors. Does anyone have any idea why this
might happen?
--------------------------

If you're absolutely sure the generated source is completely identical, then no I have 
no idea -- what you are doing is exactly how I generate the majority of my pages, and 
it works fine.

You really need to relate the JavaScript errors back to the source as displayed by 
your browser, work out why that page as displayed generates that error (not always 
easy in itself!), and then work out why your script generates the erroneous output.  
I've been through this process a couple of times, and it can sometimes be quite 
painful...!

If you've got a decent file comparator handy, it might be worth flinging your original 
static page and a "Save As" of the generated page at it, to see if it detects anything 
your human eye failed to!!

Cheers!

Mike

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to