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 ... |
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" ...
|
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
|
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, ... |
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 ... |
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 ... |
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 ... |
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, ... |
javascript:
- location.href("somefile.php"); // successfully working with IE
- 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,
|
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: ... |
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 ... |
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 ... |
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 ... |
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=' + ...
|
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 ... |
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) ... |
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; ...
|
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 ... |
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){
...
|
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 ...
|
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
When I view iCloud.com in my safari top sites, it always always has the same thumbnail.
I'm wondering how I could programmatically do the same for my ... |
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 ... |
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 ... |
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() ...
|
|
|
|
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; } |
|
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 ... |
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 ... |
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 ... |
|
|
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 ... |
|
|
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 ... |
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 ... |