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. Advertisements

  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. Advertisements

  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. Advertisements

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:
    487
    ADRIAN
    Nov 5, 2003
  2. Infant Newbie
    Replies:
    2
    Views:
    3,488
    Infant Newbie
    Nov 12, 2003
  3. =?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,763
    =?Utf-8?B?TGVpZg==?=
    Dec 7, 2004
  4. Gabriele Farina
    Replies:
    0
    Views:
    400
    Gabriele Farina
    Feb 20, 2004
  5. Gabriele Farina

    [wxPython] changeing border color

    Gabriele Farina, May 11, 2004, in forum: Python
    Replies:
    0
    Views:
    699
    Gabriele Farina
    May 11, 2004
  6. Replies:
    4
    Views:
    404
    Mike Meyer
    Nov 12, 2005
  7. Matthew Webster

    Changeing color of cell of grid

    Matthew Webster, Apr 7, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    852
    kingflux
    Apr 7, 2007
  8. 用户æƒåˆ©æŒ‡æ´¾é—®é¢˜

    get innerText from different domain document

    用户æƒåˆ©æŒ‡æ´¾é—®é¢˜, Nov 6, 2006, in forum: ASP General
    Replies:
    1
    Views:
    244
    Bob Barrows [MVP]
    Nov 6, 2006
Loading...