Thanks

----- Original Message ----- From: "Nicolas" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Thursday, February 23, 2006 1:59 PM
Subject: Re: T4 IMarkupWriter and JavaScript


you can try :

<a href="your real url" onclick="return confirm('sure about that
?')">link</a>

this way the href attribute can be treated as a real url.

Regards,
Nicolas

On 2/23/06, Audrius Peseckis <[EMAIL PROTECTED]> wrote:

Hello,

I'm trying to get my custom renderer work with DirectLink. What I'm trying
to do is achieve something like this:

<a href="javascript:if(confirm('Are you sure about something?')){
document.location.href='SOME_URL';};">LINK</a>

When I try to write all this stuff as an attribute (
IMarkupWriter.attribute("href", javascripPart)), by some reason each space
in javascript is separated in tag as a different attribute. If I use
attributeRaw(), those spaces are converted to %xx stuff.

So neither of previously mentioned methods work for me. Is there a clean
way to add javascript to attribute which would be treated as javascript? Any
suggestions are welcome.

Thanks,
Audrius



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to