Hello! Got a problem chaps!
I have this code to create a wap site from one card.
The problem is that I want to be able to click the link "back to story links" to go back to the top of the card.
But when I navigate to a story, if I want to return to the top of the card, I should be able to click the link "back to story links", but it cannot be highlighted and clicked.
Anyone have any ideas how to solve this?
Cheers!
I have this code to create a wap site from one card.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform
xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] version="1.0">
<xsl:template match="/">
<wml>
<card id="Stories" title="Dingley Dell News">
<p>
<big><b>News Stories</b></big>
</p>
<p><img src="mobileImages/phone.wbmp" alt="mobile phone" /></p>
<p><a href="index.html">home</a></p>
<!-- A -->
<xsl:apply-templates mode="toc"/>
<!-- B -->
<xsl:apply-templates/>
</card>
</wml>
</xsl:template>
<!-- C -->
<xsl:template match="Article" mode="toc">
<a href="#{ArticleTitle}"><xsl:value-of select="ArticleTitle"/></a><br/>
</xsl:template>
<!-- D -->
<xsl:template match="Article">
<div>
<h2><a name="{ArticleTitle}"><xsl:value-of select="ArticleTitle"/></a></h2>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="ArticleTitle"/>
<xsl:template match="ArticleEntry">
<p><a href="TransXML_Mobile.php">back to story links</a></p>
<p><xsl:apply-templates/></p>
</xsl:template>
</xsl:transform>
The problem is that I want to be able to click the link "back to story links" to go back to the top of the card.
But when I navigate to a story, if I want to return to the top of the card, I should be able to click the link "back to story links", but it cannot be highlighted and clicked.
Anyone have any ideas how to solve this?
Cheers!