users@woodstock.java.net

Dynamic javascript on the page

From: jsr <j-nabble_at_ragtop.org>
Date: Thu, 10 Jan 2008 12:34:34 -0800 (PST)

Hi,

I am currently working on converting my existing NetBeans VWP 5.5.1 project
to NetBeans 6.0 w/ Woodstock 4.1.1 components. On several of my pages, I
have javascript functions that are dynamically generated based on data from
the database. They are usually just static text fields that put the code
somewhere on the page. With Woodstock 4.1+ though, this does not appear to
work. I’m guessing that the browser does allow the static text component’s
javascript to create runnable javascript.

So, is it possible to put dynamic javascript functions on the page using
Woodstock components? As a workaround, I figured out that I could use the
"Standard" (non-woodstock) Output Text component for the javascript. I would
like to stick to using one set of components in the future though and not
have mostly Woodstock with a few Standard components mixed in.

If this is not possible now, can we get a value attribute added to
Woodstock’s script component that simply puts the text between two html
script tags?

Thanks,
Jeff

-- 
View this message in context: http://www.nabble.com/Dynamic-javascript-on-the-page-tp14743242p14743242.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.