My native iPhone app displays HTML files using UIWebView. These HTML files are stored locally on the iPhone (they ship with the app).
Now I'm also trying to use a central CSS file in the HTML files, using something like:
<link href="../../stylesheet.css" rel="stylesheet" type="text/css">
In Safari, this works, the HTML files look OK.
I...
Instead of doing an each loop on a JSON file containing a list of SQL statments and passing them one at a time, is it possible with Safari client side storage to simply wrap the data in "BEGIN TRANSACTION" / "COMMIT TRANSACTION" and pass that to the database system in a single call? Looping 1,000+ statements takes too much time.
Current...
Hi I am having problems using fbjs and creating a div dynamically and then using appendChild to append it to an existing div.
heres an example:
var count = 0;
function addDiv(){
var theDiv = document.createElement('div');
theDiv.setId(count);
theDiv.setInnerFBML('some html here');
count++;
document.getElementById(...
I have a javascript error at the Safari 4.0.4 browser.
I'm using AJAX navigation for the browser, in order to navigate between the result of my AJAX request, but the problem is that sometimes (i couldn't found the exact reasone) the history.lenght stays at the same count, instead of increase its value.
Thanx :-)
...
I use the following code to open an XML document. It works in Firefox and IE, but fails in Safari. Any idea why?
function crearObjetoXML(archivoXML){
//--- IE.
if(window.ActiveXObject){
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.load(archivoXML);
parsearXML();
//--- FF.
}else if(...
Hello,
I am currently working on a Javascript program for my company (Leader Technologies) that is used to register products for Logitech. The URL for that is :
http://wwwtest.onlineregister.com/logitechreg/
My program looks totally fine on everything single web browser (including IE 6) that I have tried except Safari 4. On Safari 4, ...
functions fine in every other browser but safari.
selector is for a.class, in my case: $("a.nav")
When I do <a class="nav" href=page.html><img src=icon.png/></a>, it becomes not possible to close out of the modal dialog by clicking outside of the dialog or clicking the x icon.
what is my problem?
thanks in advance
...
Having been caught out recently when a web site I launched displayed perfectly on IE, Firefox, Chrome and Safari on Windows but was corrupted when viewed using Safari on the Mac (by a potential customer), I need to start testing how my sites look when viewed on a Mac.
Problem is, I don't own a Mac.
I've tried BrowsrCamp, which claims...
I'm using the built-in javascript debugger in Safari 4 on Windows (the WebKit Web Inspector), but when I'm stepping through code I keep getting the "Slow Script" dialog pestering me to abort/continue the script every few seconds. This is irritating.
Is there a way to turn this off or otherwise prevent it from prompting me every few seco...
I want Safari's form AutoFill feature to work on the forms in my web app. All of our form's submit events are prevented and instead we send data to the server via XHR (Ajax) POST.
The problem is, Safari's default for creating a new entry in it's AutoFill (autocomplete) "database" requires the form's submit event to fire and bubble all t...
I've got a simple setup to allow a "help"-style window to be loaded and scrolled to a particular point on the page. More or less the code looks like this:
var target = /* code */;
target.offsetParent().scrollTop(target.offset().top - fudgeValue);
The target of the scroll and the fudge value are determined by a couple of hints dropped ...
Hi,
I have an built an iPhone webapp using PHP. The main (and only) page includes the apple-mobile-web-app-capable and apple-touch-fullscreen meta tags so that it can run fullscreen once added the the homescreen. However, it seems every time I launch the app from the homescreen, the cache version of the page is used instead of refreshin...
I'm having a problem creating multiple instances of a CKEditor in a JQuery UI dialog. The dialog loads a remote form via AJAX, so the goal is to be able to close and reopen the dialog and have a new instance of the editor. With the default options, when reopening the dialog it gives an error saying that an editor with that name already e...
I'm attempting to use CSS3's resize to make an absolutely positioned div resizable in Safari and Firefox Beta. No matter what I do I can't seem to make it work – are there situations that resize cannot be used?
...
Hi,
I'm having a problem related to WebKit:
http://demo.frojd.se/webkit/index.html
When you click "Menu item 1" it shows it's children.
This renders fine in Firefox 3.5, IE8 and in Opera 10.
In WebKit-browsers (Safari 4 and Chrome 3) it doesn't.
However, if I preset all the different classes and css-settings in the
html, it renders co...
I'm running an http server on a non-standard port on a Mac Powerbook G4 running OSX 10.5.8 and attempting to open a page in Safari 4.0.4. When I use the IP address 127.0.0.1 in the url Safari shows an error:
Safari can’t open the page “http://12.34.56.78/” because the server where this page is located isn’t responding
where the IP ...
I have 2 buttons next to a textbox and another textbox after the 2 buttons. The tabindex for the first textbox is 1000, the first button is 1001 and the second button is 1002. The second textbox has a tabindex of 1003.
When I press tab, the tabindex works fine in all browsers except for Safari, where it immediately moves from the firs...
How can I add css to be only read by safari? bascially a div needs moving 5pixels to the left, as it shows fine on ff/ie etc
Thanks
EDIT - added code
code:
#subheading
{
background-color: #004376;
color: #ffffff;
height: 25px;
padding: 10px;
margin: 0 933px;
margin-top: -25px;
width: 761px;
}
...
Hello,
I've been trying to debug a script of mine and I can't get my head around what's wrong with this:
var date = new Date("19871104071535".replace(
/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/,
'$4:$5:$6 $2/$3/$1'
));
alert(date);
It works in Firefox, IE, Chrome but Safari gives me an "Invalid Date" error. Any ideas?
...
I wanted to develop an iphone magazine application which will allow a user to purchase single issues or subscriptions through safari with a user id instead of the app store. What does my website require to be able to handle this?
...