Link to home
Start Free TrialLog in
Avatar of ajosephson
ajosephson

asked on

Java script failes when in .ASP

Hi,

I am trying to insert a java scroller (http://www.dynamicdrive.com/dynamicindex2/mikescroll.htm) into an ASP page, however IE5 displays 'error on page'..

The script works fine as a  .HTML file but when I put it into a .ASP file in the /scripts directory the error occurs..

Can some pls help.. Rdgs AJ
Avatar of AzraSound
AzraSound
Flag of United States of America image

can you post the output of your html page?  are you just referencing the .js file like:

<script language="JavaScript" src="script.js>
Avatar of ajosephson
ajosephson

ASKER

There isn't any output displayed - only ' ! Done, but with errors on page'  is displayed on  the Status bar at the bottom left of the window..

The .JS files are in the /SCRIPTS folder..  and should be referenced as per the first two lines in the script

<script language="JavaScript" src="dhtmllib.js"></script>
<script language="JavaScript" src="scroller.js"></script>


I appreciate your help.. AJ
well if the scripts folder is a subfolder of the directory where your asp page is located, then you should reference its relative path something like

....  src="SCRIPTS\dhtmllib.js">

if this isnt the case, then check that you havent accidentally placed the script tags inside of asp tags or something like that
also you can doubleclick on that icon in the bottom left to pop up a more informative error message.  You can also set up IE to always display a more verbose error message window by going to tools->options and then go to the advanced tab.
Thanks for the help..

The error was 'scroller not defined' line 11..

The SCRIPTS directory did not have READ permissions.. it appears to be OK now..

Is this a security concern?

AJ
It's time to clean up this topic area and that means taking care of this question. Your options at this point are:

1. Award points to the Expert who provided an answer, or who helped you most. Do this by clicking on the "Accept Comment as Answer" button that lies above and to the right of the appropriate expert's name.

2. PAQ the question because the information might be useful to others, but was not useful to you. To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.

3. Delete the question because it is of no value to you or to anyone else.  To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.

If you elect for option 2 or 3, all you need to do is post right here as a comment, and I will take care of the rest.  We also request that you review any other open questions you might have and deal with them as necessary.

PLEASE DO NOT AWARD THE POINTS TO ME.

____________________________________________



Hi Experts:

In the event that the Asker does not respond, I would very much appreciate your opinions as to which Expert ought to receive points (if any) as a result of this question.  Likewise, you can also suggest that I PAQ or delete the question.

Experts, please do not add further "answer" information to this question.  I will be back in about one week to finalize this question.

Thank you everyone.

Moondancer
Community Support Moderator @ Experts Exchange

P.S.  Old questions do not properly reflect the comment date/time sort order, Engineering has been advised.  Just want to bring this to your attention.
Netminder

The questions are still open as an acceptable answer is yet to be provided.  I would be happy for the questions to be closed/deleted and the points redeemed.

Rdgs
AJ
ASKER CERTIFIED SOLUTION
Avatar of Moondancer
Moondancer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial