Firebug says “No Javascript on this page”, even th

2020-01-27 01:42发布

Why does Firebug say there is No Javascript on this page when there are clearly loads of JavaScript on the page. I even reloaded the page several time to make sure but it still show the same message.

It never used to do that before, but all of a sudden it misbehaves.

Is it because of some configuration issues or because of something else?

17条回答
疯言疯语
2楼-- · 2020-01-27 02:23

Similar things have happened to me because I forgot to add the closing tag.

DON'T do this:

<script src="some.url" type="text/javascript">

or

<script src="some.url" type="text/javascript"/>

DO this instead:

<script src="some.url" type="text/javascript"></script>
查看更多
神经病院院长
3楼-- · 2020-01-27 02:23

The same problem just happened to me. I thought that it was a problem in my scripts, but I checked google.com and the problem persisted. My problem was that I had updated my version of FF and kept the old version of FireBug. When I updated FireBug and everything was solved.

查看更多
三岁会撩人
4楼-- · 2020-01-27 02:24

From firefox 49, the fire bug will be built in and it is called fire-bug next. So the fire bug add on won't work properly and no issues will be solved. So you can use firefox inspector. See here for details information

查看更多
Emotional °昔
5楼-- · 2020-01-27 02:25

EDIT 2017 April

This answer is now outdated and I'm not even testing it anymore because I'm no longer using Firebug (a shame, I loved it years ago in a time it was The tool of trade for web developing).

EDIT 2014 November

The original answer is now more than a year outdated due to firebug evolution. Thanks to @AmadeusDrZaius to keep it on tracks

Answer for outdated firebug versions For anyone still with this problem after updating Firebug. Just click Clear Activation List option inside the Firebug menu.

For those who can't find it, note that "Clear Activation List" shows up in the dropdown from the Firebug icon in the toolbar, but not the Tools > Web Developer > Firebug menu.

Firebug dropdown: Clear Activation List

I guess due to the bug previous hitting your working page it stays listed as "no activate FB for this site please".

查看更多
放荡不羁爱自由
6楼-- · 2020-01-27 02:30

If the problem only shows up on a single page, check that your script folder is referenced from current folder (".") or that's reachable from the server root ("/").

<script src="./scripts/pagescripts.js" type="text/javascript"></script>

may not be the same as

<script src="/scripts/pagescripts.js" type="text/javascript"></script>
查看更多
做自己的国王
7楼-- · 2020-01-27 02:31

As mentioned, sometimes there's a Javascript syntax error that invalidates the whole script. But I have also had this, and simply opening up the page in a new tab or window and refreshing firebug (disable, enable) gets the javascript to show up again.

查看更多
登录 后发表回答