[pmwiki-users] Integrating JavaScript function into Custom Markup

Hans design at softflow.co.uk
Fri Apr 7 15:24:49 CDT 2006


Friday, April 7, 2006, 9:15:15 PM, Patrick wrote:
> consider:

>    (:map map='", some_other_function(), "':)

> which becomes in HTML:

>     <a href='javascript:map("", some_other_function(), "")' ... >

> and some_other_function() gets called as an argument to the
> map function.  Of course, I can come up with a more complex
> example, but this gives the idea.

I admit ignorance of javascript functions being passed on as arguments.
should not the javascript map() function handle this and accept only
legal arguments? Or do we need to address such illegal or unwanted
possibilities on the php level?


Best,
 Hans                           





More information about the pmwiki-users mailing list