I am getting a strange result when I try to set the path for my web dialog to a file on Box Drive.
I am doing a very simple test request, with the same .html file in two locations
wd = UI::WebDialog.new
wd.set_file path
wd.show
When path = File.join(‘C:’,‘Users’,‘Developer’,‘Documents’,‘chatterbox.html’) The page opens in the dialog just fine.
When path = File.join(‘C:’,‘Users’,‘Developer’,‘Box’,‘chatterbox.html’) I get a totally blank web dialog.
I have tested changing the html file name to one that does not exist, and I get a '‘Navigation error’ page (so I’m sure I’m not just referencing the wrong location)
Also you can set (or reset) the html page after the dialog frame is displayed.
FYI, WebDialog class is deprecated, and has some security quirks when trying to load files from the local machine. (I think SketchUp API copies the webpage to the TEMP folder, and actually loads it from there.)