Thanks for the response. What I did was save the XML file for the code that 
the CSE page gave me on a notepad document. Then I uploaded it to the 
attachments section of the Google Site's > Manage Sites > Attachments > 
Upload. Once uploaded I right clicked on Download then copied the URL. Then 
I edited a page > Clicked on Insert > More Gadgets then added my gadget by 
URL. It takes up the entire page width wise, but I can't figure out what to 
edit on the XML. 

I can adjust the pixels to make it around 800px in height, however before I 
start a search I have 600px of white space before the footer of my site. *Is 
there anything in this code below that I can add to make it have a dynamic 
height that expands only when they do a search, but not on the homepage.*
*
*
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="PDF Search" />
  <Content type="html">
    <![CDATA[
      <script>
  (function() {
    var cx = '001428116054185302584:zkwyutgabn0';
    var gcse = document.createElement('script'); gcse.type = 
'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 
'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>
    ]]>
  </Content>
</Module>

Regards

On Monday, January 28, 2013 10:49:52 PM UTC-6, jgeerdes [AJAX APIs "Guru"] 
wrote:
>
> If you're doing what I think you're doing (i.e., hosted Custom Search 
> widget in an iframe on your Google Site), there's no real way you can do 
> this. If that's not what you're up to, you'll need to post a link so we can 
> take a look.
>
> jg
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/0QrvbDtGLj4J
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to