Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS7 ASP.NET Ajax Win2008-R2 , +
Hi All,
 
I have a problem where an enterprise web user utilizes a ipad ( safari browser ) to connect to our intranet and browse pages. The page is a simple collection of cascading dropdowns which populate a list which then populates a small section of the page with data and a image.
 
My problem comes in that I have placed segments of the page within update panels and configured asynch triggers for the controls. The whole page works beautifully under other browsers but fails dismally under Safari with regards to the partial postbacks and asynch responses. Googling around the net, I came across the main work around recommend as the issue appears to revolve around the safari browser and its behavior. The resolution is basically to force the Ajax toolkit to utilize webkit scripts when responding. To that end I added the following recommended snippets of code:
 
Sys.Browser.WebKit = {}; //Safari 3 is considered WebKit
if (navigator.userAgent.indexOf('WebKit/') > -1) {
    Sys.Browser.agent = Sys.Browser.WebKit;
    Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
    Sys.Browser.name = 'WebKit';
}
 
and in my page:
 
 <asp:ToolkitScriptManager ID="scripts" runat="server" ScriptMode="Release" EnableHistory="true" 
EnableSecureHistoryState="false" EnablePageMethods="True" CombineScripts="true">
    <Scripts>
        <asp:ScriptReference Path="~/Scripts/IpadWorkAround.js" />
    </Scripts>
 
Most responses have found this to work and I got it to work on my dev machine with a installed safari browser. The problem I have now, is that when I deploy to our production environment, the site behaves as if the fix doesn't exist. I've restarted both the site and it's application pool,even restarted the server as well.
 
Does anyone have any ideas of whats wrong? Am I missing something maybe in my IIS config on the box that my dev environment has? I've also tried the obvious of clearing the safari browser cache, history etc as well.
Posted 22-Sep-11 1:08am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 22 Sep 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100