Hi I am writing a directory browser that uses the iui framework and
have run into a problem. Hope some on can help me out, I'm pretty new
at this.
I have a php file that will dynamically generate the page as you
traverse the directory.
Here is the html body.
<body>
<div class="toolbar">
<h1 id="pageTitle"></h1>
<a id="backButton" class="button" href="#"></a>
</div>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"
name="path"></form>
<?php
ShowDir($actpath);
?>
</body>
The php function ShowDir() generates the page as follows:
function ShowDir($path){
...
print "<ul title='".$title."' selected='true'>\n";
foreach($dir_list as $dir_temp)
{
$base_dir_name = basename($dir_temp);
print " <li>\n";
print " <a class='folder'></a>\n";
print " <a href='".$_SERVER['PHP_SELF']."?path=".
$dir_temp."'>$base_dir_name</a>\n";
print " </li>\n";
}
foreach($file_list as $file_temp)
{
$base_file_name = basename($file_temp);
print " <li>\n";
print " <a class='file'></a>\n";
print " <a href='".$file_temp."'
target='_blank'>".$base_file_name."</a>\n";
print " </li>\n";
}
print "</ul>\n";
...
}
This works very well and I get a very iPhone like display.
The problem I'm having is that as I traverse the sub-dir my page keeps
on painting multiple tool bars, for example if I go down 3 level then
I see 3 tool bars painted with only the first one showing the title
and back button and the other 2 tool bars just shows the background
image overlapping my directory listing text.
What am I doing wrong and how can i fix this? Any help is much
appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---