I wrote a simple function to walk throug some records and then write them to the screen.
When i take a look at explorer on Win2K for source i get the following html :
The code above is OK but if we do the same on WinXP then the result is not the same.
Take a look at the code after return overlib(
In win2K everything is going OK, After overlib( the code is starting with a single quote.
In win XP the single qoute is changed in a "greater then" sign (>
Can someone tell we why this is happening?
Thanks in advance
Code:
Function showrecords()
Dim strSQL
Dim recordset
Dim sq
sq ="'"
strSQL = "SELECT ID, HEADER, TEASER FROM tblData;"
Set Recordset = objConn.Execute(strSQL)
Do Until Recordset.EOF
Response.Write("<li><a href=""show_mypage.asp?ItemID=" & Recordset("ID") & """ onmouseover=""return overlib(" & sq & Recordset("TEASER") & sq & ");"" onmouseout=""return nd();"">" & Recordset("header") & "</a></li>") & vbCrLF
Recordset.MoveNext()
Loop
Recordset.close
end Function
When i take a look at explorer on Win2K for source i get the following html :
Code:
<ul><li><a href="show_mypage.asp?ItemID=25" onmouseover="return overlib('<I><B>13 oktober 2004</B></I> - Microsoft etc. etc.... etc...');" onmouseout="return nd();">Microsoft CRM certified software advisor</a></li>
<li><a href="show_mypage.asp?ItemID=24" onmouseover="return overlib('<I><B>6 oktober 2004<B><I> - International customer care..... etc');" onmouseout="return nd();">Na succesvolle pilot geeft HECC definitieve opdracht aan Newtel Essence</a></li>
The code above is OK but if we do the same on WinXP then the result is not the same.
Code:
<ul><li><a href="show_mypage.asp?ItemID=25" onmouseover="return overlib(><I><B>13 oktober 2004</B></I> - Microsoft etc. etc.... etc...');" onmouseout="return nd();">Microsoft CRM certified software advisor</a></li>
<li><a href="show_mypage.asp?ItemID=24" onmouseover="return overlib(><I><B>6 oktober 2004<B><I> - International customer care..... etc');" onmouseout="return nd();">Na succesvolle pilot geeft HECC definitieve opdracht aan Newtel Essence</a></li>
In win2K everything is going OK, After overlib( the code is starting with a single quote.
In win XP the single qoute is changed in a "greater then" sign (>
Can someone tell we why this is happening?
Thanks in advance