I have built a content locker widget for members of my website. A content locker forces a visitor to complete a survey before it redirects them.
Basically, I need to have Javascript make an Ajax request to my domain and redirect the user if the survey is finished. Let's just say a PHP script will echo '1' for complete and '0' for incomplete.
This would be trivial normally, but users place the javascript code on THEIR websites, not mine. So I am worried about running into Cross-Scripting flags.
So how do Content lockers do this? I know this is possible because companies like Adscend Media have one.
Also, after designing their widget on my website, they put a code on their website with something like this:
<script type="text/javascript" src="http://mywebsite.com/js/w.php?i=6PS0D9"></script>
This goes in the head tag. Does including this script somehow make Cross-Scripting to my domain available since the script itself is on my domain?
Thanks for any help.