Hello. I'm an Italian student. Sorry for my English. I installed this great component for joomla. I wanted to create a component that exploits the forms created with chronoform. To insert code in my personal component I tried to invoke this query string:
index.php? option = com_chronocontact & chronoformname My_Form_Name & format = raw
but debugging gives me an error:
Fatal error: Call to undefined method JDocumentRAW: addCustomTag () in .. \ components \ com_chronocontact \ chronocontact.html.php (191): eval () 'd code on line 2
But if I add to the query string task = extra, does not give me the error, but I do not return anything.
Is there a way for me to return only the form's code without refresh the whole page, for interaction with many forms like ajax. Thanks
index.php? option = com_chronocontact & chronoformname My_Form_Name & format = raw
but debugging gives me an error:
Fatal error: Call to undefined method JDocumentRAW: addCustomTag () in .. \ components \ com_chronocontact \ chronocontact.html.php (191): eval () 'd code on line 2
But if I add to the query string task = extra, does not give me the error, but I do not return anything.
Is there a way for me to return only the form's code without refresh the whole page, for interaction with many forms like ajax. Thanks
You really should use the task=extra with format=raw and ajax requests. To get any output, you'll have to use the "extra code 1" textarea on the "Form Code" tab, and add whatever php-code needed to generate the desired output.
/Fredrik
/Fredrik
I did not understand. I want my chronoform return code for the entire form with all the functionality, not code that I write myself into extra fields. I would create tabbed registration form, such as the privacy settings of Facebook, and show various forms, created with chronoform with ajax.
Hi,
Unfortunately, you cannot use the format=raw option with the "show" task, only with the extra tasks. These further require custom coding. You could always use the component-view of your template, which should strip any and all menus and module positions - although this is more useful for IFrame's (data could be fetched as a string and injected into the page html, but is not an ajax- or JSON-object). The exact appearance would also depend on your template.
/Fredrik
Unfortunately, you cannot use the format=raw option with the "show" task, only with the extra tasks. These further require custom coding. You could always use the component-view of your template, which should strip any and all menus and module positions - although this is more useful for IFrame's (data could be fetched as a string and injected into the page html, but is not an ajax- or JSON-object). The exact appearance would also depend on your template.
/Fredrik
This topic is locked and no more replies can be posted.