Reputation: 421
I implemented a little AJAX-based application, and now I got more than 500 lines of AJAX code. So I want to know where is the best place to put this code ? To keep my application easy to maintain.
Thank you.
J. BENOIT.
Upvotes: 0
Views: 1711
Reputation: 4578
You shuould create a file called say filename.js
and write your ajax code there and just include that js file into your html page.It is proper way and every one should do this since it look nice and professional
Upvotes: 2