Ted S Posted July 10, 2006 Posted July 10, 2006 The new Web Viewer looks pretty nice and I can see some useful applications for it. However, what do you do when you encounter pages that use the POST method such as Filemaker's own store? http://store.filemaker.com/ In the left column there is a field where you can enter your Order Number and track your order's status. The form appears to use the POST method which does not embed parameters in the URL. How could you incorporate a Web Viewer to track the status of an order from from Filemaker's website?
grahamb Posted July 10, 2006 Posted July 10, 2006 (edited) You can put the parameters in the URL yourself if you view the source and look at the form action and elements. For your example: The POST action points to /servlet/WebStore There is an OrderID parameter There is a (hidden) -@FindOrder parameter so, the following should work: http://store.filemaker.com/servlet/WebStore?OrderID=123456&-@FindOrder Replace 123456 with your own order number (or, a reference to a field containing the order number). I don't have a valid FM order number to throw at it, and it just comes up with a blank screen, but it *should* work. Edited July 10, 2006 by Guest
Ted S Posted July 11, 2006 Author Posted July 11, 2006 I went through that exercise before starting this thread and no joy. That URL works for pages using the GET method but I don't think it works for POST. I would sure like to be proven wrong.
andygaunt Posted July 11, 2006 Posted July 11, 2006 Just wanted to point out that the above will only work if the store is using $_REQUEST to check the information coming from its form. This is usually not done as it allows injection of information that may not be valid or wanted. If they validate against $_POST then applying information in the URL would not work as that is classed as a $_GET.
Ted S Posted July 11, 2006 Author Posted July 11, 2006 Andy, Thanks for the answer but it went a bit over-my-head. So does this means that the Web Viewer will only be useful on certain pages depending on how web designer built them?
andygaunt Posted July 11, 2006 Posted July 11, 2006 Sorry Ted. OK. Simply put, if the page that processes the web form is set to only accept POST variables you will not be able to pass information through a URL (which uses GET). REQUEST covers both options, so on some pages web designers use REQUEST to accept either/or. However this opens up the opportunity to inject information into the form using the URL. This does not mean you cannot access a web page through the web viewer if it has a form on it that only deals with POST. It just means you would have to enter the information into the form itself and then use the provided submit options. Is that any clearer?
Ted S Posted July 11, 2006 Author Posted July 11, 2006 Andy, Thanks, that clears it up... I think. Just to be certain; in the case of the Filemaker Store the best the Web Viewer can do is take the user to the correct starting page right? The user will have to manually fill in all pertinent fields and submit the form the form by pressing the GO button, correct? Is there any way that the Web Viewer could call up the correct (starting) page and insert values into the form itself leaving only the act of pushing the GO button to the user? Sorry to be a pest but I'm trying to figure out just how useful this new feature will be. Especially as web technology and common practices move ahead.
Newbies rich graham Posted August 5, 2006 Newbies Posted August 5, 2006 in the case of the Filemaker Store the best the Web Viewer can do is take the user to the correct starting page right? The user will have to manually fill in all pertinent fields and submit the form the form by pressing the GO button, correct? Is there any way that the Web Viewer could call up the correct (starting) page and insert values into the form itself leaving only the act of pushing the GO button to the user? I'm processing orders with a munged together filemaker/safari/applescript/quickkeys thing now - Ted's option would save me a ton of copying and pasting as I'm doing now. And then saving the results of the processed form (transaction ID in my case) to another field, and marking the record as complete would be a bonus.
staypuffinpc Posted August 9, 2006 Posted August 9, 2006 Andy, I have the same question. Is there a way to populate forms on the web-page without hitting and "submit" information? It is easy to get the form and field ids from a web-page and this would be a very useful option. TIA.
murtje Posted August 21, 2006 Posted August 21, 2006 We are currently working on a solution to make POST possible via the web viewer. We are still looking for beta-testers. If interested you can send a mail to [email protected] Regards, Koen
staypuffinpc Posted August 30, 2006 Posted August 30, 2006 That's great. I look forward to seeing it. In the meantime, though, is there a way to fill in forms without POSTing or GETting? Just to fill out the forms on the page would be kind of cool, don't you think? Thanks, again.
murtje Posted February 16, 2007 Posted February 16, 2007 We just announced the Web Viewer Assistance, a product that allows to combine HTTP POST with the web viewer. More info on: http://www.myfmbutler.com Koen
Recommended Posts
This topic is 6546 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