views:

3

answers:

0

I have a Joomla page that contains a Google Custom Search Div in it.

<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load('search', '1', {language : 'en'});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl('XXXXXXXXXXXXXXXXXXXXXX');
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>

What I would like to do is be able to post to this from another web page and have the results show up upon page load or soon after.

Any idea on how to do something like this? I've posted to a PHP page a million times but never to a page and having to pre-populate a form and submit it. I think I could do this if it was not on a joomla page.

Anyway, is there a better way to do this? Am I going about it wrong?

I just want to have my page contain a Custom Google Site Search and be able to post to that form from other pages.

Thanks for any help.