10.02.2014 Views

Beginning Ajax With ASP.NET (2006).pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Debugging<br />

Although this section of the chapter is not intended to be a tutorial on usage of the toolbar, some of the<br />

toolbar’s functionality is worth noting here.<br />

The entire structure of a web page can be navigated using the structural elements of the page, using the<br />

tree view display of the toolbar. Each textual, structural, or style-based element can be selected, and its<br />

properties displayed for examination or manipulation.<br />

Complex web pages can be difficult to navigate, and so can locating a particular element that a developer<br />

may be concerned with. Selecting the Find➪Select Element by Click menu option of the toolbar<br />

allows an element to be clicked on in the web page concerned, and the element itself will be highlighted<br />

within the toolbar’s tree view display. The element’s properties and styles can then be manipulated and<br />

examined as required.<br />

One simple but useful feature for developers is the ability to resize the browser window according to<br />

standard screen resolutions. Quite often, a developer will be required to ensure a web site/page is displayed<br />

suitably within a minimum of screen resolution (for example, a site must display correctly at a<br />

minimum screen resolution of 800 × 600). Selecting the Resize menu option from the IE Developer<br />

Toolbar menu presents a list of resolutions that may be selected, which will cause the browser to redisplay<br />

in the selected resolution. This is an easy way for a developer to test a site at varying screen resolutions<br />

without having to continually change the display resolution of their system.<br />

Firefox<br />

When Firefox is installed, an option is provided to install a set of developer tools. Selecting the option<br />

to install these tools provides the user with a menu option Tools➪DOM Inspector. Selecting this menu<br />

option will display a window that has a similar look and feel to the IE Developer Toolbar discussed previously<br />

(see Figure 13-20).<br />

Figure 13-20<br />

349

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!