Opened 11 years ago
Closed 11 years ago
#10663 closed defect (invalid)
dijit.Dialog forwards to another page after loading the href
Reported by: | Eric Pokriefke | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit | Version: | 1.4.0 |
Keywords: | dialog href firefox | Cc: | |
Blocked By: | Blocking: |
Description
Case:
- Create a dijit.Dialog with a href attribute
- The external page which should be loaded by dijit.Dialog uses dojo and imports an external javascript file (<script type="text/javascript" src="foobar.js">)
- foobar.js uses one or more dojo.requires in global scope (no addOnLoad)
What happens:
In Firefox 3.5.7 you'll get forwarded to "wyciwyg://36/http://[address of the original page]" after the dialog is opened and the external page is loaded. The forward fails of course, which results in a blank screen.
In Opera, Safari, IE8 (latest versions) the dialog works as expected.
In IE6 and Chrome the Dialog will show you an error.
I've no clue what the problem is and it's a quite big problem for me. Of course I don't use a dojo.require in a global scope of a javascript file, but if you use a custom build, which loads the dojo/nls/myBuild_de-de.js files afterwards, you are facing this problem, too.
You can't load dojo again inside a Dialog, you need to use an iframe if you want to do that... although not sure why you would want to do that in the first place.