Yes. Thank you. -----Original Message----- From: Tim Wintle [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 11:34 AM To: Tulip, Nick Cc: [email protected] Subject: RE: How to pass extra URL Parameters to iframe
> Are you saying that instead of using shindig for that, to go ahead and > just load the iframe/div with the data from the URL? I was suggesting having a (javascript) on-load handler in the gadget that would generate the url you want to fetch data from and then use ajax to insert that content into a div. As far as I'm aware there isn't any server-side logic done within the gadget templating (and there shouldn't be or they couldn't be cached for those of us who do cache heavily) - hence not being able to use the parameters to generate different gadgets. The Gadget XML is just a markup language. Thus, to build different content for different requests, you'd have to run the code on the client using javascript - in a method similar to what I described above. Hope that makes sense. Tim > > You could say that we are attempting to use Shindig in a different way > than prescribed and I am leaning more on exactly the method. A list of > URL's, for each URL, create a div an inner i-frame with the url > received. > > On our side, a user is shown a list of gadgets, gadgets don't have > preferences that a user can edit. > > The information the gadget needs are to be sent through url parameters. > > Also, caching is disabled. > > > -----Original Message----- > From: Tim Wintle [mailto:[EMAIL PROTECTED] > Sent: Monday, November 10, 2008 8:17 AM > To: [email protected] > Subject: Re: How to pass extra URL Parameters to iframe > > I believe that the content from the url will be cached (possibly for a > really long time), so you should be using a static url. > > If you want to add dynamic content in there then I'd make an AJAX > request and replace the content of a div. > > Could be missing something, but this is my understanding (and what I've > assumed where I'm running shindig) > > Tim Wintle > > > On Mon, 2008-11-10 at 08:11 -0500, Tulip, Nick wrote: > > Can anyone help me figuring out how to pass an initial list of url > > parameters to the iframe? > > > > Gadget content is of type URL and what I want is for Shindig to append > a > > list of parameters to the gadget's content url > > (http://portal/gadgets/data/data_gadget.aspx?start=1&end=2) > > > > Gadget XML: > > > > <?xml version="1.0" encoding="UTF-8" ?> > > <Module> > > <ModulePrefs title="__MSG_title__" > > description="__MSG_desc__" > > directory_title="__MSG_gTitle__" > > height="270" > > render_inline="never"> > > <Require feature="views"/> > > <Require feature="tabs"/> > > <Require feature="dynamic-height"/> > > <Require feature="setprefs"/> > > </ModulePrefs> > > <UserPref urlparam="start" name="start" datatype="hidden" > > default_value="1"/> > > <UserPref urlparam="end" name="end" datatype="hidden" > > default_value="2"/> > > <Content type="url" > > href="http://portal/gadgets/data/data_gadget.aspx?start={START > > PARAMETER}&end={END PARAMETER}" /> > > </Module> > > > > Thank you for any help. >

