Ah, I see. I recommend including the local website as an iframe, and communicating with it from the main gadget spec. Since HTML5's cross-iframe postMessage method works in all Wave-supported browsers, you can use postMessage to communicate from the gadget to the iframe and vice versa.
- pamela 2010/2/4 Daniel França <[email protected]>: > Hi Pamela, that's because I wanna load an "web site" hosted local and this > site should receive events from Wave, update database, etc... how can I do > that? > > On Wed, Feb 3, 2010 at 9:14 PM, pamela (Google employee) > <[email protected]> wrote: >> >> Hi Daniel - >> >> We discourage the use of content type="url" gadgets when creating Wave >> gadgets, as it makes pulling in the various "features" tricky. You >> have to separately pull in the gadgets API, wave API, etc. >> I recommend that you use content type="html" instead, and you'll find >> development much easier. >> >> - pamela >> >> On Feb 4, 8:20 am, Daniel França <[email protected]> wrote: >> > more info, this is how I load another page: >> > >> > wave_id = wave.getWaveId().split('+')[1]; >> > new_url = 'http://cur3w12c.global-ad.net/'+wave_id; >> > window.location = new_url >> > >> > 2010/2/3 Daniel França <[email protected]> >> > >> > >> > >> > > and wave.getViewer() wave.getHost wave.getWaveId, etc return NULL in >> > > this >> > > another page >> > >> > > 2010/2/3 Daniel França <[email protected]> >> > >> > > Hi again, >> > >> I'm trying todo the following scenario: >> > >> > >> I've a public XML hosted at >> > >> > >> >>http://hosting.gmodules.com/ig/gadgets/file/117372586241155512680/ope... >> > >> >> > >> <http://hosting.gmodules.com/ig/gadgets/file/117372586241155512680/ope...>this >> > >> XML loads a page with dynamic parameters (the Wave ID) >> > >> in this other page there's some javascipt to interact, and call some >> > >> wave >> > >> methods, as this in other page I think the <Require feature="wave" /> >> > >> does >> > >> not work for it, so I included the wave javascript manually: >> > >> *<script src="https://wave-api.appspot.com/public/wave.js" >> > >> type="text/javascript"></script>* >> > >> * >> > >> * >> > >> It seems to be ok for wave methods, but I still get an exception from >> > >> gadgets object in >> > >> > >> *gadgets.util.registerOnLoadHandler(init);** * >> > >> * >> > >> * >> > >> *The errro: gadgets is not defined* >> > >> > >> What I need to include to get this work? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Wave API" 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-wave-api?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Wave API" 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-wave-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Wave API" 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-wave-api?hl=en.
