troubleshooting Question

iPad issue with Javascript window.open?

Avatar of Richard Korts
Richard KortsFlag for United States of America asked on
JavaScriptiPad
17 Comments1 Solution796 ViewsLast Modified:
I have some javascript that opens separate windows in certain instances.

Case A looks like this:
if (ac == "b") {
                  dest = "asbuilts/" + cid + ".gif";
                  window.open(dest,"asbuilt","width=800,height=1100,scrollbars=yes,menubar=yes");
                  ac = "";
                  return false;
            }
Case B looks like this:
function get_cat() {
            if (document.st.pcat.value != "") {
                  pcats = document.st.pcat.value;
                  dest = "sel_parts.php?wo=<? print $woid; ?>&ptype=" + pcats;
                  window.open(dest, "woparts","width=800,height=1100,scrollbars=yes,menubar=yes");      
            }
      }
In Case B, the function get_cat is referenced in the html like this:

<select name="pcat" class="pt10" onChange="get_cat();">

In case A, it works on the iPad.

In Case B, it works on my (Gen 1) iPad, it does not work on the customer iPad (probably NOT Gen 1).

Is there any known issue regarding this on iPads?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros