tags:

views:

39

answers:

1

I use Chrome as my primary browser, but wanted access to Firebug to debug some javascript. With webforms projects, I simply run them, copy-paste the address the project is running at into Firefox or IE and go from there. This doesn't seem to work now that I'm using MVC - Firefox and IE both render a white page. A view source on either browser shows me that the HTML is there, but simply not being rendered. Works perfectly in Chrome, though.

Not sure what's going on here...has anyone had experience with this bizarre issue?

EDIT:

@prashant - clarified title, thought tag was enough, sorry.

@tomas - doctypes are correct, does not happen on a fresh MVC project (it renders fine)

@robaticus - saving the page as .html renders fine in firefox. Thought you might be on to something with Javascript, and it appears that is the problem. If I remove this section from my Site.Master template:

<script type="text/javascript" src="../../scripts/MicrosoftAjax.js" />
<script type="text/javascript" src="../../scripts/MicrosoftMvcAjax.js" />
<script type="text/javascript" src="../../scripts/jquery-1.4.1.min.js" />

everything works fine then, the page renders. The page itself doesn't have any special javascript, just those three declarations in the master it inherits. The file paths are accurate and they exist - what's the deal here? It's not a specific javascript file, either - as long as any of those 3 tags exist, bad things happen.

A: 

This had nothing to do with ASP.NET MVC and all to do with my lack of understanding of standards.

Apparently self-closed tags will not render in Firefox + IE, but will in Opera + Chrome, and are not valid in general, per http://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work.

bowlingforfish