Forum Moderators: coopster & phranque

Message Too Old, No Replies

Can popups be done with Perl or PHP?

         

Marcia

8:42 am on Mar 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've sworn I'd never use Javascript for any reason, and there's no choice but to do an entry popup on a site. Is it possible with Perl or PHP?

jpjones

10:24 am on Mar 13, 2003 (gmt 0)

10+ Year Member



Pop up windows are controlled only by the client browser. The only way to open a new window is to do add a
target="_newwindow"
in a A HRef tag, or to use JavaScript.

Perl & PHP are server-side languages only, i.e. they are there only to tell the browser what to do through HTML, XML, and Javascript.

Therefore, it looksk like JavaScript is your only friend in this instance.

JP

TallTroll

12:13 pm on Mar 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I suppose you could also do it through an ActiveX control, as that can access the same DOM/BOM objects as JS. Can you trigger an ActiveX control using perl/PHP? Similar security issues as with scripting though, and a fair %age of surfers have it switched off (for the obvious "format c:" type reasons)

nosanity

8:40 pm on Mar 13, 2003 (gmt 0)

10+ Year Member



ACK! Popups suck, but if they are nescessary, take a look at a javascript reference manual about onLoad, onClose, etc... also use target=_blank for a new window in <a href ...

noSanity