[iPhone] Opera Mini - Javascript documentation

Forums » Dev.Opera » General Web Development Discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

28. April 2010, 00:47:22

iacido

Posts: 1

[iPhone] Opera Mini - Javascript documentation

Hi all,

I'm developing a website for mobile devices and I set up all pages to change onOrientationChange. this means that I can change from portrait mode to landscape mode and the website applies the correct CSS.

I'm wondering which will be the Javascript code for Opera Mini in the iPhone?

where can I find samples, or perhaps a small code that works. even better the JavaScript documentation to know which DOM is supporting, etc...

Any idea?

Thanks in advance.

30. April 2010, 19:20:15

iphoneman

Posts: 5

There's no real JS support in Opera Mini. I think the Opera people would tell you to use CSS media selectors although it's probably going to be some work porting your current CSS.

10. May 2010, 23:30:32

lucideer

a B person

Posts: 5114

Opera Mini has zero javascript support. When Opera Mini requests your page from your server, the page is sent to Opera's MiniServers - these servers have full instances of the Opera Presto rendering engine (which is in Opera desktop and has full support for javascript) - the javascript is executed in Presto on the server, and the result of that execution is formulated into another language (called OBML) that Opera Mini understands - OBML has some limited support for click events and some other stuff.

13. May 2010, 09:44:49

SAGRID

Posts: 2753

Originally posted by lucideer:

Opera Mini has zero javascript support.


It's true that Opera Mini 5 runs like Bolt now but the user may 'call' the next event in javascript. Bolt can resolve a request only via click back (for uncached pages) or deleting the cookies (all of them).
God's In His Heaven, All's Right With The World

13. May 2010, 13:52:15

lucideer

a B person

Posts: 5114

Originally posted by SAGRID:

It's true that Opera Mini 5 runs like Bolt now but the user may 'call' the next event in javascript


True - I should have mentioned that. Opera Mini's event support can tell Presto to interpret some javascript for it on demand like... I do believe.

Forums » Dev.Opera » General Web Development Discussions