Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1167 closed defect (fixed)

Problem with dojo.require after onload and RichText

Reported by: lbustelo@… Owned by: liucougar
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: Cc: doronr@…
Blocked By: Blocking:

Description

We are trying to load the Editor2 after the onload and we narrowed the problem down to RichText?. This testcase as is will fail, reporting a "Could not load 'dojo.widget.RichText?'; last tried 'package.js'" but if you move the require to outside the function, it works. Feels like the provide of the RichText? is not working completely.

Here is a testcase:

<html> <head> <title>Insert title here</title>

<script type="text/javascript">

var djConfig = { isDebug: true};

</script>

<script src='dojo.js'></script>

<script>

function create() {

dojo.debug( "FOOO START" );

dojo.require("dojo.widget.RichText?");

It will not get here, and I know some of the params below are wrong

dojo.widget.createWidget("RichText?",

{ htmlEditing: true,

saveName: "testsave", saveUrl: "", closeOnSave: false, commandId: "foo", widgetId: "foo"

}, dojo.byId("foo"));

dojo.debug( "FOOO DONE" );

} </script> </head> <body>

<button onclick="create()">Click me</button>

<div id="foo">Test string</div> </body> </html>

Change History (4)

comment:1 Changed 13 years ago by guest

Cc: doronr@… added

comment:2 Changed 13 years ago by dylan

Milestone: 0.5
Owner: changed from bill to liucougar

comment:3 Changed 13 years ago by liucougar

Milestone: 0.50.4
Resolution: fixed
Status: newclosed

should be fixed in svn r4960

if not please reopen this bug

comment:4 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.