Re: <al-for> help!

John Abel <[email protected]> Thu, 27 Oct 2005 16:12:41 +0100
Newsgroups gmane.comp.web.albatross.general
Message-ID <[email protected]>
On 27 Oct 2005, at 15:30, Gabriel Cooper wrote:
>
> The code looks fine to me. I'd suggest printing out bookLinks and  
> foundBooks in <al-value> tags just before the for loop to make sure  
> it was what you thought it was. Perhaps it was modified somewhere.  
> This idea is reinforced by the fact that the code itself works in a  
> controlled environment.
>
> Hope this helps.
>
> Gabriel.
>

According to the command line, bookLinks contains:

[&#39;BooksOnline/perl4/index.htm&#39;, &#39;BooksOnline/networking/ 
index.htm&#39;, &#39;BooksOnline/unix3/index.htm&#39;,  
&#39;BooksOnline/albatross/index.html&#39;, &#39;BooksOnline/MySQL/ 
index.html&#39;, &#39;BooksOnline/unix3/index.html&#39;,  
&#39;BooksOnline/networking/index.html&#39;]

According to the web browser, it contains:

  ['BooksOnline/MySQL/index.html', 'BooksOnline/albatross/index.html']

foundBooks shows a similar discrepency, command line is:

{&#39;BooksOnline/perl4/index.htm&#39;: &#39;The Perl CD Bookshelf,  
v4.0&#39;, &#39;BooksOnline/networking/index.htm&#39;: &#39;The  
Networking CD Bookshelf&#39;, &#39;BooksOnline/unix3/index.htm&#39;:  
&#39;The Unix CD Bookshelf, v3.0&#39;, &#39;BooksOnline/albatross/ 
index.html&#39;: &#39;Albatross Manual&#39;, &#39;BooksOnline/MySQL/ 
index.html&#39;: &#39;MySQL 4.1 Reference Manual&#39;,  
&#39;BooksOnline/unix3/index.html&#39;: &#39;The Unix CD Bookshelf,  
v3.0&#39;, &#39;BooksOnline/networking/index.html&#39;: &#39;The  
Networking CD Bookshelf&#39;}

whereas the browser shows:

  {'BooksOnline/MySQL/index.html': 'MySQL 4.1 Reference Manual',  
'BooksOnline/albatross/index.html': 'Albatross Manual'}

The output is consistent, in that it is always the same items that  
get displayed.  I've tried viewing the page in Safari, and Camino,  
with no joy.

Regards

J