Forums

Form doing AJAX and showing results in the page?

petasis 07 May, 2014
Hi all,

I want to make a small form, which submits a url to a service, and gets back some text.
In chronoforms 5, I have modified the HTML (Render Form) to use AJAX, so as submission happens throuh AJAX, and the page stays the same.

However, what happens is that the form just disappears. Looking at the generated javascript, I see that the form is replaced with what the service returned. Is there a way to not replace the form, but direct the output to another page element?

What I want to achieve, is the page & form to remain unchanged, and show the result just below the form.
Max_admin 09 May, 2014
Hi petasis,

You will need to add your own custom AJAX code then, you can simply copy the code generated by Chronoforms from the page source then remove the line which replaces the form!

Let us know if you need help with this!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger