Hi,
verci wrote:
Quote:
Hi guys, sorry if this seems stupid but I'm a newbie, I'm running Windows XP
Pro SP2, IE 7, VS2005, ASP.net 2.0
>
The problem is that I'm trying to display this news scroller made in a
Javascript file(newsscroller.js) in my ASP page, everything works great in a
normal HTML page, I can see the scroller just fine, but in an ASP page it
just does not show, I get some error message that the control has not been
initialize, so far I've been stuck for 2 days and just about given up on
this and just use a plain HTML page for this script, can anyone help me find
out what's wrong? Below you will find my ASP page and the java script file.
>
Regards
I didn't read the HUGE amount of code you provided (a link to a URL
where the problem can be seen would have been wiser). However, if it
works fine in HTML but not in the ASP.NET page, it often has to do with
the DOCTYPE. According to the DOCTYPE, the browser will parse and
interprete the document differently.
Try to change this line:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
into
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
and tell us if it works better.
Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch