views:

138

answers:

2

Is it possible to access gadgets.Prefs in content of type="url"?

<Content type="url" href="remote address"></Content>

gadgets.Prefs is set in content of configuration

<Content type="html" view="configuration">
A: 

No, i do not think so. I am working around this area at the moment but from what i have read and experimented with the type="url" is a complete sandbox around the app that it contains. cookies and therefore are not preserved either and there is no interaction, other than to display the external app in the iFrame.

PurplePilot
I could obtain the pref parameters in GET request, when the gadget loads. Please check the GET that comes from browser and also include another view in gadget that manages the persistence of pref parameters along with "url" content type.
dhaval
A: 

Thanks dhaval! I could get any parameter (fe. from Prefs using $_GET["up_paramname"].

Jasper
welcome @Jasper :)
dhaval