Forum in maintenance, we will back soon 🙂
Create Custom Tools on WordPress training module > Test Your Ajax Function Error
I was hoping I could figure it out 😊 @admin but like you say, I'm learning!
Â
Sure, the link is: https://techupstairs.com/a-good-test/
I did figure it out! Now I have a different question. 🙂
Â
How do you show the updated balance in the menu bar? For some reason, it does not reflect the up to date balance until the user refreshes the screen.
@knightyknight2 updating the values dynamically is done with the javascript; is it loaded properly?
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@knightyknight2 When something doesn't refresh until the user refreshes the screen, this would be solved by using Ajax in your code.
@knightyknight2 I shared the codes, and my header template.
the points balance element ID should match the ID in the JS code.
Thanks @ssadvisor , @husein , @admin! I am using Divi so I need to check the JS. Â
I went back to the Header lecture but did ot see the JS. Did I overlook it?
@knightyknight2 The JS code is in the tools code and not the header,Â
I shared the header template for elementor.
if you are using another builders, you just need to set the CSS selector ID for the element the holds the balance so it can be accessed from the tool's JS code.
Ahhh....ok got it. I'll check thaat. Thank you so much @admin !!