Hi,

I would like to post a bug report over the following.

When a widget is rendered via a Kid template, normally the correct
javascript headers are included at the top of the HTML/XHTML output,
such that the widget works correctly.  When HTML or XHTML snippets are
given as output to an ajax call, however, the javascript headers are
not included, and any widgets rendered via such a call do not work
correctly.

Examples will be forthcoming, however, I don't even see an option to
attach files here.  Where can I post this bug report to formally?

In detail.  or rather, what my case is, I am creating links using the
RemoteLink widget found on the TG wiki, to have links load random
XHTML code into DIV tags specified on the Kid template.  The random
XHTML code is mainly the output from rendering more kid pages, that
rather than rendering to a full XHTML file, with HTML at the top, it
only renders a snipplet, intended to integrate into the page as a
whole.  The output of the AJAX call may also contain further
javascript to be processed in the browser, and I'm using some modified
source code from Prototype to ensure the javascript is loaded
properly.  This might be useful for a working solution.
Some of the widgets in the resulting Ajax reply also call their own
javascript via the 'javascript' field of the widgets.Widget object.
This javascript is not being loaded.

One potential solution, based on the code I will include in the
example, arrange to have an option in widets.Widget called
'render_javascript_for_ajax'.  It will then wrap the calls to
javascript files in the functions provided in my javascript code that
ensures all javascript code is loaded and evaluated.  This would need
to be elaborated on though.

Anyways, sorry for the stiff sounding bug report, I get into strange
moods when I drink coffee and write bug reports at the same time :P.

Cheers,
Yaakov


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