I am newbie with AJAX. I got a script to fetch a data from database using drop down menu And onclick event function was called. I want to do it onload event of form. but is that possible it fetches recently added record, without refreshing page. I mean I am also inserting data at same time. And showing its live preview. Let me know how to do it. Is onload event of from is ok. or any even where I need to call function.
Share
if you want to show it constantly then you would have to use setInterval(funcnamem,1000); to poll the function every 1 second so that you can get the updated data. Onload will execute the function during the page load.
Update
You can add it in your script section whereever that is either below or above your main html