be carefully when using a the Hidden component this way. Make sure you
set encode="false". This is because Hidden squeezes/unsqueezes the value
by default.
In the first case, give your DirectLink an id and then update the url
using javascript. View the source in your browser to see what you get.
Remember that once your page has rendered in the browser, you're dealing
with regular HTML/DOM/Javascript.
You might want to make your own link component (say, wrapping
DirectLink) to componentize your functionality.
Jamie
Scott F. Walter wrote:
Greetings,
I want to have a link on a page that uses the javascript prompt to take
the visitor's input and then send it to the back-end for processing.
Ideally I want to use a directlink component but I'm struggling on how
to integrate it. Is there away to dynamically add a parameter to a
DirectLink?
My other thought is to use a form with a hidden value and to have a
javascript function take the value from the prompt function and to
submit a form?
Any other "simple" ideas? I am looking for the most simplistic as we
all are.
scott.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]