HEAD FIRST AJAX ©2008
css rule background:url
In page 120 : in css rule background:url...(img) is applied to <a> object , this always place the image in place of link <a> ?
AjaxCode:#navigation a#beginners { background: url('../images/beginnersBtn.png') no-repeat; } #navigation a#beginners.active { background: url('../images/beginnersBtnActive.png') no-repeat; }
In page 129 : if file in Ajax:...request.open(....file.html....), file.html, does NOT exist on server we get error or NOTHING("") in responseText?
Code:function showSchedule() { if (request.readyState == 4) { if (request.status == 200) { document.getElementById("content").innerHTML = request.responseText; } } }


Reply With Quote

Bookmarks