Click to See Complete Forum and Search --> : Don't want a window.


j-beaucage
March 4th, 2000, 12:50 PM
I'm using a JavaScript created by someone else (with permision) for a search engine that is self-contained for the site.

However, within the code it opens a new window to display the results of the search. I don't want it to do that. Here's the part of the code I suspect is the problem...


// prepare for document write.
config='toolbar=no,location=no,directories=no,status=no,menubar=no,'
config += 'scrollbars=yes,resizable=yes'
output = window.open ("","outputwindow",config)
output.document.write('<title> C.F.A.C. Website Search Results </title>');
output.document.write('<BODY bgcolor=#ffffff text=#000000 link=#002D88 vlink =#002D88 font face="MS Sans Serif" size="1">');


(no that's not all of the code.. it's a huge one). The question is this. I want to stay within my frames. So I don't want to open a new window but target the display page to be within my frame called "middle". What the heck do I do??

I know nothing about JavaScript... to talk to me like I'm a meer baby. Thanks oh mighty Gurus!!

P.S. I also want to be sure that the links target the same frame to display the pages in once they have searched for them. How do I do that? What am I looking for in the code?

Thanks thanks thanks!


JenB

Erik
March 4th, 2000, 10:07 PM
javascript is nothing like java but you should look for the javascript function that opens the window
and take it out. It probably looks like this -> window.open('http://www.v ...etc); Then change it to
a regular HTML link using the HREF tag.