Reputation: 4486
I was wondering if anyone would be able to offer some suggestions as to the best way to implement the following:
We are looking to offer some stand alone code that any client regardless of platform should be able to build into their website, the code needs to draw down information from our site and display it on the customers.
At the moment I am developing this solution in jquery to pull down the html/css and then simply filling a div with the resulting content, the idea being all a customer would need to do is add a div with the correct name and pull in our javascript?
Is there a "better" way to do this type of thing or am I going down the right road?
Upvotes: 1
Views: 67
Reputation: 97
The easiest way is to create a dynamic html page, write a small customizable iframe script and provide it to your clients.
Your site
http://ads.your-site.com/client-name
displays the list of ads for this specific client
Client site
<iframe src="http://ads.your-site.com/client-name"></iframe>
embeds that list on the clients website.
Of course you can make it more fancy with jQuery and ajax requests and all that.
Upvotes: 2