Part of the user interface gets lost

rob278
4 Posts
rob278 posted this 28 February 2016

I want to use a flash generated animation in a Joomla website. I've created a template with Themler and added the necessary Java scripts in the head by editing the template manualy (it would be nice to have this functionality within themler). So far so good.
I use the Insert HTML link in themler to put the actual java animation in the Joomla page ( the code for that is something like this: <canvas id width height style></canvas>).
For the animation to start on loading the page I only have to put an onload="init();" statement in the body tag. If I do so it works, but when i want to edit the template again in themler all links in the INSERT part of the user interface are gone. When I remove the onload="init();" statement from the body tag the controls are bach again.

I want to use a flash generated animation in a Joomla website. I've created a template with Themler and added the necessary Java scripts in the head by editing the template manualy (it would be nice to have this functionality within themler). So far so good. I use the Insert HTML link in themler to put the actual java animation in the Joomla page ( the code for that is something like this: &lt;canvas id width height style&gt;&lt;/canvas&gt;). For the animation to start on loading the page I only have to put an onload="init();" statement in the body tag. If I do so it works, but when i want to edit the template again in themler all links in the INSERT part of the user interface are gone. When I remove the onload="init();" statement from the body tag the controls are bach again.

Last edited 28 February 2016 by rob278

Vote to pay developers attention to this features or issue.
8 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 01 March 2016

Hi,

We are investigation this issue.

Thank you!

Hi, We are investigation this issue. Thank you!
Support Team
Support Team posted this 01 March 2016

Please add Java scripts in the head using Additional Head Html

addhead.png

Please add Java scripts in the head using Additional Head Html !addhead.png!
rob278
4 Posts
rob278 posted this 02 March 2016

That is a nice option for adding javascript to the head of my page. I didn't know it was there. It only does not solve my onload="init();" problem, for that has to be in the body tag.

That is a nice option for adding javascript to the head of my page. I didn't know it was there. It only does not solve my onload="init();" problem, for that has to be in the body tag.
Support Team
Support Team posted this 02 March 2016

Create custom javascript file ( name example - slider_init.js) with code:

window.onload = init();

And include this file after necessary Java scripts in the head using Additional Head Html.

Create custom javascript file ( name example - slider_init.js) with code: window.onload = init(); And include this file after necessary Java scripts in the head using Additional Head Html.

Last edited 03 March 2016 by Support Team

rob278
4 Posts
rob278 posted this 07 March 2016

Hi,
I'm not Java Expert but loading the script with the code "window.onload = init();" is not starting the java animation. Adding the code "onload="init();""to the body tag does start the animation but gives problems with the Themler scripts.

Hi, I'm not Java Expert but loading the script with the code "window.onload = init();" is not starting the java animation. Adding the code "onload="init();""to the body tag does start the animation but gives problems with the Themler scripts.
rob278
4 Posts
rob278 posted this 07 March 2016

The java code that does the trick is:

function init() {
    // some code to present a Java animation
}
window.onload = init;

If this is used the Themler scripts are not affected.

The java code that does the trick is: function init() { // some code to present a Java animation } window.onload = init; If this is used the Themler scripts are not affected.
Support Team
Support Team posted this 07 March 2016

Hello Rob,
I'm passing your question to our developers. We'll contact you when solution is available.

Regards,
Aileen

Hello Rob, I'm passing your question to our developers. We'll contact you when solution is available. Regards, Aileen
Support Team
Support Team posted this 09 March 2016

Please provide an access to the site.

Please provide an access to the site.
You must log in or register to leave comments