I have a widget which will be displayed on users websites, however the content must be loaded externally to allow me to update the content whenever I want. I want to avoid using an iFrame - how can I do this with AJAX? I have tried but it keeps saying security errors as I cannot load external from my site onto another. Any examples of how I can? (please include source code) I'm thinking maybe a JSON query... Thanks!
maybe try server side scripting? Use "cUrl" to get content of external page for example. Or if content is plain text/html you could try using this function file_get_contents. check for it in phpjs org Cant use link to help you ...
You can use some type of server side code, or perhaps flash, but I hate flash. Here is a good article on the issue. http://www.ibm.com/developerworks/library/x-securemashups/
You may try KoolAjax : http://demo.koolphp.net/Examples/KoolAjax/index.php You may use the UpdatePanel of KoolAjax to load external page content and insert that content to DOM of current page ( run javascript of external page as well if there is ). Your external page should not contain <html><head><body> tags.