I don't really understand the question.
The insert should be able to work fine with an AJAX submit just like it would with any other form submit. You wouldn't need to do anything special... just trigger the insert using the "any form submit" option.