Hi,

I assume the URL you set on window2 is for a page. In that case you can get the base URL from componentResources.createPageLink("pagename", true) and attach the form and field ids in your JavaScript:

${window2.componentResources.id}.setURL("${basehelpurl}/" + formId + "/" + fieldId);

You can then get the form and fields ids from onActivate(int, int) on your help page. That's the quick and dirty way, anyhow.

-Filip

On 2008-08-19 11:59, Daniel Alonso Sanchez wrote:
Sorry for the strange subject :D, but i don't know the correct way to name
it. I have something that looks like this:

<script type="text/javascript">
    function showWindow2()
    {
${window2.componentResources.id}.setTitle("Ayuda") ${window2.componentResources.id}.setURL("${generarEnlace}"); ${window2.componentResources.id}.showCenter()
    }
</script>

But I would like to do something like adding two params to ShowWindow2
function and pass them to "generarEnlace". The thing is that... it could be
possible?

My final goal is to develop the functionality of helping links with modal
windows, where un link looks like this:

javascript:showWindow2(12,35) javascript:showWindow2(12,37)
Each number are id's of form and field, respectively.

Thanks in advance for the support ;D

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to