views:

29

answers:

2

My company has a Java webapp that contains a product catalog feature. We are looking for a way to integrate the catalog into other sites in a way that no server side code would need to be written(on the external sites). I'm just looking for suggestions for ways that one might go about doing something like this... ?

+2  A: 

Are you assuming that the other sites will include your Javascript software into their html pages?

If so, you can provide the other sites with a javascript include statement that will pull the javascript from your server. Your JS library will then pull the data from your server using JSONP.

It will all work cross-domain. User Interface options to your JS library can be set using JS variables that your library will look for.

Larry K
This is more or less what I was thinking... I guess I just needed to hear it from someone else! Thanks!
mike
A: 

Also have a serious look into CORS

A way to allow xmlhttp to access your site without problems in IE8 and FF 3.5+

mplungjan
this aint cross browser
ovais.tariq
IF this were cross browser, it would have been perfect! thanks though..
mike
IE8 and FF sounds like cross browser to me ;) It is not for ALL browsers yet nor for old browsers, but for example at my office we are now finally up to date on both IE and FF. And if you are modifying code on the server, it is so incredibly simple to add this one header
mplungjan