what is this error??

M

maya

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...
 
P

Peter Michaux

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...

Do you have multiple windows/frames with different domains? A window
from one domain cannot talk with a window from another domain.

Is it your code causing this or just some web page you have open?

Peter
 
M

maya

Peter said:
Do you have multiple windows/frames with different domains? A window
from one domain cannot talk with a window from another domain.

Is it your code causing this or just some web page you have open?

Peter
hmmm.. I'm a developer, I build websites on a Weblogic server installed
locally in my machine.. I see it sometimes with our sites... but I
also see it sometimes in my own stuff (one of these pgs, sometimes, when
I'm working on it.. www.francesdelrio.com/photoblog/blog1/photos.jsp)
which I develop with Tomcat server installed locally in my machine..
(don't even remember now, if these errors occur just locally or also
when viewing sites up on the server..)

thank you..
 
D

Darko

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...
 
D

Darko

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)?
 
D

dhtmlkitchen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top