> None of that worked. Forgot that my Ubiquity is local-patched. That combination of selectors should work after some bugs are fixed.
>However, i've modified it some more and now it > works a little. I'm having a problem with one part. > > http://gist.github.com/86371 > > > So far, it does the preview right and I get the message either way, > but then instead of result parsing HTML and giving me the a elements, > I get this. > > [Object XMLHttpRequest] > > As I understand it, in ubiquity, jQuery.get returns the HTML result of > a page no? No. jQuery.get returns the XHR object that's used as you see there. Here's how you'd do without the parser: preview: function(pblock, {text}) { if (!text) { pblock.innerHTML = this.description; return; } CmdUtils.previewGet(pblock, this.url.replace("{QUERY}", text), null, getback); function getback(result) { jQuery(".listing", result).find("a").each(function() { this.href = "http://www.anime-eden.com"+ this.getAttribute('href'); }).end().appendTo(jQuery(pblock).empty()); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
