R1 Web Updates
The latest Web app updates
Issue: 10.6 (September/October 2012)
Author: Paul Lefebvre
Article Description: No description available.
Article Length (in bytes): 2,945
Starting Page Number: 82
RBD Number: 10613
Resource File(s): None
Related Link(s): None
Known Limitations: None
Excerpt of article text...
New Session Events
Real Studio 2012 Release 1 added several new events to the Session, all of which I'm sure you will find quite handy. They are OrientationChanged, AllowUnsupportedBrowser, PrepareSession and Timeout.
This event handler is called when the device is rotated. Obviously, mobile devices are more likely to trigger this event. It supplies an angle parameter that tells you the direction (in degrees) that the orientation changed.
Use this event to perhaps re-align controls on the page or maybe even show an entirely new page.
This event is called when an unsupported browser connects to a web application. If you do nothing in the event, an error page is displayed that explains the problem and links to supported browsers.
But you can override this behavior by providing a custom error message (either as text or HTML). And if you're feeling adventurous, you can allow the browser to connect anyway by returning True.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.