SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Form Validation Errors Showing HTML Code on Hover

    Greetings fellow Site Point forum members!

    I've just encountered a problem that after 6+ years of web designing, I have never encountered before.

    I have a form that has a few of it's fields being validated with JavaScript. When you attempt to submit this form without those fields being filled out, the form pops up some error messages in red divs that let the user know that they need to fill out those fields.

    So far so good.

    HOWEVER, When you hover your mouse over these error message, browsers are showing the HTML code that I have used to create them.

    I have attached a screenshot of the issue, and here is a link to the page that is causing the problem.

    http://tangibleretirements.com/new

    Does anyone know why this is happening, and what I can possibly do about it?

    Thanks in advance!
    -Ass.jpg

  2. #2
    SitePoint Guru
    Join Date
    Sep 2006
    Posts
    731
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Mkto.setError = function(fld, message) {
      fld.parentNode.className += " mktError";
      fld.parentNode.parentNode.title = message;
      var msgContainer = Mkto.getMessage(fld);
      msgContainer.innerHTML = message;
      msgContainer.style.left = (fld.parentNode.offsetWidth + 10) + "px";
      Mkto.addListener(fld, 'focus', Mkto.clearOnClick);
    }
    I would say it's the highlighted line that's doing that.
    Tab-indentation is a crime against humanity.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •