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

I know what i am asking must be simple, but I cannot figure it out, I always seem to wreck my brain with these things. I know this does not directly follow the perl. In fact, I know I am going to be blasted for this post.

However, if you can read below and shed some light it would be greatly appreciated. I tried looking into what CGI offered and other means that i could have perl perform the function, but well, after two days, I am here.

print "<td><form name='Form_support' action='Support.html' target='lef +tFrame'> <input type='submit' name='Support' value='Support'> </form> </td>"

I tried finding a way to have two actions: redraw one frame with Support.html, and another frame with Links.html. However, fiddling basic html in this manner yielded nothing.

Then I tried using a simple redirect from the target frame from the above action, and well, no matter what I tried, no go.

<meta HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://192.168.1.5/MainFram +e.htm"; >

Replies are listed 'Best First'.
Re: Multiple redirects from a single action
by diotalevi (Canon) on Dec 11, 2002 at 03:25 UTC

    The best solution is to refresh the entire frameset and provide your new frame URLs that way. The other way is to use JavaScript to set each frame but from experience that really blows. The browser treats each frame URL assignment as a new page so if you change two URLs then the user has to click the back button twice to go back one actual page. It's ugly and nasty. Just do this right - refresh the frameset. (or don't use framesets at all)

    __SIG__ use B; printf "You are here %08x\n", unpack "L!", unpack "P4", pack "L!", B::svref_2object(sub{})->OUTSIDE;

      I can only improve on what diotalevi said by pointing out that if one frame contains a document that contains a frameset, you can update multiple frames simultaneously by nesting them properly.

      For example, if the main document looks like this:

      <frameset> <frame src="A.html"> <frame src="B.html"> </frameset>

      And "B.html" contains:

      <frameset> <frame src="B1.html"> <frame src="B2.html"> </frameset>

      Then you can reload B1 and B2 by reloading B.