We help IT Professionals succeed at work.

iPad issue

Richard Korts
on
Medium Priority
461 Views
Last Modified: 2012-03-15
See attached code snipped. This DOES NOT work in Safari on an iPad.

The select has NOTHING listed in it.

I'm guessing it has to do with the associated JavaScript.

Any ideas?
javascript-html.htm
Comment
Watch Question

Michel PlungjanIT Expert
CERTIFIED EXPERT
Top Expert 2009

Commented:
can you post the HTML instead?

(view-source)
Richard KortsBusiness Owner / Chief Developer

Author

Commented:
See attached.
custs-all.htm
Michel PlungjanIT Expert
CERTIFIED EXPERT
Top Expert 2009

Commented:
Woah - too many lines ;) Next time just post a few dummy lines.

I will take a look.

Which dropdown is empty?
The first one?
Michel PlungjanIT Expert
CERTIFIED EXPERT
Top Expert 2009

Commented:
Can I by the way suggest you instead of loading 400K you load 200K by having

var cl = [];
window.onload=function() {
  var sel = document.nxt.clist;
  for (var i=0, n=sel.length;i<n;i++) {
    cl[i]=sel.options[i].text;
  }
}

Open in new window


which will replace

cl = new Array();
cl[0]=...
cl[1]=...
Richard KortsBusiness Owner / Chief Developer

Author

Commented:
The page is generated by php. It works PERFECTLY in IE & FireFox

I cut out the majority of the generated Javascript array  & the select pulldown list. It's attached.
custs-all1.htm
IT Expert
CERTIFIED EXPERT
Top Expert 2009
Commented:
On my iPhone I see the dropdown with size 1
I can type text into the text field to select some

Safari mobile
Here is a discussion

https://discussions.apple.com/thread/2637434?threadID=2637434
Richard KortsBusiness Owner / Chief Developer

Author

Commented:
That gives me a clue; it's the size of the select  (# of rows).

Explore More ContentExplore courses, solutions, and other research materials related to this topic.