G
Guest
Hi,
System Details: Windows XP Professional SP2, Outlook 2003 SP1, IE6 SP2.
I have a Java appliaction that constructs a HTML Email and sends it to a
mail client. In the HTML Email I have embeded some VBSCRIPT which is called
via the ONCLICK event of an <A> tag. In the VBScript I create an XML document
then mail it via the Outlook API.
On Win2K and Outlook 2000 this worked fine but now, when I click the link in
Outlook 2003, nothing happens (no "Cannot Create ActiveX" messages either) !!!
I have tried putting the message into the Internet zone (with low security)
and the same occurred. I replaced my script with a simple message box call
and this never activates either. I've even tried the "One-off-form" registry
hack, again to no avail.
If I load the sent HTML into a browser it works OK so I am sure the syntax
is right.
Here is an example of the link and script...
<a style="cursor:hand;color:green;text-decoration:underline"
onclick="OpenNewMail('test','test')">OK</a>
<SCRIPT LANGUAGE="VBSCRIPT">
Sub OpenNewMail(strAddress, strSubjectLine)
MsgBox "In OpenNewMail"
End Sub
</SCRIPT>
Can anyone suggest how I can get vbscript to work in a HTML email in Outlook
2003 (has anyone got it to work!)? Is there some sort of new META setting
to make the HTML Outlook 2003 friendly perhaps?
Any help would be massively appreciated as this is driving me barmy!
Cheers
sanx
System Details: Windows XP Professional SP2, Outlook 2003 SP1, IE6 SP2.
I have a Java appliaction that constructs a HTML Email and sends it to a
mail client. In the HTML Email I have embeded some VBSCRIPT which is called
via the ONCLICK event of an <A> tag. In the VBScript I create an XML document
then mail it via the Outlook API.
On Win2K and Outlook 2000 this worked fine but now, when I click the link in
Outlook 2003, nothing happens (no "Cannot Create ActiveX" messages either) !!!
I have tried putting the message into the Internet zone (with low security)
and the same occurred. I replaced my script with a simple message box call
and this never activates either. I've even tried the "One-off-form" registry
hack, again to no avail.
If I load the sent HTML into a browser it works OK so I am sure the syntax
is right.
Here is an example of the link and script...
<a style="cursor:hand;color:green;text-decoration:underline"
onclick="OpenNewMail('test','test')">OK</a>
<SCRIPT LANGUAGE="VBSCRIPT">
Sub OpenNewMail(strAddress, strSubjectLine)
MsgBox "In OpenNewMail"
End Sub
</SCRIPT>
Can anyone suggest how I can get vbscript to work in a HTML email in Outlook
2003 (has anyone got it to work!)? Is there some sort of new META setting
to make the HTML Outlook 2003 friendly perhaps?
Any help would be massively appreciated as this is driving me barmy!
Cheers
sanx