Hi, I am using the widget:tab and I am even able to put buttons like "Next >>" that will switch to the next tab. However, the tab highlighting does not change. Is there javascript or another method to change the tab, simulate that a tab was clicked? Or perhaps just name the the tabs "1) Step One" "2) Step Two" to indicate there is a progression the first time through. Cheers, Hank Hank Ratzesberger 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
|
Hank,
widget:tabs uses two xforms:switch, and you must toggle both to get the expected result, e.g.: <xforms:toggle case="my-tab"/> <xforms:toggle case="my-tab-active"/> where "my-tab" is the id of the given tab. Ideally, this would react to a well-define event-based interface I think, but for now it's like this. -Erik On Sep 17, 2008, at 5:24 PM, Hank Ratzesberger wrote: > > Hi, > > I am using the widget:tab and I am even able to put > buttons like "Next >>" that will switch to the next > tab. However, the tab highlighting does not change. > > Is there javascript or another method to change the > tab, simulate that a tab was clicked? > > Or perhaps just name the the tabs "1) Step One" "2) Step Two" > to indicate there is a progression the first time through. > > Cheers, > Hank > > > Hank Ratzesberger > 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 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 |
Thank you Erik
(Is today your British P.M Question Time? ) However, trying your suggestion, I realized that I was not using the dispatch element properly, so I recommend it instead, using the minimal trigger created for the tab. e.g., if the widget tab id is "next-tab" <xforms:trigger> <xforms:label> Next tab </xforms:label> <xforms:action ev:event="DOMActivate"/> <xforms:dispatch name="DOMActivate" target="next-tab-trigger"/> </xforms:action> </xforms:trigger> Glad this is supported, considering the similar action in JavaScript is not by all browsers. Best, Hank On Sep 23, 2008, at 2:48 PM, Erik Bruchez wrote: > Hank, > > widget:tabs uses two xforms:switch, and you must toggle both to get > the expected result, e.g.: > > <xforms:toggle case="my-tab"/> > <xforms:toggle case="my-tab-active"/> > > where "my-tab" is the id of the given tab. > > Ideally, this would react to a well-define event-based interface I > think, but for now it's like this. > > -Erik > > On Sep 17, 2008, at 5:24 PM, Hank Ratzesberger wrote: > >> >> Hi, >> >> I am using the widget:tab and I am even able to put >> buttons like "Next >>" that will switch to the next >> tab. However, the tab highlighting does not change. >> >> Is there javascript or another method to change the >> tab, simulate that a tab was clicked? >> >> Or perhaps just name the the tabs "1) Step One" "2) Step Two" >> to indicate there is a progression the first time through. >> >> Cheers, >> Hank >> >> >> Hank Ratzesberger >> 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 > > -- > 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 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 |
The code is working in my xforms as well. However, every time it switched to the bottom of the tab, rather than the top of the it. Is there any way to fix this problem? My xform is available in:
http://dlibtest.york.ac.uk:8080/muradora/xforms-jsp/vra-view.jsp (it's working in Firefox, not IE). Thanks Frank
|
Administrator
|
Frank,
I tried this on IE6 with CrossOver, and Erik tested with IE6 and IE7 on a Windows machine. In all cases, just loading the page was "killing" the browser (IE displaying the page, but not responding, and using 100% CPU). What version of Orbeon Forms are you using? If you are not using a nightly build, I would first try to upgrade and see if the problem still happens with the latest code. Alex |
Alex,
I've tried using a nightly build, but it's getting worse. See the comparison between 3.6 (currently using) and 3.7 nightly build: Browser Orbeon 3.6 Orbeon 3.7 nightly build ---------------------------------------------------------------------- Opera 9.6 working perfectly not working Firefox 3.0.3 partly working partly working IE 7.0.5730.13 100% CPU 100% CPU Any ideas? Frank Frank Feng wrote: > > The code is working in my xforms as well. However, every time it > switched to the bottom of the tab, rather than the top of the it. Is > there any way to fix this problem? My xform is available in: > > http://dlibtest.york.ac.uk:8080/muradora/xforms-jsp/vra-view.jsp (it's > working in Firefox, not IE). > I tried this on IE6 with CrossOver, and Erik tested with IE6 and IE7 on a Windows machine. In all cases, just loading the page was "killing" the browser (IE displaying the page, but not responding, and using 100% CPU). What version of Orbeon Forms are you using? If you are not using a nightly build, I would first try to upgrade and see if the problem still happens with the latest code. 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 -- View this message in context: http://www.nabble.com/Trigger-to-switch-widget%3Atab-tp19543833p20386336.htm l Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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 |
I don't know whether this issue is under investigation, but I'd like to
report it anyway. There are 3 cases: 1. 1 or more radio buttons depend on selected radio button 2. 1 or more check boxes depend on selected radio button 3. 1 or more radio buttons depend on selected check box (possibly and 4th case main check box and dependent check boxes). Attached file presents these 3 cases. When F1 radio button is selected, Test1 & Test2 radio buttons should be enabled, but they are not. The same applies for F2 and "Test chk" buttons/box. For the text and combo boxes, everything works ok. Info: Tested on: http://www.orbeon.com/ops/xforms-sandbox/3.7.0beta1.200808261006 - everything works OK Tested on http://localhost:9090/orbeon/xforms-sandbox/3_7_0beta1_200811100921 (the latest) - NOT OK Tomcat: 5.5.23/ JDK 1.5_04/IE6, IE 7, FF 2.0.17 and FF 3.0 Regards, nikola -- 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 view.xhtml (7K) Download Attachment |
Administrator
|
In reply to this post by Frank Feng
Frank,
Would you be able to create and post in this thread a minimal example that shows this issue and runs in the XForms sandbox? Alex |
In reply to this post by Nikola Radic
Regarding the same topic, I found that radio controls are surrounded
with additional SPAN element. Comparing the XFormsSelect1Handler class from 3_7_0beta1_200811110821 and 3_7_0beta1_200810250119 I found the following snippet in the "handleItemFull" method.. //xhtml:span enclosing just the input reusableAttributes.clear(); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName, reusableAttributes); ...................... contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "span", spanQName); Commenting, these lines, everything is back to normal. Nevertheless, the problem may be in xforms.js (not updated to handle additional span element) as well, so I will wait for your new update. hth regards, nikola -- *P/ Please consider the environment before deciding to print this e-mail/* -- 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 |