Skip to main content

How to use the dcontainer with fisheye

3 replies [Last post]
saloua
Offline
Joined: 2007-06-01

I read the tutorial http://weblogs.java.net/blog/carlavmott/archive/2007/01/index.htm
Then I have use the fisheye jmaki component to load pages in the dcontainer .But when I clic on a button it displays the alert window but the target url is not loaded.I really don't know what is the problem.Can you please help me.

In my main page I have this

And in the end of the glue.js file I have added this

/* Programatically Register the glue */
jmaki.addGlueListener({topic : "/dojo/fisheye",action: "call", target: { object: "jmaki.carla",functionName: "fishEyeEvent"}});

jmaki.carla = {

fishEyeEvent : function(args) {
alert("sending out dcontainer event to load the url: " + args.target.url);
jmaki.publish("/jmaki/dcontainer", args.target.url);
}
}

How can I do please ?
Thanks in advance

Reply viewing options

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

HI Norbr,

Try setting the topic to "/jmaki/dcontainer"

The topics have to match for the events to be picked up.

-Greg

saloua
Offline
Joined: 2007-06-01

I have changed the topic to /jmaki/dcontainer but that don't work.Befor the alert message is displayed and the page is not loaded in the dcontainer.But now nothing works.

/* Programatically Register the glue */
jmaki.addGlueListener({topic : "[b]/jmaki/dcontainer[/b]",action: "call", target: { object: "jmaki.saloua",functionName: "fishEyeEvent"}});

jmaki.saloua = {

fishEyeEvent : function(args) {
alert("sending out dcontainer event to load the url: " + args.target.url);
jmaki.publish("/jmaki/dcontainer", args.target.url);
}
}

Did you tried this before ?
How can I do please.
Thanks in advance.

carlavmott
Offline
Joined: 2005-02-10

OK, I tried this and found the problem. At some point the topic name that the dcontainer listens to was changed to /jmaki/menu.

Two ways I found this.

1. I looked at the widget docs and see the new name. See the following page:
https://ajax.dev.java.net/docs/jmdocs/index.html

2. I turned on the logging console and saw that there wasn't a listener for the topic /jmaki/dcontainer.
to turn on logging edit jmaki.js and set the.debugGlue and this.debug to true.

Over the next couple of weeks we plan on formalizing the names of the topics used by the widgets so things like this don't happen.

hope this helps,
Carla