Skip to main content

Bug Tracker

Side navigation

#7750 closed bug (invalid)

Opened December 11, 2010 05:36AM UTC

Closed December 27, 2010 10:57PM UTC

Last modified March 13, 2012 09:24PM UTC

jquery tmplate not working on ie7 but ie8/chrome/ff.., any ideas?

Reported by: Owned by: rwaldron
Priority: high Milestone: 1.6
Component: templates Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

jquery: 1.4.2

jquery-tmpl : github 1.0.0pre

$(function() {

$.getJSON('PInfo.aspx?' + genP('no,flds', getUrl()), {}, function(json) {

render_detail(json );



function render_detail(json) {

$.get('tmp-product-detail.htm', function(template) {




Attachments (0)
Change History (7)

Changed December 11, 2010 10:54AM UTC by addyosmani comment:1

owner: →
status: newpending

Thank you for submitting a ticket to the jQuery Bug Tracker!

In order for us to evaluate the bug you are experiencing, we'll need you to submit a reduced test case on that reproduces the behaviour you are experiencing so that we can further establish whether this is indeed a bug.

Furthermore, please test your code using jQuery 1.4.4 to confirm if the behaviour you are seeing is still there with the latest version of core.

Changed December 26, 2010 07:56AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed December 26, 2010 09:00PM UTC by rwaldron comment:3

resolution: invalid
status: closedreopened

Changed December 26, 2010 09:01PM UTC by rwaldron comment:4

Reopening - I'm going to investigate this myself.

Changed December 27, 2010 08:26PM UTC by rwaldron comment:5

component: unfiledtemplates
priority: undecidedhigh
status: reopenedassigned

Changed December 27, 2010 09:20PM UTC by BorisMoore comment:6

Two issues with the following code:

$.get('tmp-product-detail.htm', function(template) {



First, template here is an HTML string obtained as content of the tmp-product-detail.htm file. jQuery Templates are not necessarily valid or well-formed HTML, and so many issues can arise if you define them as content of a non-script HTML element. They should be defined as content as script elements or as strings. Loading remotely should either be a strings, or as content of script elements within a remote page loaded through $.get.

Secondly, if you have a template as a string, you should render it by compiling a named template, or by using $.tmpl( templateString, data).appendTo( '#content' );

$( templateString ).tmpl(data).appendTo( '#content' ) is incorrect. Again,

$( selector ).tmpl is used when selector is a selector to a script element, not a template string, which as I say, may not even be valid HTML.

Rick, I think the issues here are browser-specific side-effects of the above errors in using the APIs so we should be able to close this.

Changed December 27, 2010 10:57PM UTC by rwaldron comment:7

resolution: → invalid
status: assignedclosed