safari

Video Player Plugin Development for Internet Explorer and Safari

Hello, We are planning to develop a browser plugin for IE and Safari to stream video in a proprietary video Player. We are investigating for the required technologies and various design approaches. Could someone help by answering the following questions? What are the various aspects we need to focus while designing the plugin? What i...

Webkit won't let me set marker in input field

I have a input field for signing up to a newsletter. When I have entered some text and try to click between some of the letters webkit (Safari and Chrome) won't set the cursor there. I can only highlight the text. I'm running a couple of javascripts on it (overlabel and validation), which I'm assuming is fault. That, or it's the absolut...

Safari Extensions and settings

I have a setting that has the following elements: Type: Text fieldTitle: TopKey: topcolour Default value: #00FF00 I can't figure out how to get this data from inside javascript, I am trying to use var colour = safari.extension.settings.topcolour; but this is not working, am I doing this right, am I forgetting something? ...

Webkit Develop Inspektor show long strings

When i debug javascript in webkit browser(f.e. Safari), often i have some string variables and value of these variables are often very long, webkit make it shorter with "..." at the end, but i want to see all value of this variables, how can i do this? ...

default textbox appearance in firefox/safari

Firebug claims that an unstyled textbox is border: 3px inset #F0F0F0; However, <input type="textbox" style="border: 3px inset #F0F0F0;" /> and <input type="textbox" /> produce very different looking borders. What's going on here? This is true in Safari, Chrome, and Firefox—I don't have IE though, so I dunno about that. ...

JQuery Thickbox Ajax Loader Bug in Chrome/Safari

I know it's an old JQuery library, but I am still using Thickbox 3.1 throughout my site. On Chrome and Safari, when you click a thickbox link, the iframed page pops up, but there is no preloader image. It goes directly to the page and waits on the popup until it loads. This becomes a problem when the popup is loading a lot of content and...

iPhone/Safari: How can I continue to execute javascript while in sleep mode?

Many posts address this for iPhone apps, but I need to know how to do this for javascript on a web page. My specific problem is that I want to track the device's location over a long period of time (say a car trip). This becomes a problem when the device sleeps (and maybe during a phone call, I haven't tried that case yet). I'm open to...

jQuery ajax function not working in Safari (Firefox, Chrome, IE okay)

I'm no javascript wiz, but am a bit puzzled as to how this is working in three major browsers, but not Safari... is there something wrong with this code? Basically I'm just using this in conjunction with a php/mysql callback at the given url to track link clicks. Drupal.behaviors.NodeDownloadCounter = function() { $('a.ndc-link').c...

Safari Extension, Fluid App

I've written a simple extension for Safari that captures clicks on the RSS button in the address bar (calls to the feed:// protocol) and redirects to Google Reader instead of Safari's feed reader. If, however, the user has a Fluid app (one that opens Google Reader) set as their default feed reader the intercept doesn't work. Is there an...

CSS background-position not working in Mobile Safari (iPhone/iPad)

I have an issue with background-position in mobile safari. It works fine on other desktop browsers, but not on iPhone or iPad. body { background-color: #000000; background-image: url('images/background_top.png'); background-repeat: no-repeat; background-position: center top; overflow: auto; padding: 0px; margin: 0px; font-family...

Can safari/chrome/opera make ajax requests while an upload is in progress?

Basically i am making a simple ajax request function upload(){ setInterval(function callMeOften() { $.ajax({ method: 'get', url : 'uploadinfo.php?unique_id=<?php echo $some_uniq_id; ?>', dataType : 'text', success: funct...

problem with click event?

In this code have button and anchor with click event. alert(document.getElementById("btn").click); //not working in safari alert(document.getElementById("btn1").click); // is working in safari I want to execute anchor's click event What I do? -----------------------Code----------------------------- < script type="text/javascript"> func...

Safari extension running injected javascript multiple times

So I have copied the code from the following example on the Apple Developer site. http://developer.apple.com/safari/library/documentation/Tools/Conceptual/SafariExtensionGuide/MessagesandProxies/MessagesandProxies.html#//apple_ref/doc/uid/TP40009977-CH14-SW1 When I run the extension, it runs normally except the injected script is run 3...

safari returning value "normal" for "line-height" style

Here is my problem : when i call document.defaultView.getComputedStyle(Node, "").getPropertyValue("line-height") safari returns the string "normal" when no line-height is specified, whereas firefox always returns the value in pixels. This poses me a big problem, especilly because I didn't found a reliable formula to get the numeric va...

Possible to access hardware, perhaps via extension, from Safari on iOS

We've got a scenario where we need to interact with some hardware from a web page -- think ActiveX. In this instance we want to read/write to a specific model of bar code reader. Is this currently possible on iOS? We're targeting iPad (despite neither of us having previously developed for Apple products...) but it would be nice to have ...

Box position after webkit-transform rotation

Does anyone know how to get the displayed top left hand corner of a rotated box after using a rotation with webkit-transform? So, for example, I draw a box ask for the top left corner, rotate the box 270 degrees for example, then how to I query for the position of the "new" top left corner, which in this case is effectively the original...

How can I show NSSearchField menu programmatically?

I want to implement an NSSearchField showing search results similar to Safari's, but I cannot figure out how to show the menu programmatically. Any pointers would be greatly appreciated. Update: I tried doing this programmatically by calling @-performClick:@ on the @NSButtonCell@ object that represents the search button inside the searc...

Prevent Safari from losing selected text in the body on button click

I have an application that passes any selected body text to a text-2-speech server (via ajax) when a "Say It" button in the parent window is clicked; the selected text is in an iframe. The selection works on Firefox 3.6 and IE 8, but not Safari 5 (have not tried any others; thats our supported browser list). In Safari, whenever the bu...

window.open in javascript?

<head> <script language="javascript" type="text/javascript"> function openMe() { var win = window.open("about:blank"); var str=""; for(var a in win){ str+=a+"<br/>"; } document.getElementById("data").innerHTML = str; win.document.write("Karandeep Singh"); } </script> </head> <body> <div> <inp...

CSS3 column-span property does not supported in Safari. Why ?

I need to flow my text in two columns. CSS3 is't fully implemented by all browsers, and i expected, that this property is called -webkit-column-span: all But, i faced a little problem - Safari 5 does not supports this feature ? I think, some reason should exists, why Apple has dropped this feature ... Maybe they are some alternativ...