Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 21 MAY 2012 01:37:01AM matthew jones wrote:

I'm new to O4W mobile in OI 9.3.1.

I cut and pasted the O4W_M_REVELATION_COM example from the Reference Guide, pp269+

It runs up well, and when I run it in the desktop browser using Chrome it displays really nicely, adjusting the width automatically to suit the browser width.

When I run it on the iPhone it displays wider than the phone screen, so I need to scroll a long way to the right to see the right hand side of the page. It doesn't matter if I turn the phone around, I get the same issue.

Is there some command I need to include to limit or resize the display to the physical screen?

Thanks.

Matt Jones.


At 21 MAY 2012 01:53AM matthew jones wrote:

Sorry (for replying to my own post):-

I should add that if I resize the phone browser to fit the physical screen, the text becomes too small to read easily.

What am I missing?

Ta.


At 21 MAY 2012 10:54PM bshumsky wrote:

Sorry (for replying to my own post):-

I should add that if I resize the phone browser to fit the physical screen, the text becomes too small to read easily.

What am I missing?

Ta.

Hi, Matthew. I believe the key is that you need to have the following "meta" in your html header:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

If you're using the mobiledefaulttmpl.htm, then that should already be present in the HTML that's in the template; what template are you using?

- Bryan Shumsky

Revelation Software, Inc.


At 22 MAY 2012 12:15AM matthew jones wrote:

Oh, be still my beating heart!!

I had just cut and paste the code out of the 931 Reference Guide (O4W_M_REVELATION_COM) pp 269+

In it, it has:

Case EVENT _EQC "CREATE"

* turn our "we're a mobile app" flag

o4wSetMobile(1)

* use our blank template

o4wform("blank")

* start a "page" of content, using theme "b"

O4WSectionStart("MainMenu", O4WMobileOptions("page", "b"))

So I just changed it to:

o4wform("mobiledefaulttmpl.htm")

and hey presto, it's beautiful.

Thank you Bryan - brilliant.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/a375bb1e000467211756f0f00.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1