Active Server Pages error 'ASP 0138'
Nested Script Block
/cart/10browse.asp, line 78
A script block cannot be placed inside another script block.
Here is the part generating the error:
<script language="JavaScript1.2" type="text/javascript">
<!--
if (isMenu) {
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='hierArrays.js'
TYPE='text/javascript'><\/SCRIPT>");
}
//-->
</script>
Line 78 is the document.write line. I don't know why it's trying to parse
the script tags on the server. Any ideas?
--
:: Dan Short :: <- "Selection to Snippet" King
Team Macromedia DW Volunteer
http://www.macromedia.com/support/forums/team_macromedia
Web Design: http://www.web-shorts.com
Hosting: http://www.irapid.net
FAQ: http://www.dwfaq.com
Snippets Exchange: http://www.dwfaq.com/snippets/
Take out the witty remark to reply.
--
:: Dan Short :: <- "Selection to Snippet" King
Team Macromedia DW Volunteer
http://www.macromedia.com/support/forums/team_macromedia
Web Design: http://www.web-shorts.com
Hosting: http://www.irapid.net
FAQ: http://www.dwfaq.com
Snippets Exchange: http://www.dwfaq.com/snippets/
Take out the witty remark to reply.
"Murray *TMM*" <mur...@hahagreat-web-sights.com> wrote in message
news:a1ci2v$gg4$1...@forums.macromedia.com...
> Dan:
>
> Using hiermenus, hmmmm?
>
> --
> Murray --- ICQ 71997575
> Team Macromedia Volunteer for Dreamweaver
> http://www.macromedia.com/support/forums/team_macromedia/
> (Replies to the newsgroup get the fastest response)
> ==================
> http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) technotes
> ==================
>
> "Dan Short - TMM" <d...@wittyremark.web-shorts.com> wrote in message
> news:a1chkp$fbb$1...@forums.macromedia.com...
Using hiermenus, hmmmm?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
http://www.macromedia.com/support/forums/team_macromedia/
(Replies to the newsgroup get the fastest response)
==================
http://www.DreamweaverFAQ.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) technotes
==================
"Dan Short - TMM" <d...@wittyremark.web-shorts.com> wrote in message
news:a1chkp$fbb$1...@forums.macromedia.com...
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='hierArrays.js'
TYPE='text/javascript'><\/SCR" + "IPT>");
tom
"Dan Short - TMM" <d...@wittyremark.web-shorts.com> wrote in message
news:a1chkp$fbb$1...@forums.macromedia.com...
--
:: Dan Short :: <- "Selection to Snippet" King
Team Macromedia DW Volunteer
http://www.macromedia.com/support/forums/team_macromedia
Web Design: http://www.web-shorts.com
Hosting: http://www.irapid.net
FAQ: http://www.dwfaq.com
Snippets Exchange: http://www.dwfaq.com/snippets/
Take out the witty remark to reply.
"tom muck" <tom...@basic-drumbeat.com> wrote in message
news:a1ci26$gds$1...@forums.macromedia.com...
Change this line...
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='hierArrays.js'
TYPE='text/javascript'><\/SCRIPT>");
...to this...
document.write("<" + "SCRIPT LANGUAGE='JavaScript1.2' SRC='hierArrays.js'
TYPE='text/javascript'><\" + "/SCRIPT>");
What I'm trying to do here is fool the parser into thinking that this isn't
an embedded <script> tag (which it is, by the way :)
Hopefully, the suggested concatenation should do it.
I noticed it was declaring javascript as the serverside language so I used +
as the concatenator - you know what to do if that is not the case :)
HTH
Rob
www.robgt.com/
RobGT minisuite and others - www.robgt.com/ultradev/extensions/
Team Macromedia Volunteer for UltraDev
www.macromedia.com/support/forums/team_macromedia
--
:: Dan Short :: <- "Selection to Snippet" King
Team Macromedia DW Volunteer
http://www.macromedia.com/support/forums/team_macromedia
Web Design: http://www.web-shorts.com
Hosting: http://www.irapid.net
FAQ: http://www.dwfaq.com
Snippets Exchange: http://www.dwfaq.com/snippets/
Take out the witty remark to reply.
"RobGT" <r...@lighthouseuk.removeme.net> wrote in message
news:a1cjjn$k92$1...@forums.macromedia.com...