check page loaded in an iframe

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

    #1

    check page loaded in an iframe

    I load a page into an iframe that comes from another server. If this
    page is not accessible, this server redirects to a login page.
    I want to check if the correct page was loaded in the iframe in order to
    give the appropriate instructions if the redirect occured. My idea was
    to use framename.searc h('some text on the page'), but I'm not allowed to
    do this for a page from a different server.
    Any idea how to do something like this, or is this simply impossible?

    Christian

  • Thomas 'PointedEars' Lahn

    #2
    Re: check page loaded in an iframe

    Christian Schmitt wrote:
    [color=blue]
    > I load a page into an iframe that comes from another server.[/color]

    I hope you are allowed to use the content of the third party.
    [color=blue]
    > If this page is not accessible, this server redirects to a login page.
    > I want to check if the correct page was loaded in the iframe in order to
    > give the appropriate instructions if the redirect occured. [...]
    > Any idea how to do something like this, or is this simply impossible?[/color]

    You need a signed script, otherwise the Same Origin Policy gets you.
    Ask friend(!) Google for details.


    PointedEars
    --
    news:de.comp.la ng.javascript

    Comment

    • Christian Schmitt

      #3
      Re: check page loaded in an iframe

      Thomas 'PointedEars' Lahn schrieb:[color=blue]
      >
      > Christian Schmitt wrote:
      >[color=green]
      > > I load a page into an iframe that comes from another server.[/color]
      >
      > I hope you are allowed to use the content of the third party.
      >[/color]

      Sure I am.
      [color=blue][color=green]
      > > If this page is not accessible, this server redirects to a login page.
      > > I want to check if the correct page was loaded in the iframe in order to
      > > give the appropriate instructions if the redirect occured. [...]
      > > Any idea how to do something like this, or is this simply impossible?[/color]
      >
      > You need a signed script, otherwise the Same Origin Policy gets you.
      > Ask friend(!) Google for details.[/color]

      But signed scripts don't work with IE, right? I browsers of the
      netscape-family, I can use the UniversalBrowse rRead privilege even
      without signed scripts, the user just has to confirm the warning dialog.
      But what do I do in IE? Asking the user to add my page to the trusted
      sites isn't really an option. At least I wouldn't do this as it gives
      the site just too much power. Isn't there any equivalent to
      UniversalBrowse rRead in IE?
      I didn't find anything in google, that's always my first stop.
      [color=blue]
      >
      > PointedEars
      > --
      > news:de.comp.la ng.javascript[/color]


      Thanks, Christian

      Comment

      Working...