If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
getting poll valid in xhtml 1.0 strict  XML
Forum Index » Support Forum
Author Message
Anonymous



I'm trying to get advanced poll valid in xhtml 1.0 strict. I'm using the popup template set and have already stripped it of font tags and whatnot. But I still get some errors when I try to validate my page.

In the display_head:

Validator gives me two errors here.
1) there is no attribute "name" (do I just replace "name" with "id" ?)
2) required attribute "action" not specified

And then on the next line...

Validator gives me two more errors.
1) there is no attribute "language"
2) required attribute "type" not specified (is it type="text/javascript" ?)

And then in the display_footer:

Validator says: there is no attribute "target"


I'd appreciate any help or links, as the advanced poll is the only thing stopping me from having a valid xhtml strict site. Thanks in advance.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

there isn't. Welcome to the wonderful world of strict HTML. I personally use javascript and the rel attribute. look at www.carbonize.co.uk/external.js

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Thanks for that last bit. But are you saying that it is impossible to get the rest of it valid in xhtml strict?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I am saying that to open links in a new window we need to cheat a bit and use javascript.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Okay, I get that.

But I really want to fix the other attributes I mentioned above as well, like "name" and "type". Is that an easy fix?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

type is valid name is deprecated but is allowed if you also use id="" give it the same value as the name attribute. go figure

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

May be best to ignore my above post. I once made my entrie guestbook valid but at sometime I must of accidentally replaced the updated files with an old backup but it is possible.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Okay, I'm down to just 2 errors now.

In the display_head of popup poll template set...


I've replaced "name" with "id" in <form> to make it valid. But now no one can vote or see results. So, that isn't working. Is there another "name" I need to replace somewhere else in the script to get it to work?

Also, the w3c validator keeps complaining about <form> not having an "action" specified. What kind of action should I specify?

Thanks for taking the time to read this. Any help is appreciated. If all else fails, I guess I could go back to xthml transitional .... (shudder, shudder)
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

try action="" but no promises.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum