There are a few things in your source. There's an extra > in your ModulePrefs and the ModulePrefs is self-closed but then also has a closing tag - get rid of the </ModulePrefs>.
The Content section isn't wrapped in a CDATA block. After the Content tag you need <![CDATA[ and before the </Content> you need ]]>. In the userprefs you have a pref whose name is the url you're trying to fetch data from. It would make more sense to just use the url directly in your Javascript or store it in the iframeURL variable. There's also no element in your gadget html with the id="dest" for the getElementById call. hth, Rob Russell Google Developer Relations On Mon, Jun 28, 2010 at 1:03 PM, DanK <[email protected]> wrote: > I have been struggling to create a simple passthrough igoogle > application. My website www.dailyradical.com displays a new chinese > radical at random upon each visit to the site. THe index page is a php > insert of www.dailyradical.com/dailycron.php . > > I spent alot of time trying to get that page to pass through an iframe > into an igoogle xml file, but I am receiving a parsar error when I > test it on Google's gadget checker. It is not specific enough to tell > me what I am doing wrong. > > I would like to do the pass-through iframe sort of igoogle app because > my site is mysql database driven and I cannot replicate it by using a > csv file. I have CSS on the dailycron page. Could that be part of the > problem? And if php cannot pass-through an xml iframe, then is there > another way for me to achieve this. > > Dailyradical.com is to help people who are studying chinese to > memorize the basic chinese radicals that make up the majoirty of > chinese characters. It is similar to using flash cards and will help > alot of people, so I really appreciate your help. The igoogle gadget > development pages help, but I have not been able to get passed this > point. > > > <?xml version="1.0" encoding="UTF-8" ?> > <Module> > <ModulePrefs title="Chinese Daily Radical" title_url="http:// > dailyradical.com" > description="Learn a new Chinese radical with every new > visit." > thumbnail="http://www.dailyradical.com/dailythumb.png" > height="800" width="600" author="Dan Kessler" > author_email="[email protected]"/> > > </ModulePrefs> > <UserPref name="http://dailyradical.com/dailycron.php" > display_name="Daily Radical" required="true"/> > <UserPref name="scroll" display_name="Display scrollbar" > default_value="auto" datatype="enum"> > <EnumValue value="auto" display_value="Automatic"/> > <EnumValue value="no" display_value="No"/> > <EnumValue value="yes" display_value="Yes"/> > </UserPref> > <Content type="html" view="default,canvas"> > <div id='dest'><img src="http://www.google.com/ig/images/ > spinner.gif"></div> > <script type="text/javascript"> > gadgets.util.registerOnLoadHandler(doRender); > > function doRender(){ > // setup variables > var prefs = new gadgets.Prefs(); > var iframeURL = prefs.getString('iframeURL'); > var scroll = prefs.getString('scroll'); > var height = 800; > var width = 600; > > if (gadgets.window) { > var viewport = gadgets.window.getViewportDimensions(); > if (viewport.width) { > var width = viewport.width; > } > if (viewport.height) { > var height = viewport.height; > } > } > > var iframe = document.createElement('iframe'); > iframe.setAttribute('width', width + 'px'); > iframe.setAttribute('height', height + 'px'); > iframe.setAttribute('frameborder','no'); > if(scroll){ > iframe.setAttribute('scrolling', scroll); > } > iframe.setAttribute('src', iframeURL); > > // set the slideshow to the placeholder div > var dest = document.getElementById('dest'); > dest.innerHTML = ''; > dest.appendChild(iframe); > } > </script> > </Content> > </Module> > > -- > 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.
