开发者

Simple cross domain ajax solution that is eBay compatible [closed]

开发者 https://www.devze.com 2023-04-11 07:51 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 3 years ago.

Improve this question

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


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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号