Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing information between two frames

Status
Not open for further replies.

agadir

Programmer
Oct 29, 2001
18
DE
Hi,
I've got a JavaScriptbased searchengine for an intranetpresentation.
The size of this searchengine is expected to grow about 1.5 - 2 MB, so
I decided to split the browserwindow in two frames and place the searchengine
in one of these frames. This way the searchengine has to be loaded only once,
but the searchresult should be presented in the other frame.
Now I don't know how to pass the searchresult from one frame to another:
I already tried to call the contentframe (the frame where the searchresults
should be placed) with a parameter (like "top.frames[1].location.href="content.html?{searchresults}).
But this is only working for a small number of searchresults.
For a large number of searchresults I get a browsermessage about an invalid pointer.
To place the searchresults in a cookie does not work, too.
Does anyone know how to solve this?
Any help would be appreciated.
Thankx!
 
when you submit your search from the search engine frame target it to the search results frame. To do this you only need a target tag in the form tag (if you are using forms that is)
 
Hi sjravee,
thanks for your answer!
Well, that's exactly the problem. The searchengine and the keywords are coded in JavaScript.
This searchengine is placed in the first frame where you can enter your searchstring.
(The searchengine have to be placed in the first string, because this frame is loaded only once; the second
frame changes dynamically)
Then the searchengine checks out if there are any matchings with the included keywords and if
there are some matchings then these hits are stored in a searchresultarray.
Now I need to send this searchresultarray to the second frame.
I know that it would be better to do this with CGI, but for this job i had to use Javascript.
Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top