Hi folks
SCENARIO: I have a button on a page, which when clicked opens a modal window, in which the Seblod Form Module will be loaded...
My AJAX skills are very basic, and so hope to get a little guidance from someone. Mucking around with a custom HTML module I am able to load an entire page as shown below, but not sure how to load just a module.... Is it way too tricky?
<button id="form-button"><h1>Load Stuff</h1></button>
<script>
jQuery(document).ready(function() {
jQuery("#form-button").on("click", function() {
jQuery("footer").load("index.php?option=com_cck&view=form&layout=edit&type=my_form");
});
});
</script>
<br>
My finished page will ideally have a few forms on it, so to have the user load them using AJAX makes the page a bit quicker and better. I can't imagine that having all the forms load straight away would be better as they might not be used all the time
Bucklash