Bind not working in ie8

2 posts, 1 answers
  1. Bruce
    Bruce avatar
    5 posts
    Member since:
    Oct 2012

    Posted 07 Apr 2014 Link to this post

    I am using an external template and binding it my javascript.   In IE8 I don't get my template.  What am I missing to make this work in IE8?

    var data = kendo.template($('#contactTmpl').html());

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <div class="class-Price-Quote-form" data-iaform="" >

    Kendo Template:
    <script id="contactTmpl" type="text/x-kendo-template">

        <form class="contactTmpl" data-iacuform="">
            <h4>Contact Name<span class="k-invalid-msg" data-for="name"></span></h4>
            <input type="text" data-bind="value: name" name="name" placeholder="Full name" required data-required-msg="Please enter your name." />
            <h4 >Title<span class="k-invalid-msg" data-for="title"></span>
            <input type="text" data-bind="value: title" name="title" placeholder="Your title" data-required-msg="Please enter your title." /></h4>
            <h4>Email<span class="k-invalid-msg" data-for="email"></span></h4>
            <input type="email" data-bind="value: email" name="email" placeholder="e.g."  required data-required-msg="Please enter your                 email."  validationMessage="Please enter email in following format:" />    
            <h4>Organization<span class="k-invalid-msg" data-for="organization"></span></h4>
            <input type="text" data-bind="value: organization" name="organization" required data-required-msg="Please enter your organization." placeholder="Your organization" />
            <input type="tel" data-bind="value: phone" name="phone" />
  2. Answer
    Petyo avatar
    2437 posts

    Posted 09 Apr 2014 Link to this post

    Hello Bruce,

    I tested the provided code in the following jsbin, and it seems to work fine on my side. Perhaps I am missing something?

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top