Forums

This topic is locked

Why does DW highlight <HTML> ??

Posted 16 Oct 2001 17:57:03
1
has voted
16 Oct 2001 17:57:03 Kevin Abbott posted:
Hi,

I have a problem with Ultradev.

The &lt;HTML&gt; tag is now yellow and all code below it is black.

This did not use to happen before but I can't remember what I did that changed it.

What does this mean?

Thanks

Replies

Replied 16 Oct 2001 18:36:12
16 Oct 2001 18:36:12 Owen Eastwick replied:
You've probably innadvertantly deleted the closing html tag - &lt;/HTML&gt;. Every tag must have its corresponding closing tag ie.

<pre id=code><font face=courier size=2 id=code>
&lt;HTML&gt;
&lt;TABLE&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;
&lt;/HTML&gt;
</font id=code></pre id=code>

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 17 Oct 2001 11:52:56
17 Oct 2001 11:52:56 Kevin Abbott replied:
Hi and thanks for your answer,

I've checked my code and I do indeed have a close &lt;/html&gt; tag.

I've also noticed that this highlighting of the html tag and the rest of the code going black has happend site wide, to all my files!

Here is one of my asp pages:

&lt;%@LANGUAGE="JAVASCRIPT"%&gt;
&lt;!--#include file="../Connections/projectstore.asp" --&gt;
&lt;%
Session("svPFN" = "None";
// *** Validate request to log in to this site.
var MM_LoginAction = Request.ServerVariables("URL";
if (Request.QueryString!="" MM_LoginAction += "?" + Request.QueryString;
var MM_valUsername=String(Request.Form("UsernameField");
if (MM_valUsername != "undefined" {
var MM_fldUserAuthorization="";
var MM_redirectLoginSuccess="loggedin/loggedin.asp";
var MM_redirectLoginFailed="badlogin.asp";
var MM_flag="ADODB.Recordset";
var MM_rsUser = Server.CreateObject(MM_flag);
MM_rsUser.ActiveConnection = MM_projectstore_STRING;
MM_rsUser.Source = "SELECT fnUser, fnPass";
if (MM_fldUserAuthorization != "" MM_rsUser.Source += "," + MM_fldUserAuthorization;
MM_rsUser.Source += " FROM tblAccess WHERE fnUser='" + MM_valUsername + "' AND fnPass='" + String(Request.Form("PasswordField") + "'";
MM_rsUser.CursorType = 0;
MM_rsUser.CursorLocation = 2;
MM_rsUser.LockType = 3;
MM_rsUser.Open();
if (!MM_rsUser.EOF || !MM_rsUser.BOF) {
// username and password match - this is a valid user
Session("MM_Username" = MM_valUsername;
if (MM_fldUserAuthorization != "" {
Session("MM_UserAuthorization" = String(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value);
} else {
Session("MM_UserAuthorization" = "";
}
if (String(Request.QueryString("accessdenied") != "undefined" && false) {
MM_redirectLoginSuccess = Request.QueryString("accessdenied";
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginSuccess);
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginFailed);
}
%&gt;
&lt;html&gt; // THIS IS HIGHLIGHT AS YELLOW IN CODE VIEWER AND ALL CODE FROM THIS POINT DOWN IS BLACK
&lt;head&gt;
&lt;title&gt;USBW - iRequire - Login&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;script language="JavaScript" src="../JS/pagereload.js" hotswap="extJs_1"&gt;&lt;/script&gt;
&lt;script language="JavaScript" src="../JS/findobject.js" hotswap="extJs_2"&gt;&lt;/script&gt;
&lt;script language="JavaScript" src="../JS/preloadimages.js" hotswap="extJs_3"&gt;&lt;/script&gt;
&lt;script language="JavaScript" src="../JS/validateform.js" hotswap="extJs_4"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body bgcolor="#FFFFFF" text="#000000"&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;div id="Layer6" style="position:absolute; width:200px; height:9px; z-index:6; left: 12px; top: 109px"&gt;&lt;img src="images/LogonText.gif" width="56" height="23" name="LoginText"&gt;&lt;/div&gt;
&lt;div id="Layer10" style="position:absolute; width:195px; height:30px; z-index:1; left: 213px; top: 15px"&gt;&lt;img src="../images/navibar/irequire.gif" width="200" height="30" name="irequire"&gt;&lt;/div&gt;
&lt;div id="Layer1" style="position:absolute; width:331px; height:26px; z-index:1; left: 452px; top: 8px; overflow: hidden"&gt;&lt;a href="../default.asp"&gt;&lt;img src="../images/navibar/ehome.gif" width="36" height="30" name="ehome" border="0" alt="Home"&gt;&lt;/a&gt;&lt;img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"&gt;&lt;a href="../help/Genhelp.asp"&gt;&lt;img src="../images/navibar/ehelp.gif" width="36" height="30" name="ehelp" alt="help" border="0"&gt;&lt;/a&gt;&lt;img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"&gt;&lt;img src="../images/navibar/esearch.gif" width="42" height="30" name="esearch"&gt;&lt;img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"&gt;&lt;img src="../images/navibar/econtact.gif" width="59" height="30" name="econtact"&gt;&lt;img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"&gt;&lt;img src="../images/navibar/esitemap.gif" width="55" height="30" name="esitemap"&gt;&lt;img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"&gt;&lt;img src="../images/navibar/ubswhome.gif" width="62" height="30" name="e_ubswhome"&gt;&lt;/div&gt;
&lt;div id="Layer2" style="position:absolute; width:173px; height:33px; z-index:2; left: 12px; top: 14px"&gt;&lt;img src="../images/navibar/logo25pt.gif" width="162" height="33" name="UBSLOGO"&gt;&lt;/div&gt;
&lt;div id="Layer3" style="position:absolute; width:800px; height:20px; z-index:3; left: 3px; top: 53px"&gt;
&lt;pre&gt; &lt;img name="SoftRoll" border="0" src="../images/navibar/softbutover.gif" width="100" height="30" alt="You MUST login first to view this section"&gt; &lt;img name="HardRoll" border="0" src="../images/navibar/hardbutover.gif" width="100" height="30" alt="You MUST login first to view this section"&gt; &lt;img name="ServRoll" border="0" src="../images/navibar/servbutover.gif" width="155" height="30" alt="You MUST login first to view this section"&gt; &lt;img name="NetRoll" border="0" src="../images/navibar/netbutover.gif" width="100" height="30" alt="You MUST login first to view this section"&gt; &lt;img name="MDSRoll" border="0" src="../images/navibar/mdsbutover.gif" width="50" height="30" alt="You MUST login first to view this section"&gt; &lt;img name="BCMRoll" src="../images/navibar/bcmbutover.gif" width="50" height="30" alt="You MUST login first to view this section"&gt;&lt;a href="javascript:;"&gt;
&lt;/a&gt;&lt;img src="../images/navibar/blankbox.gif" width="795" height="20" name="TextBar"&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id="Layer4" style="position:absolute; width:556px; height:157px; z-index:4; left: 225px; top: 119px; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000"&gt;
&lt;form name="LoginForm" method="post" action="&lt;%=MM_LoginAction%&gt;" onSubmit="MM_swapImage('PleaseW','','../images/navibar/pleasewait.gif',1);return MM_validateForm('UsernameField','','R','PasswordField','','R')"&gt;
&lt;div align="left"&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;&lt;b&gt;Username:&lt;/b&gt; &lt;br&gt;
&lt;/font&gt;&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;
&lt;input type="text" name="UsernameField" size="20"&gt;
&lt;/font&gt;&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;&lt;br&gt;
&lt;b&gt;Password:&lt;br&gt;
&lt;/b&gt;
&lt;input type="password" name="PasswordField" size="20"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt; &lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;
&lt;input type="submit" name="Submit" value="Login"&gt;
&lt;input type="reset" name="Reset" value="Clear"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="../images/navibar/pleasewaitoff.gif" width="100" height="20" name="PleaseW"&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&nbsp; &lt;/p&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;div id="Layer5" style="position:absolute; width:200px; height:115px; z-index:5; left: 12px; top: 133px; background-color: #eeeeee; layer-background-color: #eeeeee; border: 1px none #000000"&gt;
&lt;p&gt;&lt;img src="images/LoginPic.jpg" width="200" height="133" name="LoginPic"&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;&lt;a href="BadLogin.asp"&gt;&lt;img src="../images/navibar/rem.gif" width="14" height="15" border="0" name="arrow"&gt;&lt;/a&gt;&lt;/font&gt;&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;&lt;a href="../Register/default.asp"&gt;Not
Registered yet?&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="../default.asp"&gt;&lt;font face="Arial, Helvetica, sans-serif" size="2"&gt;&lt;img src="../images/navibar/rem.gif" width="14" height="15" border="0"&gt;Main
page&lt;/font&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;


Replied 17 Oct 2001 13:10:35
17 Oct 2001 13:10:35 Owen Eastwick replied:
Weird, the only other thing I can think to check is Code Colours in the prefeerences palette. ( Site Files - Edit - Preferences - Code Colours)


Owen.

Edited by - oeastwick on 10/17/2001 13:11:15
Replied 19 Oct 2001 11:33:16
19 Oct 2001 11:33:16 Kevin Abbott replied:
I think DW UD's gone a bit dizzy with my site. I just noticed something else!

This is what's happend:

I remember setting the document title on one of my pages. Don't laugh but when you do a report with UD it tells you documents with the default title (untitled).

Well one of these documents was the connection script, and it kept telling me this document was not named. So I thought sod it I'll name it something. I called it 'UBSW - iRequire - Database connection script'.

Now for some strange reason when I open ANY page in UD I see this 'UBSW - iRequire - Database connection script' in the Title box.
But when I preview and view a page on the server the correct document title is shown for each page?!?!?!

I think I've done something wrong somewhere but I think I'm gonna have to leave this one though, as its' not affected any pages.

Also is it safe to delete the highlighted &lt;HTML&gt; tags? I have been and have seen no effects from doing this.

Thanks for your help.



Edited by - K.Abbott on 10/19/2001 11:35:02

Reply to this topic