hi and thanks again Chris,

i have tried to implement your solution(s), but the best i got were
the script tags in the middle of the page.
the template does include the py:for tags in the head, but here seems
to be the failure.

when i tried to display a form made of JSLinks etc it did render the
script tags visually.
when i tried to append them to an existing WidgetList, it complained
of a missing strip_name.

do you know of any widget that currently works for you, so i may
measure the distance from it?

i'm using tg1.1 with tw, genshi, elixir.

best regards,
alex

On Sat, Oct 11, 2008 at 5:20 PM, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>
> alex bodnaru schrieb:
>> On Sat, Oct 11, 2008 at 3:04 PM, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>>> alex bodnaru schrieb:
>>>> i'm sure i'm not of the first to be stuck here, but i don't seem to
>>>> understand what and where to import and invoke in order to have a
>>>> widget javascript/css in the head of my rendered page.
>>>>
>>>> i'm currently trying to use tw.tabber and tw.jsqquery.autocomplete.
>>>> please note, that the second widget is using and rendering some class
>>>> object, however the javascript href is missing.
>>> TG1 or TG2?
>> 1 :)
>
> For TG1 the procedure is the same for TG widgets or for tw:
>
> 1) You page template must inherit from/include master.kid/html.
>
> 1.1) If you use Kid, master.kid must inherit from
> view.templates.sitetemplate.kid
>
> Then you must either:
>
> a) Attach the JS/CSS widgets to a compound widget, which you return in
> the dict from your controller.
>
> b) Put the JS/CSS widgets directly in the dict.
>
> c) Wrap them in a WidgetList instance and return this (1.1 only?).
>
> d) Name the JS/CSS widget *instance* in the tg.include_widgets config
> setting.
>
> It's all explained here:
>
> http://docs.turbogears.org/1.0/WidgetsWithJSAndCSS#how-does-it-work
>
>
> Chris
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to