Not sure it works in JHTMLBehaviour either - its purpose isn't to add
html behaviour to the page per see but to enable easier loading of
scripts into the head.
I understand the point about it tying JDocument to mootools though.
Almost all js libraries have a similar event to the mootools js
domready event, so could I not pass that method in as a variable, so
if you really really wanted to use jquery you could pass in
"$(document).ready(function () {
%s
}"
as your method and that would be inserted in the head as:
"$(document).ready(function () {
alert('bar');
}"
On 5 June, 18:14, Rob Schley <
rob.sch...@community.joomla.org> wrote:
> I'm with Ercan, while it might be a slight timesaver, JDocumentHTML is not
> the place for that because it would couple JDocument with MooTools. If you
> can figure out a way to make it work in JHtmlBehavior which is already
> coupled with Mootools but, as we discussed previously, can be swapped out,
> we could probably use it.
> Best,
> Rob
>
> On Fri, Jun 5, 2009 at 6:56 AM, dukeofgaming <
dukeofgam...@gmail.com> wrote:
> > How about something that supports both domready & load?, the second one is
> > not so used but... you never know. I see the need of this btw, I know I
> > would use it, and a LOT.
>