Categories | Question details Back To List | ||
xml <a rel=' Hi, in my xml cell I'd like to insert <![CDATA[<a rel='clearbox(600,,480,,click)' href='http://www.google.it' style='color:#000000;'><img border=0 src='images/display.gif'></a>]]> but the rel function is not considerated. Please can you help me? clearbox is a javascript function that create a sort of window.open in the same page Thanks Cristina Answer posted by dhxSupport on May 11, 2009 05:34 "rel" tag of a link element specifies the relationship between the current document and the linked document. If you want execute some function by clicking on link you should use "onclick" attribute: <![CDATA[<a onclick='clearbox(600,,480,,click)' href='http://www.google.it' style='color:#000000;'><img border=0 src='images/display.gif'></a>]]> Answer posted by Cristina on May 11, 2009 06:00 No, the function is not called even if I use onclick, because before it execute the href command; and I don't think that rel and onclick simulate the same functionality. Thanks
Answer posted by dhxSupport on May 11, 2009 06:59 If you want to execute custom function by clickin on the link it should looks like that: <![CDATA[<a onclick='clearbox(600,,480,,click)' href='javascript:void(0)'><img border=0 src='images/display.gif'></a>]]> |