Home

Keebler/Blog

« Trigonometry Without Sines And Cosines
Internet Explorer Developer Toolbar »

Shift Edit v0.1.9 Alpha

Beginning with this version, the most recent content is served up with the page, instead of hitting the server with Ajax (unless you’re browsing the version history – F2).  To keep integration as simple a possible, just like the Javascript initiates itself wherever it finds an element with class="Wiki", so to does the server-side code.  By buffering the output and hitting a custom callback function, the server-side code displays the most recent content inside any HTML elements with class="Wiki".  There’s no need for any PHP on the page except two lines at the top.

Let me know what you think of this technique.  One of the downsides of using a buffer is a bit more work on the server before any content is sent back to the browser.  Eventually, I’d like users to have three options to integrate ^edit with their sites.  Each method will require using HTML elements with class="Wiki" and a unique id.

  1. Just add the Javascript to the HTML head and Ajax will load the most recent content
  2. Add an ob_start buffer to the beginning of the PHP page and the server will serve up the most recent content
  3. Call a PHP function directly to get the most recent content

As always, all comments are mucho appreciated :D   I also prepared a "real-world" example for you this time so you can see it can do more than just a two-paragraph page ;-)

Demo v0.1.9 (Mozilla/Firefox, IE, Safari)

Demo page source

"Real-world" example (copied from the CBC)

Related Posts

  • Shift Edit v0.1.8 Alpha
  • Shift Edit v0.1.7 Alpha
  • Shift Edit v0.1.6 Alpha
  • Shift Edit Live Blogging Alpha
  • Shift Edit Firefox Extension v0.1.8

This entry was posted on Saturday, September 17th, 2005 at 10:09 pm and is filed under My Releases. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

6 Responses to “Shift Edit v0.1.9 Alpha”

  1. Terry Jones says:
    September 18, 2005 at 12:49 am

    I ran across this entry from technorati. It really looks like an interesting technique. But I can’t figure out what you mean from just this blog, and the URL doesn’t give me any hints about ways to get up the directory tree to figure out what you mean. I guess I’ll go try the root URL and see.

  2. MrHappy says:
    September 18, 2005 at 7:30 am

    Damn, this is starting to work really well.

  3. Jonathan says:
    September 18, 2005 at 11:58 am

    Thanks for your interest, Terry :-) I plan to write some documentation any day now, I swear ;-)

    Essentially, so far I’ve been working on the editor javascript itself and I’m just now moving into the server-side implementation beyond the basic save/retrieval that it does now. I’d like to roll out a release that everyone can download and try themselves by v0.3.

    What do you mean by “get(ting) up the directory tree”?

  4. Jonathan says:
    September 18, 2005 at 12:00 pm

    Cheers MrHappy! :D

  5. Shift Edit Live Blogging Alpha says:
    March 8, 2008 at 12:21 am

    [...] the last couple of months, Michael and I have been working on a mash-up of the technology behind my WYSIWYG wiki software, WhyYouShould, Facebook, Live, and Amazon S3. Our goal was to put the power of WhyYouShould towards [...]

  6. mad. » Shift Edit Alpha Release says:
    March 8, 2008 at 1:54 pm

    [...] make the change, and its done. Jonathan was well on his way to creating the foundation of a real-time Content Management System. In 2006 in response to the increasing need to discover new was to use this exciting new tool, he [...]

Leave a Reply

Click here to cancel reply.

  • Blog Home

  • Tags

    90210 alessandra ambrosio animals asp.net audrina patridge battlestar galactica bikini bunny bush C# canada canada election ctv ctvglobemedia development Election Entertainment/Celebrity facebook Gordon Ramsay gorilla gossip girl hayden panettiere iphone liveblog liveblogging mesh08 muchmusic Music nanotechnology obama palin rachel bilson scribblelive shenae grimes subway telemarketers the hills the killers the office toronto ttc toronto tv us election video yeah yeah yeahs

    WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

  • Recent Posts

    • I’m really hot in a 50×50px Ga…
    • RT @scribblelive: Our Dragons’…
    • Just 135 emails to go and my i…
    • RT @scribblelive: Our Dragons’…
    • Ugh feeling a little green. Ma…
  • Categories

    • Election
    • Entertainment/Celebrity
    • Fake News
    • Featured
    • Funny
    • Keebler/Show
    • Music
    • My Releases
    • On-the-Road
    • RedDot
    • Reviews
    • Science/Technology
    • ScribbleLive
    • Security
    • Software
    • Torrent Live Stats
    • Tweets
    • Uncategorized
    • Web Development
  • Blogroll

    • Kitten-Monkey’s Cell
    • :: kattekylling ::
    • Adam Finley
    • blog-j
    • fuzzz.gaulin.ca
    • Idiot Banter
    • mad.greyarea.com
    • ob.blog
    • PollyPrissyPants
    • RedDot CMS Users Google Group
    • ScribbleLive Official Blog
  • My Sites

    • Flickr2Facebook
    • RedDot CMS
    • ScribbleLive
    • Where are my f(acebook)ing friends?
    • WhyYouShould