Apple Safari and Dotnet

Discussion in 'ASP .Net' started by Edward, Oct 12, 2006.

  1. Edward

    Edward Guest

    Hi All,

    I feel frustrated with one of my Customers who wants me to ensure that a
    dotnet web site I am building for them must be compatible to Apple's Safari
    browser!

    Safari is buggy and it does not support lots of things (xhtml etcc).

    However, what puzzles me is that there are some dotnet Framework 2 web sites
    out there that work perfectly well under Safari, whereas my website does not
    while it is a simple one! I don't know what I am doing wrong and how those
    sites manage to work ok.... so obviously Safari is not a limitation for
    dotnet framework V2.

    Is anyone able to explain to me if there is something that I can do to
    ensure my site works under Safari?

    Thank you so much.

    Edward Re
    Melbourne Australia
     
    Edward, Oct 12, 2006
    #1
    1. Advertising

  2. Can you give more specific information about how your application is
    failing in Safari, and which controls you have used?

    Edward wrote:
    > Hi Again,
    >
    > I forgot to mention that my dotnet framework V2 web site uses the plainest
    > and simplest dotnet code (no javascript nor vb script) yet, it still FAILS
    > to render corrently under Safari! Looks like Safari does not handle too well
    > the <DIV> element!
    >
    > thanks for your precious feedback
    >
    > Edward
    >
    >
    >
    > "Edward" <> wrote in message
    > news:IRrXg.46104$...
    > > Hi All,
    > >
    > > I feel frustrated with one of my Customers who wants me to ensure that a
    > > dotnet web site I am building for them must be compatible to Apple's
    > > Safari browser!
    > >
    > > Safari is buggy and it does not support lots of things (xhtml etcc).
    > >
    > > However, what puzzles me is that there are some dotnet Framework 2 web
    > > sites out there that work perfectly well under Safari, whereas my website
    > > does not while it is a simple one! I don't know what I am doing wrong and
    > > how those sites manage to work ok.... so obviously Safari is not a
    > > limitation for dotnet framework V2.
    > >
    > > Is anyone able to explain to me if there is something that I can do to
    > > ensure my site works under Safari?
    > >
    > > Thank you so much.
    > >
    > > Edward Re
    > > Melbourne Australia
    > >
     
    Chris Fulstow, Oct 12, 2006
    #2
    1. Advertising

  3. Edward

    Edward Guest

    Hi Again,

    I forgot to mention that my dotnet framework V2 web site uses the plainest
    and simplest dotnet code (no javascript nor vb script) yet, it still FAILS
    to render corrently under Safari! Looks like Safari does not handle too well
    the <DIV> element!

    thanks for your precious feedback

    Edward



    "Edward" <> wrote in message
    news:IRrXg.46104$...
    > Hi All,
    >
    > I feel frustrated with one of my Customers who wants me to ensure that a
    > dotnet web site I am building for them must be compatible to Apple's
    > Safari browser!
    >
    > Safari is buggy and it does not support lots of things (xhtml etcc).
    >
    > However, what puzzles me is that there are some dotnet Framework 2 web
    > sites out there that work perfectly well under Safari, whereas my website
    > does not while it is a simple one! I don't know what I am doing wrong and
    > how those sites manage to work ok.... so obviously Safari is not a
    > limitation for dotnet framework V2.
    >
    > Is anyone able to explain to me if there is something that I can do to
    > ensure my site works under Safari?
    >
    > Thank you so much.
    >
    > Edward Re
    > Melbourne Australia
    >
     
    Edward, Oct 12, 2006
    #3
  4. Edward

    Mark Rae Guest

    "Edward" <> wrote in message
    news:IRrXg.46104$...

    > I feel frustrated with one of my Customers who wants me to ensure that a
    > dotnet web site I am building for them must be compatible to Apple's
    > Safari browser!


    I feel your pain! I went through precisely the same thing about a year
    ago...

    > Safari is buggy and it does not support lots of things (xhtml etcc).


    Actually, it isn't, and it does - you just have to know how...

    That said, neither Safari nor Camino support styles on buttons - no-one has
    ever been able to explain to me why this is!
    However, there's no point trying - styles on buttons are simply ignored by
    Safari and Camino.

    > However, what puzzles me is that there are some dotnet Framework 2 web
    > sites out there that work perfectly well under Safari, whereas my website
    > does not while it is a simple one! I don't know what I am doing wrong and
    > how those sites manage to work ok.... so obviously Safari is not a
    > limitation for dotnet framework V2.


    Again, it's not the Framework per se...

    > Is anyone able to explain to me if there is something that I can do to
    > ensure my site works under Safari?


    1 ) Choose the webpage which looks the worst in Safari :)

    2) Add the following code to the page's Page_PreInit method:

    if (Request.Browser.Browser.Contains("Safari"))
    {
    this.ClientTarget = "uplevel";
    }

    How does it look now...?
     
    Mark Rae, Oct 12, 2006
    #4
  5. Edward

    Edward Guest

    sure.... if you have a look at http://www.gbab.net/ under Safari the
    alignment of the <DIV>s to the right of the sidebar and the footer are all
    over the place! The site looks super under Internet Explorer though!

    Is any other info that I can provide for our investigation?

    thanks for your time on this

    Ed


    "Chris Fulstow" <> wrote in message
    news:...
    > Can you give more specific information about how your application is
    > failing in Safari, and which controls you have used?
    >
    > Edward wrote:
    >> Hi Again,
    >>
    >> I forgot to mention that my dotnet framework V2 web site uses the
    >> plainest
    >> and simplest dotnet code (no javascript nor vb script) yet, it still
    >> FAILS
    >> to render corrently under Safari! Looks like Safari does not handle too
    >> well
    >> the <DIV> element!
    >>
    >> thanks for your precious feedback
    >>
    >> Edward
    >>
    >>
    >>
    >> "Edward" <> wrote in message
    >> news:IRrXg.46104$...
    >> > Hi All,
    >> >
    >> > I feel frustrated with one of my Customers who wants me to ensure that
    >> > a
    >> > dotnet web site I am building for them must be compatible to Apple's
    >> > Safari browser!
    >> >
    >> > Safari is buggy and it does not support lots of things (xhtml etcc).
    >> >
    >> > However, what puzzles me is that there are some dotnet Framework 2 web
    >> > sites out there that work perfectly well under Safari, whereas my
    >> > website
    >> > does not while it is a simple one! I don't know what I am doing wrong
    >> > and
    >> > how those sites manage to work ok.... so obviously Safari is not a
    >> > limitation for dotnet framework V2.
    >> >
    >> > Is anyone able to explain to me if there is something that I can do to
    >> > ensure my site works under Safari?
    >> >
    >> > Thank you so much.
    >> >
    >> > Edward Re
    >> > Melbourne Australia
    >> >

    >
     
    Edward, Oct 12, 2006
    #5
  6. Edward

    Edward Guest

    Hello Mark,

    I have made the change to the Pre Init method but I will have to get into
    work first to test it, as I do not have a Mac here at home where I am now!
    Here in Melbourne Ausrtalia it's close to 1AM, so I'll need to wait a few
    hours to see if it works .....

    I am keeping my fingetrs crossed that it works .... and if it does .... I'll
    be a happy chappy! :)

    More to come.

    Cheers

    Ed


    "Mark Rae" <> wrote in message
    news:%...
    > "Edward" <> wrote in message
    > news:IRrXg.46104$...
    >
    >> I feel frustrated with one of my Customers who wants me to ensure that a
    >> dotnet web site I am building for them must be compatible to Apple's
    >> Safari browser!

    >
    > I feel your pain! I went through precisely the same thing about a year
    > ago...
    >
    >> Safari is buggy and it does not support lots of things (xhtml etcc).

    >
    > Actually, it isn't, and it does - you just have to know how...
    >
    > That said, neither Safari nor Camino support styles on buttons - no-one
    > has ever been able to explain to me why this is!
    > However, there's no point trying - styles on buttons are simply ignored by
    > Safari and Camino.
    >
    >> However, what puzzles me is that there are some dotnet Framework 2 web
    >> sites out there that work perfectly well under Safari, whereas my website
    >> does not while it is a simple one! I don't know what I am doing wrong and
    >> how those sites manage to work ok.... so obviously Safari is not a
    >> limitation for dotnet framework V2.

    >
    > Again, it's not the Framework per se...
    >
    >> Is anyone able to explain to me if there is something that I can do to
    >> ensure my site works under Safari?

    >
    > 1 ) Choose the webpage which looks the worst in Safari :)
    >
    > 2) Add the following code to the page's Page_PreInit method:
    >
    > if (Request.Browser.Browser.Contains("Safari"))
    > {
    > this.ClientTarget = "uplevel";
    > }
    >
    > How does it look now...?
    >
     
    Edward, Oct 12, 2006
    #6
  7. Edward

    Mischa Kroon Guest

    Also have a look at this:

    http://slingfive.com/pages/code/browserCaps/

    this can be used to replace the default browser detection code.

    If you want a good idea of what the site looks like in safari you can boot
    up a linux boot cd like knoppix and try looking at the site with konquerer
    which uses an only slightly different browser engine.

    Another option is using:
    http://www.danvine.com/icapture/

    Or another service like it :)




    "Edward" <> wrote in message
    news:8FsXg.46127$...
    > Hello Mark,
    >
    > I have made the change to the Pre Init method but I will have to get into
    > work first to test it, as I do not have a Mac here at home where I am now!
    > Here in Melbourne Ausrtalia it's close to 1AM, so I'll need to wait a few
    > hours to see if it works .....
    >
    > I am keeping my fingetrs crossed that it works .... and if it does ....
    > I'll be a happy chappy! :)
    >
    > More to come.
    >
    > Cheers
    >
    > Ed
    >
    >
    > "Mark Rae" <> wrote in message
    > news:%...
    >> "Edward" <> wrote in message
    >> news:IRrXg.46104$...
    >>
    >>> I feel frustrated with one of my Customers who wants me to ensure that a
    >>> dotnet web site I am building for them must be compatible to Apple's
    >>> Safari browser!

    >>
    >> I feel your pain! I went through precisely the same thing about a year
    >> ago...
    >>
    >>> Safari is buggy and it does not support lots of things (xhtml etcc).

    >>
    >> Actually, it isn't, and it does - you just have to know how...
    >>
    >> That said, neither Safari nor Camino support styles on buttons - no-one
    >> has ever been able to explain to me why this is!
    >> However, there's no point trying - styles on buttons are simply ignored
    >> by Safari and Camino.
    >>
    >>> However, what puzzles me is that there are some dotnet Framework 2 web
    >>> sites out there that work perfectly well under Safari, whereas my
    >>> website does not while it is a simple one! I don't know what I am doing
    >>> wrong and how those sites manage to work ok.... so obviously Safari is
    >>> not a limitation for dotnet framework V2.

    >>
    >> Again, it's not the Framework per se...
    >>
    >>> Is anyone able to explain to me if there is something that I can do to
    >>> ensure my site works under Safari?

    >>
    >> 1 ) Choose the webpage which looks the worst in Safari :)
    >>
    >> 2) Add the following code to the page's Page_PreInit method:
    >>
    >> if (Request.Browser.Browser.Contains("Safari"))
    >> {
    >> this.ClientTarget = "uplevel";
    >> }
    >>
    >> How does it look now...?
    >>

    >
    >
     
    Mischa Kroon, Oct 12, 2006
    #7
  8. Edward

    Edward Guest

    I tried the code below and while it has improved the look and behaviour of
    the menu control, the DIVs are still misbehaving:- they overlap whereas they
    should lay one next to the other!

    I would have thought Safari could understand DIV's being old contructs!

    Help?

    thanks

    Ed


    "Mark Rae" <> wrote in message
    news:%...
    > "Edward" <> wrote in message
    > news:IRrXg.46104$...
    >
    >> I feel frustrated with one of my Customers who wants me to ensure that a
    >> dotnet web site I am building for them must be compatible to Apple's
    >> Safari browser!

    >
    > I feel your pain! I went through precisely the same thing about a year
    > ago...
    >
    >> Safari is buggy and it does not support lots of things (xhtml etcc).

    >
    > Actually, it isn't, and it does - you just have to know how...
    >
    > That said, neither Safari nor Camino support styles on buttons - no-one
    > has ever been able to explain to me why this is!
    > However, there's no point trying - styles on buttons are simply ignored by
    > Safari and Camino.
    >
    >> However, what puzzles me is that there are some dotnet Framework 2 web
    >> sites out there that work perfectly well under Safari, whereas my website
    >> does not while it is a simple one! I don't know what I am doing wrong and
    >> how those sites manage to work ok.... so obviously Safari is not a
    >> limitation for dotnet framework V2.

    >
    > Again, it's not the Framework per se...
    >
    >> Is anyone able to explain to me if there is something that I can do to
    >> ensure my site works under Safari?

    >
    > 1 ) Choose the webpage which looks the worst in Safari :)
    >
    > 2) Add the following code to the page's Page_PreInit method:
    >
    > if (Request.Browser.Browser.Contains("Safari"))
    > {
    > this.ClientTarget = "uplevel";
    > }
    >
    > How does it look now...?
    >
     
    Edward, Oct 13, 2006
    #8
  9. Edward

    Mark Rae Guest

    "Edward" <> wrote in message
    news:QOJXg.46456$...

    >I tried the code below and while it has improved the look and behaviour of
    >the menu control, the DIVs are still misbehaving:- they overlap whereas
    >they should lay one next to the other!
    >
    > I would have thought Safari could understand DIV's being old contructs!


    Hmm - Safari is *VERY* XHTML

    1) Are you writing your markup to XHTML-compliant standards and are you
    using VS.NET 2005 to validate your markup properly?
    Tools, Options, Text Editor, HTML, Validation, XHTML 1.0 / XHTML 1.1

    2) Have you run your rendered markup through the XHTML validator?
    http://validator.w3.org/
     
    Mark Rae, Oct 13, 2006
    #9
  10. Edward

    Edward Guest

    Hello Mark,

    NO LUCK! I have made the page (www.gbab.net/zTest3.aspx) to be XHTML 1.0
    compliant transitional using the http://validator.w3.org/ check syntax
    parser and the necessary adjustments. I have also used the pre_init code
    (this.ClientTarget = "uplevel";) HOWEVER the DIVs are still looking bad!

    I don't understand why!

    Maybe Safari does not apply the CSS properly to the DIVs.

    I am determined to resolve this mystery though, I will keep on trying
    different things.

    Meanwhile, I appreciate immensely your help.

    Edward


    "Mark Rae" <> wrote in message
    news:...
    > "Edward" <> wrote in message
    > news:QOJXg.46456$...
    >
    >>I tried the code below and while it has improved the look and behaviour of
    >>the menu control, the DIVs are still misbehaving:- they overlap whereas
    >>they should lay one next to the other!
    >>
    >> I would have thought Safari could understand DIV's being old contructs!

    >
    > Hmm - Safari is *VERY* XHTML
    >
    > 1) Are you writing your markup to XHTML-compliant standards and are you
    > using VS.NET 2005 to validate your markup properly?
    > Tools, Options, Text Editor, HTML, Validation, XHTML 1.0 / XHTML 1.1
    >
    > 2) Have you run your rendered markup through the XHTML validator?
    > http://validator.w3.org/
    >
     
    Edward, Oct 15, 2006
    #10
  11. Edward

    Mark Rae Guest

    "Edward" <> wrote in message
    news:gQnYg.47595$...

    > NO LUCK! I have made the page (www.gbab.net/zTest3.aspx) to be XHTML 1.0
    > compliant transitional using the http://validator.w3.org/ check syntax
    > parser and the necessary adjustments. I have also used the pre_init code
    > (this.ClientTarget = "uplevel";) HOWEVER the DIVs are still looking bad!
    >
    > I don't understand why!
    >
    > Maybe Safari does not apply the CSS properly to the DIVs.
    >
    > I am determined to resolve this mystery though, I will keep on trying
    > different things.
    >
    > Meanwhile, I appreciate immensely your help.


    A couple of things:

    1) The test page too nearly TWO MINUTES to load! I appreciate that we're at
    opposite sides of the globe, but that's ridiculous!

    2) I (eventually!) loaded the test page in Safari, FireFox, Netscape and
    Opera on the Mac, and they looked pretty much identical - what ever
    rendering problems you think you have are not specifically related to
    Safari, at least, not on my Mac Mini...
     
    Mark Rae, Oct 15, 2006
    #11
  12. Edward

    Edward Guest

    > 1) The test page too nearly TWO MINUTES to load! I appreciate that we're
    > at opposite sides of the globe, but that's ridiculous!

    the page is hosted with www.gate.com ...... and they are in Miami, Florida!

    I pay $US 9 a month and they overload their server by letting too many
    people on ... one of these days I will have to find a better hosting
    provider!

    thanks
     
    Edward, Oct 16, 2006
    #12
  13. Edward

    Mark Rae Guest

    "Edward" <> wrote in message
    news:INTYg.48308$...

    >> 1) The test page too nearly TWO MINUTES to load! I appreciate that we're
    >> at opposite sides of the globe, but that's ridiculous!

    > the page is hosted with www.gate.com ...... and they are in Miami,
    > Florida!
    >
    > I pay $US 9 a month and they overload their server by letting too many
    > people on ... one of these days I will have to find a better hosting
    > provider!


    http://www.hostinguk.net
     
    Mark Rae, Oct 16, 2006
    #13
  14. Edward

    Edward Guest

    I get 1 Gig of disk space and 100 megs of sql server 2005 storage... that is
    why I got hooked!

    "Mark Rae" <> wrote in message
    news:...
    > "Edward" <> wrote in message
    > news:INTYg.48308$...
    >
    >>> 1) The test page too nearly TWO MINUTES to load! I appreciate that we're
    >>> at opposite sides of the globe, but that's ridiculous!

    >> the page is hosted with www.gate.com ...... and they are in Miami,
    >> Florida!
    >>
    >> I pay $US 9 a month and they overload their server by letting too many
    >> people on ... one of these days I will have to find a better hosting
    >> provider!

    >
    > http://www.hostinguk.net
    >
     
    Edward, Oct 17, 2006
    #14
  15. Edward

    Mark Rae Guest

    "Edward" <> wrote in message
    news:EnUYg.48325$...

    >I get 1 Gig of disk space and 100 megs of sql server 2005 storage... that
    >is why I got hooked!


    Wow! All that disk space and database storage...

    I'm sure that'll be of great comfort to the people browsing your site while
    they're waiting forever for your pages to load...
     
    Mark Rae, Oct 17, 2006
    #15
  16. Edward

    Edward Guest

    Hi All,

    Looks like the http://validator.w3.org/ does not validate (to XHTML 1.1)
    the ASP Image construct.

    Or am I wrong?

    thanks




    "Mark Rae" <> wrote in message
    news:...
    > "Edward" <> wrote in message
    > news:QOJXg.46456$...
    >
    >>I tried the code below and while it has improved the look and behaviour of
    >>the menu control, the DIVs are still misbehaving:- they overlap whereas
    >>they should lay one next to the other!
    >>
    >> I would have thought Safari could understand DIV's being old contructs!

    >
    > Hmm - Safari is *VERY* XHTML
    >
    > 1) Are you writing your markup to XHTML-compliant standards and are you
    > using VS.NET 2005 to validate your markup properly?
    > Tools, Options, Text Editor, HTML, Validation, XHTML 1.0 / XHTML 1.1
    >
    > 2) Have you run your rendered markup through the XHTML validator?
    > http://validator.w3.org/
    >
     
    Edward, Oct 19, 2006
    #16
  17. Edward

    Mark Rae Guest

    "Edward" <> wrote in message
    news:djzZg.49511$...

    > Looks like the http://validator.w3.org/ does not validate (to XHTML 1.1)
    > the ASP Image construct.


    You mean, surely, the HTML rendered by ASP.NET from the <asp:Image>
    control...?

    > Or am I wrong?


    Er, who knows? What was the HTML you were trying to validate? What response
    did the validator give you?
     
    Mark Rae, Oct 19, 2006
    #17
  18. Edward

    Edward Guest

    Hi Mark,

    I was validating http://www.gbab.net/default.aspx with the error:-
    Error Line 86, column 110: required attribute "alt" not specified .


    The problem is that the original Dotnet source code being:-
    <asp:Image ID="Image1" runat="server"
    ImageUrl="App_Themes/Ed/Images/gbab_writing.gif" />

    got translated to :-

    <img id="ctl00_Image1" src="App_Themes/Ed/Images/gbab_writing.gif"
    style="border-width:0px;" />Without the ALT element. But it's not possible
    for me to specify the ALT element in the ASP Image control, as it is not
    part of the ASP syntax.

    The solution is that I can always use the <img> rather that <asp:Image>
    however I am surprised that the <asp:Image control is not XHTML 1.1
    compliant.

    Thanks

    Edward Re
    Melbourne - Down Under


    "Mark Rae" <> wrote in message
    news:...
    > "Edward" <> wrote in message
    > news:djzZg.49511$...
    >
    >> Looks like the http://validator.w3.org/ does not validate (to XHTML 1.1)
    >> the ASP Image construct.

    >
    > You mean, surely, the HTML rendered by ASP.NET from the <asp:Image>
    > control...?
    >
    >> Or am I wrong?

    >
    > Er, who knows? What was the HTML you were trying to validate? What
    > response did the validator give you?
    >
     
    Edward, Oct 19, 2006
    #18
  19. Edward

    Mark Rae Guest

    "Edward" <> wrote in message
    news:DXzZg.49532$...

    > I was validating http://www.gbab.net/default.aspx with the error:-
    > Error Line 86, column 110: required attribute "alt" not specified .
    >
    > The problem is that the original Dotnet source code being:-
    > <asp:Image ID="Image1" runat="server"
    > ImageUrl="App_Themes/Ed/Images/gbab_writing.gif" />
    >
    > got translated to :-
    >
    > <img id="ctl00_Image1" src="App_Themes/Ed/Images/gbab_writing.gif"
    > style="border-width:0px;" />


    Well, it would do... That's what you wrote...

    > Without the ALT element.


    Again, ASP.NET is doing exactly what you told it to do...

    > But it's not possible for me to specify the ALT element in the ASP Image
    > control, as it is not part of the ASP syntax.


    I really think you should consider going on a beginner's course to ASP.NET
    to learn the basics, otherwise you're going to continually come up against
    this sort of problem due to fundamental lack of knowledge of the development
    tools you're trying to use.

    > The solution is that I can always use the <img> rather that <asp:Image>


    No - the solution is to specify he AlternateText property of the <asp:Image>
    tag...

    <asp:Image ID="Image1" runat="server"
    ImageUrl="App_Themes/Ed/Images/gbab_writing.gif" AlternateText="RTFM" />
     
    Mark Rae, Oct 19, 2006
    #19
  20. Edward

    Edward Guest

    > I really think you should consider going on a beginner's course to ASP.NET
    > to learn the basics, otherwise you're going to continually come up against
    > this sort of problem due to fundamental lack of knowledge of the
    > development tools you're trying to use.

    good point, but I am not earning enough to afford one at the moment. I lost
    my job recently when my IT role went to an Indian IT provider (Infosys)! The
    web site I was having problems running it under Safari for a charity
    organization ..... I got no money for it...
     
    Edward, Oct 20, 2006
    #20
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman
    Replies:
    1
    Views:
    1,372
    smith
    Dec 8, 2004
  2. =?Utf-8?B?UlRSSw==?=

    Web handlers and Apple Safari

    =?Utf-8?B?UlRSSw==?=, Jun 28, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    478
    =?Utf-8?B?UlRSSw==?=
    Jun 28, 2005
  3. Edward

    Dotnet under Apple Safari browser

    Edward, Oct 16, 2006, in forum: ASP .Net
    Replies:
    16
    Views:
    776
    John Timney \(MVP\)
    Oct 18, 2006
  4. Replies:
    3
    Views:
    603
  5. Pedro Vera

    .net 2.0 forms authentication and Apple Safari

    Pedro Vera, Mar 27, 2009, in forum: ASP .Net Security
    Replies:
    2
    Views:
    894
    Serhat Albayoglu
    Feb 6, 2010
Loading...

Share This Page