php - JSONP Cross Domain Data -


i've been trying several hours examples find on google , none work me. want have 2 files, html 1 , php one, each on separate server. i'd html file able access information php page can use inside html file in alert(); function example.

i need basic, dummy proof example says "put code in html file , put code in php file".

to show example i've tried following article: http://www.fbloggs.com/2010/07/09/how-to-access-cross-domain-data-with-ajax-using-jsonp-jquery-and-php/

this put server side code: http://3d-sign.com/wip/recoup/database_2.php put client side code (from example 1): http://3d-sign.com/wip/recoup/read_test.php

(i know need these files on separate servers if work on separate, should work on same server too, right?)

please me :(


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -