I have the following added to the end of a view:
$(function(){
$("#includedContent").load("/MyApp/static/desc/P"+id+"_desc.html");
});
This works fine. However, if this page is arrived from a redirect(), the
URL has a fragment identifier '#' appended. For some reason, this ca
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, 201
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')
redirect(URL('i
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 scr
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
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 works..
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 issue
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 wrote:
> SQLFORM(..., _action='')
>
> SQLFORM.factory(..., _action='')
>
> The above are both just HTML helpers, so you can add any attribute as
> usual (i.e., b
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 wrote
9 matches
Mail list logo