In my current XUL app, I have a 'Contact Author' button, that I would like
to open an email client, via mailto.  For some reason it throws me an error.
Below is my code:

try{
    var oBrowser = window.getBrowser();
    oBrowser.loadURI("mailto:"+ gAuthorEmail, "", "UTF-8");
}catch(err){alert(err)}

The error I'm getting is:
"Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsIWebNavigation.loadURI] nsresult: 0x8000400g (NS_ERROR_FAILURE) location:
JS frame
:: chrome://global/content/bindings/browser.xml :: loadURIWithFlags :: line
159 data: no"

Any ideas or better ways to do this?

Thanks,
Jeremy


_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to