Create a Login Page

3 views
Skip to first unread message

sana

unread,
Mar 24, 2008, 3:04:46 AM3/24/08
to MochiKit
Hi
Now i m learning about mochikit and i want to create a login page with
AJAX+Mochikit so anybody give me the code how i create it.

machineghost

unread,
Mar 24, 2008, 5:43:06 PM3/24/08
to MochiKit
I don't mean to be rude, but asking people to "give" you code is not
going to be very fruitful; I can assure you that most everyone on this
list is too busy to write your code for you.

That being said, it sounds from your post like you need a better
understanding of the core technologies. A login page involves almost
exclusively server-side (ie. not Javascript/Mochikit) code. A login
page would only involve JS/Mochikit if it had client-side validation
(eg. if it ensured all passwords were at least five characters) or if
it allowed the user to login without changing pages (this would be the
point at which the login page becomes AJAXy).

If you want to build an AJAXy login page, many of the Mochikit
libraries will be valuable to you (Async for the AJAX stuff obviously,
but also Base, DOM, Signal and probably Style too). But most of the
work of creating a login page is going to have nothing to do with
Mochikit (I've never created an AJAX login without creating a normal
one first, and if you're practicing unobtrusive Javascript then you
shouldn't either), and will instead depend entirely on your server
stack (ie. Python/Django, Ruby/Rails, Any MS Language/.Net, Java/Seam,
etc.).

By the time you do eventually get around to coding the AJAX part, I
imagine you'll have realized that there was no way anyone on this list
could have provided you what you asked, because all of the
implementation details are specific to your site.

Jeremy

Brian H

unread,
Mar 24, 2008, 11:59:59 PM3/24/08
to MochiKit
Here you go:

<html> login("STFW"); </html>
Reply all
Reply to author
Forward
0 new messages