A way to replace body
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: December 6, 2011 (RSS)
By Djulia - December 5, 2011 - edited: December 5, 2011
Hi,
I would like to modify the value of body in a plugin.
<body class="..."> with <body class="..." onload="init()">
It exist a filter ?
Thanks for your suggestions.
Djulia
I would like to modify the value of body in a plugin.
<body class="..."> with <body class="..." onload="init()">
It exist a filter ?
Thanks for your suggestions.
Djulia
Re: [Djulia] A way to replace body
By Dave - December 6, 2011
Hi Djulia,
Would it work to use jquery's document-ready code:
http://api.jquery.com/ready/
You could just output it in the footer of the page:
Would that work for you?
Would it work to use jquery's document-ready code:
http://api.jquery.com/ready/
You could just output it in the footer of the page:
<script><!--
$(document).ready(function() {
init();
});
//--></script>
Would that work for you?
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com