Jump to content

This topic is 7147 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi I've created a database and I've created some custom CDML pages. And it is driving me mad. The form works fine but there is only one problem. When I fill in one of the fields and hit enter something strange happens. In safari i get the result as you would expect but in Internet Explorer I'm redirected to the error page i defined. When I press the search button in Explorer, everything works fine but when i press enter it won't.

Even stranger, this page is an adaptation of a page i made for another database, and this one works perfectly in both safari and Explorer.

I've tried almost everything that I could come up with... I've changed the names of the fields, turned indexing on and of in the DB, I've even built up the page from scratch but nothing seems to work.

I'm working in filemaker 6 and here's the code I've been using

 

<FORM ACTION="FMPro" METHOD="post">

        <INPUT TYPE="hidden" NAME="-db" VALUE="FLIR_Design_Status.fp5">

        <INPUT TYPE="hidden" NAME="-lay" VALUE="Algemeen">

        <INPUT TYPE="hidden" NAME="-format" VALUE="FLIR_DB_result.htm">

        <INPUT TYPE="hidden" NAME="-error" VALUE="FLIR_DB_error.htm">

		<INPUT TYPE="hidden" NAME="-SortField" VALUE="Taalversies">

   		<INPUT TYPE="hidden" NAME="-SortORder" VALUE="Ascending">

	

      <table width="100%"  border="0" cellspacing="0" cellpadding="0">

        <tr bgcolor="#F0F0FF">

          <td width="33%" height="30"><strong>&nbsp;ZOEKVENSTER 'STATUS DATABASE'</strong></td>

          <td width="33%" height="30">&nbsp;</td>

          <td width="33%" height="30" bgcolor="#F0F0FF">&nbsp;</td>

        </tr>

        <tr>

          <td width="33%" height="30">>&nbsp;Naam : </td>

          <td width="33%" height="30"><input name="Brochurenaam" type=text value="" size=20></td>

          <td width="33%" height="30">&nbsp;</td>

        </tr>

        <tr>

          <td height="30">&nbsp;Taal :</td>

          <td height="30"> 

		          <SELECT NAME="Taalversies">

          <option value="">kies taal</option>

          <option value="EN">Engels</option>

          <option value="FR">Frans</option>

          <option value="DE">Duits</option>

		  <option value="NL">Nederlands</option>

          <option value="IT">Italiaans</option>

          <option value="SP">Spaans</option>

          <option value="CH">Chinees</option>

          <option value="JP">Japans</option>

        </SELECT>  

		  </td>

          <td height="30">&nbsp;</td>

        </tr>

        <tr bgcolor="#F0F0FF">

          <td height="30"></td>

          <td height="30"><input type="submit" name="-Find" value="Zoeken"> <INPUT name="reset" TYPE="reset" VALUE="Wissen"></td>

          <td height="30" align="right"><input type="submit" name="-FindAll" value="Toon alle Records"></td>

        </tr>

      </table>

	  </FORM>

  

Posted

Try adding this line:

<input type="hidden" name="-find">

However, you may have problems because have both "-find" and "-findall" in the Form. You can solve that with a little bit of Javascript.

Good Luck.

Garry

Posted

Gaah! I'm so CDML rusty I didn't even realize Garry's answer was the same trick I use to use for that enter/return submit issue, except I had a space character value.

<INPUT TYPE="hidden" NAME="-find" VALUE=" ">

I used to just insert that before every submit button but when I started using IMG instead of submit buttons, I stopped for some reason, so it took me a while to find that bit of code. It works, though!

Hey, Garry... what if he tries... <input type="hidden" name="-findall">

Hey, wobbie... you may also want to consider -max and nav links in case findall gets too big.

--ST

This topic is 7147 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.