Google Answers Logo
View Question
 
Q: ASP.NET Browser search pane ( No Answer,   3 Comments )
Question  
Subject: ASP.NET Browser search pane
Category: Computers > Programming
Asked by: marcos-ga
List Price: $2.00
Posted: 02 Dec 2002 16:42 PST
Expires: 01 Jan 2003 16:42 PST
Question ID: 118052
How do I programmatically close the browser search pane in ASP or
ASP.NET?
I am new to ASP programming.
I set the target to "_search" and my page displays in the browser
search pane window.  But when the user hits a "Close" on the screen, I
want the search pane to go away without having to hit the [x] on the
top of the form.
Answer  
There is no answer at this time.

Comments  
Subject: Re: ASP.NET Browser search pane
From: dayd-ga on 04 Dec 2002 14:15 PST
 
I'm not a researcher, but this question was interesting, I did not
know IE supported targeting the search bar.  So using standard
window.open and close functions I was able to (I think) discover the
functionality you described.  Here's what I found.  Just paste it into
a blank HTML document, save and then try the links.  I'm using IE 6
for testing.  For more information try searching groups.google.com for
'_search'.

-BEGIN-

<SCRIPT>
var searchbar

function openSearchbar(pagename){
	searchbar = window.open(pagename,"_search");
}

function closeSearchbar(){
	searchbar.close()
}

</SCRIPT>

<A HREF="javascript: openSearchbar('://www.google.com')">open</A>
<BR><BR>
<A HREF="javascript: closeSearchbar()">close</A>

-END-

-Rob Z.

http://www.bellallusions.com
http://www.striezelmarkt.org
Subject: Re: ASP.NET Browser search pane
From: redoc-ga on 05 Dec 2002 23:14 PST
 
is this page somewhere where I can look at it? I would love to help
you on this, Please let me know. also previous comment to this
question that said use the searchbar.close() should work also if not
let me know :)
Subject: Re: ASP.NET Browser search pane
From: marcos-ga on 10 Dec 2002 03:02 PST
 
Hi, thanks for the sample.

The first part, of opening the window is what i am need, but when I
close the window, I don't just want my content to go away, leaving the
blank frame.  I want the area consumed by the search bar to disappear,
to be replaced by the main part of my application.

I couldn't get the closeSearchbar() example of your example to work.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy