I have two forms where one is inside an iframe. The outer form is for
exploring and selecting, the inner form is for showing the details of what's selected. Changing the details of what's selected sometimes changes what should show in the outer form. For example, the outer form shows how things are categorized, and if I add a category to a selected thing in the inner form, that thing should then show up in that category in the outer form. Is there any way to kick the outer form to make it update? Can I make the browser reload maybe? If that's not possible, is there an event I can detect when the user clicks anywhere on the outer form? 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 |
Administrator
|
Do you have to use an iframe? Could you instead combine the two frames
into a single one? As far as XForms is concerned, your two forms are like two separate web pages. If you want to communicate between the two, you will have to play quite a bit with JavaScript. -Erik On Jul 20, 2008, at 10:42 AM, Jim Logan wrote: > I have two forms where one is inside an iframe. The outer form is > for exploring and selecting, the inner form is for showing the > details of what's selected. Changing the details of what's selected > sometimes changes what should show in the outer form. For example, > the outer form shows how things are categorized, and if I add a > category to a selected thing in the inner form, that thing should > then show up in that category in the outer form. Is there any way to > kick the outer form to make it update? Can I make the browser reload > maybe? > > If that's not possible, is there an event I can detect when the user > clicks anywhere on the outer form? > > 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 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 |
Erik Bruchez wrote:
> Do you have to use an iframe? Could you instead combine the two frames > into a single one? Well, I started with everything in one form, but it was large and complex. Separating concerns seemed like a good idea. Are there any other techniques for managing form complexity? I've read about using multiple models, but I'm not sure that would help. 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 |
Hi Jim, Such as a tabbed interface? That is what I do. The widget:tabs control responds to xforms:toggle events. I break things up into separate forms that don't require scrolling, if possible. The submit toggles to the next tab. I still need to do more with handling exceptions -- to put the user back to the right tab, but otherwise, the form proceeds from left to right, so to speak, and the last tab submits the whole thing. Cheers, --Hank On Jul 20, 2008, at 9:20 PM, Jim Logan wrote: > Erik Bruchez wrote: >> Do you have to use an iframe? Could you instead combine the two >> frames into a single one? > Well, I started with everything in one form, but it was large and > complex. Separating concerns seemed like a good idea. Are there any > other techniques for managing form complexity? I've read about > using multiple models, but I'm not sure that would help. > > 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 NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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 |
Administrator
|
In reply to this post by Jim Logan-3
Jim,
On Sun, Jul 20, 2008 at 10:42 AM, Jim Logan <[hidden email]> wrote: > I have two forms where one is inside an iframe. The outer form is for > exploring and selecting, the inner form is for showing the details of what's > selected. Changing the details of what's selected sometimes changes what > should show in the outer form. For example, the outer form shows how things > are categorized, and if I add a category to a selected thing in the inner > form, that thing should then show up in that category in the outer form. Is > there any way to kick the outer form to make it update? Can I make the > browser reload maybe? In JavaScript, you can use window.parent to access to parent window from the iframe, and then call a global JavaScript function you have declared there, which can dispatch an event with ORBEON.xforms.Document.dispatchEvent() - see http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-javascript-events. But I am afraid that by doing so, you are adding some complexity, which you were trying to get rid in the first place. Also iframe have some layout constraint which might turn out to be a issue down the road. Like Erik said, I would personally try to stay away from iframes, and would favor doing everything in one page, but maybe that is more of a personal preference :). Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Free forum by Nabble | Edit this page |