I'm currently putting together a stylesheet switcher for a project I'm working on, it's a server side solution at the moment, and I'd like to AJAX it up and avoid page reloads. I'm using Prototype's Ajax.Request method like so:
Expand|Select|Wrap|Line Numbers
- function resizetext(size) {
- new Ajax.Request('resize.php', {method: 'get', parameters: {style: size} });
- }
http://www.ratemyplace.org.uk/newsite/
Any help you can offer would be great, I'm a bit of a JavaScript n00b and have tried to figure it out for myself, but I've hit a brick wall!