Quote from: pixelchutes at Aug 15, 2007, 04:34 PM
Cool stuff, Scotty!
BTW, when I tried to register from the AJAX demo page, I clicked register and it appeared as if nothing happened at all. (I was watching where the other messages were appearing...)
After waiting a little bit, I clicked register again, but didn’t see any type of "Loading..." message or anything to indicate action was occurring on the back end.
I checked my email during the interim, and when I got back to the page it said something along the lines of "Sorry, this username is already in use."
So, between my first click registering me and my 2nd click (preventing duplicate registration) I was somewhat confused...However, I do realize this is just a demo site, and I’m sure a loading indicator or disabled/hidden submit buttons could be added with ease to help streamline the registration process.
Thanks for the feedback. I have been putting about 98% of my spare time into this snippet over the last 2-3 weeks and I just wanted to get it out and share it so I didn’t put a lot of effort in to the style and function of the demo site. It is just a basic example of how AJAX can be used in user management.
The custom javascript file I wrote to handle the form hijacking is only a few lines of code, but adding more handlers for events and another animation to show a loading image while it is processing would be very simple.
Quote from: pixelchutes at Aug 15, 2007, 04:34 PM
I also like how initial registration is no more than name/email/username Is this portion customizable? (e.g. maybe gender and country are required @ registration?)
Yes, every possible view can be templated with chunks. If you download the WebLoginPE package from the MODx Repository, there is documentation on all the parameters, template parameters, and placeholders. You can use as many or as few of the fields from web_user_attributes as you like.
The difference between an "instant" registration and a "verify" registration (the one you experienced was "verify") is that the "instant" registration lets the applicant choose their password, the "verify" registration randomly generates a password so the user is forced to give a real email address (if they want to log in to your site!
).
-sD-
Dr. Scotty Delicious, Scientist DFPA.