Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Practical Web Development
  • Table Of Contents Toc
Practical Web Development

Practical Web Development

By : Paul Wellens
3.5 (6)
close
close
Practical Web Development

Practical Web Development

3.5 (6)
By: Paul Wellens

Overview of this book

This book is perfect for beginners who want to get started and learn the web development basics, but also offers experienced developers a web development roadmap that will help them to extend their capabilities.
Table of Contents (17 chapters)
close
close
2
2. HTML
10
10. XML and JSON
16
Index

Ajax and jQuery


There are several methods that come with jQuery that you can use to make what we like to refer to as Ajax calls. The most complete one is, not surprisingly, called .ajax(). We will start with a simple one.

Many Ajax-based sites are like that—an omnipresent menu on top, some other navigation in a footer at the bottom, and a center piece with constantly changing content. We cannot stress early enough that when we use Ajax the way we describe here, and our website is called index.php, no matter how often the content of the center piece changes, our current web page will still be index.php.

So, let's assume that we have a website with a main menu on top, and some basic content in the middle, inside a <div> with the id varicontent. It does not really matter what is inside #varicontent on the initial load—it is typically a nice photo banner—this is the chapter that explains what goes on when we change its content and replace it with something different.

jQuery Ajax methods

We...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Practical Web Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon