Having trouble with Chrome and Processing

327 views
Skip to first unread message

Roberto Aramburu

unread,
Apr 7, 2015, 1:08:14 PM4/7/15
to proces...@googlegroups.com
Hi there!
Im new to the world of Processing.js.

I followed the simple steps in the processing.js website http://processingjs.org/articles/p5QuickStart.html#quickstart
But when I try to load the simple circle sketch, it doesn't appear in Google Chrome. I checked my markup and its correct. I downloaded and saved the Javascript file "processing.js" in the same folder were my index.html file is.
I figured it would be a problem with the browser so I tried using it on Firefox and it works!

What can I do to make Chrome read the damn sketch?

Thanks in advance.







Lee Brunjes

unread,
Apr 7, 2015, 1:28:17 PM4/7/15
to proces...@googlegroups.com
The problem you are having is a security feature in the browser. file:// urls are treated differently in chrome to prevent unauthorized use of local files. You can install a web server and use chrome, or simply develop in firefox.

Basically, the idea here is that I can't just pack along the contexts of /etc/passwd via javascript when you are running a local html file and send it off to my webserver



--
You received this message because you are subscribed to the Google Groups "Processing.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processingjs...@googlegroups.com.
To post to this group, send email to proces...@googlegroups.com.
Visit this group at http://groups.google.com/group/processingjs.
For more options, visit https://groups.google.com/d/optout.

Jim Parker

unread,
Apr 7, 2015, 1:48:10 PM4/7/15
to proces...@googlegroups.com
Or you can develop locally and upload your processing file to your server for testing. Working with a server running on you PC can be painful - it's slow and there are sometimes curious problems that pop up. The people at your web provider are probably better at keeping a server running that you or me.

Jim
-- 

--
Dr. Jim Parker
Department of Art
University of Calgary
403 932 6322

Christian Leon Christensen

unread,
Apr 7, 2015, 2:31:37 PM4/7/15
to proces...@googlegroups.com

For a webserver (looks like you are on a mac) download MAMP. Its plug and play webserver.

Reply all
Reply to author
Forward
0 new messages