Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > refresh effect

Reply
Thread Tools

refresh effect

 
 
Bruno
Guest
Posts: n/a
 
      12-06-2004
Hi there,

I have some code (it will be a chat later) which uses the meta tag

<meta http-equiv="refresh" content="135; URL=/mydomaine/index-neu.php">

Yes, after 135 seconds, I see a refresh on the IE. However, if I work in GMX
or something else, the refreshed page will bring up the window in front of
everything, that ist enoying!

here is the code (which is generated by a php Script)

can anyone help me on this $%& strange effect?
regards Bruno
x----------------
<head>
<style type="text/css">
<!--
body { font-family: Arial; font-size: 8pt; background-color:
#CCFFFF; color: #000000}
..top_td { border-top-style: solid }
..bottom_td { border-bottom-style: solid ; border-width:1px;}
input { font-size: 8pt }
..chat { font-size: 14pt; font-weight: bold }
td { font-size: 8pt }
..von_an_td { font-size: 7pt; border-right-style: solid ; border-width:1px;
border-color:#000000; }
..datum_td { font-size: 7pt; border-right-style: solid ; border-width:1px;
border-color:#000000;}
..chat_td { font-size: 9pt; font-weight: bold; }
..filter { font-size: 8pt; font-weight: bold; border-bottom-width: 1px;
border-bottom-style: solid; border-color:#000000;}
select { font-size: 8pt }

-->
</style>
<script type="text/javascript">

function chkFormular()
{
if(document.form.von.value == "--") {
alert("Bitte Ihren Namen eingeben!");
document.form.von.focus();
return false;
}
}
document.form.mit_absicht_falsch.focus();


</script>
<meta http-equiv="refresh" content="35; URL=/myhost/index-neu.php">
<title>another test</title>
</head>
<body topmargin="1" leftmargin="1" onLoad="document.forms[0].reset();">


<p>

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<form method="get" action="" name="form" onSubmit="return
chkFormular()">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="text" name="chat_input" size="170" tabindex="1">
</td>
<td>
<input type="submit" value="Abschicken" name="send"
tabindex="2">
</td>
</tr>
<tr>
<td class="bottom_td">
Von:
<select size="1" name="von" tabindex="3">
<option value="--">--</option>
<option selected >b_s</option>
<option>c_g</option>
<option>f_n</option>
</option>
</select>
an:
<select size="1" name="an" tabindex="4">
<option value="--">alle</option>
<option>b_s</option>
<option>c_g</option>
<option>f_n</option>
</select>
Filter
<select size="1" name="filter" tabindex="5">
<option value="--">kein</option>
<option>b_s</option>
<option>c_g</option>
<option>f_n</option>
</select>
Verzögerung: <input type="text" name="delay" size="3"
value="35" tabindex="6">

</td>
<td class="bottom_td">
&nbsp;
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td class="filter">
</td>
</tr>

<tr>
<td>

<table border="0" cellspacing="0" cellpadding="0" ><tr>
<tr bgcolor='#ffffff'>
<td valign='top' width='10' class='von_an_td'></td>
<td valign='top' width='10' class='von_an_td'>--</td>
<td valign='top' width='10' class='datum_td'>06_11:42:39</td>
<td valign='top' width='1200' class='chat_td'>&nbsp;test</td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" ><tr>
<tr bgcolor='#ffddee'>
<td valign='top' width='10' class='von_an_td'>b_s</td>
<td valign='top' width='10' class='von_an_td'>--</td>
<td valign='top' width='10' class='datum_td'>06_11:43:00</td>
<td valign='top' width='1200' class='chat_td'>&nbsp;another test</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">

document.form.chat_input.focus();

</script>

<p>

</body></html>


 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      12-06-2004

"Bruno" <(E-Mail Removed)> wrote

> Hi there,
>
> I have some code (it will be a chat later) which uses the meta tag
>
> <meta http-equiv="refresh" content="135; URL=/mydomaine/index-neu.php">
>
> Yes, after 135 seconds, I see a refresh on the IE. However, if I work in
> GMX or something else, the refreshed page will bring up the window in
> front of everything, that ist enoying!
>
> here is the code (which is generated by a php Script)
>
> can anyone help me on this $%& strange effect?
> regards Bruno
> x----------------
> <head>
> <style type="text/css">
> <!--
> body { font-family: Arial; font-size: 8pt; background-color:
> #CCFFFF; color: #000000}
> .top_td { border-top-style: solid }
> .bottom_td { border-bottom-style: solid ; border-width:1px;}
> input { font-size: 8pt }
> .chat { font-size: 14pt; font-weight: bold }
> td { font-size: 8pt }
> .von_an_td { font-size: 7pt; border-right-style: solid ;
> border-width:1px; border-color:#000000; }
> .datum_td { font-size: 7pt; border-right-style: solid ;
> border-width:1px; border-color:#000000;}
> .chat_td { font-size: 9pt; font-weight: bold; }
> .filter { font-size: 8pt; font-weight: bold; border-bottom-width:
> 1px; border-bottom-style: solid; border-color:#000000;}
> select { font-size: 8pt }
>
> -->
> </style>
> <script type="text/javascript">
>
> function chkFormular()
> {
> if(document.form.von.value == "--") {
> alert("Bitte Ihren Namen eingeben!");
> document.form.von.focus();
> return false;
> }
> }
> document.form.mit_absicht_falsch.focus();
>
>
> </script>
> <meta http-equiv="refresh" content="35; URL=/myhost/index-neu.php">
> <title>another test</title>
> </head>
> <body topmargin="1" leftmargin="1" onLoad="document.forms[0].reset();">
>
>
> <p>
>
> <table border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td>
> <form method="get" action="" name="form" onSubmit="return
> chkFormular()">
> <table border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td>
> <input type="text" name="chat_input" size="170" tabindex="1">
> </td>
> <td>
> <input type="submit" value="Abschicken" name="send"
> tabindex="2">
> </td>
> </tr>
> <tr>
> <td class="bottom_td">
> Von:
> <select size="1" name="von" tabindex="3">
> <option value="--">--</option>
> <option selected >b_s</option>
> <option>c_g</option>
> <option>f_n</option>
> </option>
> </select>
> an:
> <select size="1" name="an" tabindex="4">
> <option value="--">alle</option>
> <option>b_s</option>
> <option>c_g</option>
> <option>f_n</option>
> </select>
> Filter
> <select size="1" name="filter" tabindex="5">
> <option value="--">kein</option>
> <option>b_s</option>
> <option>c_g</option>
> <option>f_n</option>
> </select>
> Verzögerung: <input type="text" name="delay" size="3"
> value="35" tabindex="6">
>
> </td>
> <td class="bottom_td">
> &nbsp;
> </td>
> </tr>
> </table>
> </form>
> </td>
> </tr>
> <tr>
> <td class="filter">
> </td>
> </tr>
>
> <tr>
> <td>
>
> <table border="0" cellspacing="0" cellpadding="0" ><tr>
> <tr bgcolor='#ffffff'>
> <td valign='top' width='10' class='von_an_td'></td>
> <td valign='top' width='10' class='von_an_td'>--</td>
> <td valign='top' width='10' class='datum_td'>06_11:42:39</td>
> <td valign='top' width='1200' class='chat_td'>&nbsp;test</td>
> </tr>
> </table><table border="0" cellspacing="0" cellpadding="0" ><tr>
> <tr bgcolor='#ffddee'>
> <td valign='top' width='10' class='von_an_td'>b_s</td>
> <td valign='top' width='10' class='von_an_td'>--</td>
> <td valign='top' width='10' class='datum_td'>06_11:43:00</td>
> <td valign='top' width='1200' class='chat_td'>&nbsp;another test</td>
> </tr>
> </table>
> </td>
> </tr>
> </table>
> <script type="text/javascript">
>
> document.form.chat_input.focus();
>
> </script>
>
> <p>
>
> </body></html>



Meta refresh is not advised from w3c quality tips
how you can read here :

http://www.w3.org/QA/Tips/reback

regards

Daniel


 
Reply With Quote
 
 
 
 
Bruno
Guest
Posts: n/a
 
      12-06-2004

>
> Meta refresh is not advised from w3c quality tips
> how you can read here :
>
> http://www.w3.org/QA/Tips/reback
>
> regards
>
> Daniel

Thanks - Daniel.
I do not want to REDIRECT to another page, I want to RELOAD it - because it
is a "chat" like page.
regards
Bruno


 
Reply With Quote
 
Steve Pugh
Guest
Posts: n/a
 
      12-06-2004
On Mon, 6 Dec 2004 14:48:29 +0100, "Bruno" <(E-Mail Removed)> wrote:
>
>>
>> Meta refresh is not advised from w3c quality tips
>> how you can read here :
>>
>> http://www.w3.org/QA/Tips/reback
>>

>I do not want to REDIRECT to another page, I want to RELOAD it - because it
>is a "chat" like page.


There is a reason why most chat rooms are not written in HTML.
This is part of that reason.

The focus problem you experience is probably due to the fact that your
JavaScript gives focus to one of the form boxes. Remove that and the
page might continue to happily reload in the background.

Steve

 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      12-06-2004
Bruno wrote:
>>Meta refresh is not advised from w3c quality tips
>>how you can read here :
>>
>>http://www.w3.org/QA/Tips/reback
>>
>>regards
>>
>>Daniel

>
> Thanks - Daniel.
> I do not want to REDIRECT to another page, I want to RELOAD it - because it
> is a "chat" like page.
> regards
> Bruno
>
>


By default, FireFox disables refresh. So unless you explicitly ask all
of your visitors to turn ON refresh, it may not have any effect.

Use javascript to refresh the content, plus add a reload link. To get
around the page being cached, use server side scripting to modify the
link used for refreshing.

<a href="thispage.asp?randomnumber=214124124">click here to refresh</a>

....is what the browser sees. But server side it looks like this:

<a href="thispage.asp?randonmuber=<%=myrandomnumber%> ">click here to
refresh</a>

That means if the user clicks the button, the browser thinks that it is
going to a different page each time and forces it to fetch the page from
the server...



--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
Bruno
Guest
Posts: n/a
 
      12-06-2004
thanks folks!!!

Regards
Bruno
"Bruno" <(E-Mail Removed)> schrieb im Newsbeitrag
news:cp1nvf$uio$04$(E-Mail Removed)-online.com...
>
>>
>> Meta refresh is not advised from w3c quality tips
>> how you can read here :
>>
>> http://www.w3.org/QA/Tips/reback
>>
>> regards
>>
>> Daniel

> Thanks - Daniel.
> I do not want to REDIRECT to another page, I want to RELOAD it - because
> it is a "chat" like page.
> regards
> Bruno
>



 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      12-06-2004
<(E-Mail Removed)>:

> Meta refresh is not advised from w3c quality tips


Yet snipping quotes certainly is...
 
Reply With Quote
 
Jeffrey Silverman
Guest
Posts: n/a
 
      12-06-2004
On Mon, 06 Dec 2004 11:22:10 +0000, infopre wrote:

> Meta refresh is not advised from w3c quality tips
> how you can read here :
>
> http://www.w3.org/QA/Tips/reback
>
> regards
>
> Daniel


And you had to repost the *entire* OP to add three lines?

--
Jeffrey D. Silverman | http://www.velocityreviews.com/forums/(E-Mail Removed)
Website | http://www.newtnotes.com

Drop "PANTS" to reply by email

 
Reply With Quote
 
Guest
Posts: n/a
 
      12-07-2004

"Jeffrey Silverman"

> And you had to repost the *entire* OP to add three lines?
>
> --
> Jeffrey D. Silverman | (E-Mail Removed)
> Website | http://www.newtnotes.com
>
> Drop "PANTS" to reply by email



sorry (


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
browser refresh effect on session variables and view state? =?Utf-8?B?RGFiYmxlcg==?= ASP .Net 1 08-08-2006 12:46 AM
tedious refresh effect Marco HTML 4 02-09-2006 05:24 PM
JSP: Session parameters vanish on refresh. How do I keep them on refresh? Per Magnus L?vold Java 1 10-08-2004 02:52 PM
How do i refresh a datagrid from a pop up window without having to refresh the whole page? Pkenty ASP .Net Web Controls 0 05-28-2004 07:06 AM
Problem with refresh button breaking automatic refresh brian lanning ASP .Net 0 07-29-2003 07:57 PM



Advertisments