Here is a div that the user clicks on:
<div id="generate2_pos" onclick="damperdesign_payload();" class="button">Generate P-Spectra</div>
This calls the damperdesign_payload()
function which links it to another page. When this happens it hangs. I am sure of it hanging only on linking since I walked through the damperdesign_payload function.
So for instance in the last if/else check in that function right before the page is redirected:
if((typeof sessvars.dampertype === 'undefined') || (sessvars.dampertype == "")){
alert("You haven't selected damper type.");
}
else{
//This is where it reaches, after which my page hangs.
document.location.href='spectra.html';
}
In most cases on the first time around, the next page (spectra.html) will work properly. At the end of the website cycle, when I kept hitting back repeatedly in the program to reach to the page we are currently discussing, and then click that div again, it hangs.
Could this have to do some code in spectra.html
? If so, how can I debug this if the page hangs right in between the two pages?