CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2000
    Location
    Calgary, Alberta, Canada
    Posts
    1

    Don't want a window.

    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

  2. #2
    Join Date
    Mar 1999
    Location
    Utah
    Posts
    66

    Re: Don't want a window.

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured