<script src="" type="text/_javascript_"></script>
<script src="" 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
<[EMAIL PROTECTED]> 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>
<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="" type="text/_javascript_"></script>
<script src="" type="text/_javascript_"></script>
<link rel="stylesheet" type="text/css" href="" />
</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="" />
</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="" 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@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
============================
Brian Peiris
Brampton, Ontario, Canada
[EMAIL PROTECTED] or [EMAIL PROTECTED]
============================
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs