Forum Moderators: open
A limitation is that the Ajax data must be located on the same domain due to XMLHttpRequest security that does not allow it to pull data from other domains.
Is there any other way to embed my application using javascript so that my application may be shared amongst various domains I own?
Thank you,
Jason
P.S. I would like for the solution to be client side javascript and not a server side solution. The reason is that I have some html & php sites that I'd like to embed the app into. The reason that I don't use an iframe is that the height for the app expands during use.
PHP is a server-side technology. You would be able to do it with that.
Refer to the following:
[ejohn.org...]
Silverlight...
[msdn.microsoft.com...]
There's other techniques as well
[codeproject.com...]
> html & php sites
>> PHP is a server-side technology. You would be
>> able to do it with that.
This was something I had considered before embedding my application with AJAX. What I was going to do was to write a C++ filter that intercepts the http request, scans for tags within the html of the desired page, i.e. {{my_app}} and then gets and insert the application's html within the tag.
Pro:
1) no ajax nor javascript required.
2) the entire page including the embedded application's data gets indexed by search engines.
3) can be used on html, php, or any other site.
Con:
1) no more web server buffering of html files since the file is read and dynamic data is inserted within each request.
I have an older, heavily used server and don't want to burden it further, so I chose the AJAX method even though it seems that the AJAX data does not get indexed by search engines.