safari

Validation of viewstate MAC failed in Safari

Hi I have a web app using forms authentication. When I perform the following steps Let the login cookie expire Click on a link that requires a logged in user The user is redirected to the login page Click the browser back button The user is redirected to the login page again Log in using a valid username/password I get this exceptio...

Safari image rendering bug

Has anybody else encountered this. Whenever the images are intially loaded by the browser it only shows the last-half of the image. Then when I mouse over anywhere in the green section it immediately displays the rest of the image. What you're seeing here is a <div> with a background-image and a <img> located within said <div>. I'm e...

Safari is returning incorrect width using jQuery

Here is the problematic part of my jQuery var tickerWidth = 0; var padding = 10; firstList.find('li').each(function() { $(this).append(' &mdash;'); tickerWidth += $(this).width() + padding; $('body').prepend($(this).width() + '<br />'); }); firstList is a variable that holds an ul elemen...

Safari browser won't display Error 401 page.

I'm using Apache 2 and have a custom 401 page, in httpd.conf ErrorDocument 401 /error/unauthorized.html When I access a protected resource, all browsers show the basic http authentication dialog. If I click "cancel", all browsers but Safari (v3 and v4) will display the custom 401 page. Safari just displays the current page. Is there ...

Can I prevent mobile safari from auto-rotating the screen on ipod touch or iphone?

We have a web app that is being developed. It will be used on an ipod touch that is built into a tabletop. As it is basically horizontal, the ipod keeps changing its mind about which way up it is and keeps switching the orientation of the browser. Is there a way to ask it to stop doing that? If not, is there an alternative browser that ...

iphone safari http address word break

Hi, is there a way to "word break" a long http address in iphone safari? Currently with a long http address: i.e. h t t p://long/website/address/to/be/displayed/on/iphone/safari safari will render it in one line, thus affecting the page and the other contents where user has to scroll horizontally now. is there a way for safari to dis...

Page.User.Identity.IsAuthenticated return always false in safari

I am using DotNetOpenId and Asp.NET MVC. I have the following problem: When using IE not problem I can login and when I check the Page.User.Identity.IsAuthenticated I get true. If I test this in Safari for Windows the Page.User.Identity.IsAuthenticated is false. If I use Safari in Mac I can Login without a problem. Any Idea? What Other...

Safari - showing expired .NET Page

We have a strange problem in Safari. When the user logs out of our Web Application we expire the forms authentication with the following FormsAuthentication.SignOut(); Session.Abandon(); This works fine in IE and Firefox (when the user hits the back button they are presented with a page expired message and are forced to login) but ...

How to detect cookie enabled in Safari 4 Beta

Safari 4 Beta on Windows (build 528.17) has a bug. If expires is in value assigned to document.cookie, cookie is not changed. So, below cookie enable detection doesn't work anymore. var dt = new Date(); dt.setSeconds(dt.getSeconds() + 2); document.cookie = "cookietest=1; expires=" + dt.toGMTString(); var cookiesEnabled = document.cooki...

Safari doesn't allow AJAX Requests after form submit?

I am writing a Javascript based upload progress meter. I want to use the standard multipart submit method (rather than submitting the file in an iframe). During the submit, I send ajax requests that return the % complete of the upload and then update the progress meter accordingly. This all works smoothly in FireFox & IE. However, Safa...

CSS page-break-after within table in Safari?

I want each row of a table to be printed (media="print", not "screen") on separate page. So my HTML looks like this: <table> <tr style="page-break-after: always;"> <td><p>Page 1</p></td> </tr> <tr style="page-break-after: always;"> <td><p>Page 2</p></td> </tr> </table> The page break works in Firefox and IE ...

WML-like solution for iPhone

We are developing a web application that should be accessible from a mobile phone. It involves a simple text-only tree catalog. To avoid extra round-trips to the server to expand the tree items as you click on them, I decided to use WML. It allows preloading multiple <card>'s in one document and fast browsing between these <card>'s. ...

Firing a Keyboard Event in JavaScript

I'm trying to simulate a keyboard event in Safari using JavaScript. I have tried this: var event = document.createEvent("KeyboardEvent"); event.initKeyboardEvent("keypress", true, true, null, false, false, false, false, 115, 0); ...and also this: var event = document.createEvent("UIEvents"); event.initUIEvent("keypress", true, true,...

Certain sIFR Selectors not working in Safari--extremely unusual bug:

I am creating a site, CardinalCoffee.com, using sIFR. It's not quite ready to go, so access by adding 72.249.85.228 cardinalcoffee.com 72.249.85.228 www.cardinalcoffee.com to your /etc/hosts (C:\WINDOWS\system32\drivers\etc\hosts on Windows). On the blog page (http://cardinalcoffee.com/blog/), and only on the blog page, certai...

CakePHP Auth Component "login" Method Failure in IE8 + Safari

I have a method in users_controller.php of my CakePHP project which is used to remotely log a user in through an AJAX call on a WordPress site. The method works flawlessly when called through Firefox, but when I attempt to call it either via AJAX or directly from the browser in IE8 or Safari, it simply will not log in. The Auth->login() ...

br line-height in safari and chrome leaving gap

In my HTML I have a div and inside the div I have different vertical spacing between lines of text. I achieve this by using breaks and defining the height, i.e. <br /><br class="height5" /> or height2 or height10 or whatever. In my stylesheet I define it like: br.height2 {line-height:2px;} br.height5 {line-height:5px;} This is worki...

How to enable top tabs in Safari 4

In the beta versions of Safari 4, the tabs were displayed in the title bar of the window. When Apple released Safari 4 final, they repositioned the tabs to the usual place since Most of the users didn't like the top tabs. Anyway, I liked them very much. Is it possible to reenable the top tabs in Safari 4 final? ...

Safari and ASP.NET AJAX PageRequestManager.add_endRequest Function Not Always Firing

Here's the background info first. ASP.NET 2.0 Web Site with AJAX Extensions 1.0. I have a weird issue that only occurs in Safari and I can only assume Chrome as well since they both use WebKit. I also use jQuery in the site, but currently the reference to jQuery is only loaded on one page so I don't think this is the issue. I have a f...

Display image from local disk in safari

I have this tag in my page that runs on localhost:3000 <img id="img1" src="file:///Users/michal/Desktop/Picture 1.png" width="400" height="200"> image do exists but it is not displayed. if i put path from src attribute into address bar image is loaded but it doesn't work in img tag not even in iframe tag. I'm using Safari 4 on Mac. Am I ...

Flash zooms in when users zooms in browser

I have a feature on my site that is having issues on browsers that have the page zoomed in. When someone that wants to see the text larger zooms in the page with the browser, it zooms in the flash instead of resizing it, so it makes it unusable. Is there a way to keep this from happening, or is it just a bug with the browsers? ...