// Do not attempt to use this text file as a json feed. This is the instruction // manual for the feed at: // // http://www.hunlock.com/feed.php?format=json&callback=jsonFeed // // Issue an alert for people who are inadvertently using this file as a json feed // ignore this next line if you're a real human reading this in a text editor/browser. alert('You are using an instruction file and not the actual json feed at http://www.hunlock.com/feed.php?format=json&callback=jsonFeed. Please adjust your URL.'); // Begin Instructions // // http://www.hunlock.com/feed.php?format=json&callback=jsonFeed // // format: Mandatory -- specifies json format, if omitted (or not json) format becomes xml/rss 2.0 // callback: Optional -- javascript function that will be called when the file has been loaded. // defaults to jsonFeed if not specified. The first argument of your // function will recieve the feed object. // // This feed is served as mime-type: application/json // // Format: // feed.channel // top level container // feed.channel.title // title of feed. // feed.channel.link // link to http://www.hunlock.com // feed.channel.description // Description of the site // feed.channel.language // us-en (english) // feed.channel.items[] // Array which holds the last few feed items. // feed.channel.items[].title // Title of this item. // feed.channel.items[].link // Link/URL to this item // feed.channel.items[].description // Description of this item (wrapped as CDATA) // feed.channel.items[].author // Who wrote this item // feed.channel.items[].guid // Basically the link again // // Sample Usage: // // // function jsonFeed(feed){ // document.writeln(feed.title+'
'); // for(i=0; i"); // document.writeln(feed.channel.items[i].title+"
"); // } // } // // Sample of the actual JSON file: // // WARNING: Use of third party JSON scripts exposes your web pages to inherent // security risks. Your use of this file indicates your acceptance of those risks // and all the consequences that result of the use of this file. // // JSON version .5 jsonFeed( {'channel': { 'title' : 'Pat\'s Place - Generic Javascript And Other Stuff.', 'link' : 'http://www.hunlock.com', 'description' : 'Now with 50% more tubes!', 'language' : 'us-en', 'items' : [ { 'title' : 'Snippets: Howto Automatically Make A Page Index', 'link' : 'http://www.hunlock.com/blogs/Snippets:_Howto_Automatically_Make_A_Page_Index', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/Snippets:_Howto_Automatically_Make_A_Page_Index'}, { 'title' : 'Functional Javascript', 'link' : 'http://www.hunlock.com/blogs/Functional_Javascript', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/Functional_Javascript'}, { 'title' : 'Snippets: Synchronous AJAX', 'link' : 'http://www.hunlock.com/blogs/Snippets:_Synchronous_AJAX', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/Snippets:_Synchronous_AJAX'}, { 'title' : 'Mastering Javascript Arrays', 'link' : 'http://www.hunlock.com/blogs/Mastering_Javascript_Arrays', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/Mastering_Javascript_Arrays'}, { 'title' : 'Snippets: Howto Grey-Out The Screen', 'link' : 'http://www.hunlock.com/blogs/Snippets:_Howto_Grey-Out_The_Screen', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/Snippets:_Howto_Grey-Out_The_Screen'}, { 'title' : 'the big howto embed videos the cool way reference page', 'link' : 'http://www.hunlock.com/blogs/the_big_howto_embed_videos_the_cool_way_reference_page', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/the_big_howto_embed_videos_the_cool_way_reference_page'}, { 'title' : 'The Ultimate Ajax Object', 'link' : 'http://www.hunlock.com/blogs/The_Ultimate_Ajax_Object', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/The_Ultimate_Ajax_Object'}, { 'title' : 'Ten Javascript Tools Everyone Should Have', 'link' : 'http://www.hunlock.com/blogs/Ten_Javascript_Tools_Everyone_Should_Have', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/Ten_Javascript_Tools_Everyone_Should_Have'}, { 'title' : 'Mastering The Back Button With Javascript', 'link' : 'http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript'}, { 'title' : 'Linux -- Not quite ready for the desktop', 'link' : 'http://www.hunlock.com/blogs/Linux_--_Not_quite_ready_for_the_desktop', 'description' : '', 'author' : 'Patrick Hunlock', 'guid' : 'http://www.hunlock.com/blogs/Linux_--_Not_quite_ready_for_the_desktop'}]}});