Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question regarding frames,php, and javascript

    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

  • #2
    Regular Coder Tyree's Avatar
    Join Date
    Sep 2003
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you're going to have to show more of your code in order to determine what your best option would be. Is this a php or javascript problem? That sort of thing.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •