BronwynL Posted February 22, 2003 Posted February 22, 2003 Hi Is there any way to obtain the actual command value from an Unknown Command error? I'm using javascript pretty extensively in this particular project. It works perfectly in Netscape, but fails with an error 4 in IE. The weird thing is that if I put an alert() statement anywhere relevant in the js, it works fine in IE too. As soon as I remove the alert() it fails again. Note that it's not returning my -error.htm page, I get it direct from FMP-IWPerr.js TIA -- Bronwyn L
Addam Posted February 24, 2003 Posted February 24, 2003 Sounds like there's something missing in your JavaScript syntax. If you post it, I'm sure I'll be able to help you. The problem might also be in the URL. Take a look at it when you get that error and make sure that you don't have more "//" in the beginning of your URL than needed. That can cause that error to appear. If your using "[FMP-Link]" be sure to take out what is not needed. If you don't FMP will continue to build on that url until the server doesn't recognize what you are trying to do and return an error, eventhough you just did it a few minutes before.
Garry Claridge Posted February 25, 2003 Posted February 25, 2003 Try adding the line: <input type="hidden" name="-find"> to your form. All the best. Garry
BronwynL Posted March 4, 2003 Author Posted March 4, 2003 Thanks, Gary You may have put me on the right track with your response. There are two forms on the page: one creates a new record in the Search Criteria db to track failed searches, the second is more or less just for them to enter the search that actually gets built in javascript. I'll try adding a -find tag and trap the onSubmit()
BronwynL Posted March 4, 2003 Author Posted March 4, 2003 Thanks Addam I really don't think you want to wade through it, but FYI the string that my function returns is fmpro?-db=Items&-lay=itemDetailsWeb&-error=errors.htm&-Op=contains&-format=results.htm&Name_Display=blah%20blah%20blah&-max=10&-sortField=&-lop=or&-find I then load that with a window.location.href= The sortField just caught my eye, but FMP is quite happy to receive the same query from NN with no problems. I think Garry might be on to something with the hidden input that I'll then have to trap with an onSubmit() tks for your interest
Recommended Posts
This topic is 8204 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