Purple Include Update

  • I integrated Purple Include and Blogger
  • I pushed a small new update today that fixes some address parsing bugs for complex XPath 2.0 expressions -- these are automatically on the server, so you don't have to do anything. I also updated the JavaScript to ease the Blogger integration a bit (added some extra styling to the spinner image and a class name)
  • I forgot to mention in my post yesterday that Purple Include can now take XPath 2.0 expressions (the old one could only do XPath 1.0 stuff)
  • Purple Include works on the iPhone!

Comments

Glen Lipka said…
Wow, this is really cool. Would I be able to use this as a RSS Feed thing? I had to make a site that had a summary of the last 3 blog entries from a page an XML Feed on feedburner. It seems this method would have worked rather than the server-side php script. (which was a hassle for me - non-programmer)
Judging by your past work (and I hope I'm not ruining any surprises here :-), I'd assume you were three layers into the code to do a feed to feed translator, mashing up a "purple" feed with your server side component to produce a plain ATOM or RSS feed consumable by any feed consumer.

Judging by at least your own ATOM feed in the example post, this should be perfectly doable, as at least Blogger does not seem to screen away the non-standard purple href attributes, so there would be something for this purple to plain feed translator to consume.

Smallish notes re: your js include: if the commented-out section using cross browser techniques to attach to the load event don't work, it's perhaps because you did not chain your if cascade as else ifs. I think I'd just go with the .onload hack, and call the prior onload function last, expunging the rest.

I also think it would be good form, and better the web, if rendering a purple link adds a tiny hover # link on the side that references the exact link that was pulled in.

These would then be clickable for people running hacks or browser enhancements like my (admittedly rather quick and dirty) xpath bookmarks user script of some time ago.

Great work, by the way! I love your agendas for the web, this one, as much as all the others.

Popular Posts