RobertFischer / JQuery-PeriodicalUpdater

A port of Prototype's PeriodicalUpdater to JQuery
282 stars 50 forks source link

Uncaught Illegal access reported by google chrome #3

Closed predhme closed 14 years ago

predhme commented 14 years ago

First, I apologize if you are not using issue tracking via github. I am not all entirely sure if this is an issue with periodicalupdater.js but more an issue with the browser. But thought I would submit this at least for tracking purposes.

Anyhow, I am using the updater script to update a variable on the page if it changes. I tested in Safari 4, IE 7, Opera 10, and Firefox 3.6. Worked great in all of them. But when I popped open the page in Google Chrome (mac developer version 5.0.356.2) it is reporting an error. Here is what the console is showing.

XHR finished loading: "myurl-omitted". Successful run! (In 'success') periodicalupdater.js.23 Status of call: success (In 'complete') periodicalupdater.js.23 Uncaught illegal acces periodicalupdater.js.122

It seems that this is the first run through of the script, not a subsequent run as the initial value is never inserted into the page. If you need any additional information to look into this I can see what I can dig up.

predhme commented 14 years ago

The server was simply returning a number (just a count indicator). Firefox, IE, etc seemed to not mind JSON.parse(6) for example. But chrome was quite mad about it. I changed the type to text and things are working for now. This seems to be an issue with the browser rather than the periodical updater. Closing issue.