Accordian Menu

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

Accordian Menu

Ryan Puddephatt

Hi all,

            I’m looking to integrate an Accordian Menu (shown here http://www.hedgerwow.com/360/mwd/accordion/demo.php) into xforms, I’ve managed to create a simple one with xforms:switch, but the one shown uses javascript and the Yahoo UI library. Any ideas where I should start to get it integrated with one of the controls?

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
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: Accordian Menu

Alessandro  Vernet
Administrator
Hi Ryan,

I may be stating the obvious here, but one way to do this is to add an
appearance on the xforms:switch, for instance: <xforms:switch
appearance="xxforms:accordion">.

Then you have to see for your library what HTML needs to be generated
and modify XFormsSwitchHandler.java to generate that HTML when there
is an appearance="xxforms:accordion". We try to general HTML with the
least possible amount of styling done in HTML, as it is down the road
much easier to modify a CSS file than a Java file.

You will need to modify XHTMLHeadHandler.java to include the
additional JS file you need. It seems to be a good pick since it used
the Y! UI Library which will be already include there.

And finally in xforms.js you will have to add something to the
xformsInitializeControlsUnder() function for the accordion menu.

Alex

On 6/26/06, Ryan Puddephatt <[hidden email]> wrote:

>
>
>
>
> Hi all,
>
>             I'm looking to integrate an Accordian Menu (shown here
> http://www.hedgerwow.com/360/mwd/accordion/demo.php) into
> xforms, I've managed to create a simple one with xforms:switch, but the one
> shown uses javascript and the Yahoo UI library. Any ideas where I should
> start to get it integrated with one of the controls?
>
>
>
> Thanks
>
>
>
> Ryan
>
>
>
> Ryan Puddephatt
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108
>
>
>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

RE: Accordian Menu

Ryan Puddephatt
Alex,
        Thanks for this, that seems enough to get me started so I'll have a
go at adding it in and send you the files if I manage to get something to
commit

Thanks

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
>Vernet
>Sent: 27 June 2006 20:25
>To: [hidden email]
>Subject: Re: [ops-users] Accordian Menu
>
>Hi Ryan,
>
>I may be stating the obvious here, but one way to do this is to add an
>appearance on the xforms:switch, for instance: <xforms:switch
>appearance="xxforms:accordion">.
>
>Then you have to see for your library what HTML needs to be generated
>and modify XFormsSwitchHandler.java to generate that HTML when there
>is an appearance="xxforms:accordion". We try to general HTML with the
>least possible amount of styling done in HTML, as it is down the road
>much easier to modify a CSS file than a Java file.
>
>You will need to modify XHTMLHeadHandler.java to include the
>additional JS file you need. It seems to be a good pick since it used
>the Y! UI Library which will be already include there.
>
>And finally in xforms.js you will have to add something to the
>xformsInitializeControlsUnder() function for the accordion menu.
>
>Alex
>
>On 6/26/06, Ryan Puddephatt <[hidden email]> wrote:
>>
>>
>>
>>
>> Hi all,
>>
>>             I'm looking to integrate an Accordian Menu (shown here
>> http://www.hedgerwow.com/360/mwd/accordion/demo.php) into
>> xforms, I've managed to create a simple one with xforms:switch, but the
>one
>> shown uses javascript and the Yahoo UI library. Any ideas where I should
>> start to get it integrated with one of the controls?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Ryan
>>
>>
>>
>> Ryan Puddephatt
>>
>> Software Engineer
>>
>> TFX Group - IT UK
>>
>> 1 Michaelson Square
>>
>> Livingston
>>
>> West Lothian
>>
>> Scotand
>>
>> EH54 7DP
>>
>>
>>
>> * [hidden email]
>>
>> ( 01506 407 110
>>
>> 7  01506 407 108
>>
>>
>>
>>
>>
>> --
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: Accordian Menu

Alessandro  Vernet
Administrator
Ryan,

Sounds good, and if you have any question along the way, just let us know.

Alex

On 6/27/06, Ryan Puddephatt <[hidden email]> wrote:

> Alex,
>         Thanks for this, that seems enough to get me started so I'll have a
> go at adding it in and send you the files if I manage to get something to
> commit
>
> Thanks
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
> TFX Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>
> >-----Original Message-----
> >From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
> >Vernet
> >Sent: 27 June 2006 20:25
> >To: [hidden email]
> >Subject: Re: [ops-users] Accordian Menu
> >
> >Hi Ryan,
> >
> >I may be stating the obvious here, but one way to do this is to add an
> >appearance on the xforms:switch, for instance: <xforms:switch
> >appearance="xxforms:accordion">.
> >
> >Then you have to see for your library what HTML needs to be generated
> >and modify XFormsSwitchHandler.java to generate that HTML when there
> >is an appearance="xxforms:accordion". We try to general HTML with the
> >least possible amount of styling done in HTML, as it is down the road
> >much easier to modify a CSS file than a Java file.
> >
> >You will need to modify XHTMLHeadHandler.java to include the
> >additional JS file you need. It seems to be a good pick since it used
> >the Y! UI Library which will be already include there.
> >
> >And finally in xforms.js you will have to add something to the
> >xformsInitializeControlsUnder() function for the accordion menu.
> >
> >Alex
> >
> >On 6/26/06, Ryan Puddephatt <[hidden email]> wrote:
> >>
> >>
> >>
> >>
> >> Hi all,
> >>
> >>             I'm looking to integrate an Accordian Menu (shown here
> >> http://www.hedgerwow.com/360/mwd/accordion/demo.php) into
> >> xforms, I've managed to create a simple one with xforms:switch, but the
> >one
> >> shown uses javascript and the Yahoo UI library. Any ideas where I should
> >> start to get it integrated with one of the controls?
> >>
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >> Ryan
> >>
> >>
> >>
> >> Ryan Puddephatt
> >>
> >> Software Engineer
> >>
> >> TFX Group - IT UK
> >>
> >> 1 Michaelson Square
> >>
> >> Livingston
> >>
> >> West Lothian
> >>
> >> Scotand
> >>
> >> EH54 7DP
> >>
> >>
> >>
> >> * [hidden email]
> >>
> >> ( 01506 407 110
> >>
> >> 7  01506 407 108
> >>
> >>
> >>
> >>
> >>
> >> --
> >> 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
>
>
>

--
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