PDA

View Full Version : UPDATED: Opening frames in a separate page and NOT by "document.write" - Please HELP!



VatsaL
12-21-2006, 12:24 AM
Hello everyone

I am using a search form which, on submission, uses document.write to produce a page with two frames.

this is the document.write code:


function search2(item){
stringPlus();
resultsWindow=window.open('', 'SSearch', 'toolbar=yes,location=no,directories=no,status=yes,menubar=yes,width=1000,height=600,resizable=1,scrollbars=auto');
resultsWindow.document.open();
resultsWindow.document.write("<head><title>Images</title></head>");
resultsWindow.document.write("<FRAMESET ROWS=9%,91% border=0><FRAME NAME='frame0' SRC='" + computeFrameSrc(0) + "'><FRAME NAME='frame1' SRC='" + computeFrameSrc(1) + "'></FRAMESET>");
resultsWindow.document.close();
got = 0;
}



How can I get these two frames two open up in a separate page, say results.htm, and NOT through document.write?

It is a part of this script, which opens search results according to which boxes are checked.

http://www.b3ta.cr3ation.co.uk/data/js/search.js

I had edited the script, so that it would open the same results every single time.

But how can I make the results open up in a separatly specified page rather than using document.write??


HELPPP!

many thanks,
vatsal.