safari

Is it possible to set proxy settings in a Safari Extension?

As Apple introduce extension support in Safari 5, I want to make an extension that manage proxy settings directly in the browser (like AutoProxy for Firefox or Proxy Switchy for Chrome). I skimmed the source code of Proxy Switchy. It is mainly written in Javascript/HTML, but uses an external binary bundle to do proxy switching. Is this ...

Updating a Safari Extension?

Hi there, I'm writing a simple Safari Extension, and I'm trying to figure out how to get the update mechanism working. Apple's documentation here is delightfully vague: http://developer.apple.com/safari/library/documentation/Tools/Conceptual/SafariExtensionGuide/UpdatingExtensions/UpdatingExtensions.html And here's my manifest, based...

Enabling debug menu in Safari for Windows

I found plenty of info on this for Safari 3, but things have evidently changed in version 4. I just happened to stumble upon the answer by experimenting, so posting it here for others. ...

Fixed background on iPhone Safari

iPhone Safari seems to have some sort of problem whereby a page with css like this: body { background: #000 url(fixedimage.png) fixed repeat-x; } ...doesn't actually lead to a fixed image. It scrolls as the user scrolls. I've seen plenty of people kvetching about this on the internets, but no real solution. Does anyone have any id...

writing an extension for Safari 5

As of Monday 7th June 2010 Safari (v5) supports Extensions. Some already exist such as the Gmail Checker & the upcoming Coda Notes by Panic. So my question... Where would one begin if one intends to develop an application for Safari 5? Thanks in advance for any feedback! ...

jCarousel jQuery plugin - how to stop items being selected on double click

I'm trying to stop items being selected when the next button is clicked in the jCarousel plugin. To see what I mean, have a look at this demo and double click the next arrow... jCarousel demo I tried this code and it seems to work for IE and Mozilla but it doesn't work for Safari or Chrome... /** * Fix carousel selection * http://...

Tinymce Line break problem on Safari and Chrome

Hello all, Does anyone know how to fix the problem about Tinymce Line break problem on Safari and Chrome. For example, Let's say, I have two line pure text. When I copy and paste through firefox or IE. It's under one p tag. So it's same formatting i saw in the text file which is two line. But if i copy and paste through Chrome or Fir...

getting the url of the page and the url of the selected hyperlink

Hi This is pretty hard to explain but i'll give it a shot. Working with Safari to create an extension as is now possible with Safari 5 - how would I go about getting the URL of the current page with using JavaScript and the Safari API? I would also like to be able to get a hyperlink that is selected. For instance in Safari when you r...

select option in Safari ?

< select size="2" multiple> < option value="1">1< /option> < option value="2">2< /option> < option value="3">3< /option> < option value="4">4< /option> < option value="5">5< /option> < option value="6">6< /option> < option value="7">7< /option> < option value="8">8< /option> < option value="9">9< /opti...

Rendering borders bug in Safari mobile

Hi, I am having strange rendered borders on elements that have no borders at all in Safari Mobile? Any idea on what can cause the problem? I was not able to find a solution. Thanks in advance for your help. ...

iPhone Safari Vs PC Safari

This js-code works in safari on my pc, but not on a ipod touch safari (has also tested it on a iphone - still not working). $(document).ready(function(){ $.ajax({ type: "GET", url: "list.xml", dataType: "xml", cache: false, success: function...

Need help with jQuery/AJAX call in Safari/Mac

I've got something that works perfectly in FF and MSIE but it's not working properly in Safari. It's a form with selects that get updated via AJAX/jQuery from a MySQL DB. In Safari, when you select the first item, it correctly loads the options for the next select menu; however, when you choose one of those (which loads new options in a...

Safari does not show images, but FireFox does

I have a website that I am working on: http://keramed.com in FireFox on my Mac the image on the main page shows up. (The Endoshield DSEK Graft Injector) Now check in Safari and the image does not show up. I have tried taking the original .PSD and saving it as a .jpg or .png and it does not matter. I have commented out all stylesheets...

scrollMaxX for safari

Hi, I was wondering if anyone knows if there is an equivalent to the firefox function scrollMaxX that works also in safari maybe in some framework or something? scrollMaxX gives you the space in pixels of the current page that is outside of the browser window. so for example if a page is 200 pixels wide and the browser window is set to ...

Safari extensions: style of selectbox like safari's bookmark folders

Hey guys, I'm developing an extension for Safari 5 at the moment. In my extension, I use an additional toolbar, with selectboxes in it. Now, it would be great to style these like the folders in the bookmarks toolbar look. I know that it would be possible to replace my select with a completely styleable ul-list or somethin like that, b...

Safari anchors on links not working.

My html anchor is as follows. <a name="template-8"/> <h4 class="template" id="template-8">A title</h4> As far as I know the browser should skip to the element with a matching name or id attribute. When I type in the url http://my.site.com/templates#template-8 safari jumps down the page as expected. However when linking as below the...

iPad Safari blogs?

What are some of the best blogs where there's a high-concentration of Safari programmers discussing the nuances of iPad Safari? ...

Chrome and Safari strange behaviour in Javascript

Hi, i've written this peace of code: var a=function(){ }; a.name="test"; a.prop="test2"; Now if i debug the code with the console: console.log(a.name); console.log(a.prop); In Firefox i get a.name="test" and a.prop="test2", while in Safari and Chrome i get a.prop="test2" but a.name="". It seems that there's no way to assign a "na...

Losing Safari toolbar icons

(Crossposted to Macrumors forums) I am running Safari 5 with LastPass, Web Snapper, CosmoPod, and Saft installed. My toolbar shows the LastPass, Web Snapper, and CosmoPod icons on the far right end. If I quit Safari and restart, the LastPass icon will be missing. I will have to reinstall it by customizing the toolbar. This happens eve...

Safari 5 vs. Safari 4 : Are there any compatibility differences?

I recently obtained a Mac so I could test our sites on Safari and Firefox for Mac OS. Now that Safari 5 is out, I'm not sure what I should do about upgrading. I presume what works on Safari 5 works on Safari 4, but I can't be sure, and vice versa. So, I don't know if I should upgrade and test on Safari 5 or keep on with Safari 4. Are ...