rahulephp — 2009-10-16T03:13:13-04:00 — #1
First of all, i would like to say that my experience with this forum is really very good.
I want to create a popup Login Window for my website.
You can see one of the example of this here.
oodle.com---> post add button. (At the right top)
Can i get any readymade *.js or tutorial for same popup window.
Thank you in anticipation.
ruben_k — 2009-10-16T03:27:23-04:00 — #2
Use a Lightbox script for this Not PHP!
felgall — 2009-10-16T04:08:10-04:00 — #3
You can't do server side authentication with a lightbox script. You can't do it client side at all with any kind of script.
You can either use PHP or place the code into .htaccess/.htpasswd files on the server.
See http://php.net/manual/en/features.http-auth.php for the PHP reference page on how to do it with PHP.
ruben_k — 2009-10-16T04:09:31-04:00 — #4
Obviously he (and I for that matter) meant how to get that overlay box your suggestion comes after that
klegault — 2009-10-16T14:25:43-04:00 — #5
If you use an AJAX foundation like jQuery or DojoToolkit you can actually authenticate within the lightbox. Both foundations support the lightbox and asynchronous queries. An easier solution may be just to use a drop down login box like Twitter and Digg uses.
jeffwalden — 2009-10-18T15:23:16-04:00 — #6
I don't know the specific lightbox technology that Facebook uses, but don't they do server side communication within the lightbox?
dodyryda — 2009-10-20T07:07:13-04:00 — #7
Most of the lightbox varients support AJAX surely the server side authentification can be driven from there.
vitosoft — 2009-10-20T16:59:52-04:00 — #8
baileylo — 2009-10-20T17:25:57-04:00 — #9
Light box or not, it's not that very hard to do. I'd go about w/ jquery, ajax, and php.
- Create a hidden div on the page anywhere you want, i'd suggest using fix and then some offset of where you want. Write the html form here for login.
- Create button for login.
<a href="login.php" class="login">Login</a>
- Create Event in Jquery
e.preventDefault(); //Stops from following link
//Add ajax form elements here i suggest this plugin http://malsup.com/jquery/form/
Now from that point in step 3 you're going to do some more magic, when the plugin returns from onComplete, validate correctly that the user has logged in then refresh the page, and there you go.
Now for the 10% of your users who should grow up? Well this even never gets bound so they're taken to login.php.
felgall — 2009-10-20T18:48:24-04:00 — #10
So you can perform miracles and enable blind people to see can you? if not then in what way is it that you expect them to grow up?
baileylo — 2009-10-20T19:35:42-04:00 — #11
Felgall, you make alot of true points: