SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2004
    Location
    united states
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem in sending a form from a modal popup window

    Hello

    I have a modal dialog window which was opened using
    Code:
    window.showModalDialog
    Let's call this page a.php

    page a contains a form with the following definition:
    Code:
    <form name="f" method="post" action="a.php" target="_self">
    Here is what I would like to see:
    The form is submitted and returned to the same page and then an alert message should appear on top of page a, explaining something that the server decideds (using some unrelated PHP code)

    Here is what I get:
    The problem is that after I submit the form,I return to a NEW page (non modal) which appears on top of my original a page. I get the alert to appear in the new page.

    All I want is to have the alert appear on top of the one modal page that I should have - page a

    what could be the problem?
    regards

    This is an emergency, please help

  2. #2
    SitePoint Member wsa1971's Avatar
    Join Date
    Jul 2004
    Location
    The Netherlands
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi David,

    I have experienced some weird behaviour in modal windows as well.
    Don't ask me why, but most of the problems get solved when i display the page in a single frame frameset.

    So this is what you load in the window:

    Code:
    <frameset rows="100%">
      <frame src="yourPage">
    </frameset>


Bookmarks

Posting Permissions

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