Baz has asked for the wisdom of the Perl Monks concerning the following question:

Hi everyone,
Currently i have a frameset consisting of 2 frames. One frame contains a form. When the form is submitted I want a new frameset loaded into the window and the form string posted to one of the frames on this. This frame contains the html output of the cgi script which processed the form data. How do I do this?. I can use javasripts onClick to load up the new frameset when the submit button is clicked. But how do I set the target feild of the form....im lost. Thanx for listening Baz
  • Comment on posting messages to a frame inbedded in a new frame set

Replies are listed 'Best First'.
(bbfu) (not perl) Re: posting messages to a frame inbedded in a new frame set
by bbfu (Curate) on Sep 16, 2001 at 21:35 UTC

    This is hardly Perl related. Even so, I don't think you need JS for this, you just need the target attribute of the <frame> tag. You can find info about this at the W3C's HTML page.

    bbfu
    Seasons don't fear The Reaper.
    Nor do the wind, the sun, and the rain.
    We can be like they are.

Re: posting messages to a frame inbedded in a new frame set
by greywolf (Priest) on Sep 16, 2001 at 23:07 UTC
    Definately not perl related but here it goes.

    When you load your new frameset call it with an url that includes parameters. eg:somesite.com/frameset.html?attribute1

    Use some javascript in this frameset to split the url on the '?'. Based on the results of your split you can load the appropriate attribute frame in your new frameset.

    mr greywolf
      i need to do this using the post method as my form data can be very large