Skip to content
thomthom edited this page Apr 5, 2013 · 3 revisions

HTML Paths

WebDialog.set_file

When you use .set_file to populate the HTML document, all resources (images,CSS,scripts etc.) will be relative to the file you specify.

WebDialog.set_html

But when you use .set_html, all resources are relative to a temp file created on the system. So if you need to reference external resources from the HTML, either use absolute paths, or add a <base> tag to the <head> of the <html> - specifying where relative paths should be resolved from:

<base href="c:/absolute/path/" />