Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Message Popup in PHP

1 view
Skip to first unread message

Felix Rabinovich

unread,
Jan 9, 2004, 7:10:39 PM1/9/04
to
is there a function in PHP to get a message popup on the web page? Couldn't
find any (or missed it) in the docs; so I am now putting "echo <script>
alert(whatever)</script>" whic feels really strange... there go to be a
better solution...

Thx
Felix


Chung Leong

unread,
Jan 9, 2004, 9:06:04 PM1/9/04
to
There is no better solution. PHP is a server-side language after all. Things
that appears on the client side must rely on a client-side language.

Uzytkownik "Felix Rabinovich" <fe...@rabinovich.org> napisal w wiadomosci
news:3qHLb.934$1e....@newsread2.news.pas.earthlink.net...

Robert Downes

unread,
Jan 12, 2004, 4:38:02 PM1/12/04
to

The better solution is not to use pop-ups. Good web browsers do not
allow JavaScript to open windows indirectly (i.e. without the user
specifically clicking a JS link), so a lot of users will never see your
lovingly crafted pop-up messages.

Unless you're talking about warning dialogues, in which case, yeah -
you'll have to just echo JS to the page.
--
Bob
London, UK
echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "@obe.uk"

0 new messages