[SOLVED] My Twitter button tweets the next quote and not the current one - Random Quote Generator

[SOLVED] My Twitter button tweets the next quote and not the current one - Random Quote Generator
0.0 0

#1

I am almost done with my random quote generator. However, my twitter button tweets the next quote and not the current one. Please have a look at this and let me know what I’ve missed. Thank you in advance!


#2

Your function getQuotation changes the page’s text to whatever currentAuthor and currentQuote were before the function fired. Then the function changes the value of currentAuthor and currentQuote to whatever is in the AJAX response. Move lines 15 and 16 down.


#3

Thank you so much! It works fine now!