Nicolas,

I'm having a problem:

Starting up the finder is going smoothly, but on selecting anything
I'm getting an error -- no display, the only thing in the new column
is "error". All my lists are being generated using very simple PHP ...
so clicking on a link in the first column loads a page with a <ul>
list on it. All the list items are enclosed in anchor tags.

Help!

Here's my code:

<script type="text/javascript">
$(function() {

        $('#finder').finder({title : 'Industry Segment Grid',
                                                        onItemSelect : 
function(listItem,eventTarget,finderObject){
                                                                var anchor = 
$('a',listItem),
                                                                        href = 
anchor.attr('rel');
                                                        },
                                                        onFolderSelect : 
function(listItem,eventTarget,finderObject){
                                                                var anchor = 
$('a',listItem),
                                                                        href = 
anchor.attr('rel');
                                                        },
                                                        onItemOpen : 
function(listItem,newColumn,finderObject){
                                                                var anchor = 
$('a',listItem),
                                                                        href = 
anchor.attr('href');
                                                        },
                                                        onFolderOpen : 
function(listItem,newColumn,finderObject){
                                                                var anchor = 
$('a',listItem),
                                                                        href = 
anchor.attr('href');
                                                        }
        });
});
</script>

<body>
<ol id="finder">
<?

        foreach($industrylist as $row)
        {
                echo "<li class=\"ui-finder-folder\"><a href=\"/index.php/
industry_segment/child/" . $row['id'] .  "\">" . $row
['industry_name'] . "</a></li>\n";
        }

?>
</ol>
</body>



cheers,

Nag

Reply via email to