Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening local page fails #26

Open
kayhadrin opened this issue Jan 1, 2011 · 0 comments
Open

Opening local page fails #26

kayhadrin opened this issue Jan 1, 2011 · 0 comments

Comments

@kayhadrin
Copy link

Hi there,

I've noticed that loading a local page would fail.

Example:
window.location = "app_host.html";

The error message is:
failed to open file file://E/:/David/Dev/www/fix_acdsee_db/app_host.html JavaException: java.net.UnknownHostException: E

This is because the URL of the file is wrong. It should be file:/// instead of file:// (notice the additional '/').

Here's a quick fix in xhr.js:
// if base is still empty, then we are in QA mode loading local
// files. Get current working directory
if (!base) {
base = 'file:///' + Envjs.getcwd() + '/';
}

I hope this helps.

Kayhadrin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant