Load Script Async? June 07, 2022 Post a Comment EDIT: I want to save input data from my form into Firebase database The input with id='field0' and button with onClick'submitPost()' Solution 1: Try this, by using the load event of the script tag: https://jsfiddle.net/7mnns4dk/6/ Basically just use: script.load = function() { // enter code that needs the script to be loaded here } Copy Also it works with jQuery as you wrote it, just move the submitPost function so that it is accessible by the button: https://jsfiddle.net/7mnns4dk/7/Baca JugaHow To Redirect The Request To Specified Php Page By Ajax Call?Jquery - Looping A .load() Inside A 'for' StatementHow To Redirect The Request To Specified Php Page By Ajax Call? Share You may like these postsHow To Track A Sync Variable In An Async CallAsynchronous Data Retrieving And Rendering In Extjs With AjaxWait In For Loops For Async FunctionAngular 5 View Not Updating After Timeout Post a Comment for "Load Script Async?"
Post a Comment for "Load Script Async?"