Please i will like to know how best possible, i can prevent refresh of the index (main) page whenever a submit button inside the content is clicked.
I have used and example from this link: http://dynamicdrive.com/dynamicindex17/ajaxcontent.htm
button the load loadobjs function does not load my external js file that i needed to validate the content page.
I also try to get in contact with the forum members button i got stuck with the process.
Please can somebody test the code and advice me on how to go about it.
The whole purpose of Ajax is to make (parts of) content to update dynamically without page reload. If I understand it well, you’d like to prevent a button’s default submit event and load content from an external page?
Can you please provide the actual code you are using and perhaps a page where you have tried it?
Thank you very much for coming to my rescue.
This is the main file which is also the index. It contains the Ajax code for dynamic loading into the content div.
here comes my challenge, when i click on the submit button, the the index is refreshed and the loaded content disappear even when i use some Java script to prevent the default act of reloading.
Please can you supply some Javascript that can hold the form page back a display submit response. Thanks