facebook

Mods, pls help – change backgound image by coding

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #341600 Reply

    decten76
    Member

    Pls help with these
    1- form already has background image, want to change new image when the newOrientation changes. pls give the code and indicate where to put them.
    2- how to determine the size of device the app is running on, ie ip4 vs ip5 or Ipad … where to put the code in.
    3- how to determine the current page of a multipage? say i m already in page1, a code “alert(phoneui.getCurrentPageId()) assigned to a button shows the root form id, not the current page of the multipage widget. I was thinking to place the code in phoneui.documentReadyHandler = function() {..} but got same result.
    Many thanks.

    #341609 Reply

    Stu Wade
    Member

    Just ran a couple of tests …

    1) it appears that M1 webapps and native ios apps do not respond to change of orientation on iPhone 4 – they simply retain their default orientation. This is not the case with iPad.
    2) window.screen.height and window.screen.width will give you the screen dimensions

    #341626 Reply

    decten76
    Member

    hi,
    “1) it appears that M1 webapps and native ios apps do not respond to change of orientation on iPhone 4 – they simply retain their default orientation. This is not the case with iPad.”
    on my pc, the orientation works, it shows 0 as vertical, or -90 for horizontal. My concern is about how to change the image. not exactly about the orientation. Thanks.
    ” 2) window.screen.height and window.screen.width will give you the screen dimensions”. Thanks. I guess is at my end, the window.screen.width doesnt work. they width + height give same number! on my machine, the screen.availHeight does. Thank regardless.

    #341627 Reply

    Hi decten76,

    Please try using the snippet code I shared in this thread previously:
    http://www.genuitec.com/support-genuitec/viewtopic.php?p=8467#p8467

    #341633 Reply

    decten76
    Member

    Hi Octavio,
    It works, Thanks.
    btw, how ab the item no 3?
    and it is kinda urgent for me. wd u pls help?
    I cannot gen IOS app, the p12 key gen from my mac for my ip5 works ok on my xcode project.
    However, mobione always shows log that cannot extract p12 with password.
    M stuck. can u pls have a look at it.
    Thanks in a truck.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Mods, pls help – change backgound image by coding

You must be logged in to post in the forum log in