Newbies progi-media Posted May 9, 2000 Newbies Posted May 9, 2000 Greetings, (fmpro5U, webcompagnion v2, mac os 8.6, netscape 4.72) With a normal Browse html/cdml page we get an error message from the browser: "Unexpected error. Unable to process your request because the server encountered an unexpected condition. for more detail check error 4" Our browse page does not contain any fmp-if, it is in fact very similar to the browse.htm of "shopping cart" (web exemple in fmp4) but it does'nt work... Now if I dont specifiy a layout to use for that page... no javascript error ! But also no related fields... Dont know where to look anymore, any suggestion is greatly appreciated. Nic progi-media
Newbies progi-media Posted May 11, 2000 Author Newbies Posted May 11, 2000 Here is my code, sorry if its long, I'm also affraid that this list will change all tabs to spaces.. ruining the structure... If it's the case let me know personaly at [email protected] and I'll send you those file in attachement thanks for youe help. nic progi-media ============================================== topbar.html (that's the top bar of the frame set, here I specify the layout to use for the related fields to appear in the browse.html) ============================================== <html> <head> <title>Topbar</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#9999FF"> <table width="95%" border="0" cellspacing="5" cellpadding="5" align="center"> <tr> <td height="2"> </td> <td height="2"> </td> <td height="2"> </td> </tr> <tr> <td> <div align="center"><font size="5"><b><a href="search.html" target="mainFrame">Rechercher</a></b></font></div> </td> <td> <div align="center"><font size="5"><b> <a href="FMPro?-db=CraTitre.fp5&-format=browse.html&-lay=Interface de travail-SortField=sectionFR&-SortOrder=descend&-Max=10&-FindAll" target="mainFrame">Consulter</a></b></font></div> </td> <td> <div align="center"><font size="5"><b><a href="ex.html" target="mainFrame">Panier d'achat</a></b></font></div> </td> </tr> </table> </body> </html> ============================================== Browse.html (the javascript error4 occurs when trying to load this page using the link in topbar.html) ============================================== <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#CCCCFF"> <table width="95%" border="0" cellspacing="5" cellpadding="5" align="center" height="82"> <tr> <td height="70"> <div align="center"><font size="7">Consulter</font></div> </td> </tr> </table> <table width="95%" border="0" cellspacing="5" cellpadding="5" align="center"> <tr> <td width="38">Qté</td> <td width="189">Nom</td> <td width="109">Code </td> <td width="175">Qt. en inventaire</td> <td width="99">Prix</td> </tr> </table> <table width="95%" border="1" cellspacing="5" cellpadding="5" align="center" height="35"> [FMP-record] <TR> <TD ALIGN=LEFT VALIGN=MIDDLE WIDTH="34" height="45"> <FORM METHOD="POST" ACTION="FMPro" NAME="prodform[FMP-field:code]"> <INPUT TYPE="hidden" NAME="-token" VALUE="[FMP-currenttoken]"> <INPUT TYPE="hidden" NAME="-db" VALUE="CraCoItm.fp5"> <INPUT TYPE="hidden" NAME="-format" VALUE="detail.htm"> <INPUT TYPE="hidden" NAME="-lay" VALUE="1"> <INPUT TYPE="hidden" NAME="code" VALUE="[FMP-field:code]"> <INPUT TYPE="hidden" NAME="code" VALUE="[FMP-currenttoken]"> <INPUT TYPE="hidden" NAME="-new" VALUE=""> <INPUT TYPE="text" SIZE="2" NAME="Quantity" VALUE="1"> </form> </TD> <TD ALIGN=LEFT VALIGN=MIDDLE WIDTH="200" height="145"><A HREF="[FMP-linkrecid:layout=Interface de travail, format=detail.html]"> [FMP-field:titreFR]<br> [FMP-field:titreCAN]<br> [FMP-field:titreUS</A> </TD> [/FMP-record] </table> </body> </html> =============================================
Newbies progi-media Posted May 12, 2000 Author Newbies Posted May 12, 2000 I have the solution ! Turns out that WEB compagnion does'nt accept spaces in the layout name (probably not special chars either). So I renammed the layout from "Interface de travail" to "IntTrav" and it all started to work.... Thanks to Jeff for considering my problem Nic
Recommended Posts
This topic is 9029 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now