Skip to content

SDWebserver.ino example shows no file names in the treeview for Firefox #418

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

Closed
sunnyhighway opened this issue Jun 12, 2015 · 2 comments
Closed

Comments

@sunnyhighway
Copy link

The SDWebserver.ino example shows no file names in the treeview when shown in Firefox.

In /SdRoot/edit/index.htm the following two functions are responsible for building a tree-node.

  • function createTreeLeaf(path, name, size)
  • function createTreeBranch(path, name, disabled)

The problem lies in this line:

  • label.innerText = name.toLowerCase();

Firefox can't deal with that, and the result is that the name of the file or directory is not shown.

The following replacement fixes that problem:

  • label.textContent = name.toLowerCase();

This fix is tested to work for the most recent version of the following browsers:

  • Firefox
  • Safari
  • Chrome
  • Internet Explorer
@me-no-dev
Copy link
Collaborator

thanks :) will fix it. I wrote it while debugging on WebKit based browsers, so never caught the error.

@me-no-dev
Copy link
Collaborator

#420

@igrr igrr closed this as completed Jul 23, 2015
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