|
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.
|
|
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!
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
We should be able to have something to you early next week.
Thanks
|
|
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!
|
|
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?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. We did receive the message and are working on it.
Thanks!
|
|
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&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.
|
|
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
|
|
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.
|
|
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!
|
|