Hi.
I am trying to make a form inside a facebox, that submits to an ajax
page (signin.php) and then recieves the result in the facebox.

It works perfectly in FF and safari, but of course not in IE6..

It seems like the form doesnt submit at all, and i have a really hard
time figuring out what is wrong.

I guess this is the code that causes the problem, but tell me if you
need the code of the ajax file as well.


        validateSignin = function(result) {

                if (result == 1) {

                        window.location.href = window.location.href;
                }

                if (result == 2) {

                        document.getElementById('signin_response').innerHTML= 
'Username or
Password incorrect!';
                }
        }

                $('#signinButton').livequery('click', function(event) {

                        var http_request = false;

                        email = document.getElementById('email_f').value;
                        password = document.getElementById('password_f').value;

                        $.ajax({
                                type: 'POST',
                                url: root+'v2/_ajax/signIn.php',
                                data: 'email='+email+'&password='+password,
                                success: function(msg) {

                                        validateSignin(msg);

                                }
                        });

                        return false;
                });

The page is located at http://www.thombler.com/myblocs/v2/
Click the sign in button in the top right corner to test the facebox.

Any help will be highly appreciated..!

/Benjamin

Reply via email to