javascript & frames

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • LagWagon

    javascript & frames

    hi,

    I have a page whith frames where y load other pages in. If these other pages
    are in my computer y can read/write with javascritp in their properties like
    name, location, href etc. but when y have loaded in a frame a page that is
    not in my computer y can`t use these properties.

    I know that the page is not accessible using javascript from my page, but
    the frame is a frame of my page. I don`t understand it. why? Can´t I load
    another page in this frame if it has a page that isn`t in my computer?

    can I know whith javascript when a page loaded in a frame is in my computer
    or not?

    thanks.

    (sorry, my english isn`t good)



  • kaeli

    #2
    Re: javascript & frames

    In article <kI%6b.2106042$ iM4.3357733@tel enews.teleline. es>,
    iburuaga@somesi .com enlightened us with...[color=blue]
    > I know that the page is not accessible using javascript from my page, but
    > the frame is a frame of my page.[/color]

    A frame is merely a window embedded in another window. You cannot access
    pages from other domains in your frame for security reasons. If you
    could, you could hijack their pages and do whatever you wanted with
    them, including re-direct orders, credit card information, and other
    private data into your pages, database, or whatever. You could also put
    malicious scripts on their pages. So, no, you can't access a page from a
    different domain in your frames with javascript.
    [color=blue]
    > I don`t understand it. why? Can´t I load
    > another page in this frame if it has a page that isn`t in my computer?
    >[/color]

    As explained above, no.
    [color=blue]
    > can I know whith javascript when a page loaded in a frame is in my computer
    > or not?
    >[/color]

    I don't think so. Someone will correct me if I'm wrong.

    -------------------------------------------------
    ~kaeli~
    Press any key to continue or any other key to quit.
    Who is General Failure and why is he reading
    my hard disk?


    -------------------------------------------------

    Comment

    • LagWagon

      #3
      Re: javascript &amp; frames

      thanks kaeli.

      I'll try another way to do this.

      open in the frame a page that has 2 frames too. the size of them will be
      100% and 0%. in width and height. the frame "100%" will load the extern
      page. in this way, in my principal page of frames I can open this page with
      2 frames and others in a frame. now I can access to properties of this frame
      because the page it opens not is extern yet.

      I only need open the extern page. not to manipulate it.

      bye.

      (sorry, my english is poor)

      "kaeli" <infinite.possi bilities@NOSPAM att.net> escribió en el mensaje
      news:MPG.19c661 14ceb4343998983 4@nntp.lucent.c om...[color=blue]
      > In article <kI%6b.2106042$ iM4.3357733@tel enews.teleline. es>,
      > iburuaga@somesi .com enlightened us with...[color=green]
      > > I know that the page is not accessible using javascript from my page,[/color][/color]
      but[color=blue][color=green]
      > > the frame is a frame of my page.[/color]
      >
      > A frame is merely a window embedded in another window. You cannot access
      > pages from other domains in your frame for security reasons. If you
      > could, you could hijack their pages and do whatever you wanted with
      > them, including re-direct orders, credit card information, and other
      > private data into your pages, database, or whatever. You could also put
      > malicious scripts on their pages. So, no, you can't access a page from a
      > different domain in your frames with javascript.
      >[color=green]
      > > I don`t understand it. why? Can´t I load
      > > another page in this frame if it has a page that isn`t in my computer?
      > >[/color]
      >
      > As explained above, no.
      >[color=green]
      > > can I know whith javascript when a page loaded in a frame is in my[/color][/color]
      computer[color=blue][color=green]
      > > or not?
      > >[/color]
      >
      > I don't think so. Someone will correct me if I'm wrong.
      >
      > -------------------------------------------------
      > ~kaeli~
      > Press any key to continue or any other key to quit.
      > Who is General Failure and why is he reading
      > my hard disk?
      > http://www.ipwebdesign.net/wildAtHeart
      > http://www.ipwebdesign.net/kaelisSpace
      > -------------------------------------------------[/color]


      Comment

      Working...