re my earlier question: I've just spotted the following error ticket regarding the ordering of the js as it's injected using TW2.
https://bitbucket.org/pedersen/tgext.menu/issue/12/tw2-does-not-respect-resource-ordering I'm using (and wish to only use) TW2 in my project.... is there any sort of patch to force the correct ordering? That should solve my problem..... Regards, Rob On 24 January 2011 14:01, Robert Sudwarts <[email protected]> wrote: > Hi, > > I've installed tgext.menu and tried to get it running using a freshly > quickstarted project but I'm getting the following js errors: > $ is not defined > $(function() { > > and: > $("#navbar").jdMenu() is not a function > $("#navbar").jdMenu(); > > I'm pretty certain that all of the dependencies have correctly installed. > In app_cfg.py I have added the following lines: > base_config.use_toscawidgets2 = True > base_config.use_toscawidgets = False > base_config.variable_provider = tgext.menu.menu_variable_provider > base_config.tgext_menu = {} > base_config.tgext_menu['inject_css'] = True > > The HTML generated by master.html / index is injecting the js and css using > a URL starting "/resources/" eg. > /resources/tgext.menu.util/static/js/jquery.jdMenu.js > > Having used the example @navbar('My || Sub || Menu') I am seeing a just a > single blue 'bar' showing "My" ... [so it's rendered and rendered with > css]... but the subordinate levels "Sub" and "Menu" aren't present > (obviously, as there's a js error!!) > > But clearly the $("#navbar").jdMenu() isn't being picked up... Is there > anyway to track down what's going wrong? > > Any help would be appreciated! > > Thanks, > Rob > > > > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

