cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <u....@cbim.it>
Subject Re: Augment Transformer does not ignore javascript
Date Thu, 02 Jan 2003 09:48:13 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message