0

i want to know how can we set the location for a frame.suppose i have two frames, frame_top and frame_bottom, now i have some logic in frame_top. Result should be displayed in bottom_frame.

              _________
             |    top  |
             |   frame |
             -----------
             |   bottom|
             |   frmae |
             ----------- 

generally a action in a form specify the page to be loaded after submitting a form, here we can set frame on which the respective result page should come.

         like :
        <from action=go_bottom.jsp target="bottom_frame" method=post >

similarly i want to do using fallow way code: //java script in top frame

        function open1(){
         document.form2.action="go_bottom.jsp"; //here i want to set the frame location
         document.f0rm2.submit();
         } 

so the document.form2.action will submit the form and send the results into respective page. how can i set the frame_bottom here.?

4
  • Please provide more details, are you using any frameworks, etc..? What exactly do you want to get in the bottom.jsp? Thanks
    – Dropout
    Oct 8, 2013 at 11:48
  • Dropout, see i have give some more description. give some solution.
    – Vasu
    Oct 8, 2013 at 11:59
  • Setting the action to the same page and passing the results in POST for example doesn't work for you?
    – Dropout
    Oct 8, 2013 at 12:05
  • You really shouldn't use frames on any new development. Oct 8, 2013 at 16:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.