7.1

Table Of Contents
background-image:url('<? generateSkinLocation(); ?>/
storefront_tree_search/images_tree/throbber.gif');
background-repeat:no-repeat;background-position:100% 2px;
width:220px;margin-top:0.5em;" id="searchfor" onkeyup="getTree(this.value)"/>
</div>
</div>
<div id="tree"></div>
</div>
Livesearch.php
The PHP page called by the JavaScript code is called "livesearch.php". The code retrieves the publication types and templates
on the server based by the search string entered by the visitor.
The getTree() accepts a search string parameter (getTree('cards')). The getTree() function returns a list of publication types
and documents where the case sensitive search string appears at least in one of the fields:
l Document name
l Document code
l Publication type name
l Publication type code
The search result is used to create an hierchical tree using unorderedlists (<ul>). The response is used by the getList() func-
tion
©2010 Objectif Lune Inc - 262 -