Page does not refresh on all browsers – PHP

  php

Q(Question):

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

A(Answer):

Rick <rb*****@nospam.net> wrote in message news:<zir4c.17550$i76.290957@attbi_s03>…

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…

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

A(Answer):

Rick wrote:

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

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

A(Answer):

On Fri, 12 Mar 2004 23:00:47 GMT, Rick <rb*****@nospam.net> wrote:

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

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

Steve

A(Answer):

Steve Holdoway wrote:

On Fri, 12 Mar 2004 23:00:47 GMT, Rick <rb*****@nospam.net> wrote:

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

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

Steve

And then…?

Rick

A(Answer):

On Sun, 14 Mar 2004 05:32:46 GMT, Rick <rb*****@nospam.net> wrote:

Steve Holdoway wrote:

On Fri, 12 Mar 2004 23:00:47 GMT, Rick <rb*****@nospam.net> wrote:

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

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

Steve

And then…?

Rick

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

A(Answer):

ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) wrote in message news:<ab*************************@posting.google.c om>…

Rick <rb*****@nospam.net> wrote in message news:<zir4c.17550$i76.290957@attbi_s03>…

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…

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

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

LEAVE A COMMENT