Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Meta refresh in Safari

Reply
Thread Tools

Meta refresh in Safari

 
 
Matt
Guest
Posts: n/a
 
      12-29-2007
Am I right in thinking that this code doesn't work in Safari? I've
just written a PHP script for posting comments which uses a meta
refresh to reload the page so the user can't hit Reload and duplicate
their comment. I added a 'click here to continue' link underneath the
'you will now be redirected' message, but this isn't ideal - is there
any way to solve this besides using a header redirect? I don't really
want to do that since I'll have to strip all my PHP processing code
into a different file and such.

Matt
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      12-29-2007
Scripsit Matt:

> Am I right in thinking that this code doesn't work in Safari?


"This code"? Please learn to post to Usenet. You're supposed to start
the message by telling what you are referring to. You're supposed to
post a URL if you have a specific page that you have a problem with.

Besides, meta refresh was never guaranteed to work, and has often been
advised against.

> I've
> just written a PHP script for posting comments which uses a meta
> refresh to reload the page so the user can't hit Reload and duplicate
> their comment.


You're on a wrong track. Please don't try to write some discussion forum
software before you have a fairly good idea of how the Web works.
Instead, use existing software to set up a forum. Better still, join
someone else's forum. There's no shortage of discussion forums that were
born dead and remain dead.

> I added a 'click here to continue' link underneath the
> 'you will now be redirected' message, but this isn't ideal -


It's a fairly good way to tell that the author of the page has no clue
on creating discussion forums.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      12-29-2007

"Matt" <> wrote in message
news:2f09a658-fe5e-44bb-811e-...
> Am I right in thinking that this code doesn't work in Safari? I've
> just written a PHP script for posting comments which uses a meta
> refresh to reload the page so the user can't hit Reload and duplicate
> their comment. I added a 'click here to continue' link underneath the
> 'you will now be redirected' message, but this isn't ideal - is there
> any way to solve this besides using a header redirect? I don't really
> want to do that since I'll have to strip all my PHP processing code
> into a different file and such.


The only reliable way to do the redirect is server side. Once you realize
this you would write your PHP accordingly. It's not much different, simply
do the redirect immediately after your existing PHP code updates the
database.

--
Richard.


 
Reply With Quote
 
Matt
Guest
Posts: n/a
 
      01-02-2008
On 29 Dec 2007, 00:30, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
> Scripsit Matt:
>
> > Am I right in thinking that this code doesn't work in Safari?

>
> "This code"? Please learn to post to Usenet. You're supposed to start
> the message by telling what you are referring to. You're supposed to
> post a URL if you have a specific page that you have a problem with.


Hi there. Thank you for your fairly rude response. I've been posting
on Usenet for quite a few years now, I think you simply misunderstood
me. When I said "this code", I meant a generic reference to the meta
refresh function in HTML which I assumed readers would be familiar
with. I wasn't trying to debug a specific line of code; I thought this
was obvious from my post. It was about a technique.


> > I've
> > just written a PHP script for posting comments which uses a meta
> > refresh to reload the page so the user can't hit Reload and duplicate
> > their comment.

>
> You're on a wrong track. Please don't try to write some discussion forum
> software before you have a fairly good idea of how the Web works.
> Instead, use existing software to set up a forum. Better still, join
> someone else's forum. There's no shortage of discussion forums that were
> born dead and remain dead.


Once again, I do not appreciate this tone. As it so happens, I'm using
an existing forum software (phpBB) to handle the process of posting
comments. I'm not writing a forum, but my site now has the ability to
utilise phpBB's forum functionality as an additional module to my own
self-written code. As far as I'm aware, it's as big of a Usenet faux
pas to start assuming about other people's problems and telling them
they're doing it wrong, as it is to ask for answers about code without
posting it.

> > I added a 'click here to continue' link underneath the
> > 'you will now be redirected' message, but this isn't ideal -

>
> It's a fairly good way to tell that the author of the page has no clue
> on creating discussion forums.
>


Oh really? You'd better inform the people from Invision, phpBB, YaBB,
et al.




@Richard: thank you for the useful response. I guess I'll have to bite
the bullet and do it that way.

 
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
Meta-Meta-Programming, revisited Erik Veenstra Ruby 21 07-25-2006 10:26 PM
Meta-Meta-Programming Erik Veenstra Ruby 29 02-08-2006 08:22 PM
Meta methods to govern meta data? Duane Johnson Ruby 6 10-28-2005 03:57 AM
server-side timer vs. meta refresh Jim Hammond ASP .Net 4 10-27-2003 07:30 PM
META NAME and META HTTP-EQUIV Nym Pseudo HTML 1 09-26-2003 09:13 AM



Advertisments