For some reason my VPN is "moody" this weekend and I can't get in to
play :-) . I agree the JavaScriptTemplates looks close enough to be a
search/replace type fix. I will try the static textarea approach 1st
though: Although I like the separation of elements that the external
files give me. Of
Hi Andiih, I had one more thought. I don't usually setTemplateURL abd
ibstead use setTemplateElement and have the template locally in a hidden
text area. I was wondering if it might be the difference because of the
network communication that occurs in your case. Might be worth a try to see
if th
Machine A
FF3 xml to json 1380, Template Processing 619
IE6 xml to json 1782, Template Processing 22593
Machine B
IE7 xml to json 765, Template Processing 8579
FF2 xml to json 2094, Template Processing 1492
FF3 Beta xml to json 1151, Template Processing 1054
Machine C
IE 7 Xml to json 1187, Temp
Arrrgggh. You know when you read the same lines of code again and
again and can't see the obviousyou are of course correct, I'm
timing both. I will give your code a try.
On Jun 27, 12:03 am, "chris thatcher" <[EMAIL PROTECTED]>
wrote:
> I think you are measuring the combined time. Try this:
I think you are measuring the combined time. Try this:
var xmltojson_start = new Date().getTime();
ret = $.xmlToJSON(responseXML);
var xmltojson_stop = new Date().getTime();
var template_start = new Date().getTime();
$('#output2').processTemplate(ret);
var template_stop = new Date().getTime();
al
Jack, I'll take a look
Chris, I *think* the timing code I've added in my sample above is only
timing the template step ?
I've had the opportunity to try this out this afternoon on a number of
machines in the organization, and noted a couple of things...
Its quick in FF3 (which I didn't expect giv
Andiih, just curious becuase I use jtemplates and havent seen that issue,
though can you verify that the slow code is not 'xmlToJSON'. I have seen
the marshalling process take up a lot of time in IE when the xml is
substantial in size .
Thatcher
On Thu, Jun 26, 2008 at 12:30 PM, Jack Killpatrick
I don't know how it compares as far as speed, but you might want to try
this:
http://code.google.com/p/trimpath/wiki/JavaScriptTemplates
We've been using it for more than a year on many of our projects,
including some with large table row outputs, and it's worked for us.
- Jack
Andiih wro
8 matches
Mail list logo