Forums

Problem on IE with the date loading on a booking form (4 posts)

  1. timmydeleu
    Member
    Posted 1 year ago #

    I have added a booking form to a website with belongs to fastbooking.

    You can see a temporary website here. [URL="http://www.kohkoodguide.com/"]http://www.kohkoodguide.com/[/URL]

    It works perfectly fine in Mozilla Firefox, Google Chrome, Opera and Safari but it does not load on Internet Explorer.

    On the other browsers the form loads todays date and the year is generated but on IE the date stays on 01-01 and no year is generated.

    I think the code that is not loading is [CODE]<body onLoad='start();'>[/CODE]

    But I'm not sure. The code of the year is [CODE]<select name='fromyear' class="input" onChange='update_departure();'>
    <option value="0"></option>
    </select>[/CODE] But since it's no just the year I assume its the onload code.

    I tried to add the onload to the header function like this

    [CODE]<body onLoad='start();' <?php if(function_exists('body_class')) body_class(); ?>>[/CODE]

    So now wordpress generates the following code when it loads the page

    [CODE]<body onLoad='start();' class="home page page-id-6 page-template page-template-default logged-in">[/CODE]

    But sadly the date still does no load on Internet Explorer. I'm out of ideas, anyone?

  2. timmydeleu
    Member
    Posted 1 year ago #

    Sorry here is a click able link
    http://www.kohkoodguide.com

  3. timmydeleu
    Member
    Posted 1 year ago #

    I was able to solve it myself by adding this to the head instead

    <script type="text/javascript">
    window.onload = start;
    </script>

    This is RESOLVED

  4. beaulife
    Member
    Posted 10 months ago #

    Hi Timmy,

    I am very keen to know how you added fastbooking.com script into WordPress. Would you mind give me some guides on this?

    Hope to hear from you soon.

    Thank you in advance.

    Best regards,
    Mr. Lo

Topic Closed

This topic has been closed to new replies.

About this Topic