Problem With Safari

Dec 5, 2007

I am having problems with a website. It uses javascript to choose a payment option and then calculates the price accordingly. It works on I.E and firefox, but not on safari. A few of our clients use it so it has to be sorted out urgently.

I have no idea why it wouldn't work in safari and i don't have broad enough skills for that.

View 4 Replies


ADVERTISEMENT

Mobile Safari And Onmousedown - Code Doesn't Work In Mobile Safari?

Jun 6, 2010

The very simple code (below) works fine in Safari (and Chrome, Firefox etc.), but it doesn't work in Mobile Safari. Why?(You can find a working example at: http:[url]....)

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>[code]......

View 2 Replies View Related

Safari 1.3+

Jul 23, 2005

Does anyone know if there is a quick test to tell if Safari 1.3 (or 2.0
will suffice) is the browser that doesn't rely on the typical
navigator.* methods? For instance, there is the good 'ol document.all
test for MSIE... Looking to add Safari support to my tty editor for my cms.

View 4 Replies View Related

Safari (Mac) Issue

Jul 23, 2005

The following code suppresses the 'enter' key, when run in I.E. 5.5 or
later (Windows) but not when run in Safari (Mac)

<body onkeypress="javascript:keysuppress(event)" >

function keysuppress(e)
{
if (e.type=="keypress" && e.keyCode=="13")
{
event.returnValue=false
}
}

What code can I use to suppress the 'enter' key when running an app in
Safari?

View 3 Replies View Related

Iframe On Safari

Jul 23, 2005

I am currently working on a project that displays preview of a jpeg
in an iframe. we can edit this preview - like increasing its zoom
level and changing pages , images etc. This works fine with IE on windows
but whenit comes to Safari on Mac , the preview is lost on refreshing the
browser.

I have noticed that this problem occurs when ever I use Iframes.
Although the main jsp page is refreshed and shown, the jsp page that
is the source for iframe contained in the main jsp page is not shown.

View 2 Replies View Related

Onload In Safari

Jul 23, 2005

I thought that if I have:

....
<body onload="some_script();">
....

that some_script would not be called until the <body> was completely
loaded - is this not the case? With Safari 1.3 I seem to have to delay
inside some_script (there is some php in the <body> that slows down the
loading). Since I happen to have a spare iframe in my <body>, I load a
tiny bit of html in it whose job is simply to set a "loaded" flag,
tested inside my delay code.

What I was observing was that some fields inside a <form> in the <body>,
whose values are set by some_script, were, with Safari, not visible
until I clicked in one of them - then they all popped into sight. I
wasn't seeing this with other browsers and a delay mechanism fixed it.

It was as if the onload was triggered as soon as it was encountered
rather than when the loading was complete.

View 11 Replies View Related

Safari OnPaste

May 3, 2006

I'm trying to use the onPaste event in a text input, which according to Apple is supported. However, I get no response in Safari. Firefox works fine.

View 3 Replies View Related

Safari On Desktop

Jun 13, 2007

I just downloaded safari on my desktop, but not able to open java appl.

View 3 Replies View Related

Use Top.close For Safari?

Jun 21, 2011

Is anyone knows how to use top.close in javascript in safari browser?

View 3 Replies View Related

Onclick In Safari?

Apr 26, 2005

I have a form that has a Javascript function being called when a button is clicked. The function works properly in every browser except Safari and IE 5.2 for Mac. Any ideas?

View 5 Replies View Related

Safari, Key[down|up] With Cursor Keys

Jul 28, 2005

I'm writing some stuff where I wish to allow the cursor keys to control
elements in a page. This has not been a problem except with Safari
which appears to duplicate the keydown and keyup events which are fired
when the cursor keys are pressed. I.e. pressing and releasing say, K,
results in one keydown event followed by one keyup event. Press any of
the cursor keys results in two keydown events followed by two keyup
events.....

View 3 Replies View Related

Safari Mousedown Event

Dec 7, 2005

I have a big <table> and I have added an onmousedown handler.
When I get back the event in IE and Firefox, the individual <td>
element appears in window.event.srcElement (IE) and in
event.target (Firefox). However in Safari the target is just the
<table>, not the <td>.

I need to get back the <td> associated with the event, and I would
not like to put an onmousedown handler on each table cell because
there are a lot of them. Does anybody know how I can get the event
and figure out which table cell was clicked?

View 2 Replies View Related

Safari Failing Silently

Aug 30, 2006

The stuff I've built recently works (in the sense that it does what I'm
expecting it to do without any errors or warnings) in IE and FF but
fails silently in Safari. I don't have a Mac to test on. I write some
stuff and send it to the client who tests and reports back.

I don't do any browser sniffing, I test for a feature for I try to use it...

Are there any known oddities about scripting for Safari that might
possibly help me out.

View 2 Replies View Related

Safari Javascript Problem

Oct 17, 2006

I have a small Javascript problem with that mutch love web browser
safari, I tested the code on all other browsers PC (Win) and Linux and
IE on the mac and it seams to work ok, but for some reason it will not
work with safari.

