My webpage, 'foo.html', retrieves data from a database using AJAX ('ajax.html?options=option1') to populate a table. The table is styled nicely with CSS that is linked to 'foo.html'. However, I also want the ajax.html page to be styled when accessed directly. When I add
<link rel="stylesheet" type="text/css" href="/dev/css/default.css" />
to ajax.html, it inserts the link into foo.html as well, which is not desired. Is there a way to prevent the CSS link code from appearing in the AJAX call or only display on non-AJAX calls?
Any advice would be appreciated.