There seems to be a bug in the CDHTMLDialog
class. I'd appreciate if anyone could either confirm or correct me here.
I've created a wrapper for CDHTMLDialog
, where users can enter a custom html text, it will be formatted in a particular manner, and displayed along with an html button to close the dialog. I'm catching the html button press using the DHTML_EVENT_ONCLICK
macro.
Everything seems to work fine, but when an embedded email link is pressed, the event stops firing for no apparent reason. Normal links don't cause this sort of behaviour. Here is an example html text, already formatted, which is passed to the base dialog using the put_innerHTML()
function inside the OnDocumentComplete()
handler (After I check that m_spHtmlDoc
isn't null
, and also against a flag that only allows me to set the inner-html text once and only once.)
<div style="overflow:auto; height:139px">Send us an email at <a target=_blank href="mailto:[email protected]">[email protected]</a>.</div><p ALIGN="center"><button style="height:30;width:70" ID="HTMLMsgBoxBtn" type="button">Close</button></p>
Please advise!
Thanks,
Vi.