danny248
12-06-2006, 05:11 PM
So I'm building a web site and have a page split into two frames. A top one and a bottom one. The top on is topframe.html and the bottom one is gettext.php. The job of the bottom frame is to open a file, read and parse it, and pass the parsed strings to a javascript functions contained in gettext.php. The javascript function writes to topframe.html using
parent.frames[0].document.write(passedstring);
This worked fine and dandy however there is a picture located in topframe.html that I would like to stay there. However when I use this write function it seems to create a new page instead of writing to the current topframe.html. Any ideas on how I can append to the file instead of creating a new one? Thanks in advance.
Danny
parent.frames[0].document.write(passedstring);
This worked fine and dandy however there is a picture located in topframe.html that I would like to stay there. However when I use this write function it seems to create a new page instead of writing to the current topframe.html. Any ideas on how I can append to the file instead of creating a new one? Thanks in advance.
Danny