Here is what would cause this problem. You have this link:
{{=A('Confirm',_href=URL('reservation_confirmed',
args=request.args),_style="color:#ff3300;font-size:20px;background-color:#ffffff;padding:5px;border:1px
solid #999999")}}
Now if in the view for reservation_confirmed you include an image or a css
file or any other static file with the incomplete path, the browser may
incorrectly request the page itself instead of the image. This happens when
you use a stock template and you have broken src="" in it. So the action is
not called twice because of the click but because of the src.
Do I make sense? This may not be your problem. Just guessing because I have
seen it many times.
On Thursday, 26 February 2015 04:58:24 UTC-6, peter wrote:
>
> I have a baffling problem. I have written a ticket booking system for a
> jazz club, in Web2py. (Web2py has been great for this site). It has been
> functioning very well for a number of years. When reserving seats with the
> system, the user is shown a summary of their reservations and clicks a
> confirm button. This then calls a web2py function that sends a confirmation
> email and books the seats in the database.
>
> A user claims it is double booking him even though he only clicks confirm
> once. The strange thing is it only does this for him and it has done it
> three weeks running.
>
> Has anyone any ideas how an 'A' link
>
> {{=A('Confirm',_href=URL('reservation_confirmed',
> args=request.args),_style="color:#ff3300;font-size:20px;background-color:#ffffff;padding:5px;border:1px
>
> solid #999999")}}
>
> can cause a routine to called twice with one button click?
>
> Any ideas welcome
>
> Thanks
> Peter
>
>
--
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.