Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5839963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:40:05+00:00 2026-05-22T11:40:05+00:00

I’m having some trouble with a script confirmation. By standard it’s set to hide

  • 0

I’m having some trouble with a script confirmation. By standard it’s set to hide the contact form and display a confirmation message but it’s not working for all browsers. After some tests I realized it doesn’t work for most IE versions, which are around 40% of my visitors.

How do I replace the hide-and-show-msg to a “thankyou.html”? I’m guessing this works as most IEs fail to show the confirmation message although they manage to hide the form. The code in ‘header’ is currently:

<script src="php/js/jquery.validate.js"></script>
<script src="php/js/jquery.placeholder.js"></script>
<script src="php/js/jquery.form.js"></script>
<script>
$(function(){
$('#contact').validate({
submitHandler: function(form) {
    $(form).ajaxSubmit({
    url: 'thankyou.php',
    success: function() {
    $('#contact').hide();
    $('#contact-form').append("<p class='thanks'>Thank you! The message was sent.</center></p>")
    }
    });
    }
});         
});
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:40:06+00:00Added an answer on May 22, 2026 at 11:40 am

    Solved.

    Reading http://groups.google.com/group/jquery-en/browse_thread/thread/58a9cbc1068d28c0/eb4bedb2cc36b126?pli=1

    I added a conditional script

    <head>
    <!--[if IE]>
    <script >
    document.createElement("section"); 
    </script >
    <![endif]-->
    

    http://plungjan.name/test/testform_validation.html

    What you need to do is to append to an element understood by IE.

    If you do not want the conditional script, add a div to the end of the page and append to that instead like here: http://plungjan.name/test/testformvalidation.html


    Other issue: I got

    Webpage error details
    
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)
    Timestamp: Tue, 17 May 2011 13:15:29 UTC
    
    
    Message: Unexpected call to method or property access.
    Line: 5569
    Char: 5
    Code: 0
    URI: http://code.jquery.com/jquery-1.6.1.js
    

    Seems the finally is not supported

    When I Added catch(e) {} before the finally – error gone

    resolveWith: function( context, args ) {
      if ( !cancelled && !fired && !firing ) {
        // make sure args are available (#8421)
        args = args || [];
        firing = 1;
        try {
          while( callbacks[ 0 ] ) {
            callbacks.shift().apply( context, args );
          }
        }
        catch(e) { /* ADDED BY ME */ }
        finally {
          fired = [ context, args ];
          firing = 0;
        }
      }
      return this;
    },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
i want to parse a xhtml file and display in UITableView. what is the
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.