Help with W3C Compliance Please -...

User 2304277 Photo


Registered User
16 posts

I have a Wordpress site and place the Web Form Builder code to display my form in a widget in the side bar. When I check W3C code compliance, I get errors. Most I have been able to fix by editing the formname.html file but this one has me stumped.

You can see the errors by viewing the attached screenshot from w3c.org.

Here's the code on in the widget:


<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"http://www.mydomain.com.au/auditrequestform.php" + window.location.search + "\" width=\"237\" height=\"449\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\"http://www.webwings.com.au/auditrequestform.php\" title=\"\"&gt;%3C/iframe%3E"));</script>
<noscript>
<iframe width="237" height="449" style="border:none; background:transparent; overflow:hidden;"
id="fb_iframe" src="http://www.mydomain.com.au/auditrequestform/auditrequestform.html">
a href="auditrequestform.php";
</iframe>
</noscript>


Note that I have already played with the above code a bit too.

Interestingly there is no <br /> in the code above. I assume it must be generated somewhere. Here's the source code from the page:


<noscript>
<iframe width="237" height="449" style="border:none; background:transparent; overflow:hidden;"<br />
id="fb_iframe" src="http://www.mydomain.com.au/auditrequestform/auditrequestform.html"><br />
a href="auditrequestform.php";<br />
</iframe><br />
</noscript>


Does anyone have any idea what I need to change to achieve W3C compliance?

Thanks!
Attachments:
Internet Marketing services for Australia Business.
http://www.webwings.com.au/
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Looks to be that WordPress is adding some code on you.
Try altering your form code to a straight iframe.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2304277 Photo


Registered User
16 posts

Thanks Eric

Sorry, I'm not a coder so don't know how to do that. Is it easy?
Internet Marketing services for Australia Business.
http://www.webwings.com.au/
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

<iframe width="237" height="449" style="border:none; background:transparent; overflow:hidden;" id="fb_iframe" src="http://www.mydomain.com.au/auditrequestform/auditrequestform.html"></iframe>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2304277 Photo


Registered User
16 posts

Thanks Eric, that worked!

I hope that Coffee Cup moves towards W3C compliance as a matter of course.
Internet Marketing services for Australia Business.
http://www.webwings.com.au/
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I think their code is but it's beyond their control when 3rd party apps alter things. It's all good as long as we can alter things to make them work. The form builder is an awesome tool and is getting better and better.:cool:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2304277 Photo


Registered User
16 posts

Point taken.

I agree that it's a great tool and I appreciate the work that's gone into making it better in recent times.
Internet Marketing services for Australia Business.
http://www.webwings.com.au/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.