couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Johnston <greg.johns...@gmail.com>
Subject Parsing HTML in CouchApp show functions?
Date Fri, 17 Jun 2011 18:01:41 GMT
Hi all,

I'm trying to transform some HTML I have stored in a CouchDB document
to another format. It's actually pretty simple to do, really just
looping over the DOM. Normally I'd start out with something like:

var div = document.createElement("div");
div.innerHTML = [...]

...and be ready to go. Unfortunately it looks like "document" is
undefined in the show function. Am I doing something stupid here, is
there a better way, or does anyone have other suggestions?

Thanks,
Greg Johnston

Mime
View raw message