5 Replies - 226 Views - Last Post: 25 January 2012 - 08:53 AM

Topic Sponsor:

#1 parthmody90  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 24-January 12

popup help

Posted 24 January 2012 - 03:12 PM

What is the best way to create popups in php?
Is This A Good Question/Topic? 0
  • +

Replies To: popup help

#2 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 811
  • View blog
  • Posts: 3,238
  • Joined: 05-June 09

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*

This post has been edited by RudiVisser: 24 January 2012 - 04:05 PM

Was This Post Helpful? 1
  • +
  • -

#3 parthmody90  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 24-January 12

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...
Was This Post Helpful? 0
  • +
  • -

#4 rpgmaker  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 164
  • Joined: 02-October 11

Re: popup help

Posted 25 January 2012 - 02:14 AM

Use j query ?
Was This Post Helpful? 0
  • +
  • -

#5 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 811
  • View blog
  • Posts: 3,238
  • Joined: 05-June 09

Re: popup help

Posted 25 January 2012 - 08:43 AM

View Postparthmody90, 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.

View Postrpgmaker, on 25 January 2012 - 09:14 AM, said:

Use j query ?

Don't use jQuery.
Was This Post Helpful? 1
  • +
  • -

#6 parthmody90  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 24-January 12

Re: popup help

Posted 25 January 2012 - 08:53 AM

View PostRudiVisser, on 25 January 2012 - 08:43 AM, said:

View Postparthmody90, 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.

View Postrpgmaker, on 25 January 2012 - 09:14 AM, said:

Use j query ?

Don't use jQuery.

thanks man will definitely try it!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1