Safari « Development « Javascript HTML CSS Q&A

Home
Javascript HTML CSS Q&A
1.animation
2.audio
3.background
4.browser
5.button
6.canvas
7.checkbox
8.Cookie
9.Development
10.DIV
11.dom
12.dropdown
13.editor
14.element
15.Event
16.Firefox
17.flash
18.font
19.Form
20.frame
21.hide
22.hyperlink
23.IE
24.iframe
25.image
26.innerHTML
27.json
28.layout
29.Library
30.localStorage
31.Menu
32.mobile
33.onclick
34.popup
35.Render
36.scroll
37.scrollbar
38.svg
39.tab
40.table
41.tag
42.text
43.TextArea
44.TextBox
45.validation
46.video
47.window
48.xml
Javascript HTML CSS Q&A » Development » Safari 

1. style.display not working in Firefox, Opera, Safari - IE7 OK    stackoverflow.com

I have an absolutely positioned div that I want to show when the user clicks a link. The onclick of the link calls a js function that sets the display of ...

2. How to highlight input text field upon clicking it in Safari?    stackoverflow.com

I would like the value of the input text box to be highlighted when it gains focus, either by clicking it or tabbing to it.

<html>
<body>

<script>
function focusTest(el)
{
   el.select();
}
</script>

<input type="text" value="one" ...

3. How to support multiple text selections cross browser?    stackoverflow.com

I am building a web-based annotation tool, where end users can select and annotate a section of text from an HTML document. Programmatically speaking, accessing and working with the selected text ...

4. How am I going to reproduce Javascript bugs if I don't have a Mac & Safari?    stackoverflow.com

Simple question... How am I going to reproduce Javascript bugs if I don't have a Mac & Safari? Is it possible to run a legit copy of Mac OS on VMWare, or ...

5. Certain sIFR Selectors not working in Safari--extremely unusual bug:    stackoverflow.com

I am creating a site, CardinalCoffee.com, using sIFR. It's not quite ready to go, so access by adding

72.249.85.228   cardinalcoffee.com
72.249.85.228   www.cardinalcoffee.com
to your /etc/hosts (C:\WINDOWS\system32\drivers\etc\hosts on Windows). On the blog ...

6. firefox/safari/ie top margin ,left margin 0    stackoverflow.com

if i use

<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>
tag like this, will this ensure element i put in my html will displayed the same across all browser? the reason i asking this ...

7. Safari issues with javascript + css    stackoverflow.com

I have some strange behavior going on with safari, im using the jQuery.GridLayout plugin and css for styling. Just for some context, this website layout is a simple header followed by the ...

8. Simple problem: Safari and CSS/Javascript Rollovers    stackoverflow.com

Basically I have a bunch of IMG tags wrapped in a bunch of divs, and some javascript to make them do rollovers. The page functions beautifully in IE and in Firefox, ...

9. Safari Javascript Issue    stackoverflow.com

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 ...

10. Force a browser refresh, but only for Safari on OS X?    stackoverflow.com

Is there any way to force a browser to refresh or empty it's cache, but only if that browser is Safari? I have a flash file that works in every browser except ...

11. disjointed rollover issues in explorer and safari    stackoverflow.com

I have got a disjointed rollover script from Dax Assist: www . daxassist . com/js/disjointedrollovers.cfm check out the page I'm working on: http://www.gherkin.co.nz/tester/ The rollovers works pretty well on firefox, but ...

12. Ad Server does not serve ads in Firefox, but works fine in Chrome, IE, & Safari?    stackoverflow.com

