Create the main panel and the menu AJAX links

Click the Master page item in the AJAX Panels tab of the Files panel. Now that you are in the master page (index), you will be able to edit the content outside the existing AJAX panels. In Design view, click inside the Content panel div and remove the temporary text (press Ctrl+A, and then Delete). Just like before, create a new panel by applying the AJAX Panel server behavior. Configure it considering these differences:

  1. In the Basic tab, name the panel Content, and check the Main Panel option:


                                   

  2. In the Style tab, select the Rounded corners style for the panel (due to the user interface persistence, the None option was selected by default according to the previous settings - Footer panel):


                                   

  3. In the Advanced tab, add four extra panel states besides the default one (one for each photo album):


                                   

  4. Click OK to apply the server behavior.

Notice the five main panel states listed in the AJAX Panels tab of the Files panel (after expanding the Content panel) - default state, Ocean, Mountains, Wedding, Family:

 

All the AJAX panels needed for your site are now created, including the main one. Before editing the main panel states, take some time to transform the menu items into AJAX links to these states (you couldn't when you first created the site menu because the main panel did not exist back then). To edit the default (and only) state of the Menu panel, click the Master page/Menu/default state item in the AJAX Panels tab of the Files panel, and then follow the steps below:

  1. Select the Home menu item and apply the AJAX Link server behavior from the Application panel, Server Behaviors -> + -> MX AJAX Toolbox. The dialog box has three tabs, but you only need to configure the first tab (Basic):


                                   
  2. In a similar manner, transform the other four menu items into AJAX links. There is only one difference from the configuration above (notice how due to the user interface persistence, the previous settings are remembered):
Save the index file and upload it to the server. You can preview it in browser (press F12) and see how the menu links work:


 
Notice how the main panel changes its content according to the active link (the difference stays only in the title so far), and how the browser window title varies as well.

Continue with the next topic to create the photo galleries in the main panel: one gallery per album (each album corresponds to a main panel state).