jquery load and the http 302 status redirect

jquery load and the http 302 status redirect



I am trying to load some external html from a webpage that uses CAS Single sign on . the page i am loading it from is allready authenticated so the SSO method will redirect me to the CAS page

  1. <script>
  2. $(document).ready(function() {
  3.      $('#content').load('https://uviewaccp.usask.ca/SASWebReportStudio/logonAndRender.do?&_sasapp=SAS+Web+Report+Studio&rsRID=SBIP%3A%2F%2FMETASERVER%2FAdmin+Unit%2FHR-AVPO%2FReports%2FADHA-1090+HR+Total+Rewards.srx(Report)&rsAM=pUrl #otvc100056_ComponentContainer');
  4. });
  5. </script>



when I look at the debug tools I get


is there a way to delay until the redirect is done so that I can fetch the html i want ?