Viewers: in countries Watching now:
Frequently asked questions (FAQs) are a popular aspect of any web site. This course shows how to create questions that have expandable and collapsible answers, allowing visitors to easily find the information they need. Author and jQuery expert Chris Converse shows how to build an FAQ section for your site quickly, using the tools in Dreamweaver and the code libraries in jQuery. In addition, the course demonstrates how to automatically link to a specific question, and automatically open the answer, giving you the ability to provide users with a direct answer to their question.
Hi, this is Chris Converse, and this is a course I'm creating in Interactive FAQ for your web site. I'm going to start by showing a copy of the final project we'll be creating this course. So what we're going to be doing is creating an FAQ that's going to have questions that you can roll your cursor over and get a little Help icon. When I click on the actual question, it's going to open the answer. It's going to animate the Q and the A states over on the left hand side and is going to open up the answer to whatever height it needs to accommodate all of the content inside of your answer. We're going to be writing our script in such a way that you can add any number of questions and answers to a page and each question and answer will function independent of each other.
We're also going to add in capability to auto open one of the answers based on an anchor link. So I'm going to come up here to the URL field here, type in barchart, hit Return and then hit Reload, and we can see we can go to this page and automatically open one of the individual answers as well. Now we are going to be building this using jQuery, which means we're going to get some cross compatibility, across different platforms and devices. So here we are in Windows 7 running IE 9, and I can see the exact same user experience running over here as well.
The icon for the Help is going to look a little bit different than the Macintosh OS, but again users who are used to this particular operating system again will see the Help symbol show up--just like they would see in other sites. Click on the individual items again and open up the content that relates to the individual answers. We'll also get the same user experience across devices. Let's look at the same experience running over on an iPad, and again tapping on these individual items will open up these pieces as well. So now to illustrate what we're actually going to be building, I want to bring up a sketch. We're going to be building a series of HTML containers that hold questions and answers.
There are currently no FAQs about Create an Expandable FAQ Listing with jQuery and Dreamweaver.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.