February 7, 200322 yr I have made a form for editing a record using the standard approach. On the web page i see a button (edit) which does the work (when i click the record is updated). Now instead of the button i want to use a graphic object (which is a file, forexample calculate.gif). I have been playing around with href commands but this did not work. Could anyone show me how to get my graphics object have the same functionality as the edit button in the edot foorm of filemaker. Thanks Jitse
February 7, 200322 yr You could use a <a> with some Javascript to Submit the Form. All the best. Garry
February 7, 200322 yr <input type="image" name="-Edit" src="calc.gif" alt="Calculate" height="16" width="32" border="0"> Maybe "submit" instead of "-edit". Will that work?
February 7, 200322 yr instead of the button i want to use a graphic object (which is a file, forexample calculate.gif). <input type="image" src="calculate.gif" name="-edit"> or possibly <input type="image" src="calculate.gif" border="0" name="-edit">
February 8, 200322 yr Try this: <form name="myform" action="FMPro" method="post"> . . <input type="hidden" name="-edit"> </form> <a href="#" onclick="document.myform.submit();"><image src="calculate.gif" border="0"></a> All the best. Garry
February 8, 200322 yr I've never tried: <input type="image"... I didn't know that it is a real type! Garry
February 8, 200322 yr Author Well actually i have made a stand alone expert systems. I have created a number of buttons using the standard buttons file of filemaker (buttons and dialogs). I have put scripts attached to these buttons Now i want to have a client server application of the expertsystems with (nearly) the same GUI (i am not using scripts anymore though). So now i have a nice gif file of a button and want to attach "edit record" form command to it. Having build a number of calculation field this would have the samne effect as the stand alone version with the script. Jitse
February 8, 200322 yr Author Thanks for all your advice, as soon at it is working i will show the code Jitse
February 10, 200322 yr Author This is the simple code that did the job <INPUT TYPE="image" src="calcbutton.gif" NAME="-Edit"> It took me a while to get it working because i am still using claris homepage. Somehow the code got scrambled. I now switched to BBEdit, now i can go on. Thanks !
Create an account or sign in to comment