Rob, thanks again for the reply.

Yeah, you are totally right, target=_blank a document within an iframe works
just as expected. I was confusing all this stuff. All clear now!

Cheers,

Marcelo.

On Wed, May 5, 2010 at 7:27 PM, Rob Russell <[email protected]> wrote:

> Using target="_blank" on the link opens a link in a new tab. It should be
> straightforward to set that up dynamically in your javascript.
>
>
> Rob Russell
> Google Developer Relations
>
>
> On Wed, May 5, 2010 at 4:43 PM, Marcelo de Moraes Serpa <
> [email protected]> wrote:
>
>> Thanks for the answer Rob,
>>
>> Do you know if the gadgets or OpenSocial framework provide any facility to
>> open links out of the context of this iframe?
>>
>> For example, I have several links inside the gadget. Each of them points
>> to an external site, they are simple GET requests (although sometimes could
>> be POST though form o javascript). When the user clicks, instead of opening
>> the link in this iframe (which is what would normally happen, given the way
>> iframe works) I want to open it either: 1) On the tab that is hosting the
>> container that hosts this gadget or; 2) On a new tab on the browser.
>>
>> Is it possible?
>>
>> Cheers,
>>
>> Marcelo.
>>
>>
>> On Wed, May 5, 2010 at 6:40 PM, Rob Russell <[email protected]>wrote:
>>
>>> There used to be inline gadgets on iGoogle, now I don't know if there are
>>> any left besides the developer gadget - it's a bit of a special case. There
>>> could be a couple other Google gadgets that are still inline. All gadgets
>>> created now live in an iframe.
>>>
>>> Rob Russell
>>> Google Developer Relations
>>>
>>>
>>>
>>> On Wed, May 5, 2010 at 4:34 PM, Marcelo de Moraes Serpa <
>>> [email protected]> wrote:
>>>
>>>> Hmm, I was checking on of google gadgets (the "My Gadgets" gadget),
>>>> which *does not use an iframe*. My gadget does have an iframe though.
>>>>
>>>> I thought only type="url" gadgets used iframe whatsoever.
>>>>
>>>> This leads me to the following question: Is there a way to create a
>>>> gadget that does not use an iframe?
>>>>
>>>> Cheers,
>>>>
>>>> Marcelo.
>>>>
>>>>
>>>> On Wed, May 5, 2010 at 6:29 PM, Marcelo de Moraes Serpa <
>>>> [email protected]> wrote:
>>>>
>>>>> Hmm, I checked the markup of a couple of gadgets and they don't seem to
>>>>> use an iframe after all, *except* the ones that use the Content 
>>>>> type="url".
>>>>> Am I missing something here?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Marcelo.
>>>>>
>>>>>
>>>>> On Wed, May 5, 2010 at 6:23 PM, Marcelo de Moraes Serpa <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Oh, I didn't know gadgets used an IFRAME... :(
>>>>>>
>>>>>> This could be a big issue for the gadget we want to develop. This
>>>>>> specific gadget has links that should be opened in the browser context, 
>>>>>> and
>>>>>> not the iframe context (i.e as new tabs or browser windows, target: 
>>>>>> _blank).
>>>>>> I wonder how one could do that from within a gadget?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Marcelo.
>>>>>>
>>>>>>
>>>>>> On Wed, May 5, 2010 at 6:14 PM, Michael Geary <[email protected]> wrote:
>>>>>>
>>>>>>> When you run Firebug on iGoogle, you are running it on the container
>>>>>>> page, not in the IFRAME that contains your gadget, so it does not have 
>>>>>>> the
>>>>>>> same global object as your gadget IFRAME.
>>>>>>>
>>>>>>> One way to run Firebug on your gadget code is to right click inside
>>>>>>> your gadget and select This Frame and then any of:
>>>>>>>
>>>>>>> Show Only This Frame
>>>>>>> Open Frame in New Window
>>>>>>> Open Frame in New Tab
>>>>>>>
>>>>>>> Then you'll have your gadget code running in its own browser window
>>>>>>> or tab, and when you use Firebug you will see gadgets.io and the
>>>>>>> other objects you expect.
>>>>>>>
>>>>>>> -Mike
>>>>>>>
>>>>>>> On Wed, May 5, 2010 at 3:57 PM, celoserpa <[email protected]>wrote:
>>>>>>>
>>>>>>>> Hello list,
>>>>>>>>
>>>>>>>> I haven't dug up deeply into the Gadgets engine nor I plan to right
>>>>>>>> now, and something intrigued me. If I put this in a <javascript> 
>>>>>>>> element
>>>>>>>> inside the gadget's content:
>>>>>>>>
>>>>>>>>             alert(gadgets.io.RequestParameters.AUTHORIZATION);
>>>>>>>>
>>>>>>>> I get the alert with AUTHORIZATION when opening iGoogle and the
>>>>>>>> gadget loads.
>>>>>>>>
>>>>>>>> However, if, while on iGoogle, I open Firebug and on the console I
>>>>>>>> type:
>>>>>>>>
>>>>>>>> >>> console.debug(gadgets.io.RequestParameters.AUTHORIZATION);
>>>>>>>>
>>>>>>>> I get the following result:
>>>>>>>> TypeError: gadgets.io is undefined { message="gadgets.io is
>>>>>>>> undefined", more...}
>>>>>>>>
>>>>>>>> Now, I'm puzzled on how iGoogle makes gadgets.io available for the
>>>>>>>> gadget only, could someone enlightenme?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Marcelo.
>>>>>>>>
>>>>>>>>  --
>>>>>>>> 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]<google-gadgets-api%[email protected]>
>>>>>>>> .
>>>>>>>> For more options, visit this group at
>>>>>>>> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>>>>>>>>
>>>>>>>
>>>>>>>  --
>>>>>>> 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]<google-gadgets-api%[email protected]>
>>>>>>> .
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>  --
>>>> 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]<google-gadgets-api%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>>>>
>>>
>>>  --
>>> 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]<google-gadgets-api%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>>>
>>
>>  --
>> 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]<google-gadgets-api%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>>
>
>  --
> 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]<google-gadgets-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>

-- 
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.

Reply via email to