alternative to XMLHttpRequest
March 12, 2006 5:47 PM
Subscribe
Is there an alternative to XMLHttpRequest that would work across different domains?
I'm working on an "external voting button" similar the one on Digg, that submits to the server without actually having to leave the page. I want to run it so that external sites can use it to submit back to the mother server. The problem I've run into is the security restriction with XMLHttpRequest, in that it will only submit back to the domain name that the current page is actually hosted by. Is there a way around this?
I found
this but I'm not sure exactly what he's doing, or what "dynamic script tags" are.
posted by Dag Maggot to computers & internet (16 comments total)
BUT - this sort of thing is fairly trivial using a server side language like PHP. If your XMLHttpRequest calls a php script that fetches data from somewhere else, that should work.
posted by jaded at 5:50 PM on March 12, 2006