frame and refresh

Discussion in 'HTML & Website Design' started by ahkip, May 16, 2006.

  1. #1
    I have a frameset with two frame. The top frame is a html form and the bottom frame is a dynamic php page.

    User will enter item # on the top frame. After user submit, the bottom page will show what item is add.

    The problem is that i need a way for the bottom frame to refresh after user hit the submit. I tried the onsubmit and target=_top, they both work in firefox but not IE. Any idea? Thx in advance
     
    ahkip, May 16, 2006 IP
  2. Slapyo

    Slapyo Well-Known Member

    Messages:
    266
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    You could change the form to have an onsubmit event which fires off a javascript. All the javascript would do is load the php page in the frame below with a query string on it. This way the page below knows what item # was entered and it will load accordingly. The base URL would always stay the same, but the item number that is from the form would be attached to the end of the URL.

    http://www.sitename.com/myphppage.php?item={item number here}
     
    Slapyo, May 20, 2006 IP