sandip chitale's blog    Sandip Chitale's blog (scblog)
NOTE: I have moved many of my modules to NetBeans Plugin Portal . Please check there for latest versions of modules described on this blog.
20080420 Sunday April 20, 2008

Open Location in iPhone Mode in Firefox


I have been hacking Firefox. Here is a simple iPhone mode add-on. This is very basic mode. You can type an address in the address field and hit ENTER. You can use the Reload button to reload the page. You can use Go Back and Go Forward buttons to navigate the history. You can use Add Bookmark button to add a bookmark to the current page. You can use the Show Bookmarks button to show the Bookmarks window. Just lkie the iPhone - the address bar is hidden when the document loads. You can reshow the address bar by clicking on the battery indicator bar.

Any URL can be invoked in the iPhone mode from command line by using the -iphone command line argument.

> firefox -iphone URL

Use the File:OpenLocation in iPhone Mode... menu item to launch the iPhone mode.

Open Location in iPhone Mode

iPhone ModeiPhone mode collapsed address bar

Talk about recursive :)

Download the add-on.

Download the NetBeans 6.1 project.

DISCLAIMER: This add-on is experimental. So no guarantees. Use the add-on at your own risk.


Posted by sandipchitale ( Apr 20 2008, 11:51:52 AM PDT ) Permalink Comments [44]


Trackback URL: http://blogs.sun.com/scblog/entry/iphone_emulator_for_firefox
Comments:

ok

Posted by 193.205.57.241 on April 23, 2008 at 12:18 AM PDT #

Very cool. Just tried it.

Posted by Winston Prakash on April 23, 2008 at 10:40 AM PDT #

I have updated the build script in the NetBeans 6.1 project. Now it builds and installs the iphone.xpi.

Posted by Sandip on April 26, 2008 at 10:11 AM PDT #

Now any URL can be invoked in the iPhone mode by using the:

> firefox -iphone URL

command line argument.

Posted by Sandip on April 27, 2008 at 08:25 AM PDT #

How do I rotate it?

Posted by me on April 30, 2008 at 01:55 PM PDT #

Not yet. I am working on it.

Posted by Sandip on April 30, 2008 at 01:59 PM PDT #

Is there is a way to enable the Phone keyboard.

Posted by mpselvam on July 25, 2008 at 08:38 AM PDT #

Nice. Need the ability to rotate as most websites would be viewed in landscape.

Posted by toddv on August 04, 2008 at 06:46 AM PDT #

i could'nt open the XPI file. and WHAT am i supposed to do with the ZIP file?????

Posted by Jerry on August 10, 2008 at 10:59 AM PDT #

i found it out.

Posted by Jerry on August 10, 2008 at 11:31 AM PDT #

Maybe it uses the gecko rendering engine?

Posted by Marco on August 21, 2008 at 07:12 AM PDT #

Shit tool!

it uses not the iphone user agent

Posted by Horst on August 24, 2008 at 04:15 AM PDT #

@Horst:
This is an awesome tool. How about you learn to use firefox plugins, such as the "User Agent Switcher", and switch it yourself?

https://addons.mozilla.org/en-US/firefox/addon/59

Here is the User-Agent info for the iPhone:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)

Thats all you need. Stop your bitching unless you're paying for it.

Posted by bsprogs on August 26, 2008 at 04:18 PM PDT #

thank you, this is helpful.

Posted by ford152 on August 27, 2008 at 05:41 AM PDT #

Nice tool - though I'm sure Flash isn't supported by iPhone yet? I was looking for something which didn't play Flash - as I'm developing a mobile video community!

Posted by Adam on September 15, 2008 at 08:44 AM PDT #

ahojte

Posted by 217.67.22.14 on October 28, 2008 at 07:40 AM PDT #

Looks like a great tool. For the less knowledgeable (me) could anyone please give a little more guidance as to how to install this? Much Appreciated!

Posted by 24.5.61.240 on October 29, 2008 at 12:41 PM PDT #

Sorry - that last comment was by Doug!

Posted by Doug on October 29, 2008 at 02:07 PM PDT #

I did install the User Agent plug-in mentioned above and entered the iPhone info(not sure if this is needed), I then went into Start > Run in Windows and entered this to run the app:
"C:\Program Files\Mozilla Firefox\firefox.exe" -iphone yourURL

Posted by c on November 05, 2008 at 06:05 AM PST #

Above mentioned "User Agent" add-in not needed.

Posted by c on November 05, 2008 at 06:18 AM PST #

Also, to install the .xpi file, just open Windows Explorer and drag it into Firefox, it will then start installing.

Posted by c on November 05, 2008 at 06:20 AM PST #

Tho I've noticed I do get this error(even after un-installing the "User Agent") when using this iPhone plug-in:
"Error calling method on NPObject!"
Any ideas?

Posted by c on November 05, 2008 at 06:22 AM PST #

This is what I've been lookin for

Posted by 32.170.69.75 on December 03, 2008 at 11:59 AM PST #

Hi,
I tried your command in the address window, but I didn't get the expected results. How do I invoke the emulator? Thank you in advance for your help.

Posted by Scott Miller on December 09, 2008 at 07:57 AM PST #

I think that the missing user-agent makes the emulator unuseful.

I agree that the previous comment "Shit tool!" is very unpolite, at the same time I think that having people not to being able to tell something is uneseful only because it's free does not make sense.

However, it's "better than nothing", but still not likely to be more interesing than a frame in a html page.

Posted by Julien on December 25, 2008 at 06:58 AM PST #

Shit tool!

Posted by iphone on February 05, 2009 at 12:54 PM PST #

