Sep 122007

I was just having a ton of issues getting JQuery and TinyMCE to work. Sometimes loading of TinyMCE would hang and never complete and other times I would lose my tinyMCE or jQuery objects for some reason. Well, I’m not sure what the error was, but I finally got it working. It seems that you first need to completely load and initialize TinyMCE before loading JQuery. Here’s my code:

This seems to work and allow me to do everything AJAX style and use TinyMCE editors in my AJAX forms (i.e. forms that I download the HTML for and that I submit via AJAX). Here’s a simple form snippet that is downloaded via AJAX and placed into a div:

Nov 152006

Ben Alex and I have been working recently to finalize the inclusion of patch I made for getting AJAX login to work with ACEGI. After a number of very constructive conversations and looking at some of the new features in 1.0.3, Ben and I decided to remove the patch and instead leverage a pure configuration driven approach, which does leverage mostly redirects to handle AJAX authentication.

I’ll be putting together an article for how to accomplish the AJAX login today and initially posting it here as well as possibly over at JavaLobby. It will cover the steps required to get AJAX login working with ACEGI 1.x and will also cover a feature in 1.0.3 that allows a forward instead of a redirect in one instance.

Aug 302006

I’ve been having a good discussion with some ACEGI users about my patch for AJAX and ACEGI. There are a number of other solutions out there and some contention about redirects and AJAX. The W3C specification for the XMLHttpRequest states that all browsers must support redirects transparently. Here’s the link:

The specific section is:

“If the response is an HTTP redirect (status code 301, 302, 303 or 307), then it MUST be transparently followed (unless it violates security, infinite loop precautions or the scheme isn’t supported). Note that HTTP [RFC2616] places requirements on UAs regarding the preservation of the request method during redirects, and also requires users to be notified of certain kinds of automatic redirections.”

So, I was asked by someone to mock up an example that illustrates redirects working with AJAX and here it is: