Log in

View Full Version : PHP Pop Up Box



mng4
08-22-2010, 09:45 PM
Hi,
I just want to know how can i configure a small pop box for my website where my submitted text will appear and it will be show to my visitors on real time and visitors can not write anything.

Regards,
Abhijit

traq
08-22-2010, 11:11 PM
javascript is what you're looking for - you can use php to dynamically write the script if you'd like, but php can't handle it directly. it has to happen on the client's end, not on the server.


<input type="button" onclick="alert('Are you sure you want to give us the deed to your house?')" value="Confirm">
-from tizag (http://www.tizag.com/javascriptT/javascriptalert.php)

mng4
08-23-2010, 12:00 PM
Thanks for your reply. I am sorry that I had not right the full thing. You might help me.
I am working in joomla. I am making a financial portal. i want configure a live real time pop up box what's input will be put from administrator end it will appear to the visitors in real-time but visitors can not right any thing.

djr33
08-23-2010, 01:02 PM
So a one way pop up chat? You'll need to use a database and dome Ajax to check for new messages.