1

I want to request a list of sizes from a database on my server (which is obviously not on ebay.co.uk's domain). I could do it entirely through flash... but it seems clumsy for a simple form. I think the ideal solution would be a javascript + flash solution. The problem is all of the sites I have found seem to have very complete solutions and ebay does not like huge chunks of javascript (I am not sure exactly which functions it allows and doesn't... but the less javascript the better).

So what I am looking for is a very small and simple cross domain ajax solution that will allow me to make requests from my server. Anyone any ideas?

TIA

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
Mark
  • 5,423
  • 11
  • 47
  • 62

2 Answers2

1

Read Ways to circumvent the same-origin policy for many ways of circumventing the same-origin policy.

In your case, I would suggest http://anyorigin.com - it's simple to use and (unless you're sending volatile information) perfectly viable. It could all be done in a couple of lines of js!

Community
  • 1
  • 1
David Titarenco
  • 32,662
  • 13
  • 66
  • 111
  • I am not sure how I would implement this... it used Jquery and Jquery is a big library which ebay again does not like. Can I make a similar request in plain javascript? – Mark Oct 05 '11 at 04:25
  • jQuery aside, I don't think a jsonp approach will work on ebay anyway, they don't allow you to include off-site scripts. – ben author Dec 09 '11 at 20:07
  • JSONP works a treat. Just make the script create a script element for the remote site :p – Mark Mar 14 '12 at 08:16
0

eBay will not allow including javascript or even iframes in item description. The only solution for that will probably be using Flash object(that is allowed by eBay) that will communicate with server side scripting page(php/asp) which will make the request to your database. The cross-domain communication will be between the flash and the server side page, this issue can be easily solved.

Alex Flom
  • 121
  • 1
  • 1
  • 8