Search results over site content

1 view
Skip to first unread message

Jack Fear

unread,
Oct 28, 2007, 8:54:12 AM10/28/07
to Google AJAX API
May be this is not the right place for my question, but...
I have a site which I want to integrate the AJAX Search Api to. What I
want is to display the results over the site content in specific DIV.
When search result are cleared I want to get back my content. Now I
have two separate DIV sections. One for the search box and the other
for displaying the results.
Can anyone point me to the right part of the documentation or to any
AJAX learning page?

jgeerdes [AJAX APIs Guru]

unread,
Oct 28, 2007, 9:08:12 AM10/28/07
to Google AJAX API
The way I see it, you have two options:

OPTION 1:
When you execute the search, save your original content to a variable
so that, when the results are cleared, you can plug them back in.

OPTION 2:
Use three divs nested inside a fourth. The first div would be fore
your search form, the third for your original content, and the second
would be populated and unpopulated with the search results. The trick
would be that this second div is set to position:absolute;z-index:
1;background:#FFFFFF; so that it floats above the rest of the
content. Then, when it's populated with results, it will expand to
cover the original content. And when it's cleared, it will contract
to reveal all!

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
jgee...@mchsi.com

Reply all
Reply to author
Forward
0 new messages