1

AJAX W'Hey!

ajaxbars

All fixed now! :-D

In addition to comments and my other tests, all the side items apart from Author now use the script.aculo.us' Ajax.Updater to import a file dynamically and display it when you click on the + to expand. Sadly this doesnt seem to be consistent. In my tests on my PowerBook last night, it worked in Safari but not in Firefox, whereas now on my work G5 its working in Firefox :? (and its stopped again)

In other tests on the Mac this morning its not working in Opera, OmniWeb or Camino (Err, now it works). In my Windows test, it doesnt work in Internet Explorer (no biggie as I stopped supporting IE ages ago despite 59% of my visitors using it according to google) or Firefox.

To be clear about what is and isnt working, the divs (or ols actually) show and hide, but it doesnt seem to load the page. This is very odd as Ive even saved the source from the rendered page, tested that and it works fine.

Actually, Im tempted to just going back to showing and hiding the ols. My reasons for dynamically loading the ols where that firstly it would save bandwidth as you only have to load what you want to see and secondly so that your seeing the latest state of the site, but to be honest, I dont think I get enough hits for that to be a valid reason.

Still, i would like to get it to work as itll be a useful ability Im sure.

So, any ideas?

Ah, got it! DOH! because Ive hardcoded the url as www.somefoolwitha.com into the page, it will only work if youre on that domain. Sans the www or sflwa.com wont work. Right stage 2.

Next stage, draggable boxes

I fixed it

by changing the hardcoded URL to
new Ajax.Updater({success:'div_id'}, 'http:// ?php echo $_SERVER['HTTP_HOST'] ?>/path/to/page.php',{asynchronous:true}); I think it should work in all browsers now (watch out for the space there in ?php). 4 hours (!) I spent yesterday trying to debug that, then I guess it today within 30 minutes!

script.aculo.us tests

I've been playing with script.aculo.us visual AJAXy effects. Any effects you may or may not see on this site are just me playing. heh, I quite like this, and may well just alter it somewhat. What I think Id like is to allow people to drag the boxes around, and then a cookie to save that position and whether theyre expanded or minimsed for them. Id also like the first Asides post to be initially visible with "more" and "less" buttons to show and hide the others.

 1