Treehouse: Grow your CSS skills. Land your dream job.

IE7 Form problem

  • # August 19, 2010 at 7:58 pm

    Hey all,
    I am using a form that validates and sends without a refresh via jquery and an error is being thrown when testing in IE7 :

    Webpage error details
    Message: Expected identifier, string or number
    Line: 17
    Char: 3
    Code: 0

    Here is the FORM itself:


    And finally here is the Jquery:



    var action = $(this).attr(‘action’);

    $(‘#info #btn’).attr(‘disabled’,’disabled’).after(‘‘);

    $(“#form”).slideUp(750,function() {

    $.post(action, {
    name: $(‘#name’).val(),
    email: $(‘#email’).val(),
    message: $(‘#message’).val(),

    document.getElementById(‘form’).innerHTML = data;
    $(‘#info img.loader’).fadeOut(‘fast’,function(){$(this).remove()});
    $(‘#info #submit’).attr(‘disabled’,”);
    if(data.match(‘success’) != null) $(‘#info’).slideUp(‘slow’);



    return false;



    I did not post the PHP form processor since this is the javascript forum, but if it will help, please let me know and I will post as well.
    Thanks in advance!

    # August 22, 2010 at 10:37 am

    well source doesnot seems to be formatted. if you can use tool like and paste your source there then i can find some conclusion. but at me issue could be when you are dealing with javascript in ie. “,” is major problem other then there will be things like unexpected type and others but the main issue could be separator like “,”.

    # August 22, 2010 at 11:19 am

    Bear with me on the ugly code problem. That is an artifact of conversion from the old forums. I hope to be able to clean up all those old posts. New posts should be fine, just stick all code in pre and code tags, unescaped.

    # August 22, 2010 at 9:05 pm

    If I could edit his post and fix it I would, but @Preeminent will have to do that.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.