[web2py] Re: Problem while integrating Sweet Alert with web2py in a component

2017-01-03 Thread Anthony
The browser's DOM inspector will show the DOM within each component once it has loaded -- just right-click on any element within the component and choose "Inspect element" to jump to that point in the inspector (perhaps you were instead using "View source", which simply shows the source code of

[web2py] Re: Problem while integrating Sweet Alert with web2py in a component

2017-01-03 Thread Bernardo Leon
When using the component in isolation everything works fine (the parameters are passed fine) but I have this problem when running the parent page that LOADs several instances of this component. I have printed the values of vuelo.id and preorden_vuelo.pedido on my template and, while they are pr

[web2py] Re: Problem while integrating Sweet Alert with web2py in a component

2017-01-03 Thread Anthony
Using the browser's DOM inspector, confirm that the URL in the following code has the expected value of pid: ajax('', [], target=null If so, what happens when you click the action button? Does the browser make an Ajax request to that exact URL, and does your pedir() function then receive the p