Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is explorer XP displaying my code difrent form W2K

Status
Not open for further replies.

TheCount

Programmer
Oct 24, 2001
64
NL
I wrote a simple function to walk throug some records and then write them to the screen.

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>
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
 
Is there nobody that has an clue?? Or am i impatient?
 
only possibility i can think of is 2 seperate source pages, one with a possible typo in it.

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
I agree, I don't see how the operating system would have anything to do with that. I believe it is two seperate files as well. To my knowledge ASP won't change output for you for no apparent reason...

barcode_1.gif
 
Or an older page is cached on one of the two machines, and you're looking at a cached version on one of them.
 
Maybe one of you can take a look for me at the site. And tells me of you get an error, and wich OS and browser you're using.
The site is (Sorry it's in Dutch language)
 
used IE6 didn't get any errors

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
Thanks DreXor, and you use W2K or XP? Because i also get no errors on W2K. But people calling me about the problem and have win XP and sending me the source from there browser as evidence.
 
Win XP Pro, SP2, all updates.

Overlib works fine on the menu to the left.

Lee
 
OK Thnx. So maybe there is something wrong with the clients?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top