Reputation: 11
I am trying to create a popup window of a html page that includes jquery. However I think I might have some syntex issue. This is a small example of the code. Much thanks for any help
var zWindow;
zWindow=window.open('','newwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=ye s,resizable=yes,left=10,top=10,width=540,height=600');
zWindow.document.open();
zWindow.document.write("<h2>$**{noSearchResultsHeaderText}**</h2>");
zWindow.document.close();
Upvotes: 0
Views: 230
Reputation: 630339
I think there's some confusion here around jQuery templates, they're not used in direct generation, you should just concatenate the string, like this:
var zWindow=window.open('','newwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=ye s,resizable=yes,left=10,top=10,width=540,height=600');
zWindow.document.open();
zWindow.document.write("<h2>" + noSearchResultsHeaderText + "</h2>");
zWindow.document.close();
Upvotes: 1