Hi,
I have a BSP-site which includes frames.
frame1 and frame2
I need the "GetVendor" stuff to go to frame2. and the other to frame1
I tried some stuff with Javascript. No success.
I need to use 1 form tagg.
Any ideas ?
<form name="mainform" method="POST">
<input type="submit" name="onInputProcessing(GetVendor)" value="Submit">
<input type="submit" name="onInputProcessing(Submit)" value="Submit">
</form>
Event Handler:
if event_id eq 'Submit'.
navigation->goto_page('k1.htm').
else
navigation->goto_page('k2.htm').
endif.
//Martin
Hi Martin,
you can realize that by either using the Model-View-Controller concept (MVC) or by creating 3 pages.
The first page embeddes the frames while the other two pages are for the two frames. You can have a form tag in each page.
Regards,
Rainer
As far as I understood, you want to have two submit buttons which will submit the same form to the different frames?
Sounds a little strange 😊
Anyway the BSP event handler cannot help here. It is called when the form is already posted.
To post the form into another frame you have to set the 'target' attribute for the form. This can be done dynamically with javascript.
Additionally the 'action' attribute also must be changed to point to second page.
Example:
<form <i>id="form1"</i> name="mainform" method="POST">
onclick="form1.target='frame2'; form1.action='k2.htm'" type="submit" name="onInputProcessing(GetVendor)" value="Submit">
<input type="submit" name="onInputProcessing(Submit)" value="Submit">
</form>
Add a comment