On Jun 11, 11:41 pm, dafydd <[email protected]> wrote: > In what format should that response be? Is it an (X)HTML page? Is it > another XML <Module>?
Hi Dafydd, There are two ways to approach it. The preferred method is to not use the classic HTTP GET/POST paradigm, but to code your request-response behind the scenes using AJAX. This will involve catching the onsubmit event in JS, firing off the data to your server (using one of the API's content-retrieval functions), then displaying an appropriate response with DHTML. However, the gadget is simply a little HTML page in an iframe, so it is also possible to go completely old-school and just submit the form, with your response page URL in the action attribute of the form tag. If you're going this route, I'd recommend using a type="url" gadget (rather than type="html"); that's a better fit. BTW, I don't think this is explicitly covered anywhere in the documentation; lots of gadgets don't use forms as such. String --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