A useful tool for PC based web-developers. It's good enough for basic testing to ensure that navigation menus and such like will be visible to iphone users.
A rotate feature will definitely be a welcome improvement.

Posted by Andy Gee on February 18, 2009 at 06:29 AM PST #

Sorry - that last comment was by Doug!

Posted by wow power leveling on March 11, 2009 at 11:56 PM PDT #

No able to succeed!!!! Pls help me my friend call me at +393460021907. Thx very much
Filippo Conte Cabassi
Reggio emilia

Posted by Filippo Conte Cabassi on March 29, 2009 at 12:12 AM PDT #

This is a very useful tool! The user agent switcher extension must be installed, and firefox restarted to truly emulate the iphone/itouch. Once you add an iphone agent to the switcher extension and switch the user agent to iphone(tools > user agent switcher > iphone), it emulates as it should. Great work Sandip!

Question: how close does it emulate the real device? I have a 320x60 pixel header image on a mobilepress blog and that image goes off the screen on the emulator but fits perfect on an actual itouch. I would love to hear comments on this.

Also, are you still developing this? the rotate feature would be fantastic. I did check http://sandipchitale.blogspot.com/ and http://plugins.netbeans.org/PluginPortal/

Cheers,

Eric

Posted by Eric McQuaid on April 17, 2009 at 08:01 AM PDT #

excellent

Posted by xp registry on June 26, 2009 at 10:41 AM PDT #

Great Job ! Thanks !

Posted by dispy on July 13, 2009 at 09:43 AM PDT #

iphone

Posted by 91.172.2.13 on August 07, 2009 at 08:52 AM PDT #

Too bad it is not compatible with 3.5.5...

Posted by Matt on November 09, 2009 at 01:55 PM PST #

Please update for the latest version of Firefox... (3.5.4 here). Thanks

Posted by Tomaz on November 09, 2009 at 03:40 PM PST #

<a href=<http://www.as.com>adfa</a>
[url=http://www.adasd.com]adf[/url]
sadf

Posted by sunny on November 15, 2009 at 10:00 PM PST #

should not be used as a real-world test, and is therefore not particularly useful
Without using the exact rendering engine of the iphone and without blocking flash in the same way you can't be sure that what you're seeing on here is an accurate representation of what an iphone will see.
little more use than resizing your window

Posted by jim on November 16, 2009 at 02:39 AM PST #

In the game the [url=http://www.vi4s.com/product/Maple_Story_Mesos.html]Maple Story Mesos[/url] is very important, if you had enough [url=http://www.vi4s.com/product/Maple_Story_Mesos.html]MS Mesos[/url] in the game, i think you will had a tall level, but if you do not had enough [url=http://www.vi4s.com/product/Maple_Story_Mesos.html]Cheap Maple Story Mesos[/url], i think now you already worried about how to play the game. so if you need [url=http://www.vi4s.com/product/Maple_Story_Mesos.html]buy Mesos[/url], you can come here and that in here you can [url=http://www.vi4s.com/product/Maple_Story_Mesos.html]Buy Maple Story Mesos[/url] much cheaper.

Posted by Cheap Maple Story Mesos on January 02, 2010 at 04:47 PM PST #

To install just drag iphone.xpi into the addon manager window

Posted by Doug on January 03, 2010 at 04:54 PM PST #

Hi Sandip,

Nice work.

You can find an updated version (firefox 3.5.x) here, it was a very simple metadata change.

I have tested it on 3.5.6/Linux and it works a treat.

http://static.enzy.org/repository/iphone.xpi

Regards,
Antony

Posted by Antony Jones on January 05, 2010 at 03:52 AM PST #

hello, welcome to our game gold website

Posted by aion money on January 06, 2010 at 10:31 PM PST #

<a href="http://www.mabinogivip.com/">mabinogi gold</a> is important in this game. If you do not want to be bullied by the high level of players, you should ear more <a href="http://www.mabinogivip.com/">mabinogi money</a> which can you get a high level in short time. But it is difficulty for a new player to do this. Yet you are lucky because we sell the <a href="http://www.mabinogivip.com/">cheap mabinogi gold</a>. You can <a href="http://www.mabinogivip.com/">buy mabinogi gold</a> from us. I believe that you can play happier with enough <a href="http://www.mabinogivip.com/">mabinogi online gold</a>.

Posted by mabinogi money on January 07, 2010 at 05:14 PM PST #

Do you know that the <a href="http://www.cabalonlinegold.com/">Cabal Online Alz </a> in the game had an important part, in the game if you had enough <a href="http://www.cabalonlinegold.com/"> Cabal Alz</a> then I think you will had an tall level, if you do not had enough <a href="http://www.cabalonlinegold.com/">cabal Gold</a>, then I think if you do not want to spend some money to <a href="http://www.cabalonlinegold.com/">buy Cabal Online Alz</a>, then you need effort to play the game and to make the <a href="http://www.cabalonlinegold.com/">Cabal money</a>.

Posted by cabal Gold on January 15, 2010 at 05:47 PM PST #

If you need <a href="http://www.eveisk-shop.com/">Eve isk</a>, you can <a href="http://www.eveisk-shop.com/">buy eve isk</a> from <a href="http://www.eveisk-shop.com/">eve online isk</a> shop, <a href="http://www.eveisk-shop.com/">buy isk</a> in this way, you can get cheaper <a href="http://www.eveisk-shop.com/">isk</a> than anywhere.

Posted by eve online isk on January 15, 2010 at 05:49 PM PST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed








« February 2010
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
      
       
Today

Get NetBeans 5.5

Locations of visitors to this page

Today's Page Hits: 9


XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

scblog
scblog