I am building a web application and I need to create a feedback form widget so the users can put it in their websites and all the submitted data will be saved in my web application. I also need to have authentication in the widget before the user can submit the information (using my application login form or a facebook account for example).
I have never build something like this. What is the best way?. I am not really conformtable with raw javascript. But if i use jquery it may conflict with the client´s page. And what about cross domain requests?.
Note that the first version of my widget should be in a popup.
Thanks for your help.
Or, if an iframe or popup window are not what you had in mind, you can still do this with AJAX, but you’ll need to use JSONP or set the
Access-Control-Allow-Originheader in all of your responses.However, that said, your best bet is probably an iframe. This allows you to roll out bug fixes immediately and doesn’t rely on the client to update their client to the latest version.