| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
now with added beard
Join Date: Mar 2004
Location: Liverpool
Posts: 5,273
|
javascript with xhtml
Can anyone tell me whether it's okay to use javascript with xhtml ?? I just turned a vaild page into a mess by adding a pop up window tag, the validator seems to suggest there's a problem with the opening javascript tags ?? but maybe it just don't like javascript ?? Please, please tell me now....Is there something I should know ?? (Duran Duran..) |
|
|
|
|
|
#3 (permalink) |
|
volkswagen yellow & gold
Join Date: Apr 2003
Location: london, england.
Posts: 6,215
|
i'm sure bill will correct me if i'm wrong but the whole thing about xhtml is that its meant to be focused on what is in the current browser window and by using a pop-up, you're breaking the model anyway. |
|
|
|
#7 (permalink) | |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,930
|
Quote:
Yes and no. The point of XHTML is the separation of content, style and (additional) functionality. The idea is to farm extraneous doodads such as popup windows out to script which puts them in a domain over which they have greater personal control. My personal view is offer popups if you feel/know that popups work best for your site, but you'd be wise to implement them in an accessible way that still allows users to access that (valuable?) content if/when they don't/can't have js enabled. …and don't forget that more and more people are using popup blockers that prevent all popup windows apart from those triggered manually by the user. So you may need to offer users a link to manually trigger a popup that has been prevented from opening automatically. |
|
|
|
|
#9 (permalink) |
|
now with added beard
Join Date: Mar 2004
Location: Liverpool
Posts: 5,273
|
Thanks all for your help. As it goes in this instance I've decided to banish the pop-up windows anyway, just linking to additional, complete pages - getting around the problem for the time being.....but I'll no doubt have to come back to it soon and will check your words of wisdom. Thanks again. I love you all. |
|
![]() |