Has anyone created an HTML Page which can access an external website and automatically fill-in Form fields using JavaScript?
What approach did you take (popup Browser Window, etc.) Worked in Chrome?
You can use remote HTTP calls either directly to the WebSite, or proxied through your own server which can handle more secure access (ie. via credentials/auth)...
XHR or fetch command let you make the HTTP calls. Or if using Web Connection the ajaxJson() function simplifies this handling Http and JSON serialization.
+++ Rick ---
This is a bit over my head. Any suggested learning resources?
Here are a couple you can look at:
- Using jQuery for very simple Data Validation
- Accessing the REST API with jQuery
- ajaxJson() Function (javascript)
These are a bit dated, but still relevant. I'd go the ajaxJson()
route which is the easiest:
- Create your FoxPro Endpoint by returning JSON
- Either: Use a REST Service
- Or: return JSON from regular Process method
- use
ajaxJSON()
to call it - Make sure you uncomment the CORS headers in the
OnProcessInit()
+++ Rick ---
Thanks for your reply.
Have been filling in Web Forms for years in VFP using the Web Browser control. Want to do this from a Web Page via JavaScript. Maybe via the Window open() command which can give me a reference to the Form Web Page?