I’m looking to externalise the carousel from my php page. It was all
created in FW then changed to PHP to bring in the database, but now
the carousel doesn’t work, so I’m thinking that if I externalise it,
then there won’t be a conflict. Would I simply copy the lump of
javascript from the page and reference it back in?
The Carousel effect uses several script tags. There should be external
script requests for prototype.js, scriptaculous.js, and glider.js, in
that order, followed by a script tag in the Before /HEAD part of the
page containing the specific code to start up the effect based on what
you called the parts of the carousel. If you move all of these in
their order into your php page, it should just work. But you might
find it easier to convert your Freeway page to PHP within Freeway
(turn it inside out) rather than post-edit the Freeway code in another
application. For one thing, that would mean you could continue to edit
it without having to repeat your machinations each time you do.
I’m looking to externalise the carousel from my php page. It was all
created in FW then changed to PHP to bring in the database, but now
the carousel doesn’t work, so I’m thinking that if I externalise it,
then there won’t be a conflict. Would I simply copy the lump of
javascript from the page and reference it back in?
The Carousel effect uses several script tags. There should be
external script requests for prototype.js, scriptaculous.js, and
glider.js, in that order, followed by a script tag in the Before /
HEAD part of the page containing the specific code to start up the
effect based on what you called the parts of the carousel. If you
move all of these in their order into your php page, it should just
work. But you might find it easier to convert your Freeway page to
PHP within Freeway (turn it inside out) rather than post-edit the
Freeway code in another application. For one thing, that would mean
you could continue to edit it without having to repeat your
machinations each time you do.
I’m looking to externalise the carousel from my php page. It was
all created in FW then changed to PHP to bring in the database, but
now the carousel doesn’t work, so I’m thinking that if I
externalise it, then there won’t be a conflict. Would I simply copy
the lump of javascript from the page and reference it back in?
I did a little work around Walter - I popped it onto another page and
referenced it through an iFrame - which works well for me as I can
change / update carousel items whilst the PHP page can be kept
separate - maybe not ideal, but certainly good enough for now until I
actually work out how to do it all correctly.