Hi Gavin, I've just added jQuery.xslTransform to my website (http://digitalspaghetti.me.uk) and I have a link on the site that I want to click to transform the page I am looking at, but it doesn't seem to work.
Just a quick background: I am using the hAtom microformat on my site, it means in the HTML document on my site, these are classes such as hEntry, title, etc that wrap my content. I have uploaded hAtom2Atom.xsl to my site, which is for transforming the hAtom tags to a Atom feed (http://rbach.priv.at/hAtom2Atom/). I'm trying to replicate the function of this: http://lukearno.com/projects/hatom2atom (which is a convertor) but on my own site. Now on my site, I have a link link this: <a class="atom" href="#">Subscribe to hAtom Feed</a> And my jQuery code looks like this: $(document).ready(function(){ $("a.atom").click(function() { $("$this").getTransform("http://digitalspaghetti.me.uk/misc/hAtom2Atom.xsl","http://digitalspaghetti.me.uk/index.php"); }); }); Now, the script gets triggered, but I get these errors in Firebug: getTransform: http://digitalspaghetti.me.uk/misc/hAtom2Atom.xsl::http://digitalspaghetti.me.uk/index.php::[object Object] transform(): http://digitalspaghetti.me.uk/misc/hAtom2Atom.xsl::http://digitalspaghetti.me.uk/index.php::[object Object] load(): received string loadFile(): http://digitalspaghetti.me.uk/index.php::string GET http://digitalspaghetti.me.uk/index.php (1063ms) ERROR: document http://digitalspaghetti.me.uk/index.php not found (404), or unable to load r.setProperty is not a function Any ideas how I may get around this? Tane http://digitalspaghetti.me.uk On 12/6/06, Gavin M. Roy <[EMAIL PROTECTED]> wrote: > Glyphix (http://www.glyphix.com) has released two more plugins under > the MIT license: > > jQuery.xslTransform and jQuery.debug > > jQuery.xslTransform is a jQuery wrapper for Sarissa, providing the > ability to replace any element on the page with the results from an > XSL transformation of an XML document inside the browser on the fly > (no server required). For example: > $('your-selector-here').getTransform('path-to-xsl.xsl','path-to-xml.xml');. > > jQuery.debug is freedom from that [EMAIL PROTECTED]@#$!!! alert() function. > If you're using Firefox with the Firebug extension installed, this > plugin writes log items to Firebug's console. If Firebug is not > installed, this plugin creates a div and writes log items to a list > inside it. For example: $.log('hello world'); or > $('your-selector-here').debug();. > > Both are available at http://jQuery.glyphix.com > > Gavin > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
