Forum Moderators: phranque

Message Too Old, No Replies

PHP slowly replacing JavaScript Pop-Ups

A Trend immune to Non-JavaScript

         

usa1

9:44 pm on Feb 6, 2004 (gmt 0)



It Seems that PHP pop-up windows are harder to escape than JavaScript - also the HTML code can not be easily Accessed...

They Seem to be gaining momentum.....

ergophobe

6:28 pm on Feb 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Usa1, I hope this doesn't sound rude, but I must respond to say that you are wrong on all counts.

1. PHP and Javascript are complementary, not competing technologies. They serve quite different purposes using quite different means.

2. PHP is a server-side technology. As such it does not and cannot create popups. That can only be done client-side.

3. Harder to escape? If you mean that you can't stop PHP pages with a pop-up blocker that's true. Why? Because they are not popups and they don't open without the user clicking a link. No need for a popup blocker.

4.


HTML code can not be easily Accessed

Not only incorrect, but actually backwards. The HTML code generated by Javascript is more difficult to access. If you load a page and then click on something that uses Javascript to rewrite the underlying code that the browser displays, you will not see that when you look at the page using View Source. With PHP, all HTML it generates and sends to the page will be visible when you look at the source... unless the PHP generates Javascript and the Javascript generates code.

Cheers,

Tom

PCInk

6:46 pm on Feb 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



> The HTML code generated by Javascript is more difficult to access.

View source in Netscape 4 shows the result output of the JavaScript - a use for NS4!