Html Validation issue

In checking for W3C HTML validation for a page on my site I
was shown to have 17 errors. 14 of which seem to be as a result of
including links to a remote site with a long url which the
Validator tries to validate.
if you want to see what I mean put my page
http://www.tormented.org.uk/Pages/inpatient/inpatient_bx.php
(Username: gp
Password: adoctor
through the W3C validator.
It would seem imposible to satisfy the Validator under these
circumstances. Am I right?

smiffy47 wrote:
> In checking for W3C HTML validation for a page on my
site I was shown
> to have 17 errors. 14 of which seem to be as a result of
including
> links to a remote site with a long url which the
Validator tries to
> validate.
> if you want to see what I mean put my page
>
http://www.tormented.org.uk/Pages/inpatient/inpatient_bx.php
> (Username: gp
> Password: adoctor
> through the W3C validator.
> It would seem imposible to satisfy the Validator under
these
> circumstances. Am I right?
Try changing the ampersands in the url to & - it
should then still work,
and will pass validation.
HTH,
Pete.
Peter Connolly
http://www.acutecomputing.co.uk
Derby
UK
Skype ID: acutecomputing

Similar Messages

  • HTML validation

    It doesn't appear that HTML validation has gotten much attention here on the Apex forum. I did a search here and in the OTN forums at large and found no threads with the phrase "HTML validation" in them. In any case I'm trying to go down that path, meaning that I'm trying to create an Apex application wherein the HTML produced passes validation using the W3C validation tool.
    Interestingly enough, I always thought Apex did a great job of producing valid HTML. Turns out it's not so good when you check it using the W3C validator. There are all sorts of quirks that show up that don't make a huge difference in display or function but they don't pass muster in terms of standards based HTML or XHTML.
    One of the things I found that's quite pervasive, and probably a relatively easy fix, is that when ampersands are inserted into URLs (using things like the #WORKSPACE_IMAGES# substitution string) that those ampersands are not properly escaped and this causes a bunch of cascading errors as a result.
    So my question is this: is anyone out there from the Apex development team at Oracle looking at this? Or is it not even on the radar?
    As far as I'm concerned, it would be really nice to be able to run an Apex app through the W3C validator and have it pass with flying colors. Does any one else care about this? Or is this thread just going to die a quick, quiet and painless death?
    Where do you stand on HTML validation? Is it a moot point if your application looks/behaves the way you want it to?
    In case you want to try this out for yourself take a look here: http://validator.w3.org/
    Earl
    Edited by: EarlL on Dec 9, 2009 3:15 PM

    Earl
    It doesn't appear that HTML validation has gotten much attention here on the Apex forum. I did a search here and in the OTN forums at large and found no threads with the phrase "HTML validation" in them.[You did not find the right incantation|http://forums.oracle.com/forums/search.jspa?threadID=&q=html+AND+%28validator+OR+standards+OR+compliant%29&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001]—there have been more than a few, [going back quite a while|http://forums.oracle.com/forums/thread.jspa?messageID=951069] and [right up to today|http://forums.oracle.com/forums/thread.jspa?messageID=3956045].
    One of the things I found that's quite pervasive, and probably a relatively easy fix, is that when ampersands are inserted into URLs (using things like the #WORKSPACE_IMAGES# substitution string) that those ampersands are not properly escaped and this causes a bunch of cascading errors as a result.[I pointed this out long ago|http://forums.oracle.com/forums/thread.jspa?messageID=1244310] for exactly the same reasons. If this was fixed it would be a lot easier to identify more significant problems.
    So my question is this: is anyone out there from the Apex development team at Oracle looking at this? Or is it not even on the radar?Although the ampersand issue has not been fully resolved, there has been resolution or improvement of a lot of the areas that caused validation errors at the time of that post. However (to the indignation of the majority I suspect) I would have preferred more progress in this dull and invisible area than on more obvious enhancements, on the grounds that getting the basics sorted would provide a better platform to develop these new features on, with less possibility of [introducing further non-compliance in those features|http://forums.oracle.com/forums/thread.jspa?messageID=3228587&#3228587].
    Does any one else care about this?Yes. See links above. I was trying to find the time to jump into that current thread.
    Where do you stand on HTML validation?Coincidentally, I came across a link to this earlier tonight, which as it turns out is close to my own thoughts on XHTML and validation. Browsers are more forgiving than compilers (as a programmer I wish that they weren't), so (X)HTML and CSS validation plays the same role in my XHTML/CSS workflow as the first pass through the PL/SQL compiler does with database code, or lint-type tools do in other languages: it generates errors and warnings that inform me that there is something wrong with that code. If I can fix it I do, but if it comes out of the APEX engine rather than a template...
    Is it a moot point if your application looks/behaves the way you want it to?Looking at the way HTML and CSS are used in the built-in templates, the solutions provided in this forum, and some of the projects I've worked on, that seems to be the majority view. Little or no thought is given to using semantic HTML to provide structure, or CSS that uses anything other than basic class selectors (even [<font> elements usually put in a Forum appearance every month or two|http://forums.oracle.com/forums/thread.jspa?threadID=998662]), and standards-based development in APEX has suffered because of it. Arguments have been made that it was/is necessary either due to lack of (cross-) browser support, and/or to reduce the learning curve for those starting with web technologies. The former is (thankfully) becoming less of an issue, and I have disagreed with the latter point since it was first put forward: that was the recipe for [tag soup|http://en.wikipedia.org/wiki/Tag_soup] in the first place.
    It would be preferable to be in the position where the level of standards compliance in our applications was completely in our own hands through having control of all the outputs generated by APEX, either through some kind of exposure of the engine, or a move to entirely template-based output. Those who have a preference or need for standards compliance would be able to make the necessary efforts and the rest could ignore it. I'd like to have that option.

  • Validation issues with form (was: Validation)

    I am having validation issues with my form.  Even after I put in a name and last name it says the entries are invalid.  Could this be a hosting problem?  www.bussmanncomputers.net/Nx

    Below is mail form from my isp, which is Godaddy:
    This is the form that I am having some problems with configuring.
    <?php
    if ( !isset($_SERVER['SPI'])) {
            die();
    if (!isset($_SERVER['DOCUMENT_ROOT'])) {
            echo("CRITICAL: we seem to be running outside of the norm.\n");
            header("Location: http://".$_SERVER["HTTP_HOST"]."/");
            die("CRITICAL: Document root unavailable.\n");
    $request_method = $_SERVER["REQUEST_METHOD"];
    if($request_method == "GET") {
            $query_vars = $_GET;
    elseif ($request_method == "POST") {
            $query_vars = $_POST;
    reset($query_vars);
    function customsort($a,$b) {
            // $a is array for form vars, $b is comma seperated case sensitive field order
            // this is case sensitive -- good idea to hrc that.
            $data = array();
            if ( strstr($b,',') == FALSE )  {
                    $b = $b.",";
            $ordering = split(',',$b);
            foreach ($ordering as $orderitem) {
                    if ( ($orderitem != null) && ($orderitem != "") ) {
                            if (isset($a[$orderitem])) {
                                    $data[$orderitem] = $a[$orderitem];
            foreach ($a as $key=>$val) {
                    $data[$key] = $a[$key];
            return $data;
    function xmlentities($string) {
            return str_replace ( array('&', '"', "'", '<', '>'), array('&amp;', '&quot;', '&apos;', '&lt;', '&gt;'), $string);
    $t = date("U");
    $formhomedir = preg_replace('/.*\/home\/content/','',$_SERVER['DOCUMENT_ROOT']);
    $formhomedir = explode('/',$formhomedir);
    if (count($formhomedir) <= 4) {
            $formhome="/home/content/".$formhomedir[1]."/".$formhomedir[2]."/data/";
    else {
            $formhome="/home/content/".$formhomedir[1]."/".$formhomedir[2]."/".$formhomedir[3]."/".$f ormhomedir[4]."/data/";
    $file_order = ".default";
    $file_format = ".text";
    $file_interval = ".15m";
    $field_order = "";
    if (isset($query_vars['form_order'])) {
            if ($query_vars['form_order'] != "alpha") {
                    $field_order=$query_vars['form_order'];
                    $file_order=".custom";
                    $query_vars = customsort($query_vars,$field_order);
            else {
                    switch ($query_vars['form_order']) {
                            case "alpha":
                                    uksort($query_vars,'strnatcasecmp');
                                    $file_order=".alpha";
                            break;
                            default:
                                    $file_order=".default";
                            break;
    if (isset($query_vars['form_format'])) {
            switch ($query_vars['form_format']) {
                    case "csv":
                            $file_format = ".csv";
                    break;
                    case "html":
                            $file_format = ".html";
                    break;
                    case "xml":
                            $file_format = ".xml";
                    break;
                    case "text":
                    case "default":
                    default:
                            $file_format = ".text";
                    break;
    if (isset($query_vars['form_delivery'])) {
            switch ($query_vars['form_delivery']) {
                    case "hourly":
                            $file_interval = ".60m";
                    break;
                    case "hourly_digest":
                            $file_interval = ".60mc";
                    break;
                    case "daily":
                            $file_interval = ".24h";
                    break;
                    case "daily_digest":
                            $file_interval = ".24hc";
                    break;
                    case "digest":
                            $file_interval = ".15mc";
                    break;
                    case "default":
                    default:
                            $file_interval = ".15m";
                    break;
    $file = $formhome."form_".$t.$file_order.$file_format.$file_interval;
    $fp = fopen($file,"w");
    reset($query_vars);
    switch ($file_format) {
            case ".csv":
                    $csvkeys = "";
                    $csvvals= "";
                    $firsttime = "";
                    while (list ($key, $val) = each ($query_vars)) {
                            if ( ($key == "form_order") ||
                                    ($key == "form_format") ||
                                    ($key == "form_delivery") ||
                                    ($key == "redirect") ) {
                            else {
                                    if ($csvkeys != "") {
                                            $firsttime=",";
                                    $tmpkey=escapeshellcmd($key);
                                    $csvkeys = $csvkeys.$firsttime."'".$tmpkey."'";
                                    $tmpval=escapeshellcmd($val);
                                    $csvvals = $csvvals.$firsttime."'".$tmpval."'";
                    fputs($fp,"$csvkeys\n");
                    fputs($fp,"$csvvals\n");
            break;
            case ".html":
                    fputs($fp,"<table border=\"1\" cellspacing=\"1\" cellpadding=\"2\">\n");
            break;
            case ".xml":
                    fputs($fp,"<form>\n");
            break;
    reset($query_vars);
    while (list ($key, $val) = each ($query_vars)) {
            if ($key == "redirect") {
                    $landing_page = $val;
            if ( ($key == "form_order") ||
                    ($key == "form_format") ||
                    ($key == "form_delivery") ||
                    ($key == "redirect") ) {
            else {
                    switch ($file_format) {
                            case ".html":
                                    fputs($fp,"\t<tr>\n");
                                    fputs($fp,"\t\t<td><b>$key</b></td>\n");
                                    fputs($fp,"\t\t<td>$val</td>\n");
                                    fputs($fp,"\t</tr>\n");
                            break;
                            case ".csv":
                                    // content is already output
                            break;
                            case ".xml":
                                    fputs($fp,"\t<field>\n");
                                    fputs($fp,"\t\t<fieldname>".xmlentities($key)."</fieldname>\n");
                                    fputs($fp,"\t\t<fieldvalue>".xmlentities($val)."</fieldvalue>\n");
                                    fputs($fp,"\t</field>\n");
                            break;
                            case ".text":
                            default:
                                    fputs($fp,$key.": ".$val."\n");
                            break;
    switch ($file_format) {
            case ".html":
                    fputs($fp,"</table>\n");
            break;
            case ".xml":
                    fputs($fp,"</form>\n");
            break;
    fclose($fp);
    if ($landing_page != "") {
            header("Location: http://".$_SERVER["HTTP_HOST"]."/$landing_page");
    else {
            header("Location: http://".$_SERVER["HTTP_HOST"]."/");
    ?>

  • Html Validation icon shows in IE but not in Mozilla

    html Validation icon shows in IE but not in Mozilla
    Hi, All,
    I use DWMX 2004
    I placed the hmtl validation icon at the bottom of a template
    so that
    each page could be conveniently validated.
    The icon is showing all right, both locally and online, in
    IE, but it is
    not showing in Mozilla.
    What can I do to fix this?
    www.tudo.co.uk/testing/rishton/shell/contents/contact/contact.html
    The icon should appear underneath the up-arrow at the bottom
    of the page.
    Here is the template, with html extension for your
    convenience:
    http://www.tudo.co.uk/testing/rishton/templates/rishton_template.html
    Thanks.
    Adrian

    Joe Makowiec wrote:
    > On 29 Apr 2006 in macromedia.dreamweaver, wrote:
    >
    >
    >>html Validation icon shows in IE but not in Mozilla
    >>
    >>Hi, All,
    >>
    >>I use DWMX 2004
    >>
    >>I placed the hmtl validation icon at the bottom of a
    template so
    >>that each page could be conveniently validated.
    >>
    >>The icon is showing all right, both locally and
    online, in IE, but
    >>it is not showing in Mozilla.
    >>
    >>What can I do to fix this?
    >>
    >>www.tudo.co.uk/testing/rishton/shell/contents/contact/contact.html
    >>
    >>The icon should appear underneath the up-arrow at the
    bottom of the
    >>page.
    >>
    >>Here is the template, with html extension for your
    convenience:
    >>
    http://www.tudo.co.uk/testing/rishton/templates/rishton_template.html
    >
    >
    > I don't know about Mozilla, but it's showing here in
    FireFox, which
    > uses the same engine.
    >
    > BTW: Result: Failed validation, 24 errors
    >
    >
    Hi, thanks for this information about Firefox. Hope someone
    else may
    have an answer for Mozilla.
    Concerning the validation errors. I know about the million of
    validation errors, we are upgrading a site from doc type
    'transitional'
    to doc type 'strict'. We have the site on a test server, put
    the
    validation icon first, let it point out the errors, then fix
    them one by
    one. When they have been fixed the site is published. (i.e.
    we are not
    claiming the site is valid when it isn't).
    If somebody else can reproduce the problem in Mozilla I
    should be most
    grateful.
    btw, I am Adrian Stock (=Adrian.Stock22), do not know why I
    am showing
    on the screen as 'domain unknown'.
    Ah, perhaps I did not log in properly.
    Adrian

  • MSOutlook HTML newsletter issues - large gaps between large images and small gaps...

    Please can you help me!
    Searched the web & found plently of advice but still getting formatting display issue when viewing HTML newsletter in MS Outlook.
    Fully aware on the basics regarding the multiple issues when creating HTML newsletters but this is driving me crazy.
    Apparently there is a image height limit within Outlook (can't find out what this is) so I have sliced my larger images into 5/6 parts which solves the display issue in Outlook.
    But the gaps between the slices are now being displayed as small blank spaces within Hotmail.
    I did use <br> between each slice as without caused the fixed 600px wide containing table to expand due to the slices stacking hoz.
    Also still getting small gaps (like <br> spaces) between all images in Outlook when displaying perfectly (no gaps) in a browser.
    This is my newsletter displaying correctly via a browser:
    http://eu.shorts.tv/site-admin/modules/mod_mail/SHORTSTV_DECEMBER_2012.htm
    Using Dreamweaver 4 (do have the latest version via Adobe Creative Cloud Membership but not on this system).
    Hope you can help
    Many thanks

    Many thanks David
    I also found this article which is currently sitting on my desk.
    Pdf would make perfect sense or even a url link to view via a browser but these guys need it contained within the email.
    Thanks again for your kind advice.
    Regards
    ShortsTV
    Date: Fri, 30 Nov 2012 18:05:08 -0700
    From: [email protected]
    To: [email protected]
    Subject: MSOutlook HTML newsletter issues - large gaps between large images and small gaps...
        Re: MSOutlook HTML newsletter issues - large gaps between large images and small gaps...
        created by David__B in Adobe Creative Cloud - View the full discussion
    Hey Shortstv, Not something I know much about, searched and found thishttp://robcubbon.com/create-html-email-newsletters-outlook/ Maybe create it as a PDF attachment instead? -Dave
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4888255#4888255
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4888255#4888255
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4888255#4888255. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Creative Cloud by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Using Tabs in Generated Pages - Validation Issue

    Hi,
    We're using JHS 10.1.3.0.97 and are using the "stacked" regions functionality
    to make the form less cluttered.
    The problem we're having now is that whenever a user wants to
    view the items on a tab (that is not currently the selected one),
    a validation issue is thrown saying that all the mandatory fields need to be entered first.
    Is there a way to avoid this message and postpone the validation until the
    user clicks on the "Save" button?
    Regards,
    Cliff

    Cliff,
    I am sorry, in the 10.1.3.1 release we switch off server-side model validation on a partial page request.
    It is not possible to switch off the client-side validation, because the only way to do this, is by setting immediate=true on the tabs. However, with this setting JSF will skip the Model Update phase, which means that any changes you made to the tab region you are going to leave by clicking another tab, would be lost.
    The only alternative is by creatign a custom templates and generating the required items with showRequired="true" instead of required="true" which means required items are never checked client-side.
    Steven Davelaar,
    JHeadstart Team.

  • Is Muse compatible with Email Service Providers. I found html code issues - PCs have viewing issues

    Is Muse compatible with Email Service Providers? A colleague said Muse has html code issues as PCs struggle to display the artwork correctly when emails are delivered.

    Is Muse compatible with Email Service Providers? A colleague said Muse has html code issues as PCs struggle to display the artwork correctly when emails are delivered.

  • How do I disable HTML Validator?

    I am using Firefox and Gmail. Lately, when composing mail, letters are slow in showing up and sometimes they seem to freeze. According to Google the problem is the Firefox HTML Validator, which should be disabled. Who do I do that?

    Tools > Addons > Extensions
    Disable that addon there.

  • What happened to my HTML Validator? It disappered after I updated the message that said there was an update to the HTML Validator. This is how I validate all my work.n it told me

    No longer seeing the HTML Validator on bottom bar nor can I find it in any menus

    If it was working in Firefox 4 it should work in Firefox 5
    You can force 5.0 "compatibility" with the "[https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/ Compatibility Reporter]" extension, or with [http://kb.mozillazine.org/Extensions.checkCompatibility extensions.checkCompatibility] using about:addons.
    But that would not be a good solution go to the addons site
    https://addons.mozilla.org/en-US/firefox/addon/html-validator/
    Look just above change summary in the reviews it tells you to use
    For those with Firefox 5.0, a compatible version 0.9.0.6 is here: http://users.skynet.be/mgueury/mozilla/new_upgrade4.html
    which the author's site, but if you click on "view all versions" at the bottom of the addons page you will see the author has submitted it and you pick it up as experimental.

  • [svn] 3457: Accepting patch SDK-17038 by Brian Telintelo to fix an incorrect validation issue in ComboBox .

    Revision: 3457
    Author: [email protected]
    Date: 2008-10-02 13:45:35 -0700 (Thu, 02 Oct 2008)
    Log Message:
    Accepting patch SDK-17038 by Brian Telintelo to fix an incorrect validation issue in ComboBox.
    Checkintests: Pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17038
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/ComboBox.as

  • What is a good html validator?

    We had been using CSE HTML validator for windows, but they don't have Mac software.
    Thanks

    I also recommend http://www.anybrowser.org
    http://www.browsershots.org not so much as validators, but as resources for verifying the look and feel is as uniform as possible.

  • W3C HTML validation

    I use DWmx2004, and have occasional questions about W3C HTML
    validation.
    I do value the help of this forum, but wonder if I should
    take validation questions elsewhere?
    If you think I should, can you point me to a good forum on
    the subject?

    Why would your questions not be appropriate here?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "smiffy47" <[email protected]> wrote in
    message
    news:egsreu$a46$[email protected]..
    >I use DWmx2004, and have occasional questions about W3C
    HTML validation.
    > I do value the help of this forum, but wonder if I
    should take validation
    > questions elsewhere?
    > If you think I should, can you point me to a good forum
    on the subject?
    >

  • Document Signature - Validation Issue

    This is the recent help i've been trying to get on this subject over at acrobatusers.com. You can read through the issue i'm having through here, answer that was given and my response.
    Summary: Basically there are multiple text fields that are set to required, customer name, email...etc. All fields must be locked after being digitally signed (through the document signature field). When default validation pattern are used (blank) it generates an error (Customer field could not be validated). After trying regular expression script, it generates an error (Customer field could not be validated). So i tried a number of different combinations of picture clauses, and from what i'm gathering you have to know exactly how many characters are going to be typed to use that sort of validation. Which in a customer name field you have know idea what their name is going to be (unless you customize a document for each individual customer (not possible)).
    If anyone could help on this problem would be a lifesaver. Thank you
    ::COPY OF HELP QUESTION SUBMITTED::
    Apparently I'm not getting the field validation examples in the Help (F1) of Livecycle. I've been struggling to get all the fields in a collection to validate properly. Once I add a Document Signature field to the document and assign the fields to a collection, it doesn't seem to like the default validation settings if I assign the fields to 'User Input: Required' So for the name field I've tried multiple validation patterns all to no avail. My question is how to write a custom validation pattern that allows for an unknown ammount of characters in a name, email..etc. I've tried A A which only validates if the user enters J D for example but John Doe does not work. I've tried other combinations but nothing works. Any help would be appreciated.
    Thank you
    ::ANSWER SUBMITTED BY COMMUNITY EXPERT::
    A:There are a couple of things you need to look at. First, is the Acrobat Picture Clause Reference. You can find it and other LiveCycle references on this site
    http://partners.adobe.com/public/developer/xml/index_arch.html
    The other thing to look at is using a JavaScript validation script with a Regular Expression. Regular Expressions are much more flexible that the picture clause at doing validation.
    Answered by Thom Parker on Fri, Jul 6, 2007
    ::RESPONSE FROM ME BACK::
    Q:After reading through the Picture Clause Reference I'm certain there is no way to validate the customer name field without first knowing how many characters will be entered in. And I'm pretty sure there is no simple way of just making it "required" without a pattern to verify against.
    The Document Signature Field acts pretty weird if the text field is 'required' and there is nothing to validate it against. Which all in all I just want to make sure it is filled out. Customer Name field (First and Last name) one text field.
    So I tried the regular expression route, and added it to the 'Validate' section of the text field. Still I think the problem lies in the way the Document Signature field processes the 'required' fields.
    Now I noticed that this only happens if I set the document signature field to lock the required fields after digitally signing the document. This is a mandatory feature the document needs to have, along with the document signature. And the custom stamp option is not a viable solution to this either, since in my field of work everything is questioned whether or not it was altered or forged in some manner. And Custom 'Forged' stamps would not be too difficult to recreate, so that idea is out of the window.
    I'm stumped on this and any suggetions as to what route to take would be greatly appreciated. I can not release a document to the customers with validation error messages popping up even though the fields are filled out. Just wouldn't be professional, and down right annoying considering it validates about 15 fields, and everyone except the date and tim

    Hey Robert,
    I've been having the same issue where, once digitally signed, I end up having an issue with my mandatory fields returning an error '[mandatory field name] validate failed'. Is this the sort of errors you are getting? I'm also trying to find answers on this as I've tried a few things but it hasnt worked well. One thing I did was to change the mandatory field back to optional and coded my submit button using the if clause when the submit button is pressed to check if the this mandatory field is filled in.
    if ((pgDetails.txtReqBy.rawValue != null) &&(pgDetails.txtReqBy.rawValue != ""))
    event.target.submitForm({cURL:"mailto:[email address]?subject=New/Edit Supplier Detail Form&body=Please find attached the completed form.",cSubmitAs:"PDF",cCharset:"utf-8"});
    else
    xfa.host.messageBox("Requested by field MUST be filled. Pls enter your full name.");
    This seems to work fine except for one thing. If first time around, I fill the form out leaving the mandatory field blank, it returns the message "Requested by field MUST be filled. Pls enter your full name." So now I go back and fill in the mandatory field and, without navigating to another field, I click the submit button, I get the same message "Requested by field MUST be filled. Pls enter your full name." as it has not picked up the new value of the field. Any idea if there is code to make it re-read the field?
    Rgds,
    Jan

  • Spry validation issue with submit button

    Hi,
    I'm new to Spry but am having an issue getting it to work at all.  I created a very simply form (i.e. table with Spry text field and submit button).  I've read many articles and been to several forums, but I can't seem to find the issue I'm having.  Basically, when I go to preview the page in a browser, the table with the Spy text field and submit button comes up fine, but when I hit the submit button, I see the page refresh and any values I had in the text field disappear, but nothing ever comes up saying "A value is required," which is what I'm looking for. This happens even if I don't have any values in the text field.  Below are images of what I'm describing and also the code.  I verified that the "Required" check box is checked in the SpryTextField and the submit button action is selected to "Submit Form."  My setup is Win 7, DW6, & XAMPP.  Any help you can provide would be greatly appreciated.
    Before Submit Button pressed:
    Browser after button pressed: (same as above but no message saying "A value is required.")
    Code:
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    test
    <table width="600" border="1">
      <tr>
        <td><form id="form1" name="form1" method="post" action="">
          <span id="sprytextfield1">
          <label for="test"></label>
          <input type="text" name="test" id="test" />
          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
        </form></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td><form id="form2" name="form2" method="post" action="">
          <input type="submit" name="submit" id="submit" value="Submit" />
        </form></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
    </table>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email");
    </script>
    </body>
    </html>

    Do yourself a big favor and don't waste time with Spry Validation.  Most modern browsers support HTML5 forms with the required attribute. 
    If you must placate older browsers, use jQuery validate script.  It's lightweight and works when HTML5 support is missing.  You can see an example below. If you hit submit with empty form fields, the required fields pop-up with messages.  View source in browser to see the code. 
    HTML5 Form with jQuery Validation
    Nancy O.

  • HTML Email Issue

    My problem is strictly an Outlook 2007 HTML issue.  Now I'm trying Mailchimp to send an email.  The problem is with thier footer.  They are telling me its my code that is causing the display issues with their footer.
    I have run the Dreamweaver Outlook 2007 Browser Validator from the MSDN website ( http://msdn.microsoft.com/en-us/library/aa338201.aspx ) and I have run my page through the W3 Validator ( http://validator.w3.org/ ).  No errors are appearing and it is only their footer which is causing the issue.
    Here is the code that Mailchimp has which they want to show a grey shaded box with a top and bottom border:
    <center><table width="95%" style="clear:both;margin:0px !important;padding:0px !important;margin-top:20px !important;border-top:1px solid #999 !important;border-bottom:1px solid #999 !important;" cellpadding="0" cellspacing="0"><tr>
        <td align="left" style="padding:10px !important;margin:0px !important;color:#666 !important;background:#CCC !important;width:50% !important;border-bottom 1px solid #999 !important;font-family:Verdana,Arial,Sans !important;font-size:11px !important;font-weight:normal !important;font-style:normal !important;text-decoration:none !important;vertical-align:middle !important;text-align:left !important;">
            Sent to *|EMAIL|*.  <a href="*|UNSUB|*" style="font-family:Verdana,Arial,Sans !important;font-size:11px !important;font-weight:normal !important;font-style:normal !important;text-decoration:none !important;color:#03C !important;">Unsubscribe</a> |
            <a href="*|UPDATE_PROFILE|*" style="font-family:Verdana,Arial,Sans !important;font-size:11px !important;font-weight:normal !important;font-style:normal !important;text-decoration:none !important;color:#03C !important;">Update Profile</a> |
            <a href="*|FORWARD|*" style="font-family:Verdana,Arial,Sans !important;font-size:11px !important;font-weight:normal !important;font-style:normal !important;text-decoration:none !important;color:#03C !important;">Forward to a Friend</a>
        </td>
        <td align="right" style="padding:10px !important;margin:0px !important;color:#666 !important;background:#CCC !important;width:50% !important;border-bottom 1px solid #999 !important;vertical-align:middle !important;text-align:right !important;">
            *|REWARDS|*
        </td>
    </tr></table></center>
    The problem is thatt this is not displaying as a table with a shaded background and top/bottom border.  It is displaying as plain text on a white background.  However, running their code through the W3 validator shows no validation errors in their code.  This leads me to believe that there is some quirk that neither myself nor their support has been able to figure out.
    If anyone has any ideas as to why this is not showing properly in Outlook 2007 I am inclined to try just about anything at this point.

    Ok, I found solution on Verizon forum:
    1) delete your email-related service books (options ---> advanced options ---> service books ---> delete everything with your email address on it)
    2) create an account on BIS from your phone if you haven't done so in the past (www.blackberry.com/go/vzw from your blackberry browser, it will ask for your PIN and MEID)OR update BIS account online with MEID if you have it already (Go to BIS on a computer browser then go to Change device and enter your HEX MEID).
    4) do a hard reset (using QuickPull or battery pull)
    5) Go to BIS on a computer browser, log on to your account, and re-add your email accounts
    6) You should get an email from blackberry that your email has been activated, and you'll get HTML emails back in no time!
    Thanks for lilyipster and bumsy1 from that forum!!

Maybe you are looking for