load a resource file with jscript

O

olivier

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.
 
O

olivier

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?frame=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...
 
O

olivier

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.
 
O

olivier

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top