Results 1 to 3 of 3

Thread: does not work on forwarded page

  1. #1
    Join Date
    Oct 2006
    Posts
    33
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default does not work on forwarded page

    1) Script Title: Style Sheet Switcher (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...etswitcher.htm

    3) Describe problem: Cannot set cookies from thirdparty website.

    I have purchased domain on yahoo.
    I have hosted my website on 50webs.com
    On yahoo domain i am setting a forward to 50webs homepage.
    Forward actually created an iframe for forward url.
    And when i try to set cookie it does not get set. It shows no cookies when i read.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    JavaScript cookies are limited to reading/writing from the same domain the script itself is on (subdomains not withstanding) unfortunately.

  3. #3
    Join Date
    Oct 2006
    Posts
    33
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    subdomain ?
    I have domin registered as abc.com which forwards to aaa.xyz.com
    my script is at aaa.xyz.com only.
    aaa.xyz.com/cssswitch.js
    aaa.xyz.com/cssswitch.html (where script is included)

    So when i go to abc.com ultimately script is executed at aaa.xyz.com/cssswitch.js and caller is also at aaa.xyz.com/cssswitch.html. ??

    Is it an issue with using iframes while forwarding ?

    Thanks for reply.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •