The basic idea is to replace content of the target with a spinner (in loading components via Ajax (through LOAD() or web2py_component())įor the first problem I actually "hacked" web2py.js (web2py_ajax.js or To display some "loading pictures" (from now on, I'll call them Uhm, don't know if it'll help you, BTW, I also had to figure a "way" I've also tried setting response.js in the component controller, but I'm having trouble debugging this because nothing turns up in FireBug.ĭoes someone have any ideas? It doesn't need to deal directly with javascript, but it does need to be a component plugin. I've done a day's digging, but turned up nothing.Ĥ. Web2py_component function that allows the plugin html and responses to be loaded _onclick="." in the A helper gets overwritted by the (.) doesn't add a js script to the outer page's files.ģ. Script elements seem to disappear if placed inside the view/controller.Ģ. I don't even know if the javascript will be applied to the link in the html that it is returned with. I've been trying to return javascript with the html from the plugin that activates when the link is clicked without any success. A link in the LOADed html will start some analyses and will be replaced by an image of a loading gif while waiting for the analyses to complete and the html to be returned. The problem I'm trying to solve is this: The application uses LOAD to embed some html generated by the plugin in the page. I'm currently writing a plugin for part of a bigger project that can take some time doing processing server side and I'm trying to make it as modular as possible thus the plugins and components.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |