Email conversation
From | Niklas Hjelm |
To | Me |
Subject | Using the pop-up script with .asp problem |
Date | 20 October 2005 15:26 |
Hi!
Thank you for providing such a great script, and sorry that I have to bother
you. The problem Im having is that when I try to use the script in an ASP
page I get the following error:
Active Server Pages, ASP 0138 (0x80004005)
A script block cannot be placed inside
another script block.
I have read that you can go around this problem by using an external source.
For instance:
<script src="yourescript.js" type="text/javascript"
language="javascript1.2"></script>
But when I try to do this the entire script fails. Ive tried to use
closePopImage.js
Wich I downloaded from you're page, but it did not work. Could you please
give me a hand?
Regards / Niklas
From | Me |
To | Niklas Hjelm |
Subject | Re: Using the pop-up script with .asp problem |
Date | 21 October 2005 18:00 |
Niklas,
> But when I try to do this the entire script fails. Ive tried to use
> closePopImage.js Wich I downloaded from you're page, but it did not
> work. Could you please give me a hand?
The script should work like this. Do you have a demo page where I can see
the failure?
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
From | Niklas Hjelm |
To | Me |
Subject | Re: Using the pop-up script with .asp problem |
Date | 21 October 2005 18:36 |
Hi!
You're right, it does work when I try it again. I think I copied javascript
tags into the .js file, but when I remove them it works fine.
Thank you for you're reply and thank you for a great script. Keep up the
good work.
Regards / Niklas