I thought this would be really simple but after googling and coding
for a couple of days I have made little progress.

What I want to do is have the search form in my sidebar and the
results appear in my main content window.

I have setup a customsearch control and specified the results window
as being my content pane.
<div id="cse">Loading</div> <!-- This is my search form in my sidebar
-->
<script ...>
...
  options.setSearchFormRoot(document.getElementById("cse"));
...
  searchControl.draw(document.getElementById("content_pane"),
options);
</script>
<div id="content_pane">
  selected page content here - but I want this replaced with search
results when user does search
</div>

Problem: when the page loads the content area is blank - i.e. my site
pages don't display - search results come up fine but that does not
help me.

I have a work around where I define another <div> above the
content_pane div and make this my search results - that works but it
displays the search results with page content tagged on the end -
which ideally I don't want.

I copied code from here
http://code.google.com/apis/ajax/playground/#search_form_placement

But that does not seem to demonstrate how to have search results use
the same container as the sites content so that the results appear as
another page on the site.

What am I missing?

-- 
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].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to