http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Tapestry-5-4-and-JQuery-integration-td5724723.html

Previously if I where to replace $ with jquery I could get it to work, but
now it complains that it is not aware of the jquery :)

http://stackoverflow.com/questions/18796381/tapestry-5-4-call-jquery-more-than-once

|define(["jquery"],  function($)  {
    var  privateFunc=  function(args)  {
        options=  {
            placement:'right',
            trigger:  'hover',
            container:  'body',
            html:  true
        };
        $('.pop').popover(options);
        $('.pop').popover('show');
    };
    return  {  publicFunc:  privateFunc};
});|


http://tapestry.apache.org/release-notes-54.html
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git
http://people.apache.org/~hlship/t5api/
http://jumpstart.doublenegative.com.au/jumpstart7/



====================================
[email protected] - Apr 26, 2014; 4:18pm
Re: T5.4 Bootstrap Carousel / JQuery load at top of page

Hello again,

Adding @Import(library = "context:js/carousel.js") to my Layout.java  seems
to have loaded up after jquery down the bottom of the page - which is what
I was after (rather than within the template's head tag).

My carousel still doesn't work.  Being late in the evening, I will tidy up
my code in the morning and post a link/example.


Cheers
Chris
====================================
 Apr 26, 2014; 3:50pm
T5.4 Bootstrap Carousel / JQuery load at top of page
[email protected]
259 posts

Hi Tapestry Users,

I'm porting one of the default bootstrap themes as a T5.4 exercise.

Looking at the rendered page source, jquery gets added at the end of the
page with 5.4. I think this is making my js script for document.ready in
the head not being executed.  Firebug is telling me there is no reference
to $

How do I get jquery.js loading at the top of the page?  I presume this will
get my carousel to work.

Cheers

Reply via email to