Log in

View Full Version : .htm or .html relay to external .php



motormichael12
04-04-2007, 09:29 PM
is it possible to make a site using an html page check anohter site for data without php, such as using JavaScript?

I want to make a form that when someone goes to a page on a site using html pages, it goes to my site, checks if a cookie exists, then display something if it does exist... Such as iff I had a user with site "theirsite.com" and they have something on "theirsite.com/secret.html" then if someone goes to the secret.html page it has a JavaScript that can ask my site if the cookie exists so it knows whether to show the page or redirect somewhere else...

Thanks to all who read this to see if they can understand it.

thetestingsite
04-05-2007, 01:11 AM
I believe you could probably accomplish this with AJAX (a form of javascript) to interact between the two sites, then use Javascript to read the cookie information and whatnot.

Hope this helps.

tech_support
04-05-2007, 02:29 AM
You cannot use AJAX to get data from another site, due to security reasons.