We have upgraded our support system to serve you better.
For Support, please go to our Momentive Support Hub located here.

Skip to main content

Form Tag Workaround

 
 

Form Tag Workaround

An eWeb web page is, technically a form and the .Net framework will not allow an additional form inside of the page. To incorporate form elements, client-side scripting (Javascript) can be used that targets the form elements in the document object model tree with specific actions. The following example illustrates this (yellow highlighted elements need to be removed, and green need to be added):

Original HTML Page

***<FORM name=fbsearch 
                      action=http://ss289.fusionbot.com/cgi-bin/ss_query 
                      method=get>***<INPUT type=hidden value=126759693 
name=sitenbr> 
<TD align=middle width=88><INPUT class=body 
                        style="FONT-SIZE: 8pt" name=keys></TD>
<TD align=right width=29><INPUT 
                        onmouseover="MM_swapImage('go','','images/BTNgo_over.gif',1)" 
                        onmouseout=MM_swapImgRestore() type=image height=21 
                        width=29 src="Tier 4_files/BTNgo.gif" border=0 
name=submit></FORM>

Modified version for use in eWeb

<INPUT type=hidden value=126759693 
name=sitenbr> 
<TD align=middle width=88><INPUT class=body 
                        style="FONT-SIZE: 8pt" name=keys></TD>
<TD align=right width=29><INPUT ***onclick="document.forms[0].action='http://ss289.fusionbot.com/cgi-bin/ss_query'; this.document.forms[0].submit();"***  value=Search
                            onmouseover="MM_swapImage('go','','images/BTNgo_over.gif',1)" 
                            onmouseout=MM_swapImgRestore() type=image height=21 
                            width=29 src="Tier 4_files/BTNgo.gif" border=0 
name=submit></TD>

 

Was this article helpful?
0 out of 0 found this helpful