homepage Welcome to WebmasterWorld Guest from 54.196.225.45
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Help with validating an IFrame form please?
Trying to validate an IFrame form on an xhtml Dreamweaver page?
fcbruno




msg:4012866
 11:30 pm on Oct 24, 2009 (gmt 0)

Hi Guys

I'm trying to validate a form so it can be included on my contact page.
Any suggestions would be greatly appreciated - I'm at a bit of a loss!

First time poster on the forum, and bona fide amateur with no formal training, but am trying my hardest!

The source code for the IFrame form was generated by a 'form builder' via the website host.

I have included the code beneath my name.

The page validated perfectly prior to introducing the form.

Should I maybe change the format of the Dreamweaver page to something other than xhtml to help the form validate?

Again, all suggestions would be really appreciated.

Warm regards

Peter

----

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> &#8232;<html xmlns="http://www.w3.org/1999/xhtml">

<iframe id="tincAppDoc" src="/tinc?key=QAxDEvTm&formname=Send_message" width="370" height="370" style="border:none" frameborder="0" allowtransparency="true" background-color="transparent"></iframe> &#8232;<script src="/spicons/tinc/common/script/tincapp.js"></script>

 

choster




msg:4028128
 4:39 pm on Nov 19, 2009 (gmt 0)

Most "builders" available on the web are worthless, built by developers unaware of or indifferent to web standards, often years ago. But it is a good sign that you care about the quality of the code if you are validating it.

Here are the "problems" I observe with the generated code. Note that none of these things will "break" the page or the site, but they are still items out of spec.

--
<iframe> is merely tolerated in XHTML 1.0 Transitional, and not permitted at all in XHTML 1.0 Strict.

Delete &#8232; as it is a character entity for a "line separator"; character data is not legal between the DOCTYPE declaration and the <html> element.

The ampersand in your src attribute should be escaped as &amp;.

The "allowtransparency" and "background-color" attributes are Microsoft-only, and not generally valid.

Your <script> should include a MIME type (probably text/javascript).

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved