Put them as other attachments and just use relative URLS to find them.
So you would have three attachments index.html js1.js css1.css and the index.html would simply say something like <script src="js1.js" type="text/javascript"></script> <link rel="stylesheet" href="css1.css" type="text/css"/> [email protected] wrote:
I have some questions about attachments to documents. How would you attach a html page that refers to other pages. Say I have index.html which is attached to doc1. index.html needs to load js1.js and css1.css to run How would going to http://localhost:5984/mydatabase/doc1/index.html know how to find the js1.js and css1.css files? Dan
