Hi,
I have a few examples of doing that in my app. The function your
probably looking for is what I have as "cse.prototype.onClear" (I have
mine integrated with the CSE results also)
Except on my homepage that is not the function firing anymore since I
updated it to include the feed search and reading aspects to it so if
you wanted to see it "In action" check out the one on my blog (2nd
link) as that uses my old version (when you click the x beside the
search box, the "clear results" link by the search results does it a
different way) and I haven't updated those yet.
My homepage is using a custom search form
http://www.visionjinx.net/
My blog is using the Google form
http://www.visionjinx.net/gadgets/
Just view source on my homepage and you should see how I have mine
working.
Hope that helps :-)
Cheers!
Vision Jinx
On Jul 3, 6:00 am, bronson <
jean.roub...@gmail.com> wrote:
> Hi every body,
>
> I've tried for a while to set up a customerized clearresults button
> within the search control box.
>
> I couldn't fix it
>
> I've tried various pieces of code but none worked out
>
> last (and least...) i tried this, loaded at page loading :
> RawSearchControl.prototype.clearResults = function() {
> removeChildren(this.results);
> document.getElementById('Restriction').style.display = 'block';
> }
> My target is to clear the results, hide the afferent div and show the
> "Restriction" div
>
> The link to pagehttp://
jeanroubaud.free.fr/Compario/ClearResult.html