Skip to main content

Issue with jmaki widgets when using prototype.js

2 replies [Last post]
Joined: 2005-09-14

I am trying to use jmaki with prototype.js. When prototype.js is included, the jmaki widgets fail to render.

Error loading jmaki.widgets.dojo.editor.Widget : id=dojo_editor1
Script: http://localhost:8080/WebApplication1/ (line:47).
Message: Object doesn't support this property or method

All I have in the application is an index.jsp page with the some widgets. I am using the latest version of jmaki 0.9.2. Any suggestions would be greately appreciated. Thanks in advance.

[/b][/b] Page Title

function foo() {
alert('In foo');
alert('Done setting');

Hello World

Application Name

Feedback |
Site Map |

Sidebar Content Here

Main Content Area

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-07-31

hi Kalichar,

I am able to reproduce your issue by just placing a dojo editor widget in the page and a scriptaculous autocompleter before the dojo editor.

This appears to be an incompatibility with Dojo and Prototype with IE that I will report to the Dojo team. I am not seeing the problem on FireFox.

A quick solution for now is to include the prototype link after the Dojo link in the page. This means after the Dojo widgets.

Prototype updates the core JavaScript objects in a browser environment and this causes many incompatibilities like this.

We'll try to see if I can find out more on this.

Joined: 2005-09-14

Hi gmurray71,

I apologize for mentioning that the problem does not surface on Firefox. I have placed the declaration of the prototype code after the jmaki widgets and do not face the issues in IE.