You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by wh...@aol.com on 2010/08/20 00:18:15 UTC
understanding attachments
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
Re: understanding attachments
Posted by Kevin Coombes <ke...@gmail.com>.
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"/>
whimsica@aol.com 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
>
>
>
>
>
>