function domywindows() {
//alert('test');
mywondows =
window.open('writeme.html','TellAFriend','width=45 0,height=600');
mywondows.document.write("<html>");
mywondows.document.write("<body>");
mywondows.document.write("Working Please Wait........")
mywondows.document.write("<form method='post' name='myform'
action='sendm.php' target='_self'>");
mywondows.document.write("<input type='hidden' name='urlis' value='" +
window.location + "?osadcampaign=tf'>");
mywondows.document.write("<input type='hidden' name='productname'
value ='" + productname +"'>");
mywondows.document.write("</form>");
mywondows.document.write("</body>");
mywondows.document.write("</html>");
mywondows.document.myform.submit();
}

Any one any ideas how i can make this mac compatable.

View 2 Replies View Related

Reading XML In Safari Through SelectNode

Jan 9, 2007

In my applications I've a ton of scripts that use remote XML file to fill forms and evaluate contents; In these scripts I always use the method SelectNode (that, with some workaround, works fine also in Mozilla).

I've just found out that this method doesnt work in Safari browser, therefore my applications are not usable by this browser. Can anyone provide me any solution or workaround to be able to read XML
files in Safari wihout rewriting all of my scripts?

View 11 Replies View Related

Safari Textarea And Events

Apr 2, 2007

Ok, I've been noodling with this for several days now and I'm starting
to go crazy. Does Apple's Safari browser support drag events on
Textarea elements? The few specs and docs I've found seem to indicate
that it does but I can't get it to work for the life of me. I've tired
everything I can think of to try get notifications for the events:

ondragenter
ondragleave
ondragover
ondrop

Not only do these events not seem to fire over the body of the
textarea, but also the textarea seems to sink the events (so setting
event handlers on document or body report no events while occurring
over the text area). Even stranger the 1px border around the textarea
*does* respond to the events, but once the mouse moves into the actual
textarea it stops. I thought perhaps it was that native OSX UI
elements don't fire events, but all "regular" mouse events seem to
work (onmousemove, onclick, etc...).

Even more frustratingly, if I absolutely position a new element above
the textarea (zIndex of new element textarea's) to try and catch
these events, the text area *below* the element still sinks the events
(even though it's not in the bubbling or capture path for the event).
In other words, a div absolutely positioned above the textarea won't
fire dragevents anywhere it overlaps the textarea. I can't click on
the textarea below or manipulate it in any way, but dragevents still
seem to be sunk by the textarea.

I've tried using event capturing vs. bubbling as well as different
methods of applying the event handler to the text area
(textarea.ondragenter, vs addEventListener(textarea,dragenter,true/
false) all to no avail.

I'm assuming Safari's textarea just doesn't work with drag events,
unless I'm missing something really basic. Anyone gotten this to work?
Any pointers or tips. Google searches have resulted in nothing, I
can't imagine I'm the only person who's tried to get this to work as
it seems like manipulating drag events on textareas would be a common
thing to want to do.

View 3 Replies View Related

Date () Object In Safari

Jul 20, 2005

According to the Safari browser the world began on "Fri Dec 13 1901 15:45:52 GMT-0500", but I need to be able to get around this limitation.

I am interested in dates from 1500 to 1901, as far as I can determine, there are 14 possible calendar variations.

Year starts on Sun, Mon..... Leap year starts on Sun, Mon..

I can label these early year "types" as a number between 0 and 13.

Let's say 2005 is type 5, and that 1655 is too. (In both years Jan 1 falls on a Saturday)

I'm trying to create a function that will identify the "type" of year.

function getYearType(year){
return Number // number between 0 and 13
}

View 7 Replies View Related

Does Safari Have Different Load Order?

Mar 28, 2010

In firefox, this script works just fine. But in safari, it doesn't do anything and I can't figure out why.The intention of this code is to just create a draggable item.

View 1 Replies View Related

Detect Safari Then Replace Swf With Jpg?

Mar 17, 2009

I was wondering if there is a way to detect whether a browser is safari.

Then if the browser is safari show a jpg

If the browser is not safari show a swf.

View 4 Replies View Related

ScrollTop Working In IE/FF But Not In Safari?

Dec 3, 2009

The following script is scrolling my page smoothly, as it is supposed to, in IE and FF however it is not working at all in Safari, any version. The page is:

[URL]

When working correctly, you click the nav buttons in the left sidebar, the page scrolls to the appropriate section.

The script:

$(function(){
$('a[href*=#]').click(function() {
if (location.pathname.replace(/^//,'') == this.pathname.replace(/^//,'')
&& location.hostname == this.hostname) {

[Code]....

View 2 Replies View Related

Javascript Not Working In Safari (on MAC)

Aug 15, 2007

Im using Javascript to expand a unordered list menu and it works on my pc in the latest versions of Opera, Safari, Firefox and IE. But i have been told that the buttons do not work in Safari on a MAC. It does however work in IE on a MAC.

Is there a difference between the way Safari on a MAC would read the code? Code:

View 1 Replies View Related

HTMLElement Prototyping In Safari

Jun 3, 2005

We all know (and love!) the fact that Mozilla exposes element constructors (HTMLParagraphElement, for example) for prototyping. Turns out Opera 8 allows you do to the same thing.

So this leaves Safari, which has actually allowed you to do this since 1.0, *but* doesn't publicly expose the constructors. The below code exports constructors into public variables matching those in Mozilla and Opera 8:

/*
HTMLElement Prototyping in KHTML and WebCore
Copyright (C) 2005 Jason Davis, www.jasonkarldavis.com
Additional thanks to Brothercake, www.brothercake.com

This code is licensed under the LGPL:
http://www.gnu.org/licenses/lgpl.html
*/

if (navigator.vendor == "Apple Computer, Inc." || navigator.vendor == "KDE") { // WebCore/KHTML
function(HTMLConstructors) {
for (var i in HTMLConstructors) {
window["HTML" + i + "Element"] = document.createElement(HTMLConstructors[i]).constructor;
}
}({
Html: "html", Head: "head", Link: "link", Title: "title", Meta: "meta",
Base: "base", IsIndex: "isindex", Style: "style", Body: "body", Form: "form",
Select: "select", OptGroup: "optgroup", Option: "option", Input: "input",
TextArea: "textarea", Button: "button", Label: "label", FieldSet: "fieldset",
Legend: "legend", UList: "ul", OList: "ol", DList: "dl", Directory: "dir",
Menu: "menu", LI: "li", Div: "div", Paragraph: "p", Heading: "h1", Quote: "q",
Pre: "pre", BR: "br", BaseFont: "basefont", Font: "font", HR: "hr", Mod: "ins",

Anchor: "a", Image: "img", Object: "object", Param: "param", Applet: "applet",
Map: "map", Area: "area", Script: "script", Table: "table", TableCaption: "caption",
TableCol: "col", TableSection: "tbody", TableRow: "tr", TableCell: "td",
FrameSet: "frameset", Frame: "frame", IFrame: "iframe"
});

function HTMLElement() {}
HTMLElement.prototype = HTMLHtmlElement.__proto__.__proto__;
var HTMLDocument = document.constructor;
var HTMLCollection = document.links.constructor;
var HTMLOptionsCollection = document.createElement("select").options.constructor;
var Text = document.createTextNode("").constructor;
var Node = Text;
}

In Opera < 8, all elements inherit directly from Object(), so you can still prototype Object() if you need to do element prototyping. Internet Explorer's elements *don't* inherit from Object, oddly enough, so who knows with that browser. In any case, there you go. It also happens to work in Konqueror (AFAIK).

View 4 Replies View Related

Loop Works In FF And Safari, But NOT IE?

May 13, 2009

Well I have been working on a website, got it to work perfectly in Firefox and Safari.BUT, in Internet Explorer it refuses to work.The website is called Auction 4 PenniesIt was inspired by Swoopo, a auction website with timers.I wanted to attempt creating the website without cheating (viewing available source) and without having to purchase a $800 clone.Right now how it is setup is:-The page loads-Then the page uses AJAX to retrieve the Products Page-On the Products Page it has Current Timers and Current Highest Bidder with Amount-After that is all loaded, it will loop every second after that, but not reloading all products, just pulling information from the database on another page (using ajax) andcreating JS with the information pulled. The returned JS then is executed to reset the Timers and Highest Bidder (in case of a change)I know there is a Fix to edit the registry on the computer, but there are problems with that.

View 1 Replies View Related

SetTimeout And SetInterval In Safari

Jun 15, 2009

I have a script that I have tried running using both setTimeout and setInterval. It works fine in every browser except safari 3. It will run fine for a few loops and then stop.

View 2 Replies View Related

Onclick Not Working In Safari?

Dec 8, 2010

I am also in onclick problem, my code works fine in FF,OPERA,Chrome but not in Safari.My problem is this onclick.

Code:

1. <?php if(has_access($userarray,'view_serverdet','server')){
2. if (('Y' == $webpanel_ajax) && ('N' == $server_details || $usergroupid == "1")) { ?>
3. <span class="expand" id="exp<?php echo $server_row['id']?>" onclick="view_details('<?php echo

[code]...

In other Browsers these values alert, but in Safari not.I use Safari 5.0.3 in Fedora 13 using Wine.

View 5 Replies View Related

Works In All Browsers But Safari?

May 5, 2011

[URL]...At the page above, at the bottom, there is a button that says "E-mail Seller". This loads a small contact form in a jQuery fancyBox (lightbox). The following script (form-handler.js) is meant to handle the form to and from the form-handler.php.

[Code]...

Everything works fine in Firefox, IE and Chrome. However in Safari, it's like the contents of form-handler.js are not there, its not doing anything. Using Safaris dev tools you can clearly see the script has loaded fine.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved