Forum Moderators: phranque
I have had a basic java script called from some of my pages for a while. Basically, just a disable right click js... I have occasionally seen an error from that script in my error logs, but VERY occasionally... I just figured it might have been misread or something, and just gone on.
Well, starting this morning for some reason, I have 1000's of errors on this little js in MY error logs. The log entrys looks like this:
[Sun Mar 30 12:44:32 2003] [error] Unterminated <> operator at /Path/to/menu.js line 1.
[Sun Mar 30 12:44:40 2003] [error] Unterminated <> operator at /Path/to/menu.js line 1, <INFILE> line 12.
[Sun Mar 30 12:44:45 2003] [error] Unterminated <> operator at /Path/to/menu.js line 1, <INFILE> line 9.
I put in three to show you there are some variation in the error.
OK, what I do not understand:
1) Why this just started now going crazy when this script has been up and running for over a year.
2) Why I would even see an error at all on a java script (wouldn't the error- if there is one- be on the client side?)
3) Why the error changes (the above three are consecutive errors, and none to the same IP -or- UA!)
Thanks for any help on this!
Dave
I THINK I found it, so I thought I would post incase anyone else ever had this problem...
I noticed this thread in this same forum...
[webmasterworld.com...]
I particular, this:
>>The language= attribute is deprecated and should be replaced with the type= attribute. So, for an external js file link: <script type="text/javascript" src="source/to/file.js">
I had this called BOTH ways, JUST IN CASE (I can be not too smart sometimes) like this:
<script type="text/javascript" language=Javascript src="source/to/file.js">
I pulled out the "language=Javascript " part at 9:20 this morning, and now I just looked at my logs... LOTS of errors prior to 9:20.... and NONE after!
So, I think that is it! Strange that it would just start in earnest so recently, as this same code has been on the site a loong time...
Anyway, thanks!
dave