This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Is there anyone who can help me???


I've posted similar problem once before and try again, anyone who can give 
me a hand ????

I have simplified my problem allot and this is my problem. This generates a 
list of headlines and i let everybody get access to a function myAlert. But 
if i click on one of the link i get Error: Object expected. If i try the 
javacode call in a ordinary htm file it's ok. So question is anyone know why 
i get this error! My goal is to generate a list of headline links and be 
able to click each of them, use javascript to retrieve info's from the xml 
file and show it in a cell i have specified with an ID.

So ANYONE ????

Steven

<xsl:script language="Javascript"><![CDATA[
	function myAlert() {
  		window.status="Welcome to my homepage";
	}
]]></xsl:script>

<xsl:for-each select="main_news/news/title">
	<a href="Javascript:myAlert()">
	<li/><xsl:value-of select="./@headline"/></a>
		</xsl:for-each>


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]