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

Is there a way to use MathBox.js from file:// ? #37

Open
silgon opened this issue Jul 28, 2014 · 2 comments
Open

Is there a way to use MathBox.js from file:// ? #37

silgon opened this issue Jul 28, 2014 · 2 comments

Comments

@silgon
Copy link

silgon commented Jul 28, 2014

I noticed the first part on your documents is something like:

document.getElementById('info').innerHTML = "Sorry. This example does not work when accessed using file://. Please use an http:// host and try again.";

And well, I tested and it doesn't work in with file:// and I would like to know if there's a workaround for this. Because I will try to implement MathBox with org-mode on emacs, and for the best use, you always open your files with file:// because since it's only an HTML file, maybe with some javascript and css, you don't need a server. Anyway, I'll appreciate your input. =)

@rreusser
Copy link

This is a security feature so that, for example, an html file someone sends you can't look for ~/passwords.txt and send that to their server. Some browsers allow you to disable this, but it's probably best to just start up any number of basic http servers that will serve files locally. For example, python has a nice one:

python -m SimpleHTTPServer 8000

Then fire up your browser an go to http://localhost:8000

@borismus
Copy link

+1 this would be great, especially for use within a WebView. Also @unconed are you still actively working on this? Or is this intended to be superseded by MathBox2?

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

3 participants