Opened 17 years ago

Closed 17 years ago

Last modified 15 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:


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:

	<script type="text/javascript">
		djConfig = {isDebug: true};
	<script type="text/javascript" src="dojo/dojo.js"></script>
	<script type="text/javascript">

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 17 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 17 years ago by alex

Resolution: wontfix
Status: newclosed

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

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 15 years ago by (none)

Milestone: 0.2release

Milestone 0.2release deleted

Note: See TracTickets for help on using tickets.