Mike Oliver wrote: > \]Ok I found the \['example'\] but that leaves the AEBtn_0.jpb > I am trying to manipulate some image files using JavaScript. > > But when I insert a tag as follows the javascript []'s get interpretted as a > wiki link, > > <a href="/Sandbox/WebHome" > onMousedown="document.images['example'].src=img2.src" > onMouseup="document.images['example'].src=img1.src"> > <<mg src={image:AEBtn_0.jpg} name="example" border=0></a> >
{image:something.jpg} outputs not just the address of the image, but the whole img tag. You should use <img src="$doc.getAttachmentURL('something.jpg')" ... -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users