Please look at this code:
<script>
steps = "<? print $_SESSION['use_steps']; ?>";
user = <? print $_SESSION['user']; ?>;
fname = "<? print $fname; ?>";
fnue = "<? print $fnue; ?>";
ac = "";
fr = "<? print $fr; ?>";
ems = "<? print $_GET['ems']; ?>";
loc = "<? print $loc; ?>";
function open_pdf_win() {
str = loc + fname;
window.open(str);
}
function ask_email() {
window.open("email_pdf_new.php?f=" + fnue);
self.close();
if (steps) {
window.location = "choose_property_us.php?prop=" + fname;
} else {
window.location = "choose_property.php?prop=" + fname;
}
}
</script>
</head>
<body onLoad="ask_email();open_pdf_win();">
</body>
</html>
This is at the end of a php script. The javascript function ask_email() used to have a confirm asking if the email should be sent. The customer asked that I change it so that the email is always sent, so it looks like this.
When I test it from my computer, it works fine. The customer says it does NOT work form him, using an iPad. I am wondering if there might be an issue with the self.close() occurring too quickly if no confirm to stop processing until the user answers is present. Or other issues?
Thank you.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Fellow title is reserved for select members who demonstrate sustained contributions, industry leadership, and outstanding performance. We will announce the experts being inducted into the Experts Exchange Fellowship during the annual Expert Awards, but unlike other awards, Fellow is a lifelong status. This title may not be given every year if there are no obvious candidates.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.