Sorry for some unwanted english mistakes, but I am writing from iPad and the
automated corrector changed something here and there
Inviato da iPad
Il giorno 16/mag/2014, alle ore 21:34, Pierluigi Quagliotto
pierluigi.quaglio...@unito.it ha scritto:
Dear Brenton, and Dear Angel,
The task could not be easy, but also, an answer could be done. At least for
the two most important and used Content Managing Systems, also known as CMS,
the thing is possible.
For the easiest CMS to be managed, Wordpress, the most used to host blog
sites, please refer to this address:
http://pinostriccoli.altervista.org
The author, Pino Striccoli, used this to give a lot of info and examples to
his students. Several pages are a good way to shed light on the way JMol or
JSMol can be used into it.
I am ready to publish a site made with Joomla, the other CMS. This site
should have to be ready about two months ago, but unfortunately, the hosting
service of my University was rebuilt in those last months, so I am waiting
that all the system can work well before activating the site.
So, it is possibile and the real problem is how to solve some problems. As
Angel anticipated, in CMS site or blogs, the author and users can normally
introduce plain text. Sometimes it is possibile to format the text with some
HTML commands, but this is related to a choice of the site Administrator that
can activate this option.
If the blog is your personal blog you should have access to the
administrative panel of the blog.
In this case you should be able to solve our problems even it could seem a
bit tricky at a first sight. The page of an article or post is built by the
CMS that drive all the process. The text of the post is inserted in a large
part of HTML code that the CMS build to let your browser to give the typical
graphical aspect of the site. You have to face 2 main problems. To prepare a
HTML page that uses JSMol, you should introduce the declaration of the jsmol
file, with javascript. The second one is to make able the CMS to read the
post as an HTML code so that it can be introduced by the CMS into the page
to be delivered.
Those two problems can be solved since those CMS can be extended in their
basic fucntins by using extension that can be modules, components and
plugins. Both Joomla and Wordpress have plugins that can help the
admiistrator to insert code into the HEAD section, to solve the Javascript
declaration and also plugins that can let you inserting HTML code into the
post.
Depending the complexity of the JSMol use into the blog post, you should
become familiar also with javascript and PHP, two programming languages.
you can start to replicate some very basic example pages of JMol eamples by
looking into their code and trying to put all things in the right place into
the CMS. Only when things will become a bit more complicated, you should
acquire javascript and PHP knowledge.
I started in the last days of December and a version of my site was working
and to be published by the end of February, but the problems in the hosting
service caused me to delay.
Do not give up... We were all noob at our beginning... The great problem is
to have time.
Just a final note: all what I described is possible if you are the
administrator of rhe blog. if you only want to show some JSMol application
into a post of an existing blog of which you are not the owner and
administrator, it is nearly impossible, because to avoid hacking, the blogs
and sites do not permit to introduce code to simpel users.
Good luck!
Pierluigi Quagliotto
Inviato da iPad
Il giorno 16/mag/2014, alle ore 15:36, Angel Herráez angel.herr...@uah.es
ha scritto:
Brenton,
That's not easy. Not just a question of how to edit html code, but
blogs have their underlying engines designed to easy editing TEXT,
which make doing advanced under-the-hood things actually more
complex.
Have a look at
http://wiki.jmol.org/index.php/Blogs_Using_Jmol
http://wiki.jmol.org/index.php/CMS_Using_Jmol
On the other hand, the HTM files included in J(S)mol download are
templates that you could use as code to use and customize, but that's
probably not going to work in a blog.
Another choice is using Jmol Export to Web, an utility included in
the Jmol application. It will build fpr you web pages with embedded
JSmol into them, but probably not working inside a blog.
I'd rather not discourage you, but you may need to abandon your plan.
Doing sophisticated things requires time to learn, by practice, trial
and error. No quick simple recipe!
Good luck!
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium