Hi there,
I am working on an iPhone version of a website, and I am using jQuery .animate() with the scrollTop attribute to scroll to different sections of the page.
Something like so:
$('html,body').animate({ scrollTop: distance }, 300);
On regular web browsers, the scrolling starts from the current window position to the desir...
I'm in the process of building my first Safari extension--a very simple one--but I've run into a couple of problems. The extension boils down to a single, injected script that attempts to bypass the native feed handler and redirect to an http:// URI. My issues so far are twofold:
The "whitelist" isn't working the way I'd expect. Since ...
Do anyone know how to improve response time of panning (using one finger gesture) handled using JavaScript in Safari on iPad/iPhone
...
I have a weird problem and I find no answer on google... I dynamically create and fullfil an iframe with jquery on a page. It works fine withFF and IE, but not with Safari.
The iframe is created but empty (the message "greetings from the iframe !" is missing).
Here is a piece of code to illustrate it :
<!DOCTYPE html PUBLIC "-//W3C//DT...
Hi,
I'm currently working on an Extension for Safari 5 and I want to run a listener function whenever Settings changes are made. Apple provides an example for that, but it doesn't work for me. I currently have this listener function in my global html file:
function numberChanged()
{
if(event.key == "number")
alert("Numbe...
On browser close or F5, I have to perform some code on server side
For this I have a button. On click of that button which has onclientclick and onclick functions written. I also wrote an event on window.onbeforeunload which does a button.click().
window.onbeforeunload=function(e)
{
button.click()
}
My problem is that this runs t...
The following markup when viewed in Safari on Iphone and Ipad displays the body background color for 1 pixel between the two tables. What is this and how do I stop it?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtm...
I've got this in the <head>:
<script>
function log(event){
var Url = "./log.php?session=<?php echo session_id(); ?>&event=" + event;
xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", Url, true );
xmlHttp.send( null );
}
</script>
And this in the <body>:
<video id="video" src="./video/Larr...
I have a search text field and search button, when button is clicked with default text in text field, or null value, an alert pops up and sets focus back on search text field. This works very well on all major browsers but not in safari.
I tried it even with out jquery, but didn't work. When the focus falls on search text field, I have ...
I am experimenting with the new Safari 5 extensions JS API and I am having an issue right from the ground up, I want to use an XMLHttpRequest to get an RSS feed from a website however upon the .send() it immediatly kicks off errors:
Failed to load resource: cancelled
Then looking at the XMLHttpRequest object is says in status: Error: I...
How can you detect whether Safari has been disabled by parental controls on the iPhone? I know it is possible because the App X3Watch refuses to work until Safari is disabled. As far as I can see there is no api for the parental controls, so what technique can be used for this?
...
Hey guys,
In my safari 5 extension, there is an additional extension bar. now, only a selectbox can appear outside this bar. Using CSS with position:fixed/absolute, I can't create an overlay outside this extension bar.
Is there any posibility to create some div or something like that, that can appear above the tab bar and so on?
Thank...
Does overflow:hidden applied to work on iPhone Safari?
it seems not.
i cant create a wrapper on the whole website to achieve that...
do you know the solution?
Example: i have a long page, and simply i want to hide the content the goes underneath the "fold". and it shoudl work on iPhone/iPad
THANKS
...
Hi
I'm currently having some weird issues with ajaxsubmit (http://jquery.malsup.com/form/#ajaxSubmit), which I'm currently using in a project.
I have a flow where I need to open a form into a modal window. I'm using fancybox for that and it works like a charm.
When the form has been forced to open in the fancybox window there can happ...
I'm having trouble testing a web app with Safari. My app returns wave audio data. The problem happens when I change the application and hit it again from Safari. Safari caches the original response so no matter how many times I hit refresh it seems like I've not updated anything. I can almost get around this using force refresh with Fire...
I would like to detect the 'tab' keypress in Safari. It already works in IE and Firefox.
The trigger is on keypress. Both firefox and IE return key '9' which is Tab. But Safari looks like to ignore this. Both versions 4 and 5 seem to fail in detecting it. How do i detect it?
...
Hi,
I am trying to code a safari extension similar to Bubble Translate for Chrome.
when you click a button on the toolbar, it automatically translates the text currently selected to the language of your choice using the Google language API.
I use the following injected script to get the highlighted text and display the result (as an al...
Hi everyone!
I'm having problems with putting a favicon on my website!
I have this code
<link rel="shortcut icon" type="image/ico" href="img/favicon.ico">
And for some reason Firefox shows the favicon fine, but on webkit browsers its not showing up. I tried Google Chrome and Safari on a Mac and its not showing up, do I need to do som...
I was unable to activate Safari Reader in a local HTML file, so I cannot give you a running example but only describe my problem:
The markup of my blog posts is basically this:
<div class="post">
<div class="post-header">Hello, World</div>
<div class="post-body">
<p>Look at this picture:</p>
<p><img src="http://37prime.com/news/w...
I've hit a bit of a weird issue in Safari in regards to setting a js cookie. The cookie itself is just a rgb colour value, which gets set using .click(), and is working fine in Chrome and Firefox, yet in Safari the value of the cookie is incomplete, showing up as rgb(193 instead of rgb(193, 184, 76) as the other browsers do.
The jQuery...