There are a couple of ways to do this:
1) The hidden frame builds a query string, attaches it to the url for the database query program, and sends that url to the main frame:
[tt]document.frames['main'].location.href = theURL;[/tt]
2) The hidden frame puts data into fields in a form and submits the form, targeting it to the main frame:
[tt]<form name="theForm" target="main">[/tt]
[tt]document.forms['theForm'].submit();[/tt]
3) More complicated, the frame submits the form or url to itself. When the data is returned, it also contains javascript code to transfer that data to the document in the main frame using the document object model to change the page content.
4) Do away with the hidden frame altogether and use XMLHttpRequest (or similar) to request the data and javascript to parse the data and insert it into it's document.
Tracy Dryden
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
![[dragon] [dragon] [dragon]](/data/assets/smilies/dragon.gif)