Question

I think I might be going crazy at this point. I had an ASP page working yesterday, and came in today to Firebug telling me it cannot detect the JavaScript on the page. Love it when things change after not touching them.

So I start trying to figure out what is happening. I tried slimming down the code, this answer, restarting Firefox, saving the page under a new name and loading the new one, and adding a ridiculous amount of code I generally consider unnecessary. I even tried removing everything from the page and changing it to this:

<script>
alert("yay");
</script>

Does not trigger alert, and Firebug says "No JavaScript on this page". I've been looking for explanations for almost 2 hours and cannot figure out what is happening. I know I did not deactivate anything because other pages will show JavaScript and function properly. I also know that no add-ons are causing it.

HTML

JS

I am using Firefox 28.0 (also tried on 27.0.1). Opening the page in Chrome triggers the alert.

Was it helpful?

Solution 3

Closing the tab and opening the same link in a new tab seemed to resolve the issue.

I'm not sure if any of the prior attempts factored in, so I will list them as well. To be clear, none of these worked, but may have paved the way in some fashion.

  • Restarting Firefox
  • "Clear Activation List" on Firebug
  • Save page under new filename and load the new page
  • Uninstalling add-ons (all of them)
  • Create new profile and load page on that profile
  • Add a <!DOCTYPE html> to the top
  • Add type="text/javascript" to script tags
  • Add charset="utf-8" to script tags
  • Add <meta charset="utf-8"> in <head>

OTHER TIPS

(Damn I meant to post this as a comment).

As you responded I'll re-popualate...

I create jsfiddle,

<body>
<script>
    alert("yay");
</script>
</body>

Also ensure your browser has javascript enabled.

You should follow the instructions on the Firebug's first aid page.

I assume it's either some Firebug setting or a conflict with another extension. (I see at least YSlow and FlashFirebug installed.)

To check that you can create a new profile and just install Firebug.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top