Hello.
@KK Sir
@trendoman
@AllCouchDevelopers
I wanted to know if is possible to store data (data already exists) from one template to another template using db_persist and ajax.
The editable regions in both the templates are same in count and by their names.
I am trying to do the following:
1. Data is fed into a template (temp-one.php)
2. temp-one.php has a page view (generated using custom routes) which contains the data and a button.
3. by clicking the button an AJAX call needs to be generated.
4. The ajax call should initiate saving the data from temp-one.php (as normal data or json) and save it to temp-two.php using db_persist tag.
5. If successfully the data is submitted to temp-two.php then the page should be redirected to temp-two.php.
All ajax operations are to be performed on temp-one.php.
Would this be possible?
Regards,
GenXCoders (Aashish)
@KK Sir
@trendoman
@AllCouchDevelopers
I wanted to know if is possible to store data (data already exists) from one template to another template using db_persist and ajax.
The editable regions in both the templates are same in count and by their names.
I am trying to do the following:
1. Data is fed into a template (temp-one.php)
2. temp-one.php has a page view (generated using custom routes) which contains the data and a button.
3. by clicking the button an AJAX call needs to be generated.
4. The ajax call should initiate saving the data from temp-one.php (as normal data or json) and save it to temp-two.php using db_persist tag.
5. If successfully the data is submitted to temp-two.php then the page should be redirected to temp-two.php.
All ajax operations are to be performed on temp-one.php.
Would this be possible?
Regards,
GenXCoders (Aashish)