Hi.

Im trying to display the error ticket caused by a controller "without 
changing the current url" on my browser, also in the same browser tab of 
course.

Im using Live Reload to display the changes to my pages and its quite 
annoying to manually refreshing the browser each time i have an error on 
the controller.

This is my routers.py at web2py folder:

routers = dict(
    BASE=dict(
        default_application='test',
    ),
    test=dict(
        default_controller = 'index',
        default_function = 'index'
    ),
)
error_message_ticket='''
  <html><head>
    <script language="javascript">
      location.replace("/admin/default/ticket/%(ticket)s")
    </script>
    <!-- this is junk text else IE does not display the page: 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx //-->
  </head></html>'''

I grabed the error_message_ticket from Stack Overflow which allows me to 
display the ticket at the same browser tab but its not quite what im 
looking for, the url still changes.

Thanks in advance.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to