This seems to work:
<script src="scritaculous/scriptaculous.js"
type="text/javascript"></script>
<script src="scritaculous/prototype.js"
type="text/javascript"></script>
Apparently, order matters, scriptaculous first, then prototype. not enitrely
sure why it doesn''t work the other way.
On 3/16/06, Daniel Herrero
<herrerodani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hello, first of all, sorry for my English, I´m a Spanish student and I´m
> having some problems with script.aculo.us. These are the following:
> I have a XML file like this:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <?xml-stylesheet type="text/xsl"
href="barraNav.xsl"?>
> <barraNav>
> <boton>
> <imagen>img/page_text.gif</imagen>
> <accion>archivoNuevo</accion>
> <textoAyuda>Crear un archivo nuevo</textoAyuda>
> </boton>
> </barraNav>
>
> and I want to transform it to an HTML using XSL, the file which is doing
> to do this is barraNav.xsl, and it is shown here:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform
> ">
> <xsl:output method="html" encoding="iso-8859-1"/>
> <xsl:template match="barraNav">
> <html>
> <head>
> <script src="scritaculous/prototype.js"
> type="text/javascript"></script>
> <script src="scritaculous/scriptaculous.js"
> type="text/javascript"></script>
> <link rel="stylesheet" type="text/css"
href="barraNav.css" />
> </head>
> <body>
> <div id="barraNav">
> <div id="manejador">
> </div>
> <div id="barraBot">
> <xsl:apply-templates select="boton"/>
> </div>
> </div>
> <script language="javascript"
type="text/javascript">
> var d = $(''manejador'');
> alert(d);
> </script>
> </body>
> </html>
> </xsl:template>
>
> <xsl:template match="boton">
> <button value="{textoAyuda}|{accion}"
textoAyuda="">
> <img src="{imagen}" />
> </button>
>
> </xsl:template>
>
> </xsl:stylesheet>
>
> You can see I want to include prototype.js and scriptaculous.js in the
> final HTML. I´m using Mozilla Firefox, and when I do a preview of the final
> page, it crashes or doesn´t show anythig and gives the following errors in
> the javascript console:
> - $break is not defined in prototype.js in line 227.
> - $ is not defined in
>
> If I delete the line <script
src="scritaculous/scriptaculous.js"
> type="text/javascript"></script> , it goes ok and alerts
[object
> HTMLdivElement] as is espected. What can be the cause of the error?
> Thank you and have a good time.
>
>
> --
> Daniel Herrero Dávila
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
--
===========================Brian Peiris
Brampton, Ontario, Canada
brianpeiris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
brianpeiris-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
===========================
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs