iframe in xforms?

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

iframe in xforms?

Jim Logan-3
Is it possible to use an HTML iframe element in an xform, such that when
something is selected on a form, the frame loads a sub-form to edit the
details? The normal HTML way to do this is to have a hyperlink or a
button that targets the frame. Ultimately I'd like to change the
sub-form when the user clicks something in a tree-style select1 control.
An experiment shows that an iframe is possible, but how do I change the
inner form when the user clicks something in the tree?

Thanks,
-Jim


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: iframe in xforms?

Jim Logan-3
Jim Logan wrote:

> Is it possible to use an HTML iframe element in an xform, such that
> when something is selected on a form, the frame loads a sub-form to
> edit the details? The normal HTML way to do this is to have a
> hyperlink or a button that targets the frame. Ultimately I'd like to
> change the sub-form when the user clicks something in a tree-style
> select1 control. An experiment shows that an iframe is possible, but
> how do I change the inner form when the user clicks something in the
> tree?
>
> Thanks,
> -Jim
Ah, I just found the xxforms:target attribute and got it working.

There are two remaining problems. One is that the red "Loading..."
indicator doesn't go away. The other is that I can't seem to expand the
height, even though it's set to 100%. Does anyone have any ideas?

Thanks,
-Jim



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: iframe in xforms?

Jim Logan-3
Jim Logan wrote:
Jim Logan wrote:
Is it possible to use an HTML iframe element in an xform, such that when something is selected on a form, the frame loads a sub-form to edit the details? The normal HTML way to do this is to have a hyperlink or a button that targets the frame. Ultimately I'd like to change the sub-form when the user clicks something in a tree-style select1 control. An experiment shows that an iframe is possible, but how do I change the inner form when the user clicks something in the tree?

Thanks,
-Jim
Ah, I just found the xxforms:target attribute and got it working.

There are two remaining problems. One is that the red "Loading..." indicator doesn't go away. The other is that I can't seem to expand the height, even though it's set to 100%. Does anyone have any ideas?

Thanks,
-Jim

I found a solution to both problems:
  • I found the "xxforms:target" attribute.
  • It turns out the iframe height problem is not specific to Orbeon. I found a Javascript solution here.
-Jim


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: iframe in xforms?

Erik Bruchez
Administrator
> I found a solution to both problems:
> • I found the "xxforms:target" attribute.
> • It turns out the iframe height problem is not specific to Orbeon.  
> I found a Javascript solution here.

Love it when people find answers to their own questions and share it  
with the list :-)

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws