I have an imageviewer component which indirectly redirects to itself to redraw the next image in a sequence. Simple data like 'current file index' is shared through sessions. I don't think I'm calling redirect properly because I get annoying '200 ok the document has moved here' messages in firefox. The next_image.html component just increments the current index and redirects to this main code again. Any ideas on why the redirect gives me this message?
code obliterated for simplicity... <html> <form action="next_image.html" method=post><input type="submit" name="next" value="next"></form> % my @a = @{$m->session->{sortedfiles}}; % my $image = $m->session->[EMAIL PROTECTED]>session->{currentindex}]; <img src="<%$image%>" border="0" alt=""> </html> <%perl> if( $m->session->{isplaying} == 1 ) { $m->flush_buffer(); $m->redirect('next_image.html'); } </%perl> <%init> # build the sortedfile list. </%init> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users