What is the current “best” way to post a form contents via AJAX, using
the latest JSON API stuff?
Import/Export uses xajax_eT_wrapper(). I thought there was a JSON
replacement, but can’t seem to find it.
I can grab it and send it using the base jQuery functions, but then
I’ll get exec prefixes, and not nested arrays.
What about ajax_submit in etemplate/js/etemplate.js:
// submits the whole form via ajax to a given menuaction or the current
one if ‘’ passed
function ajax_submit(form,menuaction)
{
if(!menuaction) menuaction = form.action.replace(/.+menuaction=/,’’);
xajax_doXMLHTTP(menuaction+'./etemplate/process_exec',
xajax.getFormValues(form));
}
Ralf
Ralf Becker
Director Software Development
Stylite AG
Morschheimer Strasse 15 | Tel. +49 6352 70629 0
D-67292 Kirchheimbolanden | Fax. +49 6352 70629 30
Email: rb@stylite.de
www.stylite.de | www.egroupware.org
Managing Directors: Andre Keller | Ralf Becker | Gudrun Mueller
Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer
Commerzbank BLZ 55040022 | Account 218111300
IBAN DE33 5504 0022 0218 1113 00 | BIC COBADEFFXXX
VAT DE214280951 | Registered HRB 30575 Kaiserslautern Germany
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don’t ask for help often.
Plus, you’ll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers