Forum OpenACS Development: Re: Mobile Theme?

Collapse
7: Re: Mobile Theme? (response to 1)
Posted by Dave Bauer on
Thanks for the input, I guess this can be handled mainly with CSS and I do agree that allowing zoom is important, but a mobile friendly layout controlled by CSS is also nice.

This is specifically for filling out forms etc, where a standard layout with zoom is functional but the experience can be improved.

I'll update if I develop anything interesting and let you know what I learn.

Collapse
8: Re: Mobile Theme? (response to 7)
Posted by Dave Bauer on
To anyone interested I am working with jQuery Mobile. Right now I am replacing most of the ADP pages with jQuery Mobile specific versions and looking into the possbility of a switchable mobile theme using the subsite theme features available since OpenACS 5.6.
Collapse
9: Re: Mobile Theme? (response to 8)
Posted by Jose Agustin Lopez Bueno on
Hi Dave!

We are interested in your works.
Can you explain it to us?
Can we test it?

Thanks,
Agustin

One specific case where a targeted CSS solution may not be enough is in the writing of a 'WebApp' specifically for iOS devices, with OpenACS driving it. I am about to experiment with this, and one of the presentation layers I thought I'd try (wAN) requires content to be delivered asynchronously conforming to its own XML DTD.

As well as the WebApp interactions, I'd also want OpenACS to be able to serve the same content in the conventional interface for non-iOS users. CSS @media or javascript feature detection client-side to determine would not be enough in this case, because I need to serve fundamentally different underlying markup as well.

Which of the following would be best?

1) iOS device requests include a parameter webapp='t' which gets passed from page to page?

2) iOS device is identified at the time the session cookie is created and the session cookie is flagged (obviously this would a core change)?

3) Write completely new set of adp 'pages' to drive the webapp?

How best to do this for Xowiki content?

a) Should the render method for ::xowiko::FormPages be adapted, or should I write a new render_4iOS method?

b) Subclass ::xowiki::FormPage to ::xowiki::iOSFormPage, but then what about serving content to normal browsers (problem in reverse)?

b) Should this be done as per 1, 2 & 3 above, by modifying the xowiki adp templates?

There's no correct answer I know, but I'd really appreciate some opinions.

Regards
Richard