try this:
<a href="javascript:doit(param1,param2)">bla</a>
<script language="javascript">
function doit(param1,param2) {
....
window.open('$link.setScreen("Print").addQueryData("test","blabla")');
}
</script>
or more sophisticated with starting an action (not only advancing to
another screen)
<a href="javascript:setAction('test')">bla</a>
<input type="hidden" name="eventSubmit" value="">
<script language="javascript">
function setAction(action) {
var e = document.forms[0].elements["eventSubmit"];
e.name = "eventSubmit_" + action;
document.forms[0].submit;
}
</script>
Hope that helps ...
/us
"Marc Lustig"
<mail@marclustig. An: "Turbine Users List"
<[EMAIL PROTECTED]>
com> Kopie:
Thema: AW: how to add JS-event to
DynamicURI
15.01.2003 16:51
Bitte antworten
an "Turbine Users
List"
You do understand it. I need this:
<a href="..." onClick="method(param1,param2)">bla</a>
I'm working now to extend DynamicURI to add onClick
="method(param1,param2)",
before getting the URI using getA().
If someone has done this job before it would save me some time....
Marc
> -----Ursprungliche Nachricht-----
> Von: Quinton McCombs [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 15. Januar 2003 16:47
> An: Turbine Users List
> Betreff: RE: how to add JS-event to DynamicURI
>
>
> DynamicURI only creates the URL. It does not construct any other part
> of the href tag.... Maybe I don't understand what you are trying to
> do.....
>
> > -----Original Message-----
> > From: Marc Lustig [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 15, 2003 9:31 AM
> > To: Turbine Users List
> > Subject: how to add JS-event to DynamicURI
> >
> >
> > Hi again,
> >
> > how can I add a JavaScript-method to a DynamicURI ?
> >
> > What I need is this: <a href="..."
> > onClick="method(param1,param2)">bla</a>
> >
> > DynamicURI doesn't appear to provide any specific method for
> > this. Anybody got a workaround for this? (The list-archive
> > didn't give me any result on the subject.)
> >
> > Thanks.
> > Marc
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:turbine-user-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>