WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Q: about helplinks in explorer 6, kj, January 9, 2004
     Re:Q: about helplinks in explorer 6, Guilherme Blanco, January 15, 2004
     Re:Q: about helplinks in explorer 6, Erik Arvidsson, January 10, 2004

Subject: Re:Q: about helplinks in explorer 6 From: Erik Arvidsson Date: January 10, 2004
Isn't this a PHP error?

What you could do is to define your text outside of the inline onclick handler. This removes the depencies to use <, > and " in the attribute which should really be prevented to be future compatible with XHTML (or escape them).

<script type="text/javascript">
var helpTips = ["help tip 0",
"help tip 1",
"help tip 2",
...
"help tip n"];
</script>

<a class="helpLink" href="?" onclick="showHelpTip(event, helpTips[1]); return false">this</a>


erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX