Opened 7 years ago

Closed 7 years ago

#16369 closed defect (wontfix)

dojox.layout.ContentPane cannot load a page with script loading dojo.js

Reported by: riceyeh Owned by:
Priority: undecided Milestone: tbd
Component: DojoX Layout Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description

An error like below will occur when dojox/layout/ContentPane try to load a page with <script> loading dojo.js again.

"NetworkError?: 405 Method Not Allowed - http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.js"

Attachments (3)

main.html (680 bytes) - added by riceyeh 7 years ago.
main.2.html (680 bytes) - added by riceyeh 7 years ago.
helloWorld.html (455 bytes) - added by riceyeh 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by riceyeh

Attachment: main.html added

Changed 7 years ago by riceyeh

Attachment: main.2.html added

Changed 7 years ago by riceyeh

Attachment: helloWorld.html added

comment:1 Changed 7 years ago by bill

Component: GeneralDojoX Layout
Resolution: wontfix
Status: newclosed

We've had a ticket like this before, asking for guard code in dojo.js to not do anything if it gets reloaded. But I don't want to add such code to dojo, because it seems like a corner case of doing something strange. I think you'll need to add a little hook to ContentPane to filter out the dojo.js include yourself.

Note: See TracTickets for help on using tickets.