CristyCT Posted June 27, 2002 Posted June 27, 2002 Hi All, Maybe one of you can help me. I am trying to run a script on a web page that facilitates online registration for exams. Within FM, my script checks to see how many people are registered for a given date and time, and if there are more than 4 people for a given date and time, an error message is generated telling the user to select another date. However, I tried to use this script on the web, and nothing happens. If an error is being generated, how is the web user supposed to recieve the news? Here is the tag I'm using online: <input type="hidden" name="-script" value="CheckClassFull"> Here is the link to my page as well: https://filemaker.ccsu.edu/data/TLC/default.htm Just click on the "New Record" link to get to the page. I am using FM version 5.5. Thanks, Cristy
Newbies beffi Posted June 27, 2002 Newbies Posted June 27, 2002 Hi, well.. normaly I trigger scripts like this <a href="FMPro.. &-Script=myScript&.."> (just an example ) works great.. you just have to look for writeing the exact name of the script.. that's all.. hope this helps you b.
Keith M. Davie Posted June 27, 2002 Posted June 27, 2002 Hi, your link is not working. ScriptMaker scripts can be "triggered" from a form action or a link action. However there are issues involved because ScriptMaker is single-threaded. Should it receive two near-simultaneous requests, the second requested event will fail to perform, yet your client will be taken to the success.htm. In and of itself CDML has no way of knowing that a ScriptMaker event failed to run. It is possible to run ScriptMaker on the web, I know, I do that at my site. Feel free to visit when you have the time.
Vaughan Posted June 28, 2002 Posted June 28, 2002 In this instance you don't need a script at all to get the functionality. All you need to do is count the registrations (using a calculation field in the database) and use this value in a CDML [FMP-If] statement on yout format file do display the appropriate response. No scripts needed.
Recommended Posts
This topic is 8254 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