You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Karen Schuchardt <kl...@pnl.gov> on 2002/05/09 02:16:44 UTC

velocity actions and javascript

Can somebody provide some pointers on  how velocity actions work in relation to
javascript concepts like

location="" in menus
document.myform.action() and
document.myform.submit()

I'm able to do things like create a popup javascript menu with menu options that
create new windows to view documents that are at absolute or relative urls.  This
is good for some of my requirements but I'd also like to be able to define the
button such that it executes a velocity action just as if I had a button on my
form like:
<input type="submit" name="eventSubmit_doSomething" value="Something" />

For the location= assignment in the menu item, I see that I can put absolute urls
and I can put relative urls that jetspeed then puts together with the current
context.  But I don't know how to specify an action to execute and haven't been
able to figure it out from the jetspeed/turbine docs.



I also looked at using a javascript function but again don't know how to specify
an action.  I looked at jlink and how its used in sample .vm scripts but couldn't
find any similar examples.


Any pointers would be appreciated.
Karen



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>