Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#115 closed defect (wontfix)

Error loading namespace in form tag in IE

Reported by: Michael Schall Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.1
Keywords: Cc:
Blocked By: Blocking:

Description

I have included a detailed background of my problem, but it boils down to if you wrap a form tag around the dojo "setup" scripts you receive:

Internet Explorer cannot open the Internet site http://localhost/playground/test.htm. Operation aborted

Code to reproduce:

<html>
<head>
</head>
<body>
<form>
	<script type="text/javascript">
		djConfig = {isDebug: true};
	</script>
	<script type="text/javascript" src="dojo/dojo.js"></script>
	<script type="text/javascript">
		dojo.require("dojo.widget.*");
	</script>
</form>
</body>
</html>

Detailed Background: I am attempting to wrap my components in .Net Server controls. I have the dojo "setup" script blocks being added the first control that is rendered, and then supporting "require" code being added for each component type the first time each type of component is added. I am using framework 2.0 beta 2 and registering the script using this.Page.ClientScript?.RegisterClientScriptBlock? within the component in the overridden OnPreRender? event. I have a simple aspx page with my control on it. The rendering is working perfectly. However when using the RegisterClientScriptBlock? function, the script is inserted inside of the form tag. This is where my problem lies. If I take html generated by ASP.Net, move the script above the form tag,save it as a htm file, and view the page. Everything works perfectly.

Change History (3)

comment:1 Changed 14 years ago by Michael Schall

Priority: highnormal
severity: majornormal

I have found a workaround in ASP.Net that will allow me to put the scripts in the head tag and it resolves the problem. I assume this is still something worth looking at.

comment:2 Changed 14 years ago by alex

Resolution: wontfix
Status: newclosed

I'm afraid that this appears to be a rendering bug in IE. Please see:

http://peterjanes.ca/blog/archives/2003/12/03/hulk-smash http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs

It appears to be possible to trigger this bug by putting the affected script blocks inside just a stock div tag. Form tags are not required to trigger it.

The only known workaround is to include your scripts in the header of the document or delay inclusion to the end of the document.

comment:3 Changed 13 years ago by (none)

Milestone: 0.2release

Milestone 0.2release deleted

Note: See TracTickets for help on using tickets.