Opened 16 years ago

Closed 16 years ago

#302 closed defect (invalid)

onload prop in body tag prevents Dojo Editor buttons from showing in textarea

Reported by: [email protected] Owned by: anonymous
Priority: high Milestone:
Component: Widgets Version: 0.2
Keywords: editor onload body Cc:
Blocked By: Blocking:


I did a brief text search and did not find this error posted, but please accept my apologies if I missed it.

When I have anything set in the onload property inside the HTML body tag, the Dojo Editor buttons do not show up. See the code below:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="GENERATOR" content="IBM Software Development Platform" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="theme/Master.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="dojo/dojo.js"></script>
<script type="text/javascript">
<script type="text/javascript">
	function doSomething() {
<body onload="doSomething()">
<textarea name="blah" dojoType="Editor" items="textGroup;|;colorGroup;|;listGroup;|;linkGroup">Initial content</textarea>

On my browser (Firefox 1.5/Windows), this comes up as a normal textarea. If I remove the the onload property (i.e. change <body onload="doSomething()"> to <body>), then the Dojo Editor comes up as expected.

The project I am working on requires the use of the onload property in the body tag. Please let me know if this is a defect or if I have missed something in the configuration, etc.


Andy [email protected]

Change History (3)

comment:1 Changed 16 years ago by david

Can you get away with doing the following instead:

<script type="text/javascript">

comment:2 Changed 16 years ago by [email protected]

Thanks for the quick reply. That seems to work.

Thanks again, Andy

comment:3 Changed 16 years ago by david

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.