Reply to Re: Executing php code within an iframe

Your name:

Reply:


Posted by jojo on 10/15/06 11:26

Steve wrote:

I almost forgot it: your code is missing a doctype...

>> <html>
>>
>> missing a <head> and a <title> here...
>
> neither <head> nor <title> are required.

No, <head> isn't, but <title> is.

>>> <script language="javascript">
>>>
>> No, it's <script type="text/javascript">
>
> you're a picky bastard, aren't you. it is also correct the way i have
> written it as well.

Just bullshit. It isn't anymore. The title attribute is required now.

>>> var newSource =
>> .
>> .
>> .
>> .
>> .
>>> </script>
>>> <body onload="initialize();" onunload="quit();">
>>> <img id="imageToSwap"
>>>
>>> src="http://www.onzemaninteheran.com/uploaded_images/microphone-755244.jpg">

Forgot it, too: missing alt="" (Yes, it *is* required!)

>>> </body>
>>> </html>
>>
>> This would not work of course if JS is switched off in the user's browser.
>
> really? no shit! what the fuck is up your ass, jojo?

Just wanted to point out that I wouldn't use JS for features I want to
work in every browser. You can use JS for things which aren't required
to view your site the right way. But you really shouldn't force the user
to switch on Javascript just to view your site. It's the users choice if
he wants to enable JS or not and every ste schould work without JS, too.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация