By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,825 Members | 1,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,825 IT Pros & Developers. It's quick & easy.

Apple Safari and Dotnet

P: n/a
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
Oct 12 '06 #1
Share this Question
Share on Google+
21 Replies


P: n/a
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 <DIVelement!

thanks for your precious feedback

Edward

"Edward" <aR******@hotmail.comwrote in message
news:IR*******************@news-server.bigpond.net.au...
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

Oct 12 '06 #2

P: n/a
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 <DIVelement!

thanks for your precious feedback

Edward

"Edward" <aR******@hotmail.comwrote in message
news:IR*******************@news-server.bigpond.net.au...
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
Oct 12 '06 #3

P: n/a
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" <ch**********@hotmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
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 <DIVelement!

thanks for your precious feedback

Edward

"Edward" <aR******@hotmail.comwrote in message
news:IR*******************@news-server.bigpond.net.au...
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

Oct 12 '06 #4

P: n/a
"Edward" <aR******@hotmail.comwrote in message
news:IR*******************@news-server.bigpond.net.au...
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...?
Oct 12 '06 #5

P: n/a
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" <ma**@markNOSPAMrae.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
"Edward" <aR******@hotmail.comwrote in message
news:IR*******************@news-server.bigpond.net.au...
>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...?

Oct 12 '06 #6

P: n/a
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" <aR******@hotmail.comwrote in message
news:8F*******************@news-server.bigpond.net.au...
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" <ma**@markNOSPAMrae.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>"Edward" <aR******@hotmail.comwrote in message
news:IR*******************@news-server.bigpond.net.au...
>>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...?


Oct 12 '06 #7

P: n/a
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" <ma**@markNOSPAMrae.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
"Edward" <aR******@hotmail.comwrote in message
news:IR*******************@news-server.bigpond.net.au...
>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...?

Oct 13 '06 #8

P: n/a
"Edward" <aR******@hotmail.comwrote in message
news:QO*******************@news-server.bigpond.net.au...
>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/
Oct 13 '06 #9

P: n/a
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" <ma**@markNOSPAMrae.comwrote in message
news:OQ**************@TK2MSFTNGP04.phx.gbl...
"Edward" <aR******@hotmail.comwrote in message
news:QO*******************@news-server.bigpond.net.au...
>>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/

Oct 15 '06 #10

P: n/a
"Edward" <aR******@hotmail.comwrote in message
news:gQ*******************@news-server.bigpond.net.au...
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...
Oct 15 '06 #11

P: n/a
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
Oct 16 '06 #12

P: n/a
"Edward" <aR******@hotmail.comwrote in message
news:IN*******************@news-server.bigpond.net.au...
>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
Oct 16 '06 #13

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

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl...
"Edward" <aR******@hotmail.comwrote in message
news:IN*******************@news-server.bigpond.net.au...
>>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

Oct 16 '06 #14

P: n/a
"Edward" <aR******@hotmail.comwrote in message
news:En*******************@news-server.bigpond.net.au...
>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...
Oct 16 '06 #15

P: n/a
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" <ma**@markNOSPAMrae.comwrote in message
news:OQ**************@TK2MSFTNGP04.phx.gbl...
"Edward" <aR******@hotmail.comwrote in message
news:QO*******************@news-server.bigpond.net.au...
>>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/

Oct 18 '06 #16

P: n/a
"Edward" <aR******@hotmail.comwrote in message
news:dj*******************@news-server.bigpond.net.au...
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?
Oct 19 '06 #17

P: n/a
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 <imgrather 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" <ma**@markNOSPAMrae.comwrote in message
news:ev**************@TK2MSFTNGP02.phx.gbl...
"Edward" <aR******@hotmail.comwrote in message
news:dj*******************@news-server.bigpond.net.au...
>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?

Oct 19 '06 #18

P: n/a
"Edward" <aR******@hotmail.comwrote in message
news:DX*******************@news-server.bigpond.net.au...
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 <imgrather 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" />
Oct 19 '06 #19

P: n/a
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...
Oct 20 '06 #20

P: n/a
"Edward" <aR******@hotmail.comwrote in message
news:xk*******************@news-server.bigpond.net.au...
>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.
These might help...
http://www.amazon.com/ASP-NET-Dummie...e=UTF8&s=books
http://www.amazon.com/ASP-NET-Everyd...375962?ie=UTF8
http://www.amazon.com/ASP-NET-One-Re...375962?ie=UTF8
Oct 20 '06 #21

P: n/a
ASPv2 4 Dummies + Newsgroups = (Semi) Professional Developer

That's me :-)

thanks

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:e4**************@TK2MSFTNGP02.phx.gbl...
"Edward" <aR******@hotmail.comwrote in message
news:xk*******************@news-server.bigpond.net.au...
>>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.

These might help...
http://www.amazon.com/ASP-NET-Dummie...e=UTF8&s=books
http://www.amazon.com/ASP-NET-Everyd...375962?ie=UTF8
http://www.amazon.com/ASP-NET-One-Re...375962?ie=UTF8

Oct 20 '06 #22

This discussion thread is closed

Replies have been disabled for this discussion.