Skip to main content

Posts

Showing posts from October, 2010

XSLT Transformation using JQuery

A few weeks ago, I was facing this problem - HTML is not rendering in Chrome and Safari while it works perfectly in Firefox and IE. After did some study and some try and errors at last I got the solution. Using JQuery Transform plugin .But still need to do some changes. Once you downloaded it, open jquery.transform.js. Replace the var safariimportincludefix = function(xObj,rootConfig){} with var safariimportincludefix = function ( xObj , rootConfig ) { var vals = $ . merge ( $ . makeArray ( xObj . getElementsByTagName ( "import" )), $ . makeArray ( xObj . getElementsByTagName ( "include" ))); for ( var x = 0 ; x < vals . length ; x ++ ) { var node = vals [ x ]; $ . ajax ({ passData : { node : node , xObj : xObj , rootConfig : rootConfig }, dataType : "xml" , async : false , url : replaceref ( node . getAttribute ( "href" ), roo