473,387 Members | 1,416 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

what is this error??

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

Jul 6 '07 #1
5 22465
On Jul 5, 7:48 pm, 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...
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

Jul 6 '07 #2
Peter Michaux wrote:
On Jul 5, 7:48 pm, 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...

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

Jul 6 '07 #3
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...

Jul 6 '07 #4
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)?

Jul 6 '07 #5
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.

Jul 8 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kaiwing18 | last post by:
Hi , I have a problem relate to java and database. Could anyone answer me ?Please see the following code. import java.sql.*; public class Result { public static void main(String args) {
3
by: fastwings | last post by:
mm the code //////makemenu.h//// class menu { public: int op; pmenu(int op,int sub = 0) { switch op {
72
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for...
9
by: developer | last post by:
Does anyone know what is the way IE treats span tags(<span>) and table tags(<tr>, <td>)? Should the <span> tag be encolsed in tds and trs if it placed with other elements that are in a table? Can...
4
by: atv | last post by:
Whatis the proper way to handle errors from function calls? For example, i normally have a main function, with calls to mine or c functions. Should i check for errors in the functions called...
6
by: Daniel Rudy | last post by:
What is wrong with this program? When I try to compile it, I get the following error. Compiler is gcc on FreeBSD. strata:/home/dcrudy/c 1055 $$$ ->cc -g -oe6-3 e6-3.c e6-3.c: In function...
46
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
10
by: Protoman | last post by:
Could you tell me what's wrong with this program, it doesn't compile: #include <iostream> #include <cstdlib> using namespace std; class Everything { public: static Everything* Instance()
7
by: =?Utf-8?B?UHJpdmF0ZQ==?= | last post by:
Hey, Can some one tell me about what's wrong with the following code and what is the solution with some meaningful correction ----------------------------- class Program { static void...
5
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post by:
Hi, I would like to have someone comments on what's the best practice defining error codes in C. Here's what I think: solution A: using enum pros: type safe. better for debug (some debugger...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.