Jump to content

why does chrome browser become nuisance?


o0TarZan0o
 Share

Recommended Posts

Hi, I am practicing examples along ebook of author Jacob Seidelin, when rendering jewel to screen, chrome display error:

 

8ozn.png

 

 I have to run it in localhost... but it only a half of trouble, although chrome can render jewel but I don't think it is jewel

 

ciop.png

 

while firefox can execute game without trouble, if I want port app to market, you have any idea for it can get on ios and android (change game feature, cordova version...)

 

ps: of course I'll make other game project :D

Link to comment
Share on other sites

It seems Chrome has tightend it's security since the book was written.

 

You could either start chrome with lesser securtiy (under windows hit [Win-Key]+R and type in "chrome --disable-web-security", under linux or mac open a Terminal and type the same) or you could use Brackets as an editor. It starts a local webserver for you, when you want to test a programm.

 

This should work for tests. I think if you run tests with these sucessfully, the game should work as a webapp as well (Running as a webapp is not the same as running from a local file, so security is less tight).

 

Link to comment
Share on other sites

well, why editor relate to this problem?! (of course I had a favorite editor :)  ) I don't have confident enough to throw app to phonegap when it only can run well under firefox ... 

 

ps: you have any hybrid app which was approved on both markets (android, ios)?

Link to comment
Share on other sites

The editor Brackets is just a recommendition, if you don't want to set up a local webserver (it's quite good on it's own, but for this case, that's the point of using it).

 

I don't have apps in markets on either platform, but following the book you mentioned I could create webapps that ran on my ipad1 (ios5.x). Perhaps someone else can give you better directions.

Link to comment
Share on other sites

  • 2 weeks later...

- snip -

 

ps: really we have illusion about real powerful of HTML ...

 

Hardly. HTML5 is powerful - it would not be safe if just any JavaScript from any file sitting on your drive could be ran. Hence you have to start a local web server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...