Old 15-03-2004, 08:31   #1 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
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..)
  Reply With Quote
Old 15-03-2004, 08:35   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,240
Have you got "language=javascript" in your tag? If so take it out.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 15-03-2004, 08:40   #3 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
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.
  Reply With Quote
Old 15-03-2004, 08:42   #4 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,240
Can you just show us the error?
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 15-03-2004, 08:44   #5 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,215
i prefer the guessing game.
  Reply With Quote
Old 15-03-2004, 08:48   #6 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,240
Quote:
Originally Posted by Brown
i prefer the guessing game.
Has the kettle not boiled yet?
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 15-03-2004, 09:27   #7 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,930
Quote:
Originally Posted by Brown
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.

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.
  Reply With Quote
Old 15-03-2004, 11:30   #8 (permalink)
lucidcreations
Part of the 3 out of 4
 
lucidcreations's Avatar
 
Join Date: Feb 2003
Location: cheshire
Posts: 2,081
just stick type="text/javascript" in instead of language
__________________
Jase
  Reply With Quote
Old 16-03-2004, 04:52   #9 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
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.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8