Previous Entry Share Next Entry
2016-01

Opera Mini: javascript debugging FAQ

The web is going mobile! And you've decided to catch the wave too.
Good. Well, until you have decided to support all those "dumb" phones...
(And Nintendo Wii, and some TVs)

At least, if you stick to Opera Mini, you will have proper Javascript, XHR, CSS and a lot of other goodies.
But you are inevitably going to debug all this stuff. Here's how:

Q: I am tired of switching to my phone. Is there an emulator?
A: Touch-enabled phones: http://www.opera.com/developer/tools/mini/
Keypad phones: http://www.opera.com/developer/tools/mini/?ver=4

Q: Well, no good. Where are all the Javascript errors?
A: debug:console (You can bookmark this address, of course)

Q: How to view the page source code, then?
A: server:source

Q: But the screen is so tiny?
A: server:source?post=http://your.server.com/script
If you go to this address on Opera Mini, your server will receive HTTP POST request with the following fields:

host: your website domain
url: page you are on
html: html source code ;)


For more information, see:
- http://dev.opera.com/articles/view/opera-mini-web-content-authoring-guidelines/
- http://dev.opera.com/articles/view/opera-mini-5-developers/

Hope this will be useful to somebody :)



This entry was originally posted at http://wizzard.dreamwidth.org/225526.html. It has comment count unavailable comments. Please comment there using OpenID.
Tags: , ,

  • 1
murkt February 14th, 2012
зацени weinre

wizzard0 February 14th, 2012
у меня есть Palm Pre (с webOS 1.4.5), Dell Venue Pro (с Windows Phone 7.5) и LG GX200 (с Opera Mini)

я проверил, он ничего из этого как debug target не поддерживает :)

murkt February 14th, 2012
Жаль... Мне помогло. На третьей вебоси работает, кстати.

wizzard0 February 14th, 2012
Ну weinre действительно хорошая штука, просто AFAIK он никак не пересекается с плоскостью "dumb phones", заявленной в посте :)

murkt February 14th, 2012
Честно признаюсь, что пост проглядел наискосок и не вчитывался :)

  • 1
?

Log in

No account? Create an account