similar to modal popup

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Anant
Forum Commoner
Posts: 66
Joined: Wed Jul 14, 2010 11:46 am

similar to modal popup

Post by Anant »

Hi,

In .NET there is modal popup feature that you can use - i am trying to find something similar in php. Basically i want to set a cookie - if user comes to the site for the first time - this popup appears else it never pops up.

Any working example would really help.

Thanks
mikecampbell
Forum Commoner
Posts: 38
Joined: Tue Oct 12, 2010 7:26 pm

Re: similar to modal popup

Post by mikecampbell »

You need to use JavaScript in combination with PHP. I'd recommend using a library like jQuery. It includes methods to create a modal dialog box.
http://docs.jquery.com/UI/Dialog
Anant
Forum Commoner
Posts: 66
Joined: Wed Jul 14, 2010 11:46 am

Re: similar to modal popup

Post by Anant »

thanks - is there any good example showing how to implement it in php and js or jquery... ???
jraede
Forum Contributor
Posts: 254
Joined: Tue Feb 16, 2010 5:39 pm

Re: similar to modal popup

Post by jraede »

Just google "jquery modal box" and you'll find a bunch of plugins with examples.
Post Reply