Hi Maverick users,
I have a simple problem. Of course, I'd like a simple solution :-)
We use a header JSP across many JSP pages. On some of those JSP pages, we
have Javascript functions available (inside the head tag), but not on all
pages.
We use the ${wrapped} and Maverick transformation to
Why not just put all the javascript functions in a .js file and then just
include that in the pages:
script language=javascript src=functions.js/
--jim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cyrille Bonnet
Sent: Wednesday, September 01, 2004
Hi Jim,
Thanks for your suggestion.
I guess that is similar to my workaround #1 (all Javascript functions in all
pages). That works all right, but I'd prefer to have only the Javascript
functions I need in that page included.
Something like:
script language=javascript src=functions1.js/
For
Indeed, the solution presented below is best, because then the browser
will just cache the entire .js file.
However, I've had problems using the XML shortcut for empty tags in
this particular case, so always do script src=.../script
Cheers,
doug
On Sep 1, 2004, at 4:49 PM, jim moore wrote:
Why
From Cyrille Bonnet
Hi Jim,
script language=javascript src=functions1.js/
For page1
And:
script language=javascript src=functions2.js/
For page2.
(indications on wether to include functions1.js or functions2.js would
be
included in maverick.xml as a transform)
There are a