I have some html code that works in IE on the desktop and not on the
handheld. I'm trying to change the displayed text of a link dynamically.
Here's the code:

<html>
<body>
<a id="a1" href="javascript:void(0);" onClick="newTitle(sec1,a1)">test
link</a>
<div id="sec1"><br></div>
sometext
<script language="JScript">
function newTitle(layer1,link1)
{
if(layer1.innerHTML!="")
{layer1.innerHTML="",link1.innerText="1"}
else
{layer1.innerHTML="displaytext"};
}
</script>
</body>
</html>

Was wondering if this is supported in PIE or whether there was another way
to do it. One that did not include putting a div section around the <a href>
to change it. Thnx.

Yusuf

Re: html and PIE by Yusuf

Yusuf
Thu Jul 08 14:14:43 CDT 2004

figured it out:
i created a div section within the link e.g.:

<a href><div id="x"></div></a>

and modified x.innerHTML


"Yusuf Haroon" <yusuf@haroon.com> wrote in message
news:#jOGvwIZEHA.1356@TK2MSFTNGP09.phx.gbl...
> I have some html code that works in IE on the desktop and not on the
> handheld. I'm trying to change the displayed text of a link dynamically.
> Here's the code:
>
> <html>
> <body>
> <a id="a1" href="javascript:void(0);" onClick="newTitle(sec1,a1)">test
> link</a>
> <div id="sec1"><br></div>
> sometext
> <script language="JScript">
> function newTitle(layer1,link1)
> {
> if(layer1.innerHTML!="")
> {layer1.innerHTML="",link1.innerText="1"}
> else
> {layer1.innerHTML="displaytext"};
> }
> </script>
> </body>
> </html>
>
> Was wondering if this is supported in PIE or whether there was another way
> to do it. One that did not include putting a div section around the <a
href>
> to change it. Thnx.
>
> Yusuf
>
>