AJAXForms plugin for DOMAssistant

March 5th, 2008 by Robert Nyman

With the advent of DOMAssistant 2.6, a new world with plugins opened up. Time to release the first one: AJAXForms.

The idea with the AJAXForms plugin is to be able to post a form through AJAX, without having to post the entire web page. It also supports setting a validation function before the submission, and an optional function handling the response once the post has been completed.

How to use it

It is very simple to enable the AJAXForms plugin functionality. Simply add the class “ajax-form” to any form you would like to be submitted via AJAX. For example:

<form action="some-url.php" class="ajax-form">

Setting validation function

There are three ways you can specify what validation function to be called before the form gets posted:

Alternative 1

// Applies to the form with an id of "form-id" in the web page
$("#form-id").setBeforeSubmissionHandler(functionToCall);

Alternative 2

// Applies to all AJAXForms in the web page
DOMAssistant.AJAXForms.setBeforeSubmissionHandler(functionToCall);

Alternative 3

<!--
	Using an extra class value on the form itself.
	Replace functionToCall with desired function name.
-->
<form action="some-url.php" class="ajax-form before-handler-functionToCall">

Setting function to handle the response

Just as with validation, there are three options to set what function to call once the posting has been completed:

Alternative 1

// Applies to the form with an id of "form-id" in the web page
$("#form-id").setResponseHandler(functionToCall);

Alternative 2

// Applies to all AJAXForms in the web page
DOMAssistant.AJAXForms.setResponseHandler(functionToCall);

Alternative 3

<!--
	Using an extra class value on the form itself.
	Replace functionToCall with desired function name.
-->
<form action="some-url.php" class="ajax-form response-handler-functionToCall">

Downloading the AJAXForms plugin

You can downlod the AJAXForms plugin for DOMAssistant from the AJAXForms plugin project site.

