safari

Safari doesn't display 'alt' text on Images?

<img src="image_that_may_or_may_not_load.png" alt="Show this text if image not loaded" /> Safari doesn't seem to show 'alt' text in case the image is not loaded. I'm not sure about other browsers, but Firefox does show the alternate text. Its so important to display alt text in email templates where the images would be blocked by the ...

top nav menu jumps down in mac safari

hi, http://japaneseplus.com/product.php?subcategoryid=1 Try to move mouse over the top menu and try to select "Products" and see in MAC + Safari, it shifts the text down, PC working fine for all browsers. Any help is appreciated ...

session variables become unset when reloading page

hello, my basic issue: i allow a user login using a form, passed to a verification page, which then registers variables and lastly allows the user (me) to visit the posting page. now, on this posting page i allow a content management system (edit and delete old posts). i do so by displaying results in a div that is formatted with sc...

jQuery works in FF but not in Safari

I have some event handlers that work in FF and not in Safari. Simply put, I have a list of friends, some hard-coded, some pulled in from a database. Clicking on a buddy opens a chat window... this is much like the Facebook chat system. So in Firefox, everything works normally and as expected. In Safari, clicking on buddies that are har...

Return Activetab index for Safari 5 Extension

I'm trying to make an extension that closes all tabs but the active tab for the current window in Safari. I have gotten this far as to close all tabs but index 1. But I need to insert the activetab index and exclude that from the closings. If I get the answer I'd put it in the extension and publish it. <!DOCTYPE HTML> <script> safari.ap...

select box (combo) is not responding

Hello I am using following javacript code $("a.adminlink").click(function(){ $("#bigpopup").fadeIn(); //$("a.activetablink").removeClass("activetablink"); //$("a.tablink[href=" + $(this).attr("href") + "]").addClass("activetablink"); $.get($(this).attr("href"),{},function(response){ $("#tabmenu").html(response.menu); ...

Safari Extension safari.application error

Hi, I'm making an extension for safari I created a context item with command = showNote In debugger I get the follwing error TypeError: Result of expression 'safari.application' [undefined] is not an object on line 8(the last line) are there any things you need to include or call before this works? main.js function showNote(event){...

automatic updates

Hi, I wanted to create an auto upate for my safari extension. i got a update.plist on my webserver and it's in my manifest but for some reason it doesn't work. Can someone explain how i Create the plist file <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyL...

Safari 5 Exentsions

I'm trying to teach myself Safari 5 extensions and I'm new to web development in general. Looking at the sample code, I see: <!DOCTYPE HTML> <script> ... </script> I'm just wondering, what language am I looking at? I see functions and code that almost looks C-like. Apple's documentation says it would be helpful to know HTML, javascrip...

Safari JS cannot parse YYYY-MM-DD date format?

In a project I am working on, I need to validate a date entered into an <input type="date"> With Safari 4/5 (on Mac OSX) the Javascript fails to parse dates of the format YYYY-MM-DD, returning NaN instead of the expected epoch timestamp. I am using the following technique to validate the field just before the form is submitted: //valu...

how to load a css for Safari only ?

hi, how can I load a css file only for Safari browser ? I usually use just this (without javascript) <!--[if IE 8]> <link href="ie8.css" rel="stylesheet" type="text/css" /> <![endif]--> for internet explorer 8. Thanks ...

How to access iPhone Safari History in an App?

Hi Friends, Is there any way to access History of iPhone Safari? Regards, krishnan ...

Website the wrong width on iPhone on iOS4 when saved to Home Screen

I have a website that looks fine when viewed in Safari on an iPhone. In iOS3.x you can save it as an icon to the Home Screen and it opens fine. But in iOS4, while it still looks the correct width in Safari, if you open it direct from a Home Screen icon then it's too wide. I've spent a couple of hours fiddling with various settings of t...

google chrome & maybe others weird layout issue

Hi, I am using a jquery plugin called masonry. In IE & firefox, the site works as it's supposed to. However, in google chrome, the layout elements get stacked on one another. If I click the menu items on the left, then the plugin reloads and the site looks like it's supposed to. So, I think it must be a timing issue. Any thoughts on h...

XMLHttpRequest with special characters in Safari Extension does not work

Im trying to make an extension to Safari that authenticates with http://myphotodiary.com's API. And it works well, for all passwords that dont include special characters like: å,ä,ö and space I have the following code working now: var xmlHttp = new XMLHttpRequest(); var url = "https://api.myphotodiary.com/user_status.json?api_ke...

How do I add a youtube video into my browser using dashcode?

I can't find a way to open just a youtube video with the click of a button using browser template in dashcode. Please help? ...

Develop a website for an iPhone without having iPhone/Mac

Hi, I need to develop a website which will be used exclusively on iPhone and iPad. I don't have those devices, neither do I have a Mac. What are the possible free solutions for me to be able to test the website during development? The most obvious one would be to use an iPhone SDK, but since it costs $100/year but since it is availabl...

iPhone UIWebView/Safari.app iOS 4 video/movie - Server issue?

Hello, I have a UIWebView which loads videos from an external server. The code seems to be fine since it works when I try to host my videos on another server. Are there any changes since iOS 3.0 which the server didn't need to have? (Where it loaded without problems). The easiest way to test it is to load the url in the inbuilt Safari....

Safari iPad : prevent zoom on double-tap

I'm creating a site on Safari for iPad. I need to prevent the zoom on double-tapping event but I have two problems: a double tap doesn’t generate any events, so I can't use "event.preventDefault();" I need to do this only when some conditions are fulfilled, so I can't use the tag "<meta name = "viewport" content = "user-scalable = no">...

Safari 5 Extension Validating Event

I want to Validate this toolbar item if there are more than 2 windows open. I know for tabs event.target.disabled = event.target.browserWindow.tabs.length < 2; works. But event.target.disabled = event.target.browserWindows.length < 2; doesn't. How can I validate so the toolbar item is enabled only if more than one...