Error Console popping up by itself

547 views
Skip to first unread message

manu

unread,
Aug 30, 2007, 11:54:06 AM8/30/07
to Firefox Users
Hi everybody,
I have developed an web application which uses AJAX. I have used AJAX
POST method and currently using Firefox ver. 2.0.0.6. What is worrying
me, is the error console which pops up every time automatically, when
I call another page through AJAX. Error Console shows only warnings
and all the pages are working well.
Should Error Console pop up by itself ?
Please help me as it creates a lot of confusion in customer's mind.

bunty

unread,
Sep 4, 2007, 10:28:41 AM9/4/07
to Firefox Users
I am also getting the same problem. please reply me if you got the
solution.

Thanks
Baljeet Singh

naso

unread,
Oct 6, 2007, 4:55:15 PM10/6/07
to Firefox Users
I also had this problem, on one of my sites, each time I open a pop up
window, immediately the error console popped up also.
I spent a lot of time looking for a solution for this problem, until
discovered that it was not a problem, it was my bug.
Pop up window was opened using a hyperlink, like this <a
href='javascript:' onclick='OpenPopUp();'>...</a>
Note the 'javascript:' part, that is the whole problem :-)
The link works in IE without side effect, but in Firefox, if you write
"javascript:" in the address bar and press Enter, it will open the
Error console, and that is normal :-)
I just fixed the above mentioned hyperlink to be like this:
<a href='javascript:void(0)' onclick='OpenPopUp();'>...</a>
And now it works fine! :-)
Not pretend that to be best practice, it is better than before ;-)
Hope that would be helpful to somebody :-)

BruceW

unread,
Nov 3, 2007, 7:47:57 PM11/3/07
to Firefox Users
You can stop this from happening if you go to Web Developer's Options
drop-down menu and then choose Options. Then choose Miscellaneous tab
and untick all the boxes for Error Console.

That's it!!!

BruceW
http://www.GreenCampaigns.com

bmearns

unread,
Nov 28, 2007, 11:13:54 PM11/28/07
to Firefox Users
I read somewhere (and can confirm this works from my own experience)
that you should change your a href with onclick

from something like:
<a href='javascript:' onclick='OpenPopUp();'>...</a>

to:
<a href='javascript:' onclick='OpenPopUp();return false;'>...</a>

... in other words, just add 'return false;' directly to the little
inline javascript in the tag. You need to do this here rather than in
the function (though it may be necessary to do it in the function as
well).


On Nov 3, 6:47 pm, BruceW <brucewolfe...@gmail.com> wrote:
> You can stop this from happening if you go to Web Developer's Options
> drop-down menu and then choose Options. Then choose Miscellaneous tab
> and untick all the boxes for Error Console.
>
> That's it!!!
>
> BruceWhttp://www.GreenCampaigns.com
Reply all
Reply to author
Forward
0 new messages