Novell Home

Searching eGuide from Another Page

Novell Cool Solutions: Tip
By Peter Wass

Digg This - Slashdot This

Posted: 22 Mar 2005
 

Problem

I would like to create a search box on our Intranet homepage, from there user can then enter a "Last Name" and hit the search Button. The "search string" then should pass to eGuide and display the result within eGuide (on a new window). Can someone please assist?

Solution

Here's the solution from Peter Wass:


I added a piece of Javascript to the top of eguide_nav.html. It's pretty basic, but it works. You pass a standard set of parameters to eGuide using EXTAction instead of Action, and it gets replaced and reloaded when this script loads.

function ExteriorSearch(what) {
            var tStr = unescape(window.parent.location);
            ReplaceWhat = "EXTAction"
            ReplaceWith = "Action"
            var rw = new RegExp(ReplaceWhat,"g");
    tStr = tStr.replace(rw,ReplaceWith);
    var testvar = getParameter
(window.parent.location.search,"EXTAction");
            if (testvar == 'List.get') {
       this.location = tStr;              
            }
         }

Then you need to change the third document.writeln to this:

document.writeln('<body bgcolor=\"' + getParameter
(location.search,"color") + '\" onload=\"ExteriorSearch(this)\">');


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell