![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi
I'm on a LAN, and all users have Outlook 2003. I'm trying to create an email message which includes a link to open an InfoPath form. I'm currently using the following code: html head titleInfoPath Launcher/title script language="javascript" type="text/javascript" function launchInfoPath() { objInfoPath = new ActiveXObject("InfoPath.Application"); strXSFPath = "D:\\Path\\manifest.xsf"; objInfoPath.XDocuments.NewFromSolution(strXSFPath) ; } /script /head body Click a href="javascript:launchInfoPath();"here/a to open form. /body /html That code works perfectly in IE (InfoPath opens and the form appears), but not in Outlook. When you click the link, IE opens for a split-second then closes itself, and InfoPath doesn't start at all. Outlook seems to be disabling (some of?) the JavaScript, yet I can't find any settings for it. Does anyone have any suggestions? I've already asked in microsoft.public.infopath but nobody could help ![]() Thanks Chris |
Ads |
#2
|
|||
|
|||
![]()
That's expected behavior. For security reasons, Outlook doesn't run code in HTML messages.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Chris Mahoney" wrote in message oups.com... Hi I'm on a LAN, and all users have Outlook 2003. I'm trying to create an email message which includes a link to open an InfoPath form. I'm currently using the following code: html head titleInfoPath Launcher/title script language="javascript" type="text/javascript" function launchInfoPath() { objInfoPath = new ActiveXObject("InfoPath.Application"); strXSFPath = "D:\\Path\\manifest.xsf"; objInfoPath.XDocuments.NewFromSolution(strXSFPath) ; } /script /head body Click a href="javascript:launchInfoPath();"here/a to open form. /body /html That code works perfectly in IE (InfoPath opens and the form appears), but not in Outlook. When you click the link, IE opens for a split-second then closes itself, and InfoPath doesn't start at all. Outlook seems to be disabling (some of?) the JavaScript, yet I can't find any settings for it. Does anyone have any suggestions? I've already asked in microsoft.public.infopath but nobody could help ![]() Thanks Chris |
#3
|
|||
|
|||
![]()
So what can I do?
|
#4
|
|||
|
|||
![]()
One possible solution would be to give users a URL to a web page with code behind it to launch the form. If you are working in an Exchange organization and have permission to publish to the Organizational Forms library, you could use VBScript behind a published custom Outlook message form.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Chris Mahoney" wrote in message oups.com... So what can I do? |
#5
|
|||
|
|||
![]()
Sue Mosher [MVP-Outlook] wrote:
One possible solution would be to give users a URL to a web page with code behind it to launch the form. Just thought of that one and came back to ask whether it would work. Since you've already suggested it, that's probably a Yes ![]() |
#6
|
|||
|
|||
![]()
Yep, it's all working now
![]() Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
outlook automation in javascript | [email protected] | Outlook - General Queries | 1 | April 7th 06 12:16 PM |
Pure HTML Formatting in Javascript Code | [email protected] | Outlook - General Queries | 1 | April 6th 06 03:47 PM |
outlook won't run when reinstalled on a new computer | outlook grim | Outlook - Installation | 7 | April 3rd 06 10:05 PM |
How do I Run Outlook and keep it on the hard disk | Mike | Outlook - General Queries | 3 | February 20th 06 07:06 PM |
Outlook should run in a backround mode. | Marcus Gray | Outlook - Calandaring | 1 | February 1st 06 11:29 PM |