I believe that is exactly what is happening. Anyway...for your viewing enjoyment:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="author" lang="en" content="{{=response.author}}" / > <meta name="keywords" content="{{=response.keywords}}" /> <meta name="description" content="{{=response.description}}" / > <title>{{=response.title or URL(r=request)}}</title> <!--<link rel="stylesheet" media="screen,projection" type="text/css" href="{{=URL(r=request,c='static',f='styles.css')}}" / >--> <link rel="stylesheet" type="text/css" href="{{=URL (r=request,c='static',f='main.css')}}"> {{include 'web2py_ajax.html'}} <script><!-- function build_menu(){ $.getJSON("{{=URL (r=request,c='default',f='getmenudata')}}",function(rData){ $("#menu").empty(); $("#menu").append("<tr><th id='menutitle'>"+rData ['title']+"</th></tr>"); if($("#menutitle")){alert("Yes");} for(i=0;i<=rData['items'].length-1;i++){ $("#menu").append("<tr><td class='menuitem'>"+rData['items'][i]['data']+"</td></tr>"); } $("#menu").append("<tr><th id='menufooter'> </ th></tr>"); alert( $("#menu") ); }); } function load_content(){ $.getJSON("{{=URL (r=request,c='default',f='getpagedata',vars={'currentpage':'+str (session.page)})}}",function(rData){ alert(rData['currentpage']);i f(rData['currentpage']=='login'){ alert('login'); } else{ $.getJSON("{{=URL (r=request,c='default',f='getcontent',vars= {'section':'Home.Announcement'})}}",function(rData){ $("#main").empty(); for(i=rData.length;i>=0;i--){ $("#main").append ("<table><tr><td>"+rData[i]['data']+"</td></tr><tr><td>"+rData[i] ['createdate']+"</td></tr></table>"); } }); } }); } // $(document).ready(function(){build_menu();load_content ();}) --></script> </head> <body id='body' style="background-image: url({{=URL (r=request,c='static',f='blah.jpg')}});background-attachment: fixed;background-position: center center;background-repeat: no- repeat;background-color: #000000;"> <table class="main"> <tr> <td valign="center" height="100%"> <table cellspacing='0' cellpadding='2' id='menu' class='menu'> </table> </td> <td id='main'> </td> </tr> </table> </body> </html> If you load this it will create an infinite loop. On Feb 20, 3:17 pm, mdipierro <[email protected]> wrote: > If the program goes in a loop that will block the thread and the > thread will block the session for this user. > > On Feb 20, 3:05 pm, DenesL <[email protected]> wrote: > > > > > On Feb 20, 10:58 am, "[email protected]" <[email protected]> wrote: > > > > Eventually, I see that I have a syntax error in one of the {{}} blocks > > > in the view. > > > Can you post the view to see the syntax error?.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

