[pmwiki-users] Javascript pseudo link
Patrick R. Michaud
pmichaud at pobox.com
Sun Nov 27 09:48:39 CST 2005
On Sun, Nov 27, 2005 at 10:27:41AM -0500, Henrik Bechmann wrote:
> Is there any way to get
>
> <a href="javascript:rinkselection('dieppe','listing','detail')">Rink
> Details >></a>
>
> rendered through wiki markup (note the javascript pseudo link)?
The single quotes are the difficult part. You can *almost*
get there with an InterMap shortcut:
Rink javascript:rinkselection("$1","listing","detail")
[[Rink:dieppe | Rink Details >>]]
but since quotes aren't allowed in urls there's not a good way
to deal with multiple parameters.
In the general case, allowing arbitrary javascript through wiki
markup is a security risk, which is why it's only available through
site-specific customizations. With a little bit of PHP programming
it'd be possible to write things like
RinkSelection:dieppe,listing,detail
and have it come out as the correct link.
Pm
More information about the pmwiki-users
mailing list