Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. how is that done??

how is that done??

Scheduled Pinned Locked Moved Web Development
questionjavascriptcomhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    conman110
    wrote on last edited by
    #1

    Hello, lately I looked at the Snap Shots preview widget (www.snap.com) and wondered how a specific feature has been implemented: If you select the options (top right corner) and select something (f.e. a longer delay until the window pops up) the information is stored in a cookie belonging to the snap.com domain. This is no problem, because the options panel shown in the widget is an iframe which is loaded from the snap.com domain. My question is now, how they get the information in the cookie belonging to the domain snap.com, if the javascript runs in the contex of a completely different domain?? It works, you can try... but how is this done? All I know is, that it is prohibited to access cookies of other domains. Thanks! I am very interested in any ideas! Constantin

    J 1 Reply Last reply
    0
    • C conman110

      Hello, lately I looked at the Snap Shots preview widget (www.snap.com) and wondered how a specific feature has been implemented: If you select the options (top right corner) and select something (f.e. a longer delay until the window pops up) the information is stored in a cookie belonging to the snap.com domain. This is no problem, because the options panel shown in the widget is an iframe which is loaded from the snap.com domain. My question is now, how they get the information in the cookie belonging to the domain snap.com, if the javascript runs in the contex of a completely different domain?? It works, you can try... but how is this done? All I know is, that it is prohibited to access cookies of other domains. Thanks! I am very interested in any ideas! Constantin

      J Offline
      J Offline
      JimmyRopes
      wrote on last edited by
      #2

      I don't remember the specifics of how to accomplish this but it is probably similar to how whenever you go to any Microsoft website you first go to the passport website to get credentials. Try Google for a writeup of how Microsoft accomplishes this. It was written up and spread on the internet a few years ago.

      Simply Elegant Designs JimmyRopes Designs
      Think inside the box! ProActive Secure Systems
      I'm on-line therefore I am. JimmyRopes

      C 1 Reply Last reply
      0
      • J JimmyRopes

        I don't remember the specifics of how to accomplish this but it is probably similar to how whenever you go to any Microsoft website you first go to the passport website to get credentials. Try Google for a writeup of how Microsoft accomplishes this. It was written up and spread on the internet a few years ago.

        Simply Elegant Designs JimmyRopes Designs
        Think inside the box! ProActive Secure Systems
        I'm on-line therefore I am. JimmyRopes

        C Offline
        C Offline
        conman110
        wrote on last edited by
        #3

        Hi Jimmy! Thanks for your reply! I guess this may be a way to accomplish this effect. Although the Snap widget doesn't use any redirects... Best, Constantin

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups