Jump to content

META http-equiv=refresh, and input type=text


zimmy52420
 Share

Recommended Posts

<META http-equiv=refresh content=12;URL=./index.php#1>

I've put this into a live chat script of mine, in the headers. The file is index.php#1. I've put in #1 because alot of people bookmarked ./index.php, and complained when they didn't automatically reach the end of the DIV. In Internet Exploder, it doesn't refresh, When I take out the URL redirect part, it does. Also in IE, text entered into some

<input name="stuff" type="text">

boxes gets deleted on refresh... is there anyway to stop IE doing this? Or at least refreshing properly? Thanks in advance

Link to comment
Share on other sites

The only way I can think is using some sort of "AJAX" approach (or should I say simply JavaScript) to refresh only what has to be refreshed.How? I haven't got the slightest clue. Hope someone else does.

Link to comment
Share on other sites

First, try adding quotation marks and get into the habit of doing this throughout your work:

<meta http-equiv="refresh" content="12;URL=./index.php#1">

(that might not make a difference but worth getting used to)Second, it is the browser that is porgrammed to not retain unsubmitted form information on a refresh - (side note) that is one of the things I like about Firefox. So, the only way to get around that is to remove the <meta> function and translate that into a javascript form submit script that is triggered by a javascript countdown script. Then, have the page load the text that was in the field.Now, if this is problem because your text is the message being typed for the chat. And you are tryingt o refresh the chat without loosing a partial message . . . then your problem is not the code, its the fundemental approach you are taking. Do not combine them on one page. Load a page (lets say its a popup window) for the chat application. The chat application is run on frames - the top (bigger) one is the messages that are being chatted and the lower (smaller) is the one for the user to type the message. This allows you to refresh you chat dialog as often as you like with out interupting the messager.Hope this is accurate - I realize it is based on a number of assumptions - please forgive me if I'm way off on your structure/design

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...