I would guess it's because xml formatted jsp tends to collapse the
<script ...></script> tags to <script ... />, which Internet Explorer
doesn't like.  I had this same issue and fixed it by inserting an empty
comment inside the script tag body like:

<script type="text/javascript"
src="/magnoliaAuthor/docroot/js/mooTools/mootools-1.2.1-core-yc.js"><!--
--></script>

BTW, I didn't have the problem when I viewed my pages with a Firefox
browser.

--David


Matteo Pelucco wrote:
> Hi All...
>
> A simple question:
>
> WHY this template works:
>
> -----------------
> alert("1");
> <script type="text/javascript"
> src="/magnoliaAuthor/docroot/js/mooTools/mootools-1.2.1-core-yc.js"></script>
>
> alert("2");
> <script type="text/javascript"
> src="/magnoliaAuthor/docroot/js/jQuery/jquery-1.2.6.pack.js"></script>
> alert("3");
> -----------------
> output: as expected --> libraries imported and 1,2,3 alerts..
>
>
> BUT this not?
>
> -----------------
> <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page";>
>
> alert("1");
> <script type="text/javascript"
> src="/magnoliaAuthor/docroot/js/mooTools/mootools-1.2.1-core-yc.js"></script>
>
> alert("2");
> <script type="text/javascript"
> src="/magnoliaAuthor/docroot/js/jQuery/jquery-1.2.6.pack.js"></script>
> alert("3");
>
> </jsp:root>
> -----------------
> output: only first library imported, alert only 1...
>
>
> ????????????
>
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> ----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------

Reply via email to