+ Start a Discussion
vanessenvanessen 

winter 15 issue - clicking done show a blank page instead of my data

On my vf page running in IOS (salesforce1), when I type in a search box, i execute a search and display a list of accounts, but when we moved to winter 15 or new version of salesforce1 for IOS, when i clicked in the search box, it proposes natively some text. I have to click on done to hide the keyboard which take much of my screen. But when i do this, my page become blank. Doest anyone having this issue?
Best Answer chosen by vanessen
vanessenvanessen
I was reported as a know issue with sample code to avoid this from salesforce :

(function(){
            try{
                var a=navigator.userAgent;
                if((a.indexOf('Salesforce')!=-1)
                    &&(a.indexOf('iPhone')!=-1
                    ||a.indexOf('iPad')!=-1)
                    &&(a.indexOf('OS/8')!=-1
                    ||a.indexOf('OS 8')!=-1)
                    &&(a.indexOf('Safari')==-1))
                    {
                        var s=document.createElement('style');
                        s.innerHTML="html,html body{overflow: auto;-webkit-overflow-scrolling:touch;}body{position:absolute;left:0;right:0;top:0;bottom:0;}";
                        document.getElementsByTagName('head')[0].appendChild(s);
                    }
            }
            catch(e){
            }
        })();

All Answers

Gaurav KheterpalGaurav Kheterpal
This looks similar to this (https://success.salesforce.com/issues_view?id=a1p30000000T5l1AAC) known issue. More details available here (http://openradar.appspot.com/radar?id=2527401)

If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker
vanessenvanessen
For my case, it's not on long press. Its whenever I execute an action (typing in textbox, clicking a button)
vanessenvanessen
I was reported as a know issue with sample code to avoid this from salesforce :

(function(){
            try{
                var a=navigator.userAgent;
                if((a.indexOf('Salesforce')!=-1)
                    &&(a.indexOf('iPhone')!=-1
                    ||a.indexOf('iPad')!=-1)
                    &&(a.indexOf('OS/8')!=-1
                    ||a.indexOf('OS 8')!=-1)
                    &&(a.indexOf('Safari')==-1))
                    {
                        var s=document.createElement('style');
                        s.innerHTML="html,html body{overflow: auto;-webkit-overflow-scrolling:touch;}body{position:absolute;left:0;right:0;top:0;bottom:0;}";
                        document.getElementsByTagName('head')[0].appendChild(s);
                    }
            }
            catch(e){
            }
        })();
This was selected as the best answer