resove a problem about ajax.