Pulling results from PHP Procedures to Frontend

Pulling results from PHP Procedures to Frontend

Postby hagie » Fri Dec 16, 2016 9:27 pm

Hi,

I like to update a field in the frontend with a result of a php procedure.

I already know that it's possible to run the Procedure after save and update the database and this works.
Ist there a way to invoke the procedure without a new frame appearing and put the result into the field in the frontend?

Thanks
Stefan
hagie
 
Posts: 20
Joined: Fri Dec 16, 2016 9:21 pm

Re: Pulling results from PHP Procedures to Frontend

Postby mobilemcclintic » Sat Dec 17, 2016 2:44 am

Personally, I started off with using After Save doing queries and then updating fields based off the queries following a set of logic.
Now I am using onchange events attached to related input fields that run code from the Custom Code Javascript tab to do the same thing real time.
I'm doing instant validation (nag screens if a user isn't following instructions) inline with the javascript that smacks their hand and resets whatever they changed to a specified value (still haven't figured out how to put it back to last value..but I'll get there).
If any of that is somewhat in the direction you are looking for, look at the video tutorial about invoice totals that has a nice tutorial that is easy to expand.
https://www.nubuilder.net/videos.php
mobilemcclintic
 
Posts: 54
Joined: Fri Oct 23, 2015 8:04 am

Re: Pulling results from PHP Procedures to Frontend

Postby hagie » Sat Dec 17, 2016 8:01 am

Hi,

I found my sollution in the nuAjax function.

http://wiki.nubuilder.net/nubuilderv3/i ... Name.5D.29

with this function I could run a php procedure and get the result as jaca scrip variable back.

regards
hagie
 
Posts: 20
Joined: Fri Dec 16, 2016 9:21 pm

Re: Pulling results from PHP Procedures to Frontend

Postby admin » Wed Jan 25, 2017 12:29 pm

.
admin
Site Admin
 
Posts: 3349
Joined: Mon Jun 15, 2009 9:53 am


Return to General



cron