Closed Thread Icon

Preserved Topic: how to close or hide the ie search pane? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18436" title="Pages that link to Preserved Topic: how to close or hide the ie  search pane? (Page 1 of 1)" rel="nofollow" >Preserved Topic: how to close or hide the ie  search pane? <span class="small">(Page 1 of 1)</span>\

 
911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 02-18-2002 12:29

hi all!

this is my problem:

i´ve opened the browser's search pane with this js -->

code:
<a href="javascript:void(_search=open('any_url', '_search'))">open search pane</a>



now i want to close the search pane via a js like this:

code:
<a href="javascript:close()">close search pane</a>



but this does not work and i can´t find a way to do this. any ideas?




Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-18-2002 19:52

SearchPaneReference = open('any_url', '_search');
SearchPaneReference.close();

well, I've never worked with panes before, but this seems logical. In your case, since you used the variable _search, say _search.close().

Note that the way you're doing it, it looks like people with other browsers will get a new window opened.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 02-19-2002 10:42

Slime, I tried that one 911 first posted his question....
seeing it not working, kept me from posting...another thing that I noticed is that I can't list the objects properties too!

for (x in _search)
alert(x);

I get a "Unspecified error occured" error!

weird...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-19-2002 16:04

Hmm... maybe the variable _search needs to be globally defined.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 02-19-2002 16:11

Slime, not really ...

i did: alert(_search); and I get [object]

I do 'for (x in _search)' and get that error...
weird...as if a protected object!

even if i take a copy of it to mySearch = _search ....

911, where did you get that from ? I mean the code/specification/article on how to do that.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-19-2002 16:47

Ah... it probably *is* a protected object. Especially if the site contained in the search pane isn't in the same domain as the current site.

911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 02-26-2002 12:09

i found it at http://www.blogger.com. they use it for their NewsBlogger Bar.

and i only found this(http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/target.asp) at msdn.

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 02-28-2002 04:00

ok, so they use it to open the search window, I have seen that... But I have never seen a anyone use a script to close the search window... If it's possible, I'm not sure why it would be used... I mean you already have a "X" to close it with, I don't think people would use a link to close it if they had one anyway....

edit - (This is all they did to open the search plane window)

<a target="_search" href="http://news.blogger.com/bar.html">NewsBlogger Bar</a>


[This message has been edited by Synthetic (edited 02-28-2002).]

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 02-28-2002 04:39

Well, it would be neat to have your own search pane open, and then, upon submitting a search, close that same pane....

I now consider it a mission of mine to figure out how to close it via javascript.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 03-27-2002 20:59

Anyone ever find a way to do this? I'm still searching....

« BackwardsOnwards »

Show Forum Drop Down Menu