RE: Triggering an event and load action using JavaScript

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: Triggering an event and load action using JavaScript

Brian Bacsu

I am trying to trigger a load action using JavaScript. The click() event on the Trigger control (using getElementById) has no effect. I am unsure how to trigger the event associated with the action/control using the OPS event handlers implemented in xforms.js . Any suggestions would be appreciated.

Thanks,

Brian Bacsu


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Triggering an event and load action using JavaScript

Alessandro  Vernet
Administrator
Brian,

We talked about this off-list, but just for the record on this list,
one can use the xxforms:target attribute on <xforms:load> to have a
page loaded in frame other that the current one. For instance:

    <xforms:trigger>
        <xforms:label>Go to Y! Search</xforms:label>
        <xforms:load xxforms:target="iframe" ev:event="DOMActivate"
resource="http://search.yahoo.com/" show="replace"/>
    </xforms:trigger>
    <xhtml:div>
        <xhtml:iframe name="iframe" src="http://www.google.com/xhtml"
width="400" height="400"/>
    </xhtml:div>

Alex

On 5/12/06, Brian Bacsu <[hidden email]> wrote:

>
> I am trying to trigger a load action using JavaScript. The click() event on
> the Trigger control (using getElementById) has no effect. I am unsure how to
> trigger the event associated with the action/control using the OPS event
> handlers implemented in xforms.js . Any suggestions would be appreciated.
>
> Thanks,
>
>  Brian Bacsu
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet