javascript - How third party sites can check if user agreed/pass sth on my site, so they can let him pass sth on their sites? -


how third party sites can check if user agreed something(i.e. click ok)/pass test on site, can let him pass hidden resources on ther site? problem is, user should not asked register on third party sites, , give sites javascript paste code , merely button , text.

if help, using django.

don't understand sth/pass sth means can bet answer **cookies**. edit: well, session information stored cookies have it, they're not enough. need service on domain (a server script) called 3rd party sites ajax. service respond if user qualifies (i.e. give valid/invalid output).


i refute previous answer on grounds not offer solution question, not in way find solution , technically incorrect.

new answer:

  1. choose method validate user did action (a cookie maybe).
  2. have server script on site responds questions validation. uservalidates.py. should check if user did action (check cookie).
  3. provide javascript snippet 3rd party includes on site. snippet create invisible iframe uservalidates.py on domain. same script needs create invisible iframe on 3rd party domain.
  4. after uservalidates.py makes check change location of other invisile iframe.
  5. you supplied javascript 3 able read changed location of iframe because they're same domain.

see written article more details , examples: http://softwareas.com/cross-domain-communication-with-iframes .


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -