Forums / General / ezxml and JavaScript / Comment34493
Kristof Coomans
Friday 29 December 2006 1:09:26 am
Thanks for the feedback.
I think the onclick event won't work, since the bookmarklet should be bookmarkable.
I tried a custom tag and that works fine.
Maybe there are still other (and safer) ways to accomplish this. If other users can post on a site then they can also use your custom tag.
Anyone ever used a seperate object containing the JavaScript and embedded that with the embed-inline tag? It sounds overkill but when non-privileged users are not allowed to create or edit the JavaScript objects, then there's no danger for XSS attacks.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org