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 <HTML> 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 - </HTML>. Every tag must have its corresponding closing tag ie.
<pre id=code><font face=courier size=2 id=code>
<HTML>
<TABLE>
<TR>
<TD>
</TD>
</TR>
</TABLE>
</HTML>
</font id=code></pre id=code>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
<pre id=code><font face=courier size=2 id=code>
<HTML>
<TABLE>
<TR>
<TD>
</TD>
</TR>
</TABLE>
</HTML>
</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 </html> 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:
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="../Connections/projectstore.asp" -->
<%
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);
}
%>
<html> // THIS IS HIGHLIGHT AS YELLOW IN CODE VIEWER AND ALL CODE FROM THIS POINT DOWN IS BLACK
<head>
<title>USBW - iRequire - Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="../JS/pagereload.js" hotswap="extJs_1"></script>
<script language="JavaScript" src="../JS/findobject.js" hotswap="extJs_2"></script>
<script language="JavaScript" src="../JS/preloadimages.js" hotswap="extJs_3"></script>
<script language="JavaScript" src="../JS/validateform.js" hotswap="extJs_4"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div id="Layer6" style="position:absolute; width:200px; height:9px; z-index:6; left: 12px; top: 109px"><img src="images/LogonText.gif" width="56" height="23" name="LoginText"></div>
<div id="Layer10" style="position:absolute; width:195px; height:30px; z-index:1; left: 213px; top: 15px"><img src="../images/navibar/irequire.gif" width="200" height="30" name="irequire"></div>
<div id="Layer1" style="position:absolute; width:331px; height:26px; z-index:1; left: 452px; top: 8px; overflow: hidden"><a href="../default.asp"><img src="../images/navibar/ehome.gif" width="36" height="30" name="ehome" border="0" alt="Home"></a><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><a href="../help/Genhelp.asp"><img src="../images/navibar/ehelp.gif" width="36" height="30" name="ehelp" alt="help" border="0"></a><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><img src="../images/navibar/esearch.gif" width="42" height="30" name="esearch"><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><img src="../images/navibar/econtact.gif" width="59" height="30" name="econtact"><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><img src="../images/navibar/esitemap.gif" width="55" height="30" name="esitemap"><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><img src="../images/navibar/ubswhome.gif" width="62" height="30" name="e_ubswhome"></div>
<div id="Layer2" style="position:absolute; width:173px; height:33px; z-index:2; left: 12px; top: 14px"><img src="../images/navibar/logo25pt.gif" width="162" height="33" name="UBSLOGO"></div>
<div id="Layer3" style="position:absolute; width:800px; height:20px; z-index:3; left: 3px; top: 53px">
<pre> <img name="SoftRoll" border="0" src="../images/navibar/softbutover.gif" width="100" height="30" alt="You MUST login first to view this section"> <img name="HardRoll" border="0" src="../images/navibar/hardbutover.gif" width="100" height="30" alt="You MUST login first to view this section"> <img name="ServRoll" border="0" src="../images/navibar/servbutover.gif" width="155" height="30" alt="You MUST login first to view this section"> <img name="NetRoll" border="0" src="../images/navibar/netbutover.gif" width="100" height="30" alt="You MUST login first to view this section"> <img name="MDSRoll" border="0" src="../images/navibar/mdsbutover.gif" width="50" height="30" alt="You MUST login first to view this section"> <img name="BCMRoll" src="../images/navibar/bcmbutover.gif" width="50" height="30" alt="You MUST login first to view this section"><a href="javascript:;">
</a><img src="../images/navibar/blankbox.gif" width="795" height="20" name="TextBar"></pre>
</div>
<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">
<form name="LoginForm" method="post" action="<%=MM_LoginAction%>" onSubmit="MM_swapImage('PleaseW','','../images/navibar/pleasewait.gif',1);return MM_validateForm('UsernameField','','R','PasswordField','','R')">
<div align="left">
<p><font face="Arial, Helvetica, sans-serif" size="2"><b>Username:</b> <br>
</font><font face="Arial, Helvetica, sans-serif" size="2">
<input type="text" name="UsernameField" size="20">
</font><font face="Arial, Helvetica, sans-serif" size="2"><br>
<b>Password:<br>
</b>
<input type="password" name="PasswordField" size="20">
<br>
<br>
</font> <font face="Arial, Helvetica, sans-serif" size="2">
<input type="submit" name="Submit" value="Login">
<input type="reset" name="Reset" value="Clear">
<br>
<br>
<img src="../images/navibar/pleasewaitoff.gif" width="100" height="20" name="PleaseW">
</font></p>
<p> </p>
</div>
</form>
</div>
<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">
<p><img src="images/LoginPic.jpg" width="200" height="133" name="LoginPic"></p>
<p><font face="Arial, Helvetica, sans-serif" size="2"><a href="BadLogin.asp"><img src="../images/navibar/rem.gif" width="14" height="15" border="0" name="arrow"></a></font><font face="Arial, Helvetica, sans-serif" size="2"><a href="../Register/default.asp">Not
Registered yet?</a></font></p>
<p><a href="../default.asp"><font face="Arial, Helvetica, sans-serif" size="2"><img src="../images/navibar/rem.gif" width="14" height="15" border="0">Main
page</font></a><br>
</p>
</div>
</body>
</html>
I've checked my code and I do indeed have a close </html> 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:
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="../Connections/projectstore.asp" -->
<%
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);
}
%>
<html> // THIS IS HIGHLIGHT AS YELLOW IN CODE VIEWER AND ALL CODE FROM THIS POINT DOWN IS BLACK
<head>
<title>USBW - iRequire - Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="../JS/pagereload.js" hotswap="extJs_1"></script>
<script language="JavaScript" src="../JS/findobject.js" hotswap="extJs_2"></script>
<script language="JavaScript" src="../JS/preloadimages.js" hotswap="extJs_3"></script>
<script language="JavaScript" src="../JS/validateform.js" hotswap="extJs_4"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div id="Layer6" style="position:absolute; width:200px; height:9px; z-index:6; left: 12px; top: 109px"><img src="images/LogonText.gif" width="56" height="23" name="LoginText"></div>
<div id="Layer10" style="position:absolute; width:195px; height:30px; z-index:1; left: 213px; top: 15px"><img src="../images/navibar/irequire.gif" width="200" height="30" name="irequire"></div>
<div id="Layer1" style="position:absolute; width:331px; height:26px; z-index:1; left: 452px; top: 8px; overflow: hidden"><a href="../default.asp"><img src="../images/navibar/ehome.gif" width="36" height="30" name="ehome" border="0" alt="Home"></a><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><a href="../help/Genhelp.asp"><img src="../images/navibar/ehelp.gif" width="36" height="30" name="ehelp" alt="help" border="0"></a><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><img src="../images/navibar/esearch.gif" width="42" height="30" name="esearch"><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><img src="../images/navibar/econtact.gif" width="59" height="30" name="econtact"><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><img src="../images/navibar/esitemap.gif" width="55" height="30" name="esitemap"><img src="../images/navibar/eseparator.gif" width="7" height="30" name="seperator"><img src="../images/navibar/ubswhome.gif" width="62" height="30" name="e_ubswhome"></div>
<div id="Layer2" style="position:absolute; width:173px; height:33px; z-index:2; left: 12px; top: 14px"><img src="../images/navibar/logo25pt.gif" width="162" height="33" name="UBSLOGO"></div>
<div id="Layer3" style="position:absolute; width:800px; height:20px; z-index:3; left: 3px; top: 53px">
<pre> <img name="SoftRoll" border="0" src="../images/navibar/softbutover.gif" width="100" height="30" alt="You MUST login first to view this section"> <img name="HardRoll" border="0" src="../images/navibar/hardbutover.gif" width="100" height="30" alt="You MUST login first to view this section"> <img name="ServRoll" border="0" src="../images/navibar/servbutover.gif" width="155" height="30" alt="You MUST login first to view this section"> <img name="NetRoll" border="0" src="../images/navibar/netbutover.gif" width="100" height="30" alt="You MUST login first to view this section"> <img name="MDSRoll" border="0" src="../images/navibar/mdsbutover.gif" width="50" height="30" alt="You MUST login first to view this section"> <img name="BCMRoll" src="../images/navibar/bcmbutover.gif" width="50" height="30" alt="You MUST login first to view this section"><a href="javascript:;">
</a><img src="../images/navibar/blankbox.gif" width="795" height="20" name="TextBar"></pre>
</div>
<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">
<form name="LoginForm" method="post" action="<%=MM_LoginAction%>" onSubmit="MM_swapImage('PleaseW','','../images/navibar/pleasewait.gif',1);return MM_validateForm('UsernameField','','R','PasswordField','','R')">
<div align="left">
<p><font face="Arial, Helvetica, sans-serif" size="2"><b>Username:</b> <br>
</font><font face="Arial, Helvetica, sans-serif" size="2">
<input type="text" name="UsernameField" size="20">
</font><font face="Arial, Helvetica, sans-serif" size="2"><br>
<b>Password:<br>
</b>
<input type="password" name="PasswordField" size="20">
<br>
<br>
</font> <font face="Arial, Helvetica, sans-serif" size="2">
<input type="submit" name="Submit" value="Login">
<input type="reset" name="Reset" value="Clear">
<br>
<br>
<img src="../images/navibar/pleasewaitoff.gif" width="100" height="20" name="PleaseW">
</font></p>
<p> </p>
</div>
</form>
</div>
<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">
<p><img src="images/LoginPic.jpg" width="200" height="133" name="LoginPic"></p>
<p><font face="Arial, Helvetica, sans-serif" size="2"><a href="BadLogin.asp"><img src="../images/navibar/rem.gif" width="14" height="15" border="0" name="arrow"></a></font><font face="Arial, Helvetica, sans-serif" size="2"><a href="../Register/default.asp">Not
Registered yet?</a></font></p>
<p><a href="../default.asp"><font face="Arial, Helvetica, sans-serif" size="2"><img src="../images/navibar/rem.gif" width="14" height="15" border="0">Main
page</font></a><br>
</p>
</div>
</body>
</html>
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
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 <HTML> 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
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 <HTML> 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