39 Responses to “AJAXForms plugin for DOMAssistant”

  1. [...] first plugin has now been released, and it’s an AJAXForm s plugin. It offers you a way to submit a form completely through AJAX without doing any postbacks of the [...]

  2. Antanida says:

    Thanks! gut text

  3. UnicimiEmully says:

    Hi all!

    As newly registered user i just wanted to say hello to everyone else who uses this bbs 8-)

  4. effismica says:

    fix viagra joining

  5. mnorgovudkka says:

    Hy my name is mnorgovudkka
    Im from mongolia
    Buy

  6. gakinvili says:

    Aloha guys!

    I’m a newbie here.

    So i’d like to ask you if someone of you or your frineds was fired because of a financial crisis?

  7. osobo says:

    Новый способ давления на кандидата на пост Главы г. Химки

    Новый способ “наказать” тех, кто посмел участвовать в выборной кампании не на стороне действующей власти изобрели правоохранительные органы г.о. Химки.
    Руководствуясь не нормой закона, а чьей-то “волей” сотрудники милиции решили “проверить” все фирмы, внесшие денежные средства в избирательный фонд неудобных кандидатов.
    Начались “проверки” с телефонных звонков – где директор, сколько человек работает на фирме. После чего последовали “письма счастья” с просьбой предоставить всю бухгалтерскую документацию, учредительные документы фирмы, и даже, план экспликации БТИ.
    Такие запросы химкинским фирмам рассылает 1 отдел Оперативно-розыскной части № 9 Управления по налоговым преступлениям ГУВД Московской области за подписью начальника подполковника милиции Д.В. Языкова.
    И всё это в то время, когда Президент дал прямое указание правоохранительным органам о прекращении всех незаконных проверок малого и среднего бизнеса. С это целью внесены изменения в Федеральный закон “О милиции” – из статьи 11 этого закона исключены пункты 25 и 35, на основании которых ранее правоохранительные органы имели право проверять финансово-хозяйственную деятельность предприятий.
    Видно, об изменениях действующего законодательства местные правоохранительные органы не уведомлены. И не смотрят телепередачи с выступлениями Президента.
    Может быть, эта публикация подвигнет их к исполнению указаний Президента, а также к изучению и соблюдению действующего законодательства

  8. TeemFielm says:

    Hey forum members

    I just became a member of this forum

    Great work by the admin, mods and seriously every member around.

    A few days ago I read that there is a treatment for diabetes on http://www.healthcaredaily.org
    Can diabetes seriously be cured? The website http://www.healthcaredaily.org looks legit

    Could you someone tell me if this healthcare information is for real?

    Thanks a lot

    TeemFielm

  9. ticsAltecttef says:

    Работаю менеджером. Хочу сделать интернет магазин. Порекомендуйте человека или организацию, кто поможет мне в этом. Главное чтоб человек, который его делает был адекватный и недорого.

  10. нeвecтa says:

    Жесть :) Надо пост использовать в корыстных целях. Просто обязательно!

  11. Да уж, это на самом деле непросто. :)

  12. There is visibly a bundle to realize about this. I consider you made certain good points in features also.

  13. Ldggvnbb says:

    Have you got a current driving licence? best nude lollies photos rvyi

  14. I and my friends have already been looking at the excellent hints found on your web site and then at once I had a terrible suspicion I never thanked the site owner for them. The ladies were so happy to read through them and have in effect definitely been having fun with them. Appreciate your turning out to be really accommodating as well as for opting for certain incredible resources most people are really wanting to understand about. My very own honest apologies for not saying thanks to you earlier.

  15. Emile Batt says:

    Thanks for this information .I bookmarked your website

  16. Such type of are becoming remarkable repeatedly exercise routines when enables us to unwind your backbone and even sleep accurately without the knowledge in relation to anxiety as part of your yet again.

  17. I love looking through an article that can make men and women think. Also, many thanks for permitting me to comment!

  18. I conceive this internet site contains some very excellent information for everyone :D . “Years wrinkle the skin, but to give up enthusiasm wrinkles the soul.” by Samuel Ullman.

  19. Welches sind die Ersten Geistiger Verfall Symptome ebenso ist Demenz Heilbar klug jene uff jener Webseite eher. http://berniewest821.obolog.com/

  20. Wakmofbu says:

    I’d like to tell you about a change of address http://imiruucutyy.de.tl underground nude models yeah nuthin worse than whatchin porn and the guys got a limp ass peace of shit dick that can’t stay up

  21. Yrkxxcmg says:

    How much is a First Class stamp? http://elanolydok.de.tl bbs young video This chocolate concoction is HOT, even without the cock part. I’d love for them to borrow my white boy ass and tool and use to their desire.

  22. Oockjwmk says:

    Did you go to university? http://maboybaaup.de.tl javmodel password Damn, why is it with all these interesting videos with a scenario before sex have to be in a foreign language? Fuck!

  23. Lltezjrb says:

    Could I order a new chequebook, please? http://gimiqocubih.de.tl modelos desnudas colombianas Best pussy licking video I have ever see. Pre-cum oozed from my swollen cock the entire time I watched it.

  24. Wnvjgkjx says:

    I enjoy travelling http://afyhigegoguse.de.tl nymphets nymphets underage gallery Talk about an Olympic ring exercise! Those heels aren’t really the kind of heels a guy digs during sex but hey,she has a great body. I think he was too exhausted from the workout to stay hard. I’m getting a swing soon!

  25. Dozdpsqh says:

    Could you ask him to call me? http://arepihua.de.tl teen model preeten what I find funny about some peoples responses is that it clearly says shemale in the title, they open it anyway and watch it…. then claim disgust almost as if to salvage what’s left of their hederosexuality. I commented before on how I thought this was beautiful, the only thing that could make this vid better would be Jenna Haze and Rocko with shemale.

  26. Qkxbedjy says:

    Cool site goodluck :) http://abagisoo.de.tl attractive young models In the times when teens post posing pics to various galleries, and watch porn, talk naughty and enjoy, if such sweety would one all of the sudden notice and realise having gotten into it like that and it been then kind of long road in her own time thinking and path, then what would there to be than to accept it? Her own pleasures, even if with loving then huge cock black men. Times and trends go as they do. Societies are more open to people being sexual as they are. I think I could accept.

  27. Lxkxmafp says:

    International directory enquiries http://iylugeohor.de.tl blonde nude models taking it up the ass is so worth it. i love it. prefer it probably more than getting my pussy pounded on.

  28. Xaolvath says:

    Yes, I play the guitar http://odocylebypa.de.tl ukraine nude nymphets Another of these vids where it was probably the guys idea to film them yet, he edits around ever seeing his face.

  29. Ywbjjpvl says:

    I’d like to cancel a cheque http://eqauhecogymi.de.tl little girl pix OMG she is such a hottie and those beautiful breasts like alot of us Guys I would love to Fuck her all night long, keep it up baby we enjoyed the show!!Thanks

  30. Licevuzk says:

    Could I borrow your phone, please? http://ikeiefyqa.de.tl nymphet fun sex Beautiful girl. See ladies. The proper nutrition is important if you want to look that good. Works for me. Daddy says I had a steady diet of cum for nine months in my mother’s womb.

  31. Eyclgptk says:

    How many weeks’ holiday a year are there? http://usakuciiuo.de.tl preteen pics nudes she needs to go back to the surgen…he did a terrible job on her…the tummy tuck didnt do so well u can tell from her bellie button and all the lose skin….

  32. Nmldidmf says:

    Did you go to university? http://lidecopynacy.de.tl pre teen stockings She is so cute, and so much fun. She acts like she is having as much fun as those fuckers. Sweet.

  33. Psjggxcz says:

    A Second Class stamp http://opyreekyj.de.tl kids model sex This video brings back good times, I lost my virginity sophomore year to a black senior, and this may be a stereotype but black girls can ride a mean cock. She told her little sis about me and now I get all the black pussy lol

  34. Lbcpejws says:

    Your account’s overdrawn http://ugyraqipiri.de.tl preteen europe pussy she is very hot i liked her i wish if i can meet her and fuck her i liked her bossy and her boobs and her ass

  35. Vkcfvjnm says:

    How many weeks’ holiday a year are there? http://unohysapoaj.de.tl kids lolitia yank if youre looking for a story go watch a soap opera, its porn. people fuck. some just fuck better than others.

Leave a Reply