Hi,

I have an unusual requirement: if user clicks on a link two windows
(actually frames) should open each showing one aspect of the data.

Currently it's like this:
<tr jwcid="forAllResults">
        <td>
                <a jwcid="link">
                        <span
jwcid="insertMainString">insertMainString</span>
                </a>
        </td>
</tr>

And the jwc:
<component id="forAllResults" type="Foreach">
         <binding name="source" property-path="results"/>
         <binding name="value" property-path="result"/>
         <static-binding name="element">tr</static-binding>
         <binding name="class" property-path="beans.rowClass.next"/>
</component>

<component id="link" type="Direct">
        <binding name="listener" property-path="listeners.preview"/>
        <field-binding name="stateful" field-name="Boolean.FALSE"/>
        <binding name="context" property-path="result.id"/>
</component>

But I want to show two frames now so I need to do something like this:
parent.frames[2].location.target = InfoList
parent.frames[2].location.href =
/SilkRoadGateway/ad?service=direct&context=SearchResult/link&parameters=
0&context=InfoList
parent.frames[3].location.target = InfoDetail
parent.frames[3].location.href =
/SilkRoadGateway/ad?service=direct&context=SearchResult/link&parameters=
0&context=InfoDetail

A javascript trick to send two requests with two targets.

The question is how and where I should write this script. Should I use
<script/>? I don't see any <action/> in script's dtd, only <insert/> and
stuff like those. I got a bit scared when I looked at Pallete's code and
all those runScript/etc stuff. I hope I don't have to resort to such
dirty tricks for such a stupid task.

Ara.



_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to