What is the best way to create popups in php?
popup help
Page 1 of 15 Replies - 226 Views - Last Post: 25 January 2012 - 08:53 AM
Topic Sponsor:
Replies To: popup help
#2
Re: popup help
Posted 24 January 2012 - 04:04 PM
PHP is a serverside language.
You can not make popups with PHP. You would generally use Javascript with window.open to create a popup window, but even moreso most interfaces should be easy enough to complete without this.
*moved to Web Development*
You can not make popups with PHP. You would generally use Javascript with window.open to create a popup window, but even moreso most interfaces should be easy enough to complete without this.
*moved to Web Development*
This post has been edited by RudiVisser: 24 January 2012 - 04:05 PM
#3
Re: popup help
Posted 25 January 2012 - 02:03 AM
sorry I am a newbie here and thanks for moving this topic to the right place but I dont want to create a popup window,I want to create something like the share-box that opens up in facebook when we click the share button...
#5
Re: popup help
Posted 25 January 2012 - 08:43 AM
parthmody90, on 25 January 2012 - 09:03 AM, said:
sorry I am a newbie here and thanks for moving this topic to the right place but I dont want to create a popup window,I want to create something like the share-box that opens up in facebook when we click the share button...
An overlay like that can be very easily made. The approach I would normally take is as follows:
Design a DIV in a location (center screen?) that you want to be popped up.
Also add a div that covers the whole screen as a "backdrop", so your other div/window stands out.
When you're done, set the overlay/window divs classes to be display:none.
Using Javascript when your specific action is performed, simply set the display to 'block'... Et voila.
It's actually a very simple thing to do, I think you'll be surprised when you think about it, so long as you're relatively proficient in HTML / CSS / JS.
rpgmaker, on 25 January 2012 - 09:14 AM, said:
Use j query ?
Don't use jQuery.
#6
Re: popup help
Posted 25 January 2012 - 08:53 AM
RudiVisser, on 25 January 2012 - 08:43 AM, said:
parthmody90, on 25 January 2012 - 09:03 AM, said:
sorry I am a newbie here and thanks for moving this topic to the right place but I dont want to create a popup window,I want to create something like the share-box that opens up in facebook when we click the share button...
An overlay like that can be very easily made. The approach I would normally take is as follows:
Design a DIV in a location (center screen?) that you want to be popped up.
Also add a div that covers the whole screen as a "backdrop", so your other div/window stands out.
When you're done, set the overlay/window divs classes to be display:none.
Using Javascript when your specific action is performed, simply set the display to 'block'... Et voila.
It's actually a very simple thing to do, I think you'll be surprised when you think about it, so long as you're relatively proficient in HTML / CSS / JS.
rpgmaker, on 25 January 2012 - 09:14 AM, said:
Use j query ?
Don't use jQuery.
thanks man will definitely try it!
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|