Opened 13 years ago

Closed 13 years ago

#969 closed defect (invalid)

dojo.event.connect for window onload event doesn't work inside SWT Browser widget

Reported by: hu@… Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

dojo.event.connect(window, "onload", function() {alert("hello");});

will throw a JavaScript? Object Error of Type Error and message "Not implemented" if being used in a webpage displayed inside a SWT Browser widget. It did work in version 0.22 of the dojotoolkit.

Change History (2)

comment:1 Changed 13 years ago by Tom Trenka

Not sure if this is relevant for you or not, but Dojo implements a special onload event method (dojo.addOnLoad) which you should probably be using (as opposed to the method you have above).

You might want to try that.

comment:2 Changed 13 years ago by guest

Resolution: invalid
Status: newclosed

thank you, with addOnLoad it works.

Note: See TracTickets for help on using tickets.