mbrouwer88 Posted February 6, 2012 Share Posted February 6, 2012 Hello all, I am quite new to Ajax, but got as far as sending a form through post with Prototype's postbody function. That works fine. Now I have a form that contains a dynamic amount of input fields (checkboxes), like <input type="checkbox" name="modules[2]" value="y"> <input type="checkbox" name="modules[3]" value="y"> <input type="checkbox" name="modules[1]" value="y"> But hey, postBody: 'modules='+$F('modules')+'&action=addcustomerdo', does not work. I found some howto to use form.serialize, but this seems to require the use of the submit function. I dont want to submit, since it refreshes the whole page. I just want to it to reload some div with the results. Please help. Quote Link to comment https://forums.phpfreaks.com/topic/256563-prototype-use-postbody-to-send-an-form-array/ Share on other sites More sharing options...
mbrouwer88 Posted February 7, 2012 Author Share Posted February 7, 2012 Really, no-one? Quote Link to comment https://forums.phpfreaks.com/topic/256563-prototype-use-postbody-to-send-an-form-array/#findComment-1315525 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.