I'm having a strange (likely JavaScript) related issue. I'm running Open X Ad Server ( http://www.openx.org ). The ads load fine every time when visiting the site via Chrome, ...

13. location.href in javascript?    stackoverflow.com

javascript:

  1. location.href("somefile.php"); // successfully working with IE
  2. location.href = "somefile.php";
Ques 1. first code is not work with Safari. Why?
Ques 2. What is the difference b/w these codes. Thanks,

14. Can I define which characters are allowed to 'break' a word?    stackoverflow.com

I'm showing up veeeery long URLs in my Safari extension. Obviously, they can't fit on a single line. Currently, word breaking rules make it so most URLs are on two lines: ...

15. Issue loading external files (CSS and JavaScript) in Safari    stackoverflow.com

I'm having a bizarre situation here where my external site files, both JavaScript and CSS, are being interpretted as somehow corrupt on Safari browsers. The same site looks fine in Internet ...

16. JW player resets when CSS position changed to fixed in FF/Safari 5.0    stackoverflow.com

I have a script that changes a div's positioning property from static to fixed when the scroll bar reaches it. (example - you'll see the floating video in the ...

17. Dynamically size a select list (Safari)    stackoverflow.com

I would like to size a select list based on the width needed for the selected index(string). Say for example I have a list with 3 strings, short, medium, loooooong; I ...

18. Javascript makes browser load forever and crash Safari    stackoverflow.com

I'm trying to make a little script that'll inject a tag in a page. Here it is:

    <script type="text/javascript" charset="utf-8">
    var url = 'http://my_url.com/js/widget_rss.js?cle=4c65683101e22&host=' + ...

19. CSS Dynamic Navigation with Hover - How Do I make it work in iOS Safari?    stackoverflow.com

In my site I use a CSS only dynamic menu. This is fine in desktop browsers, but not on iOS (iphone, ipad, etc) because the touch interface does not support the ...

20. Implement HTML bookmarking in JavaScript    stackoverflow.com

I want to implement bookmark feature for my web app. Basically users should be able to bookmark a selection in a certain web page and later (in another browsing session) ...

21. Safari CSS3 transform height limit    stackoverflow.com

I have a viewport div (testframe), which contains a bunch of other divs within. I'm using css transforms to slide innerFrame within testframe. The code is as follows. HTML:

<div id="testframe" style="height: 400px; ...

22. Prevent orientation change in iOS Safari    stackoverflow.com

Is it possible to avoid transition to landscape view in Safari for iOS when the device is rotated? iOS Safari has the "orentationchange" event, I tried to intercept it and disable the ...

23. finding if the current working browser is safari via css or javascript    stackoverflow.com

I researched on identifying, if the browser is Safari or not. In javascript : window.devicePixelRatio object gives '1' for both chrome and safari In CSS :

@media screen and (-webkit-min-device-pixel-ratio:0){
   ...

24. Suppress Safari’s “You have entered text…” warning?    stackoverflow.com

Are you sure you want to close this tab? You have entered text on “Stack Overflow”. If you close the tab, your changes will be lost. Do you want ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>25. <a href='http://stackoverflow.com/questions/5577487/site-disapears-in-safari-why'>Site disapears in Safari, why?</a><span class='articleProductElementHost'>    stackoverflow.com</span></h3><p class='articleProductElementParagraph'><a href=If you take a look at this site the site is displayed fine in IE, FF, Chrome, however, if you look at it with Safari, it hides the site? Can't ...

26. Selection by Character across Breaks or Blocks in Safari for iOS    stackoverflow.com

By default, when a user selects text in iOS (Safari and elsewhere) it selects by the character for precision selecting. Once it hits a break or another block level element (anything ...

27. Safari 5.xx+ Javascript or CSS Issues?    stackoverflow.com

I just noticed today that the drop-down menu on my personal portfolio site is broken when you open it in Safari 5.xx+ : http://www.dylanmullins.com/ I have not touched ...

28. Disabling default drag behavior on links in iOS Safari    stackoverflow.com

I am developing a web app. I am trying to disable most of the default iOS Safari behavior on links so I set the "-webkit-touch-callout" CSS property on the links to ...

29. How to Override 'border:none' to Overcome Safari Select Bug?    stackoverflow.com

We've just discovered a pretty random bug in Safari (at least on Mac). It seems that Safari doesn't like a border style applied to a <select> tag. It will do different ...

30. Getting selected text via Safari Extension    stackoverflow.com

I started learning how to program a Safari extension, and unfortunately Apple's Developer Reference pages on that are not really detailed. Hence my question: Anyone knows how I can pass the text ...

31. Safari Browser issue with JS CSS Switcher    stackoverflow.com

I have been working part time on a website gradually building it up to include a CSS stylesheet switcher. The switcher was working really well in all browsers, however, following an ...

32. Disabling hotkeys in Desktop Safari    stackoverflow.com

Before you start criticizing, I'd like you to know that I have a really reasonable reason to disable hotkeys : I'm coding a small video game in Javascript, a guitar hero like ...

33. Disable Safari Extension Non-globally    stackoverflow.com

The injection functionality used by Safari extensions can potentially hamper one when debugging (js/css) a page. I've had to manually go into prefs to turn off (disable all) extensions every time ...

34. Setting the thumbnail for safari web previews    stackoverflow.com

When I view iCloud.com in my safari top sites, it always always has the same thumbnail. enter image description here I'm wondering how I could programmatically do the same for my ...

35. JavaScript code not working in Safari    stackoverflow.com

I have three pages: Step1.php -> step2.php -> step3.php As it shows, after submitting the step1.php it will go to step2.php In step2.php there is JavaScript on the bottom, and it will automatically ...

36. Why does this code not work in IE & Safari?    stackoverflow.com

I've been tasked with writing some code, that places a small icon in the top right corner of an Ad regardless of size. Depending on the language of the user (in ...

37. Javascript working in IE8 but not chrome and safari and other latest browsers    stackoverflow.com

Following is the javascript code

var text;
var name;
window.onload = init;
function init() {
    var button = document.getElementById("submitButton");
    text = document.getElementById("nameTextInput");
    button.onclick = handleButtonClick;
}
function handleButtonClick() ...

39. self.location.href not working in safari    codingforums.com

41. AppendChild not working in Safari (Mac)    codingforums.com

function appendVariantForms(frmCollectFrom,frmCollector) { // alert('appendVariantForms'); var frm = frmCollectFrom.elements; var elements = eval(frm.length); var ix = 0; var temp; for (;ix < elements;ix++) { try { temp = frm[ix].id; var obj = frm[ix]; // alert(obj.id.substr(0,2)); if(obj.id.substr(0,2) != "x_") { frmCollector.appendChild(obj); } } catch(e) { elements = eval(frm.length); ix = 0; } } return frmCollector; }

43. Safari doesn't get opener.parent.location.href    forums.devshed.com

If you did have that set up I would assume that you have either been smoking something or do not know what you are doing. What ever it is that you are trying to accomplish with this, you are taking the wrong approach and making things very hard for yourself and your users. Can you explain the purpose of this and ...

44. JavaScript / CSS problem in Safari    forums.devshed.com

Hi, I've made a nav menu using nested ULs, Javascript and CSS. Ive made javascript to open and close submenus by changing the CSS display attribute of the submenu between the values 'block' and 'none' Everything works fine until I tested the system in Safari. This is quite a vital part of the site so I could do with some help ...

45. anchors do not work in Mac browsers (IE and Safari)    forums.devshed.com

I have anchors on a page (www.insivia.com/fo/overview.html). They work terrific in all PC browsers (IE, Mozilla, FireFox, Netscape, etc.); however, MAC browsers do not like them at all. Specially I am on OSX and IE/Safari. As you will see in the design, I am using overflow:auto; - I'm not sure if that is the issue but if it is does anyone ...

47. Safari Browser Not loading CSS    sitepoint.com

48. Safari and Chrome not accepting getElementsByTagName    sitepoint.com

The getelementById method returns a reference to the element with the specified id or null if it does not exist. A reference to an HTML element is evaluated to true, null is evaluated to false in a condition (if statement). So your check is OK, it means the orderLinesTable is not null in Chrome and Safari. If you get the same ...

51. Ivisible text using appendChild and an
  • elemnt in Safari    sitepoint.com
  • Thanks for the replies, I will try to be a little more specific. The application we are talking about is 50+ pages of javascript. It is an ajax spreadsheet. When you click on an li(data cell), a text box is moved ontop of the li, and the text in the li is put in the text box, when you leave that ...

    52. Help detecting Safari 1.0 for proper stylesheet placement    sitepoint.com

    I am currently updating a few JavaScripts that use client side CSS selectors (selecting which .css file depending on the UA), and was curious what the User-Agent string is for the 1.0 release of Safari for the Macintosh. Any help would be great Second of all, I have this script and was wondering what would be an easy way to add ...

    java2s.com  | Contact Us | Privacy Policy
    Copyright 2009 - 12 Demo Source and Support. All rights reserved.
    All other trademarks are property of their respective owners.