Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript IE7 Form problem

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29985
    Preeminent
    Participant

    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 :

    Quote:
    Webpage error details
    Message: Expected identifier, string or number
    Line: 17
    Char: 3
    Code: 0
    URI: http://www.snipped.com/jigowattprocess.js

    Here is the FORM itself:

    Code:






    And finally here is the Jquery:

    Code:
    jQuery(document).ready(function(){

    $(‘#info’).submit(function(){

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

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

    $(“#form”).slideUp(750,function() {
    $(‘#form’).hide();

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

    },
    function(data){
    document.getElementById(‘form’).innerHTML = data;
    $(‘#form’).slideDown(‘slow’);
    $(‘#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!

    #81751
    Chris Coyier
    Keymaster

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.