We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › processing on blog
Page Index Toggle Pages: 1
processing on blog (Read 639 times)
processing on blog
Aug 5th, 2009, 2:36am
 
hi.. how do you place a processing program on a blog? just like those tutorials on the processing website..

my understanding so far is to go to File>>Export.. then an applet folder will be created.. how do i proceed to put the application onto a blog?

sorry for the noobish qn..
Re: processing on blog
Reply #1 - Aug 5th, 2009, 3:28am
 
I recall an old thread where people stated that some blogging platforms (WordPress?) didn't allow using Java applets in the article, but they might have found workarounds.
If you have access to the source of your article, open the .html file generated by the export function, and copy the whole part between <div id="content"> and the last </div> (including these tags) in the article at the location where you need the applet. You might want to change the id if it conflicts with the page (eg. rename it "Processing_content" or "my_sketch_name_content").

PS.: that's not a syntax question (not the syntax of Processing at least!), you should have put it in the Integration section instead).
Re: processing on blog
Reply #2 - Aug 5th, 2009, 4:01am
 
depending on what you aim for. Maybe Processing.js is something for you. Its a port of processing to javascript so it runs without the need of an applet.

http://processingjs.org/
Re: processing on blog
Reply #3 - Aug 5th, 2009, 5:08am
 
I would be wary of sending people to a blog with loads of java applets running on it. It would choke your machine as soon as you visited it and the user would wonder what the hell was going on with their machine whilst the page is taking ages to load.

I would recommend using javascript to write the applet to the page when you click a link, which would be much more user friendly.

I tried out such a method here:

http://www.robotacid.com/PBeta/eye4anEye/index.html

But applet object by fjen should be able to do the same as well.

http://appletobject.org/
Re: processing on blog
Reply #4 - Aug 5th, 2009, 7:08am
 
AppletObject now lives at http://github.com/fjenett/appletobject/tree/master

It might depend on the blog software, but lot of them just show the start and load the body after going to the article, so the "lot of Java applet" might not be relevant. But indeed I saw that some browser/system combinations still doesn't like applets... Sad

Note that as an alternative to "click to display applet", you can just make a JNLP file (Java Web Start). Haven't tried yet with Processing sketch.
Re: processing on blog
Reply #5 - Aug 6th, 2009, 2:23pm
 
thanks for the answers! i went to processing.js site and didnt understand it at all.. i clicked the download but was brought to a page full of code.. its like the source code of processing.js?

where am i supposed to type my code for my sketch?  Huh  Undecided
Page Index Toggle Pages: 1