Page does not refresh on all browsers

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

    #1

    Page does not refresh on all browsers

    Hi folks,

    I have a web page I wrote for a class assignment (which I embellished a little) that doesn't seem to
    work on all browsers, platforms, etc. The problem appears to be that the page doesn't refresh
    completely when the page calls it self. The refresh (which should happen when the form action
    fires) should reload a file into an iFrame, but it doesn't. I do have 3 submit buttons on one form,
    but it works well for me. On the machines that don't display the results properly a click of the
    Refresh (or Reload) button retrieves the new data?

    The link to the page is:



    At the bottom of the page is a link "Display this page's source code..." click it to view the PHP
    source code as dump through the highlight function...with some other features I added, like reliable
    line numbers.

    Thanks for any insight you can lend...

    Rick
  • R. Rajesh Jeba Anbiah

    #2
    Re: Page does not refresh on all browsers

    Rick <rbarnes@nospam .net> wrote in message news:<zir4c.175 50$i76.290957@a ttbi_s03>...[color=blue]
    > Hi folks,
    >
    > I have a web page I wrote for a class assignment (which I embellished a little) that doesn't seem to
    > work on all browsers, platforms, etc. The problem appears to be that the page doesn't refresh
    > completely when the page calls it self. The refresh (which should happen when the form action
    > fires) should reload a file into an iFrame, but it doesn't. I do have 3 submit buttons on one form,
    > but it works well for me. On the machines that don't display the results properly a click of the
    > Refresh (or Reload) button retrieves the new data?
    >
    > The link to the page is:
    >
    > http://power.arc.losrios.edu/~barnes...ode_writer.php
    >
    > At the bottom of the page is a link "Display this page's source code..." click it to view the PHP
    > source code as dump through the highlight function...with some other features I added, like reliable
    > line numbers.
    >
    > Thanks for any insight you can lend...[/color]

    Just tested. It's just a caching problem.
    Solutions:
    1. Instead of generating code.html, just generate code.php but with
    no-cache header <http://in2.php.net/header> (Recommended solution)
    2. Or try to add random values (timestamp) with the url like
    code.html?8900

    --
    "Democracy: Where all citizens are politicians and all politicians
    are citizens"
    Email: rrjanbiah-at-Y!com

    Comment

    • Reply Via Newsgroup

      #3
      Re: Page does not refresh on all browsers

      Rick wrote:
      [color=blue]
      > Hi folks,
      >
      > I have a web page I wrote for a class assignment (which I embellished a
      > little) that doesn't seem to work on all browsers, platforms, etc. The
      > problem appears to be that the page doesn't refresh completely when the
      > page calls it self. The refresh (which should happen when the form
      > action fires) should reload a file into an iFrame, but it doesn't. I do
      > have 3 submit buttons on one form, but it works well for me. On the
      > machines that don't display the results properly a click of the Refresh
      > (or Reload) button retrieves the new data?
      >
      > The link to the page is:
      >
      > http://power.arc.losrios.edu/~barnes...ode_writer.php
      >[/color]

      How do you mean "the page doesn't refresh" properly...

      You have two frames windows (I'll call them right and left) and you have
      a hyperlink "Display this pages source code..." I might stand
      corrected, but when one clicks on a hyperlink, it will lead to a screen
      refresh unless it links to # (meaning self).

      Secondly - you have two IFRAMES visiable - neither of them named - You
      have a third IFRAME and it is named ' show_it' (note, a space prefixes
      the name and that would be illegal).

      I think you'll have to be clearer with regards to what you consider the
      problem - and name at least one of the browers where it works, and fails
      to work the way you'd expect.

      laters
      randelld

      Comment

      • Steve Holdoway

        #4
        Re: Page does not refresh on all browsers

        On Fri, 12 Mar 2004 23:00:47 GMT, Rick <rbarnes@nospam .net> wrote:
        [color=blue]
        >Hi folks,
        >
        >I have a web page I wrote for a class assignment (which I embellished a little) that doesn't seem to
        >work on all browsers, platforms, etc. The problem appears to be that the page doesn't refresh
        >completely when the page calls it self. The refresh (which should happen when the form action
        >fires) should reload a file into an iFrame, but it doesn't. I do have 3 submit buttons on one form,
        >but it works well for me. On the machines that don't display the results properly a click of the
        >Refresh (or Reload) button retrieves the new data?
        >
        >The link to the page is:
        >
        >http://power.arc.losrios.edu/~barnes...ode_writer.php
        >
        >At the bottom of the page is a link "Display this page's source code..." click it to view the PHP
        >source code as dump through the highlight function...with some other features I added, like reliable
        >line numbers.
        >
        >Thanks for any insight you can lend...
        >
        >Rick[/color]

        A starting point would be to write valid html. Try using
        http://validator.w3.org to clean that up first.

        Steve

        Comment

        • Rick

          #5
          Re: Page does not refresh on all browsers

          Steve Holdoway wrote:[color=blue]
          > On Fri, 12 Mar 2004 23:00:47 GMT, Rick <rbarnes@nospam .net> wrote:
          >
          >[color=green]
          >>Hi folks,
          >>
          >>I have a web page I wrote for a class assignment (which I embellished a little) that doesn't seem to
          >>work on all browsers, platforms, etc. The problem appears to be that the page doesn't refresh
          >>completely when the page calls it self. The refresh (which should happen when the form action
          >>fires) should reload a file into an iFrame, but it doesn't. I do have 3 submit buttons on one form,
          >>but it works well for me. On the machines that don't display the results properly a click of the
          >>Refresh (or Reload) button retrieves the new data?
          >>
          >>The link to the page is:
          >>
          >>http://power.arc.losrios.edu/~barnes...ode_writer.php
          >>
          >>At the bottom of the page is a link "Display this page's source code..." click it to view the PHP
          >>source code as dump through the highlight function...with some other features I added, like reliable
          >>line numbers.
          >>
          >>Thanks for any insight you can lend...
          >>
          >>Rick[/color]
          >
          >
          > A starting point would be to write valid html. Try using
          > http://validator.w3.org to clean that up first.
          >
          > Steve[/color]
          And then...?

          Rick

          Comment

          • Steve Holdoway

            #6
            Re: Page does not refresh on all browsers

            On Sun, 14 Mar 2004 05:32:46 GMT, Rick <rbarnes@nospam .net> wrote:
            [color=blue]
            >Steve Holdoway wrote:[color=green]
            >> On Fri, 12 Mar 2004 23:00:47 GMT, Rick <rbarnes@nospam .net> wrote:
            >>
            >>[color=darkred]
            >>>Hi folks,
            >>>
            >>>I have a web page I wrote for a class assignment (which I embellished a little) that doesn't seem to
            >>>work on all browsers, platforms, etc. The problem appears to be that the page doesn't refresh
            >>>completely when the page calls it self. The refresh (which should happen when the form action
            >>>fires) should reload a file into an iFrame, but it doesn't. I do have 3 submit buttons on one form,
            >>>but it works well for me. On the machines that don't display the results properly a click of the
            >>>Refresh (or Reload) button retrieves the new data?
            >>>
            >>>The link to the page is:
            >>>
            >>>http://power.arc.losrios.edu/~barnes...ode_writer.php
            >>>
            >>>At the bottom of the page is a link "Display this page's source code..." click it to view the PHP
            >>>source code as dump through the highlight function...with some other features I added, like reliable
            >>>line numbers.
            >>>
            >>>Thanks for any insight you can lend...
            >>>
            >>>Rick[/color]
            >>
            >>
            >> A starting point would be to write valid html. Try using
            >> http://validator.w3.org to clean that up first.
            >>
            >> Steve[/color]
            >And then...?
            >
            >Rick[/color]

            Fix the code, the above site will list the errors in yours. Then see
            if it works when you use valid html!


            Comment

            • R. Rajesh Jeba Anbiah

              #7
              Re: Page does not refresh on all browsers

              ng4rrjanbiah@re diffmail.com (R. Rajesh Jeba Anbiah) wrote in message news:<abc4d8b8. 0403122116.376b 733@posting.goo gle.com>...[color=blue]
              > Rick <rbarnes@nospam .net> wrote in message news:<zir4c.175 50$i76.290957@a ttbi_s03>...[color=green]
              > > Hi folks,
              > >
              > > I have a web page I wrote for a class assignment (which I embellished a little) that doesn't seem to
              > > work on all browsers, platforms, etc. The problem appears to be that the page doesn't refresh
              > > completely when the page calls it self. The refresh (which should happen when the form action
              > > fires) should reload a file into an iFrame, but it doesn't. I do have 3 submit buttons on one form,
              > > but it works well for me. On the machines that don't display the results properly a click of the
              > > Refresh (or Reload) button retrieves the new data?
              > >
              > > The link to the page is:
              > >
              > > http://power.arc.losrios.edu/~barnes...ode_writer.php
              > >
              > > At the bottom of the page is a link "Display this page's source code..." click it to view the PHP
              > > source code as dump through the highlight function...with some other features I added, like reliable
              > > line numbers.
              > >
              > > Thanks for any insight you can lend...[/color]
              >
              > Just tested. It's just a caching problem.
              > Solutions:
              > 1. Instead of generating code.html, just generate code.php but with
              > no-cache header <http://in2.php.net/header> (Recommended solution)
              > 2. Or try to add random values (timestamp) with the url like
              > code.html?8900[/color]

              Oops! Forgot to mention that if you adopt method 1, you have to
              strip all PHP code in the input box before showing it in the preview
              box; otherwise it will result in security risk.

              --
              "Democracy: Where all citizens are politicians and all politicians
              are citizens"
              Email: rrjanbiah-at-Y!com

              Comment

              Working...