Posted by:
roycable
(---.eburwd5.vic.optusnet.com.au)
Hi All,
I have a strange problem and really hope someone can help.
I seem to be having a problem with WampServer parsing the Prototype Javascript file.
When I open a simple PHP file with a <script ... > tag loading in prototype.js, Firebug tells me there's a syntax error in prototype.js.
Now, when I change the PHP file to a .htm, and load in the file through file:///C:/... etc, NO errors are shown.
Furthermore, when I upload the PHP version to a web server, and view it via a browser, again, NO errors.
This is why I believe the problem lies with WampServer's parsing (as apposed to the .js file).
I was a user of Wamp2 a year or so ago, and the scripts I used/created then (using prototype) are now producing errors under WampServer.
More specifically, firebug tells me the error inside prototype.js is at line 2495.
Just incase...
<html>
<head>
<script type="text/javascript" src="prototype.js"></script>
</head>
<body>
Test
</body>
</html>
Any suggestions?
Although I still have the installation file of Wamp2, I'm after PHP5 which it doesn't have.
Please help!
Thanks in advance,
Roy