Is Jquery Ideal For Loading Dynamic Data Across Domains?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jbh
Forum Commoner
Posts: 89
Joined: Tue Dec 05, 2006 7:01 pm

Is Jquery Ideal For Loading Dynamic Data Across Domains?

Post by jbh »

Hey,

I want to have dynamic data from mydomain.com accessible to users who wish to display it on their domains. Basically, just like google adsense or google analytics lets you copy/paste javascript into your html pages, I want to do the same for my visitors
but when they paste it, they access data through a url with querystrings. See below to understand what I am looking to achieve:

<script type="text/javascript" language="javascript" src="http://www.mydomain.com/page.php?id=15&id=123456">

Is the best solution having 'mydomain.com' offer a JSON/XML output and print it out as javascript, with javascript headers, in a PHP page,
so the domains can access it or is there a better way? I just want to see if this idea is secure/reliable enough to pass dynamic data from one domain to another.

For reference, all users will be using javascript so I am not concerned about them turning it off.

TY for your time.
Post Reply