I have the following added to the end of a view:

<script>
    $(function(){
        $("#includedContent").load("/MyApp/static/desc/P"+id+"_desc.html"); 
    });
</script>
<div id='includedContent'></div>

This works fine. However, if this page is arrived from a redirect(), the 
URL has a fragment identifier '#' appended. For some reason, this causes 
the script *not* to execute and so I don't get the included content.

Two questions:

   1. Why is the fragment identifier blocking the script?
   2. Why is it necessary for redirect() to always append a fragment 
   identifier? If the fragment identifier is sometimes needed, why can't it be 
   optional?


Thanks.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to