Results 1 to 3 of 3

Thread: Iframe SSI II script issue with POST

  1. #1
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe SSI II script issue with POST

    Hi,

    Same story as many, the script works great on first loading the page however I need to then POST data to the iframe at which point it doesn't resize and content is cut off. This is what I'm using to post:

    Code:
    <form method="post" name="testfocus" action="process.php" target="iframe">
    however I can't seem to get it to auto adjust to the content of the iframe.

    Thanks in advance!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Why not give my SSI III* script mentioned on page_2 of an earlier thread, starting at post number 17 a try? It uses the onload event of the iframe(s) as hard coded into the HTML and so, may work out better when posting to one of them. Let me know if it helps or if you have questions about implementing it. Be sure to read at least post #'s 17 through 20 in the thread.

    *Still under development, please give positive or negative feedback here, in this thread (so I can keep it straight who is doing what with it), if you use it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Great, that works perfectly in IE, FF and Opera (not Safari however).

    Two tips, for me to get it to work how I wanted I changed these two values to 0:

    Code:
    frameObj.height = frameWidth<contentWidth? contentHeight+0 : contentHeight+0;
    and I *had* to set a height in the iframe otherwise on first load IE would render it the wrong size.

    Thanks for the great script.

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
  •