Welcome Guest Search | Active Topics | Sign In | Register

W3C Validation. EO.Web.DatePicker(Calendar) does not pass w3c validation!!! Options
Dyon
Posted: Friday, November 19, 2010 5:06:05 AM
Rank: Newbie
Groups: Member

Joined: 11/19/2010
Posts: 5
I've bought a license and used datepicker control on my website. But after checking the html markup with w3c validator the parts of code generated by eo.web.datepicker do not pass validation. it found many errors like unescaped ampersands and old tags.

.eo_css_ctrl_ctl00_MainContent_dtStartTime4 {background-image:url(/VCS/WebResource.axd?d=33kfFuwLStNMD9vkSXCyN92yPyNpu5xiiGLv0wUqUssaslWit39R7F2_Pvvm5fEZSoAknNSaWVmvn4MjU7Rdjg2&t=634207521640000000);background-position:center center;background-repeat:no-repeat;color:#1c7cdc;font-family:Verdana;font-size:8pt}


<img id="_eo_ctl00_MainContent_dtStartTime_popupimg" onload="javascript:EO834.f.aha('_eo_ctl00_MainContent_dtStartTime_popupimg');" alt="" title="" src="/VCSWebResource.axd?d=33kfFuwLStNMD9vkSXCyN80bDFU7o8wD4mhVU5XePqdU1fSy6PIOW4ywmrsWCi0_0&t=634207521640000000" />

Is there a way to solve this problem? For my client w3c validation is critical.

eo_support
Posted: Friday, November 19, 2010 10:01:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

This appears to be an issue. We are looking into it and see what we can do.

Thanks!
Dyon
Posted: Friday, November 19, 2010 10:38:00 AM
Rank: Newbie
Groups: Member

Joined: 11/19/2010
Posts: 5
Thanks for reply. But can you approximately tell me how much time will it take? I'm short of time with the project, it comes to deadline.
eo_support
Posted: Friday, November 19, 2010 10:42:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
We should be able to have something to you early next week.

Thanks
eo_support
Posted: Friday, November 19, 2010 5:21:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build that should address this issue. Please see your private message for the download location.

Thanks!
Dyon
Posted: Monday, November 22, 2010 5:18:22 AM
Rank: Newbie
Groups: Member

Joined: 11/19/2010
Posts: 5
Hello, did you get my last message about one more w3c error left? it's in the styles in header section generated by EO.Web. example is below - there's unencoded ampersand in the url

.eo_css_ctrl_ctl00_MainContent_dtStartTime4 {background-image:url(/VCS/WebResource.axd?d=33kfFuwLStNMD9vkSXCyN92yPyNpu5xiiGLv0wUqUssaslWit39R7F2_Pvvm5fEZSoAknNSaWVmvn4MjU7Rdjg2&t=634207521640000000);background-position:center center;background-repeat:no-repeat;color:#1c7cdc;font-family:Verdana;font-size:8pt}


Can you please fix that?
eo_support
Posted: Monday, November 22, 2010 9:18:36 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. We did receive the message and are working on it.

Thanks!
Dyon
Posted: Tuesday, November 23, 2010 5:27:24 AM
Rank: Newbie
Groups: Member

Joined: 11/19/2010
Posts: 5
Good. I've got your second build today. The error with unencoded ampersand is gone. But I found one more... sorry guys. The datepicker on the forms initially is in disabled state, the markup generated for disabled datepicker is following (a part):

<table border="0" cellpadding="0" cellspacing="0" id="ctl00_MainContent_dtOnly" disabled="disabled"><tr><td><input style="font-family:Courier New" type="text" id="_eo_ctl00_MainContent_dtOnly_picker" name="_eo_ctl00_MainContent_dtOnly_picker" value=" / / " size="11"/></td><td><img id="_eo_ctl00_MainContent_dtOnly_popupimg" alt="" title="" src="/VCS/WebResource.axd?d=33kfFuwLStNMD9vkSXCyN80bDFU7o8wD4mhVU5XePqdU1fSy6PIOW4ywmrsWCi0_0&amp;t=634260376020000000" /><script type='text/javascript'>EO843.f.aha('_eo_ctl00_MainContent_dtOnly_popupimg')</script></td></tr>
</table>

there is forbidden attribute disabled="disabled", the tag <table> does not have this attribute according to w3c rules. Please fix that issue to make the datepicker control fully compatible with w3c standarts.
eo_support
Posted: Tuesday, November 23, 2010 9:53:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I don't think this attribute is added by us. This attribute is directly mapped to the contro’s Enabled property, which is an ASP.NET property. So this attribute is added by ASP.NET (You can try to set a DataGrid's Enabled to False and you will see the same problem). Thus I am not sure whether we can get rid of it. We will take a look and see what we can do. If it is not technically doable or too complicated thus not worth it, then you will need to code to avoid using a disabled DatePicker (for example, to use a static Label).

Also can you provide a full test page so that we can use to verify all the issues and can fix them all once?

Thanks
Dyon
Posted: Thursday, November 25, 2010 5:29:13 AM
Rank: Newbie
Groups: Member

Joined: 11/19/2010
Posts: 5
yes, you were right that attribute is added by asp.net to any control (tag) when Enabled propery is used. So that's a bug from Microsoft. I had to change the behaviour of the calendars on my page in the way not to use Enabled property and now I finally have w3c validation successful. So thanks for your help and support.
eo_support
Posted: Thursday, November 25, 2010 8:06:01 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You are very welcome. Glad to hear that you got it working. It is probably better to avoid using Enabled property instead of trying to hack around MS's code.

Please feel free to let us know if you have any other questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.