Window.open does not recognize document format internally.

3 views
Skip to first unread message

Ed Thompson

unread,
Nov 14, 2013, 11:45:24 AM11/14/13
to node-...@googlegroups.com
I have found that if I use:

Window.open("p/u", ...) the file u is opened as a text file.

Window.open("p/u.html" handled the file as correct html.

Not sure why the file, which includes:

<!doctype html>
<html lang="en" data-ng-app="evidentia-age" data-ng-csp>

is not recognized as an html file no matter WHAT it is named

Anyone?

here is the full block of code:

gui.Window.open("app://local/p/u",
                    {
                        title: 'Evidentia Age Calculator',
                        icon: "../img/Evidentia128x128.png",
                        position: 'center',
                        width: 400,
                        height: 350,
                        frame: true,
                        focus: true,
                        toolbar: true,
                        resizable: false,
                        'single-instance': true
                    });

Marius van der Wel

unread,
Nov 14, 2013, 3:16:47 PM11/14/13
to node-...@googlegroups.com
Does it work when using file:// protocol?

Ed Thompson

unread,
Nov 14, 2013, 4:14:08 PM11/14/13
to node-...@googlegroups.com
When I use file://partials/ageCalculator.html it comes back blank.  so far I gave only gotten app://local to return the file
Reply all
Reply to author
Forward
0 new messages