On Jul 6, 8:34 am, Darko <darko.maksimo...@gmail.comwrote:
On Jul 6, 4:48 am, maya <maya778...@yahoo.comwrote:
hi,
what is this error please?
uncaught exception:
Permission denied to call method Location.toString
I see this error sometimes in FF error console but it says nothing about
what causes it or any other info..
thank you...
Yes, it's an error. I can't remember having heard of the toString()
method in JavaScript, though I remember it from Java. Why don't you
try window.location.href instead, cause that's the safe way to get
string representing your current location (modifiable, too)?
toString is on Object.prototype. It's always available.
The error you're seeing sounds like a Firefox bug.
Moreover, it sounds like the the error reporting is not correct. It
should provide a more detailed error message, don't you think?
If you're code results in an interal call to coerce a Location to a
String, then toString is invoked.
example: var url = location + "?count=1";
Can you find any part of your code that references the location object
Y - insert a breakpoint there
N - Can you pinpoint when the error occurs?
For example, does it occur onload? If so, find the onload event
handler(s) and insert a breakpoint there.