Archive for the 'Browsers' Category

SAJAX bag

So I’m still inside it.

To ponder upon.  What if 2 WP plugins uses Sajax? or just even 2 wp plugins using ajax? now there seems to be no/or some problems as most are using different individual libraries. How can i fuse them together? Will there be a need for SAJAX for WP again?

Now if ajax is used for comments eg. it asks for updates every 5 seconds? Can javascript detect when the user switches to another window so ajax browser will stop requesting and resume only after window has focus on user, saving precious bandwadth and processing.

SJAX

From the author of Twilight Universe, he created at least 2 good plugins. Touched and Autosave.

Here from his Sack of Ajax, he points out why he chose to use his own library over sajax or dojo.

I’m silly to be trapped by my own contraints spending my whole night on a single library. Its time to for a change, I wanna create application as fast as ajax, there are better stuff to do.

[testing touched - is there touched for nested comments?]

Sajax WP Plugin…

My first attempt at creating a Wordpress for Sajax … failed.
Download it if you like but dont think it will work.

I failed to do understand how it works before jumping in to create a plugin. Serves me right. The design of sajax is such simple in a way you would include in every file rather than a plugin.

So much for my first attempt at creating a plugin.

Another AJAX idea.

These are ideas for AJAX.What ideas can be used for wordpress or its plugins? As perhaps mentioned before

  • Spell check
  • More accurate post read counter or habits tracking
  • Auto saving while creating post
  • Read More under posts

AJAX plugins certainly do not appear in dreams. Current examples are

  • Live Calendar
  • Suggest / Live Search
  • AJAX Shoutbox (WordSpew)
  • Count My Clicks
  • Wordpress Touched

Now what is my idea? The answer is customising the presentation. A while before, desktopmod webby made a nice impression in my mind as each module/section of their webpage are like windows which u can minimise or close. Then I sure there are many implmentations done already like in brainjar or how popup menus are done in DHTML. I would like my blog to have lots of functions yet simple, without clusting the space (like now), if not it would look like some news site, portal or CMS. Example, shoutbox would take up someheight, so do Top posts, unread comments, calendar, whose online so on… I could use javascript to contract and expand them, but the catch is the browser would need to download all the content first. With ajax enabled, only when a section is click to be expanded, content will be pulled from the server, process any php if needed and displaying almost immediately on the page.Implementation wise, state of the expanded items can be stored in cookies. Content of each portion can be stored as javascript variables (lifetime of a request cycle), stored in cache (cookies), or made to refresh periodly. We now should have seen enough ideas of AJAX, more should be implemented. This shouldnt be too diffcult, I shall try to do this as my first plugin when I’m free sometime this week!

Easy workaround/fix for an AJAX problem

In a comment to my previous post  Navigation Calendar, I mentioned encountering problems using LiveCalendar when accessing my blog from different domains.

In the followup of comments by Jon (author of livecalendar) and Kae (the orginal kalendar author), we agreed that the problem is caused by a security protection prevent javascript to request calls to "other" sites.

And as I noticed, for many google sites that require ajax, they would redirect you to their perferred domain, thats where I thought a redirection would be a easy fix.

The addition of the redirection script was also a copy and paste from  http://www.chami.com/tips/internet/040598I.html

And you get redirected to my preferred url, so LiveCalendar seems to work without problem.

See my modifed kcalendarscript.phps source.

Possible next stop? auto-detection of permalinks for LiveCalendar.