Re: [web2py] Why does redirect() always append '#'?

2015-01-30 Thread Richard Vézina
I should had try... :( I thought about it... what you think about the back shalsh? Richard On Thu, Jan 29, 2015 at 4:57 PM, Anthony abasta...@gmail.com wrote: SQLFORM(..., _action='') SQLFORM.factory(..., _action='') The above are both just HTML helpers, so you can add any attribute as

Re: [web2py] Why does redirect() always append '#'?

2015-01-30 Thread Richard Vézina
Bad idea, it trunk the redirect completly :D Richard On Fri, Jan 30, 2015 at 11:36 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: I should had try... :( I thought about it... what you think about the back shalsh? Richard On Thu, Jan 29, 2015 at 4:57 PM, Anthony

Re: [web2py] Why does redirect() always append '#'?

2015-01-29 Thread Richard Vézina
Getting the same issue... Could your suggestion of emtpy action in this case be improve with / action which will be parsed out by url processing? Also, how do we suppose to manage form action with SQLFORM and .factory... I try add action='', also to form.process(action='', ...), nothing

Re: [web2py] Why does redirect() always append '#'?

2015-01-29 Thread Anthony
SQLFORM(..., _action='') SQLFORM.factory(..., _action='') The above are both just HTML helpers, so you can add any attribute as usual (i.e., by preceding the attribute name with an underscore). Anthony On Thursday, January 29, 2015 at 4:25:42 PM UTC-5, Richard wrote: Getting the same

[web2py] Why does redirect() always append '#'?

2014-02-03 Thread horridohobbyist
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

Re: [web2py] Why does redirect() always append '#'?

2014-02-03 Thread Marin Pranjić
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,

Re: [web2py] Why does redirect() always append '#'?

2014-02-03 Thread horridohobbyist
Sorry, you are incorrect. redirect() always appends '#'. There's nothing I'm doing on the client side that would account for this. Here are all the redirect() calls in my code, and they all append the fragment identifier: redirect(URL('add_to_cart') redirect(URL('show_reviews')

Re: [web2py] Why does redirect() always append '#'?

2014-02-03 Thread horridohobbyist
You're right, # doesn't break script execution. I know what the problem is. On Monday, 3 February 2014 10:03:35 UTC-5, Marin Pranjić wrote: 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

Re: [web2py] Why does redirect() always append '#'?

2014-02-03 Thread Anthony
No, redirect() does not append a #. Rather, it simply returns a 303 response to the browser along with whatever URL you provide. I assume what is happening is that you are submitting a form from the browser. By default, the action attribute in a web2py form is #, which sends the request to the