We can only guess without seeing the code.

My guess is:

1. redirect doesn't append #, something else does it client side
2. # doesn't break script execution, something else does (probably same
issue that appends #)

Can you check your console for javascript error logs?

Marin


On Mon, Feb 3, 2014 at 3:59 PM, horridohobbyist
<[email protected]>wrote:

> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/groups/opt_out.

Reply via email to