Category Archives: Browsers

Update on Another AJAX idea

Another AJAX idea.

So I named it Live Sidebars. As in my later post. I started using SAJAX and after 2 days I gave it up (using it as a plugin), although I made some progress showing/hidding using ajax. Then I went on to do “Live ‘Posts’”using sack.

Now for some sites which have codings for expanding/contracting or showing/hidding items here are some.

http://www.scriptygoddess.com/archives/2002/10/04/show-hide-sidebar-gadgets/
A show hide (sidebar) gadget. Works using cookies and server side programming.

http://cjbehm.dyndns.org/wingingit/collapseit/
CollapseIt WP plugin. Uses javascript with divs.

http://www.thisisennis.com/scripts.php
More Info tabs. Which was inspired by

http://www.lucky-33.com/
Look at the cool sliding “more infos”

So, already so many implementations out there using show/hide. But no ajax yet, does that means there’s no need for it?

Continue reading

WYSIWYG Editors

I have tried out 2 WYSIWYG Editors Plugins for WP.

1 is based on HTMLArea, another TinyMCE. Both are not bug free, so what would be the best choice?

Idea?
Do it like the dreamweaer style split view, 1 textarea  to show the WYSIYG editor, another the html source.
I still like the quicktags thingy and maybe some winks and smiley.

I’m taking a look at the latest mce editor and fckeditor and maybe freetextarea (and their plugins) to see what could be the best scenario.

As usual, some other wp user would have more experience that i do. FCKEditor as WYSIWYG Editor for WordPress

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.

Sanity fails on my debian/knoppix/feather gnu/linux

configure: error: C preprocessor “/lib/cpp” fails sanity check
See `config.log’ for more details.

Now for a quick introduction about Feather Linux. Feather is a Linux distribution which is able to run completely off a small cd or a thumbdrive, fitting in less than 128MB! Its a modification of DSL (Damn Small Linux), which is a Knoppix remaster, and Knoppix in turn is a cool modified Debian distro meant to boot up completely from a cd.

Why Feather? Perphaps because it works compared to other distros I tried for my old pc (PII 300mhz which doesnt have a working cdrom drive) . It detects all my hardware, comes with enough nifty packages, light on resources, making it relatively fast yet powerful. The fact its based on Debian, I can use the fravorite tool apt.

Now for the sanity part. Perphaps I screwed up some where configuring the system, and Feather, Knoppix, and Sarge -specific packages might have conflicted. Any software requring compiling normally throws that sanity check failure.

Sanity Fails

In this example, I’m trying to compiling the latest lilypond release, and as usual, failure.
And yes, I using ssh2 because my room was used by others as this time.

Seems that not only the C pre-processor lost it sanity, I too.
I crazily type apt-get remove cpp thinking that, maybe removing and reinstalling it would work.

Before I know it, many packages are removed too. Something like a few utils along with X and other stuff disappeared.

So what I did was basically follow this “obsolete” guide on configuring Feather posted on the forums.

And if you are wondering how I surf the net while X is down, I’ve been using links, a text-based WWW browser. And if “text-based” doesnt amuse you, look at the following shots.

Gmail on Links on Putty
Reading Gmail.

Zz85 Blog in Links over Putty
This blog.

And back to the sanity stuff. Arr! Making me lose my sanity. I’ve been trying all ways to work this whole day, without success till now. I could trace the error down only when installing the “unstable”, or “testing” deb of xserver-common. Running apt-get install xserver-common gets…

GRr! xserver-common infinite loop error!
Who says Linux doesnt have a BSOD?

Moral for today: Don’t try apt-get remove cpp