• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Calc Elements, Partial loads with POST method

SoilentRed

Caaan do!
I have a form that customizes field data based on what's posted to it via URL
So, if the url is index.php/reviews?&reviews___member_id=2317
The form preloads the elements with information in the database
like company-name = abc company
company logo = images/abclogo.png
and so on...
This is all working 80% of the time, but with Ajax, sometimes the information doesn't come through. sometimes its partial. sometimes the info doesn't load at all. How can we make this more consistent?
 
Not really enough information to go on there. You mention calc elements in the subject, but don't really explain what or how you are doing stuff. And "with Ajax" ... not sure what you mean again. You mean a calc element doing the automatic AJAX re-calc observing another element thing?

-- hugh
 
Yes, calc is working overtime on this one. We use POST to pass a user id that references a table with company name, company logo social media urls and more, all tied to the user id. Calc is passed and it preloads information on the form based on the userid.
 
OK, I really REALLY don't recommend doing that with a calc element. Seriously. Just don't.

Do it either in a form PHP plugin, using 'getTopContent', 'getBottomContent' or 'getEndContent' (where you can insert HTML at the top of the form, at the bottom of the form, or after the form), or do it in a custom template.

Trying to do something like that in a calc is just going to cause grief.

Although you didn't say whether you are using AJAX in the calc to update this stuff on the page as other elements change? Or just using AJAX to reload the form itself?

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top