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

Back
Top