Results 1 to 6 of 6

Thread: Validation Issues

  1. #1
    Join Date
    Mar 2008
    Posts
    127

    Default Validation Issues

    I have been working on getting Facing to validate. I have 24 issues remaining; all in the header file. I can't seem to locate the source to attempt fixes. Seems to be something related to a js file.
    Code:
    #
    # <script type='text/javascript' >
    # $(document).ready(function() {
    # var limit = 200;
    # $('textarea').each(function(intIndex) {
    # TextAreaCounter(intIndex,limit);
    # });
    # });
    #
    # function TextAreaCounter(t_no,limit) {
    #
    # var t_area = $('textarea')[t_no];
    # $('</span></div><div style=\'margin-top:0px;padding-top:0px;\'><label>&nbsp;</label><span><input type=\'text\' id=\'counter'+t_no+'\' value=\''+limit+' Left\' style=\'width:60px;\' readonly></span></div>').insertAfter(t_area);
    #
    # $(t_area).bind('keyup',function () {
    # var count = $(t_area).val().length;
    # if(count >= limit)
    # {
    # $(t_area).val($(t_area).val().substr(0,limit));
    # count = limit;
    # }
    # $('input#counter'+t_no+'').val(limit-count+' Left');
    # });
    # }
    # </script>
    All the errors reference this
    Code:
    $('</span></div><div style=\'margin-top:0px;padding-top:0px;\'><label>&nbsp;</label><span><input type=\'text\' id=\'counter'+t_no+'\' value=\''+limit+' Left\' style=\'width:60px;\' readonly></span></div>').insertAfter(t_area);
    Is there a simpler/cleaner one to build from? My goal is to build clean and simple, lightweight (minimal graphics) theme(s) to my tastes.

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    All of the templates use javascript as part of them in order to perform some functions. Although I've never had to edit the javascript files to achieve w3 compliance.

    Do you have a URL I can look at?

  3. #3
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by Bruceper View Post
    All of the templates use javascript as part of them in order to perform some functions. Although I've never had to edit the javascript files to achieve w3 compliance.

    Do you have a URL I can look at?
    I don't think my changes are cause but... May try upload unmodified tomorrow to check. Quality Blog Index
    Is where I left off. It seems to be mostly closing unopened tags.

    Also a testing link at www.usxx.net

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It appears as if that's coming from the textarea counter. Does the page validate if you disable the textarea counter plugin?

  5. #5
    Join Date
    Mar 2008
    Posts
    127

    Default

    BINGO! Shucks as that is a cool feature.

    FYI, I had to make several changes to the header file. Several of the link statements ended with > instead of /> and a missing </a> in the footer file (which I had not touched).

    Looks like the villain is line 82 in char_counter.php. Looks like that thing displays the remaining characters.
    Last edited by Harkster; 04-22-2009 at 11:18 PM.

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I'll talk to Irkham about the template. Glad you found where the culprit is coming from.

Similar Threads

  1. 1.3 Validation
    By CEC in forum INDEXU DELUXE v1.x
    Replies: 2
    Last Post: 02-12-2009, 11:25 AM
  2. Link Validation
    By jrusso543 in forum INDEXU DELUXE v1.x
    Replies: 12
    Last Post: 06-10-2008, 10:15 PM
  3. Field validation
    By beto in forum v5.x
    Replies: 3
    Last Post: 12-24-2006, 08:48 AM
  4. User Validation Fix
    By mbarnett in forum v5.x
    Replies: 1
    Last Post: 08-20-2006, 07:55 PM
  5. Replies: 4
    Last Post: 03-05-2006, 05:26 AM

Posting Permissions

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