This topic is locked
[SOLVED]

update a snippet in a different page

2/8/2024 4:11:14 PM
PHPRunner General questions
francesco author

I'm seeking advice on how to update a code snippet after modifying some records on a different page from where the snippet is located. I don't want to manually reload the page to update the snippet.
See picture below:

img alt

I already tried with ajax and solution proposed by Fernando in his blog, but the snippet only updates when I reload page.

Sergey Kornilov 2/12/2024

Code snippets are executed once on the initial page load. If you need to update something that was created with the help of custom coding you need to do it manually. If you do this from the popup window, most likely you need to use "parent" to refer to the main page.

francesco author 2/14/2024

thanks for the help, i will go in this direction