Alex Romayev wrote:
Hi,

I've noticed that Augment Transformer (which is very
useful), ignores absolute URLs, but not javascript. I'm trying to create a "go back" link and the
transformer is appending my "javascript:back()" with
the full path. Of cource I could create my own
transformer to ignore javascript in addition to
absolute URLs, but it seems like it would be a useful
feature for others as well.

Does it make sence?
Mostly. The Augment transformer has some bugs of its own (it prepends an URL in front of "mailto:"; links for instance) but "javascript:" URLs are invalid. Instead of

<a href="javascript:back()">

you should be using

<a href="#" onCLick="window.back();return false;">

Ugo

--
Ugo Cei - http://www.beblogging.com/blog/


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

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



Reply via email to