Skip to main content

Yahoo is this good for dynamic content tabbed view? Need help on debug..

3 replies [Last post]
zissiszarty
Offline
Joined: 2007-03-27
Points: 0

I use jmaki.js version .8.3.2 cause allready included some Jmaki widjets succesfully in my app.Iam waiting for the right time to make the swich to a newer version.
I want to use yahoo.tabbedview in a jsp page in each tab of this page a different jsp page is included.

The other tabbed view widjet (not jmaki powered) I used did load all jsp 's no matter which one was selected , I though that jmaki architecture could solve this if it loads each every tab on an onclick event for e.x .

Tried to test this but I get the following error :
Error loading jmaki.widgets.yahoo.tabbedview.Widget : id=yahoo_tabbedview86
Script: http://localhost:8080/freelancing/index.jsp?link=eshop (line:13).
Message: 'YAHOO' is undefined
the corresponding code goes :
self._tabView = new YAHOO.widget.TabView(wargs.uuid);

Were should I look why YAHOO is not instantiating
?

Message was edited by: zissiszarty

Message was edited by: zissiszarty

Message was edited by: zissiszarty

Message was edited by: zissiszarty

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
zissiszarty
Offline
Joined: 2007-03-27
Points: 0

Thanks G.

gmurray71
Offline
Joined: 2003-07-31
Points: 0

The widget.json file renders the dependencies including the tabview-min.js which I suspect did not get written. YAHOO is defined in yahoo-dom-event.js which should be written before the tabview-min.js

Check the source of the rendered page for that scirpt to start out with.

You should see something like:

Next if this is off look at the widget.json and make sure the dependenices are there:

'config' : {
'type': {
'id' : 'yahoo.tabbedview',
'libs': [
'../resources/libs/yahoo/v2.2.2/yahoo-dom-event/yahoo-dom-event.js',
'../resources/libs/yahoo/v2.2.2/element/element-beta-min.js',
'../resources/libs/yahoo/v2.2.2/tabview/tabview-min.js'
],
'styles': [
'../resources/libs/yahoo/v2.2.2/tabview/assets/tabview.css'
],
'resources': [
'../resources/libs/yahoo/v2.2.2/tabview/assets'
]
}
}

These settings are all part of the default widget so out of the box you should not have to have do anything. Any change you might have deleted a file?

Another option would be to upgrade to .9.4.1..maybe it's time ;-)

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

Thank you Greg for your reply , it had more that I needed to realize that I had missed placing ../resources/libs/yahoo/ files in my app!
Cheers it works now just to realize that it's time to upgrade to .9.4.1..
I promise no more silly and easy questions from .9.4.1.. and on