I need Javascript help

May 9, 2011 at 06:40:26
Specs: Windows 7
What am I doing wrong?

This is the code I want Javascript to spit our:

<xsl:if test="@School='xyz'"/>
<xsl:if test="@Department='abc'"/>

And this is the code I am using:

// JavaScript Document
<script type="text/javascript">
var x = (location.href).substr(20,23);
var y = (location.href).substr(37,40);
var a = new String("<xsl:if test=\"@School=\'");
var b = new String("<xsl:if test=\"@Department=\'");
var c = new String("\'\"/>";

Dreamweaver says theres an error at line six (var b), even though it is identicle to line five. hwat am I doing wrong? Also, I am very new to javascript.

See More: I need Javascript help

Report •

May 12, 2011 at 05:45:55
It may say that the problem is with line 6 but it could be line 5 causing the problem i had this happen a few times before.

Tandem Support

Tandem Web Design

Report •
Related Solutions

Ask Question