DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: HELP! Submit Form In IFRAME Breaks frame navigation

  1. #1
    Join Date
    Mar 2005

    HELP! Submit Form In IFRAME Breaks frame navigation

    I have a script (script1.php) that has a form whos results are displayed in an IFRAME script1.php generated called queryResult, using this method

    <IFRAME name=queryResult id=queryResult width=100% height=70% border=1 scrolling=auto></IFRAME>

    and the form targets this frame like this

    <form action=script2.php method=post id=queryForm name=queryForm target = "queryResult'">

    Now everything works just fine, the user can keep submittin the form w/ different values and IE correctly targets queryResult all the time. The problem happens when the user submits a form via script2.php in IFRAME 'queryResults' - script2.php calls on itself, performs some quick psql queries to update the DB and then it refreshes itself inorder to reflect the updates made. Afterwards, if the user submits the form in script1.php, it opens a new window instead and displays the results instead of targeting the IFRAME. Any ideas as to why?? I truly am at a loss here. This problem ONLY occurs in IE, Mozilla Browsers have no trouble.

  2. #2
    Nigel McFarlane is offline Former moderator, account closed
    Join Date
    Nov 2003
    I live on the 'net
    Sounds like it should be working. Can you point us to a URL that demonstrates the page?
    Nigel McFarlane, Author: "Firefox Hacks", "Rapid Application Development with Mozilla"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center