verify page loaded succesfully in frame

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

    verify page loaded succesfully in frame

    What is the standard practice to verify that a page has loaded succesfully
    in a frame when one issues a framename.href= "url"? For example, detecting
    404's, or other errors (like domain doesn't exist).

    thanks


  • kaeli

    #2
    Re: verify page loaded succesfully in frame

    In article <423730a4$1@new s.microsoft.com >, "Luis Hernandez" <luish[<[at]>]
    microsoft.com> enlightened us with...[color=blue]
    > What is the standard practice to verify that a page has loaded succesfully
    > in a frame when one issues a framename.href= "url"? For example, detecting
    > 404's, or other errors (like domain doesn't exist).
    >[/color]

    I believe you can have an onload handler for a frame, as with an image.
    But keep in mind that if the source is not on the same server, domain, and
    protocol, you can't check the doc to see if it's a 404 or not.
    For this kind of thing, server-side scripting is better.

    --
    --
    ~kaeli~
    Profanity: the single language in which all programmers are
    expert.



    Comment

    • Luis Hernandez

      #3
      Re: verify page loaded succesfully in frame


      "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
      news:MPG.1ca0f1 33aa9b910a98a37 2@nntp.lucent.c om...[color=blue]
      > In article <423730a4$1@new s.microsoft.com >, "Luis Hernandez"[/color]
      <luish[<[at]>][color=blue]
      > microsoft.com> enlightened us with...[color=green]
      > > What is the standard practice to verify that a page has loaded[/color][/color]
      succesfully[color=blue][color=green]
      > > in a frame when one issues a framename.href= "url"? For example,[/color][/color]
      detecting[color=blue][color=green]
      > > 404's, or other errors (like domain doesn't exist).
      > >[/color]
      >
      > I believe you can have an onload handler for a frame, as with an image.
      > But keep in mind that if the source is not on the same server, domain, and
      > protocol, you can't check the doc to see if it's a 404 or not.
      > For this kind of thing, server-side scripting is better.
      >[/color]

      So how would I do that?

      (1) parent.theframe .location.href= URL
      (2) ??

      The pages loaded in the frames are all in the same domain so I have full
      access to the contents.

      Is there a standard way of checking that 'all is ok' ? Otherwise, I have to
      use findText("404") or variations of it?

      Thanks!


      Comment

      • c.anandkumar@gmail.com

        #4
        Re: verify page loaded succesfully in frame


        Luis Hernandez wrote:[color=blue]
        > "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
        > news:MPG.1ca0f1 33aa9b910a98a37 2@nntp.lucent.c om...[color=green]
        > > In article <423730a4$1@new s.microsoft.com >, "Luis Hernandez"[/color]
        > <luish[<[at]>][color=green]
        > > microsoft.com> enlightened us with...[color=darkred]
        > > > What is the standard practice to verify that a page has loaded[/color][/color]
        > succesfully[color=green][color=darkred]
        > > > in a frame when one issues a framename.href= "url"? For example,[/color][/color]
        > detecting[color=green][color=darkred]
        > > > 404's, or other errors (like domain doesn't exist).
        > > >[/color]
        > >
        > > I believe you can have an onload handler for a frame, as with an[/color][/color]
        image.[color=blue][color=green]
        > > But keep in mind that if the source is not on the same server,[/color][/color]
        domain, and[color=blue][color=green]
        > > protocol, you can't check the doc to see if it's a 404 or not.
        > > For this kind of thing, server-side scripting is better.
        > >[/color]
        >
        > So how would I do that?[/color]
        what about onreadystatecha nge()?[color=blue]
        >
        > (1) parent.theframe .location.href= URL
        > (2) ??
        >
        > The pages loaded in the frames are all in the same domain so I have[/color]
        full[color=blue]
        > access to the contents.
        >
        > Is there a standard way of checking that 'all is ok' ? Otherwise, I[/color]
        have to[color=blue]
        > use findText("404") or variations of it?
        >
        > Thanks![/color]

        Comment

        Working...