RE: [PHP] PHP intereferes with my Javascript
| From: | Ford, Mike [LSS] | Date: | Fri, 03 Jan 2003 17:34:02 +0000 |
| Subject: | RE: [PHP] PHP intereferes with my Javascript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130131@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Adam Wilson
To: php-general@lists.php.net
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