This is a migrated thread and some comments may be shown as answers.

Bind not working in ie8

1 Answer 34 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 07 Apr 2014, 01:50 PM
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?


Javascript:
var data = kendo.template($('#contactTmpl').html());
 $('[data-iaform]').find('form').replaceWith(data);

HTML:
 <title>{$site_title}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">

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

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. myname@example.net"  required data-required-msg="Please enter your                 email."  validationMessage="Please enter email in following format: myname@example.net" />    
        <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" />
        <h4>Phone</h4>
        <input type="tel" data-bind="value: phone" name="phone" />
        </form>
</script>

1 Answer, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 09 Apr 2014, 07:56 AM
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?

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MVVM
Asked by
Bruce
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or