graham23s Posted December 17, 2008 Share Posted December 17, 2008 Hi Guys, Say i write a script in PHP and use it to generate some javascript to add to the html of a site! which in turn send hits etc back to another server to store this data (essentially tracking data) how does javascript communicate with the 3rd party daya to send this onfo? thanks for any advice on this Graham Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 17, 2008 Share Posted December 17, 2008 By sending a http request of some type (usually in an <img src="url_at_3rd_party_site" /> tag) back to the 3rd party server and including the data as parameters on the end of the URL. Quote Link to comment Share on other sites More sharing options...
graham23s Posted December 20, 2008 Author Share Posted December 20, 2008 Hi Mate, i know you can't execute a file on another server, so that's how it's done! using the <img src tag? thanks for that mate Graham Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.