Changeing document.domain to a different domain

Discussion in 'Javascript' started by Cindy Lee, May 7, 2004.

  1. Cindy Lee

    Cindy Lee Guest

    Can this be done in https?
    If the page I'm on is at 'www.abc.com'
    can I:
    document.domain='www.def.com'

    i get invalid argument if i do that? Is there anyway around this?
     
    Cindy Lee, May 7, 2004
    #1
    1. Advertising

  2. Cindy Lee

    Cindy Lee Guest

    I'm just trying to resize my iframe. when i try to get a document size in
    my javascript. It gives me access denied.
    resizingfunction(){
    .....
    var oFrame = document.all("dynamicFrame");//access denied
    .....
    }


    <iframe name=dynamicFrame src=https://.....



    "Ivo" <> wrote in message
    news:409c0f96$0$54151$...
    > "Cindy Lee" typed> Can this be done in https?
    > > If the page I'm on is at 'www.abc.com'
    > > can I:
    > > document.domain='www.def.com'
    > >
    > > i get invalid argument if i do that? Is there anyway around this?

    >
    > The document.domain branch in the DOM tree is read-only, sorry. What are

    you
    > trying to do anyway?
    >
    > Overcome cross-domain security restrictions?
    > Good luck then, please enlighten us when you find a way.
    >
    > Move to a page in that other domain? Then use simply
    > location.href="https://www.def.com/";
    > or
    > location.replace("https://www.def.com/");
    >
    > AFAIK, javascript on a secure https page is no different from javascript

    on
    > an ordinary http.
    > HTH
    > Ivo
    >
    >
     
    Cindy Lee, May 7, 2004
    #2
    1. Advertising

  3. Cindy Lee

    Ivo Guest

    "Cindy Lee" typed> Can this be done in https?
    > If the page I'm on is at 'www.abc.com'
    > can I:
    > document.domain='www.def.com'
    >
    > i get invalid argument if i do that? Is there anyway around this?


    The document.domain branch in the DOM tree is read-only, sorry. What are you
    trying to do anyway?

    Overcome cross-domain security restrictions?
    Good luck then, please enlighten us when you find a way.

    Move to a page in that other domain? Then use simply
    location.href="https://www.def.com/";
    or
    location.replace("https://www.def.com/");

    AFAIK, javascript on a secure https page is no different from javascript on
    an ordinary http.
    HTH
    Ivo
     
    Ivo, May 7, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ADRIAN

    Changeing Stylesheets

    ADRIAN, Nov 5, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    384
    ADRIAN
    Nov 5, 2003
  2. =?Utf-8?B?TGVpZg==?=

    Reaching/changeing Parameter Value in Java Applet

    =?Utf-8?B?TGVpZg==?=, Dec 6, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,624
    =?Utf-8?B?TGVpZg==?=
    Dec 7, 2004
  3. Gabriele Farina
    Replies:
    0
    Views:
    301
    Gabriele Farina
    Feb 20, 2004
  4. Gabriele Farina

    [wxPython] changeing border color

    Gabriele Farina, May 11, 2004, in forum: Python
    Replies:
    0
    Views:
    550
    Gabriele Farina
    May 11, 2004
  5. Replies:
    4
    Views:
    308
    Mike Meyer
    Nov 12, 2005
Loading...

Share This Page