PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Two forms one works one doesn't

  1. I have two forms on our company website... http://www.directactionmedia.com/upload-ads/ and http://www.directactionmedia.com/advertise/ .

    The one on the advertise page displays fine however the one on the uploads page will not display at all. I thought it was because one had conditional logic enable however I have created a simpler version with no conditional logic and it is still not working.

    please help... any other suggestions?

    Posted 11 years ago on Thursday January 17, 2013 | Permalink
  2. There is a JavaScript error on the page:

    Timestamp: 1/17/2013 11:17:12 AM
    Error: TypeError: jQuery(...).textareaCount is not a function
    Source File: http://www.directactionmedia.com/upload-ads/
    Line: 252

    You are including jQuery 1.9.0 with this script tag:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

    And then later in the page, 1.7.1 with this tag:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>

    and then 1.8.3 coming from WordPress directly:

    <script type='text/javascript' src='http://www.directactionmedia.com/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>

    And finally, 1.5.1 later in the page:

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>

    That's 4 jQuery versions. You should only have one. It should be enqueued by WordPress and should be version 1.8.3 in the head of the page. Get rid of all the other ones, then make sure all your other scripts continue to work, because many of those other scripts (coming from either the theme itself or plugins) are adding in their own jQuery the wrong way. If you let WordPress enqueue the 1.8.3 jQuery correctly, you may need to change these other scripts or plugins to do things correctly as well.

    For example, this code may throw an error ("$ is not a function") in WordPress:

    [js]
    $(function() {
        $('#accordion > li').hover(
            function () {
                var $this = $(this);
                $this.stop().animate({'width':'270px'},500);
                $('.heading',$this).stop(true,true).fadeOut();
                $('.bgDescription',$this).stop(true,true).slideDown(500);
                $('.description',$this).stop(true,true).fadeIn();
            },
            function () {
                var $this = $(this);
                $this.stop().animate({'width':'90px'},1000);
                $('.heading',$this).stop(true,true).fadeIn();
                $('.description',$this).stop(true,true).fadeOut(500);
                $('.bgDescription',$this).stop(true,true).slideUp(700);
            }
        );
    });

    You will have to get your jQuery version straightened out then we can see if your form displays properly, or if there are other JavaScript errors preventing your form from working correctly.

    Posted 11 years ago on Thursday January 17, 2013 | Permalink