06.02.2013 Views

Advanced Customisation: Scripting EPrints

Advanced Customisation: Scripting EPrints

Advanced Customisation: Scripting EPrints

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Scripting</strong> for the Web<br />

� API provides lots of methods to help you<br />

build Web pages and display (render)<br />

data<br />

� these methods return (X)HTML<br />

�but not strings!<br />

� XML DOM objects<br />

�DocumentFragment, Element, TextNode...<br />

� Build pages from these nodes<br />

� node1->appendChild(node2)<br />

� why? it’s easier to manipulate a tree than to<br />

manipulate a large string

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!