smeyers1:
File.join('C:','Users','Developer','Box','chatterbox.html')
… is very inefficient.
File::SEPARATOR
(which File::join
uses) is ‘/
’ on both platforms.
I’d use ENV["HOME"]
instead, coupled with a folder
var:
path = File::join( 'file:///', ENV["HOME"], folder, 'chatterbox.html' )
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.)
Continuing the discussion from Ruby backtick returns nothing! :
Triple backtick delimiter lines.
What is a backquote ?
[image]
Backquote character key on US keyboard.
If it is error message text (or some other plain text that contains <, >, #, or other characters that can confuse Discourse markdown,) then specify “text” as a lexing language:
```text
paste error message here
```
If it is Ruby, then:
```ruby
# code here
```
If it is Javascript, then:
```javascript
/* js…
or:
Want to know how to properly quote code in this forum? Have a look below:
[image]
Or manually by:
[image]
Result:
if user.name == 'thomthom'
user.feed(Beer.new)
end