Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 v3.3 BUG+FIX: JS outside HTML tags
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

DarlingBri
Junior Member

United Kingdom
378 Posts

Posted - 21 February 2002 :  16:26:48  Show Profile  Visit DarlingBri's Homepage
I'm not totally sure this is a bug, but forum.asp includes the line of code:


<script language="JavaScript">
function ChangePage(){document.PageNum.submit();}
</script>


When you view sounce on forum.asp in your browser, including on this Snitz site, that code appears *first* - ie, above the <html> tag.

It's my understanding that that is incorrect HTML - whether a javascript is put in the head tags or in the body, it still needs to sit within the HTML tags?

Just noticed this for the first time when adding another JS to form.asp and viewing source to make sure it was returned in the browser.

--Bri

*****
"You know, there's nothing sexier than a girl geek on a big coding run." -Doonesbury

Edited by - Davio on 21 February 2002 18:25:07

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 February 2002 :  18:22:29  Show Profile
This has already been fixed in the next version.

Just move the javascript code after the includes of the inc_top.asp, inc_subscription.asp, inc_moderation.asp files.
%>
<!--#INCLUDE FILE="inc_top.asp" -->
<!--#INCLUDE FILE="inc_subscription.asp" -->
<!--#INCLUDE FILE="inc_moderation.asp" -->
<script language="JavaScript">
function ChangePage(){document.PageNum.submit();}
</script>

<%
You would probably need to do it on topic.asp too.

«-------------------------------------------------»
Read the Do's and Don'ts before you post for help
«-------------------------------------------------»
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.48 seconds. Powered By: Snitz Forums 2000 Version 3.4.07