Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Bookmarklet, DOM, auto-discovery

Quote Reply
Bookmarklet, DOM, auto-discovery
I have been working on my bookmarklet for Links SQL, and written about it in my blog. I want to use auto-discovery features (not spidering) but seek coding help getting things right. Basically, I need to get this to work:

Code:


javascript:void(d=document);void(el=d.getElementsByTagName('link'));for(i=0;i<el.length;i++){if(el.getAttribute('rel').indexOf('alternate')!=-1 && el.getAttribute('type').indexOf('application/rss+xml')!=-1){rssfeed=el.getAttribute('href'))};void(location.href = 'http://slashdemocracy.org/links/page.php?do=add&Contact_Name=John&Contact_Email=john@slashdemocracy.org&cat_id=84&URL=' + window.location.href + rssfeed + '&Title=' + document.title + '&Description=' + escape(metatagged));


Or something to the same effect.

Any ideas? I hope I'm missing something really simple, like a bracket or something, but I just can't get it right.

John
Subject Author Views Date
Thread Bookmarklet, DOM, auto-discovery gotze 2421 Jan 12, 2003, 11:58 AM
Thread Re: [gotze] Bookmarklet, DOM, auto-discovery
afinlr 2365 Jan 12, 2003, 12:12 PM
Thread Re: [afinlr] Bookmarklet, DOM, auto-discovery
gotze 2343 Jan 12, 2003, 1:03 PM
Thread Re: [gotze] Bookmarklet, DOM, auto-discovery
afinlr 2353 Jan 12, 2003, 1:18 PM
Post Re: [afinlr] Bookmarklet, DOM, auto-discovery
gotze 2332 Jan 12, 2003, 1:42 PM