Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2005

Tip: Looking for answers? Try searching our database.

load a resource file with jscript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
olivier - 07 Mar 2005 13:15 GMT
Hi,

Is someone able to give me the jscript syntax to load an html resource file
from jscript (tools/resources files/add) ?

I'm using a contextual help stored in an html file and the problem is that
each time this file is modified (that's to say I get a new help file), it has
to be removed and added once again in the form as Infopath doesn't use a link
but a copy of it.

Thanks so much.
olivier - 07 Mar 2005 14:29 GMT
I found that the function should be Navigate, which can't be used during  
onload. The very strange thing, before this point, is that it doesn't seems
possible to change the name of the html help file.

I'm using the Lab14 ContosoSalesReportHtml.html from microsoft
http://msdn.microsoft.com/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_14.asp?fr
ame=true&_r=1


I copied ContosoSalesReportHtml.html to help.html, remove and add in the
tools/resource files but the exemple always work with the original name, to
my new one, just if this name was stored elsewhere...

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks so much.
olivier - 07 Mar 2005 14:47 GMT
And here is the explanation : I removed ContosoSalesReportHelp.html and
loaded  another resource file named ContosoSalesReportHelp1.html (1 at the
end) and then extracted the files.

And then, the manifest.xsf contains a beautiful :

<xsf:taskpane caption="Help"
href="ContosoSalesReportHelp.html"></xsf:taskpane>

(still the old file, not the new one).

Of course, I changed the name and redisign and it worked ok.

So, the conclusion seems to be that when you use tools/resource files remove
and add, it seems to work but it doesn't.

Now, ok if someone can explain me that it's not a bug.

> I found that the function should be Navigate, which can't be used during  
> onload. The very strange thing, before this point, is that it doesn't seems
[quoted text clipped - 18 lines]
> >
> > Thanks so much.
olivier - 07 Mar 2005 15:35 GMT
And one last post (I hope)  to end the story.

In Tool/Forms Option/Advanced, there is a Task Pane Location Field. It's
this one that drives the selection and it was set to
ContosoSalesReportHelp.html. I changed it to ContosoSalesReportHelp1.html and
it's working. It seems to me that there is something strange under this task
pane location and the resource files but anyway, I hope that those posts will
help.

> And here is the explanation : I removed ContosoSalesReportHelp.html and
> loaded  another resource file named ContosoSalesReportHelp1.html (1 at the
[quoted text clipped - 36 lines]
> > >
> > > Thanks so much.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.