PDA

View Full Version : Validation W3 help needed


TimberFloorAu
02-24-2009, 11:38 PM
G'day guys.

Have been validating one of our templates most of the day.
XHTML 1.0 Transitional!

Now I am down to 6 errors ( from 192 ! )

These are:

Doesnt like onSubmit - there is no attribute "onSubmit"
<form action="http://www.oursite.com/forum/login.php?do=login" method="post" onSubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">

Doesnt like onFocus - there is no attribute "onFocus"
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onFocus="if (this.value == 'User Name') this.value = '';" /></td>

Doesnt like onClick - there is no attribute "onClick"
<dd><a href="#" onClick="window.open('chat/index.php','v3chatrooms','toolbar=0,location=0,dir ectories=0,status=0,menubar=0,scrollbars=0,resizab le=0,width=600,height=488,left=380,top=120');retur n false;">Chat Rooms</a></dd>

Doesnt like colspan - there is no attribute "colspan"
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" colspan="2">

The other errors I can fix, but need help with fixing these please.

We are validating :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">

Brandon Sheley
02-24-2009, 11:41 PM
try to use lowercase letters onClick to onlclick

TimberFloorAu
02-24-2009, 11:49 PM
thought of that but didnt think to actually do it lol.

Will give her a go, thanks .

Ste

--------------- Added 1235527285 at 1235527285 ---------------

**************************
Ok that fixed 3 issues.

Lastly I have this one :

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" colspan="2">

w3.org states: there is no attribute "colspan" .

Any suggestions as to a suitable replacement.

Lynne
02-25-2009, 02:36 AM
Colspan is an attribute of the <td> tag - HTML td colspan Attribute (http://www.w3schools.com/tags/att_td_colspan.asp)

TimberFloorAu
02-25-2009, 02:45 AM
Colspan is an attribute of the <td> tag - HTML td colspan Attribute (http://www.w3schools.com/tags/att_td_colspan.asp)

Ok, thanks Lynne.

My issue is now, its within a product.

I have reuploaded the product , allowed over write, but my templates must be cached. So will have to keep refreshing ( will log out ) and try to clear cookies..

Hopefully, have sorted it :)

Just a quickie ( off topic )
Can smilies be placed under the textarea, in postbit_legacy ?

Lynne
02-25-2009, 02:50 AM
smilies in the postbit_legacy? I suppose you can put some there. I'm not sure that's what you really meant though.

TimberFloorAu
02-25-2009, 02:52 AM
smilies in the postbit_legacy? I suppose you can put some there. I'm not sure that's what you really meant though.


Apologies. We use postbit_legacy.

When making a new post, the smilies box is to the right of the text area.
Can we have it set underneath the main text area.

Ste

Lynne
02-25-2009, 02:55 AM
That is not the postbit_legacy template, which is why I was confused. The postbit (and postbit_legacy) templates are the individual ones for the post. I've seen mods to move the smilies - do a search on "smil*" in "all mods" "titles only" and you should find one.

TimberFloorAu
02-25-2009, 03:10 AM
That is not the postbit_legacy template, which is why I was confused. The postbit (and postbit_legacy) templates are the individual ones for the post. I've seen mods to move the smilies - do a search on "smil*" in "all mods" "titles only" and you should find one.

Thanks Lynne

Dismounted
02-25-2009, 05:44 AM
AFAIK, there should be a modification by Princeton that does that.

TimberFloorAu
02-25-2009, 06:18 AM
AFAIK, there should be a modification by Princeton that does that.

Yep got it thanks mate :) works a treat !! :up: