php-shawn
-
Posts
3 -
Joined
-
Last visited
Posts posted by php-shawn
-
-
<form action="javascript:void(0)" onSubmit="YOURFUNCTION()">
-
XAJAX
www.xajaxproject.org
<form action="javascript:void(0)" onSubmit="YOURFUNCTION()">
XAJAX
www.xajaxproject.org
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
simple semi-ajax login.
in Javascript Help
Posted
Eggzorcist,
I don't know if my post will actually help you at all or not, but after fussing with AJAX for WAY too long in my opinion to "get it." I started looking for an AJAX library.
Most of them I found just pissed me off and didn't help or were too big or worse yet...just as complicated as every other AJAX example I'd seen only with a bunch of extra crap to deal with.
Enter xajax. Head over to www.xajaxproject.org and check out the tutorial. I spent like 2 or 3 hours getting things to work as opposed to my 4 days trying to do it from scratch. I know people will argue you gotta learn to do it yourself before you use a library, but I never once seen any of those people over at my place sweeping up all the hair I pulled out.
Members of their forum are very helpful when you do get stuck, but the library is very simple to use.
Here is an example of a basic form submission using the xajax library:
form.php
form.common.php
form.server.php
It looks messy at first but when you get it to function you'll be thankful for not having to write WAY too much javascript. Let me know if I can help!
Shawn