My bad about return value; duh. However, removing it didn’t make a difference (e.g., the HTLM content displayed and the javascript executes its functions but the styling is trashed). Conversely, hard-adding a ’1’ to the original file after </html> doesn’t prevent expected execution/styling when invoking the stored file from the browser status line.
I don’t think this should be a path issue. The javascript executes the styles entirely inline within the file. I have considered separating out the styles into a classic template, but this would be undesirable for reasons too detailed to go into here. My theory is that since the file was uploaded correctly to ModX and runs self-contained when invoked directly, there should be a way to pass it through ModX transparently.
I am wondering whether ModX does any hidden processing when passing this file through the snippet?
Understanding you may not want to bother at this point, let me point at the code itself (a copy outside of ModX in this case):
http://russlipton.com/empty.html
For any lurkers, what I am trying to do is use ModX as a wrapper for running instances of Tiddlywiki:
http://www.tiddlywiki.com
This would be most cool since Tiddlywiki currently lacks a standard server adaptation and I could foresee a fascinating synergy between it and ModX.
.... I’ll keep at it.