Hi,
I have the following function
What I would like is to check if loadView is complete before running copyImages function below
is this possible?
is this possible
3 years ago
3 years ago
#1
3 years ago
#2
G'day,
If I am understanding you correctly, what you want to achieve needs to be done with JavaScript and the Trongate API manager.
If I am understanding you correctly, what you want to achieve needs to be done with JavaScript and the Trongate API manager.
3 years ago
#3
I will have to pursue another avenue since ajax is only able to load my data after it completes, which is no good to me.
Thanks for your response.
Thanks for your response.
3 years ago
#4
Hi. The short answer is 'yes'.
However, please do help us out by telling us more about what you are trying to achieve. We're eager to help but it's difficult to help when the original question is unclear.
Cheers!
However, please do help us out by telling us more about what you are trying to achieve. We're eager to help but it's difficult to help when the original question is unclear.
Cheers!
3 years ago
#5
I went to Chat GPT for clarification about what was being asked. It said:
If Chat GPT is right then here's the answer:
In your view file, add an event listener that listens for when the page has loaded. You can do this with the following JavaScript (and don't forget the script tags!):
As Dafa had indicated, you'll have to build an API endpoint that invokes the copy images method. If you need help with that then just ask.
I hope this helps.
By the way, I have a technical question for you. I can see that you're using camelCase function names. How has that experience been for you?
If Chat GPT is right then here's the answer:
In your view file, add an event listener that listens for when the page has loaded. You can do this with the following JavaScript (and don't forget the script tags!):
As Dafa had indicated, you'll have to build an API endpoint that invokes the copy images method. If you need help with that then just ask.
I hope this helps.
By the way, I have a technical question for you. I can see that you're using camelCase function names. How has that experience been for you?