Please find following code for adding bookmarks the ajax way here.
Here are the scripts:
THE AJAX.JS FILE
Please find below code fr check form validation using jQuery here.
There are numerous ways to structure the code and project for you web application, and you can put as much or as little thought as you like into architecting. But it is usually a good idea to follow to common patterns because it will make your code easier to manage and easier for others to understand.
I came a across a problem during the development of a CMS at work where I had to take a string of HTML source code and make sure all special html characters are replaced with their entities. For example, & (ampersand) should become &.