I have a unique idea for a web widget that I want to create. This widget will need to be easily integrated into any website using javascript. It will post a form to my server, receive the data, and display the results in a small area of the host website's screen, similar to Google Adsense. I am aware of the security concerns related to XSS and cross-domain issues with ajax.
I need help with mapping out the flow of this widget. Has anyone attempted something similar in the past?
The basic process is as follows:
- A website embeds external javascript
- The javascript generates a form
- The user submits the form with POST data
- The POST data is sent to an external server
- The server responds and the widget updates to display tabular data
Is this concept feasible? How can it be implemented? Should I consider using or avoiding a JS framework like Prototype or jQuery for this project?
If anyone has any helpful tutorials or resources for building widgets, I would greatly appreciate it.
Any assistance would be highly valued.