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" OnFocus="focusTest(this); return false;" />
<br/>
<input type="text" value="two" OnFocus="focusTest(this)...
Hello,
I have an asp.net intranet application for booking jobs and a phone index. Now most of my users are fine as they are using Firefox and or Internet Explorer. I have a user who can only use Safari and for some reason when we navigate to the intranet app, Safari seems to do a lot of loading then finally says; "Safari could not open...
This code works in Firefox, Internet Explorer, not in Safari/Chrome:
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery-ui.js"></script>
<script>
function newDiv() {
var div = $('<div id="divNew" style="width: 50px; height: 50px; border: solid 1px; b...
It has to be simple, here's my CSS:
.progressImage
{
position:relative;
top:50%;
}
.progressPanel
{
height:100%;
width:100%;
text-align:center;
display:none;
}
<asp:Panel ID="pnlProgress" runat="server" CssClass="progressPanel">
<asp:Image ID="Image1" runat="server" CssClass="progressImage" ImageUrl="~/Images/Icons/loading.gif" ...
Hello all,
I'm having an issue with JQuery and Safari (Windows Version). The code works on FF/IE7/Chrome but not Safari.
I have a simple <li> that has a <div> embedded in to - clicking the <li> should expose the hidden div, but not in Safari.
The HTML:
<ul>
<li>something</li>
<li>something2</li>
<li class="more">
<a href="" ...
I'm working on a website that uses not just frames, but frames within frames (ew, I know, but I don't get to choose). It actually works ok most of the time, but I'm running to a problem with some of the frames within frames on Safari (only).
Some of the two-deep frames render in Safari with a small space on the right-hand side of the f...
Topic: Programmatically manipulate web browser in OS X 10.4.x+ Tiger/Leopard.
Subjects: Webkit, Safari, Firefox, APIs, Applescript, Automator, Javascript, Ruby, Ruby on Rails, OS X, Tiger
Goal: Collect/Read/Extract URLs from Safari into text (Ruby on Rails code) file.
Note: A solution that uses FF would be very appreciated, too. I use Sa...
Hi,
I was wondering if anyone has seen this issue before.
I have two button on a webpage. When I navigate away from the page and hit the back button to return the value of one button is placed in the value of the other.
E.g
<input class="SmallData" type="submit" id="logButton" value="Log In" tabindex="93"></input>
<input class="btn"...
Hello,
What are the differences from a developer point of view between Safari for Mac and Safari for Windows?
I think it boils down to evaluate differences between (if I missed something, please correct):
- Layout rendering
- Javascript behavior
The final decision to be made being:
Can developers test only on Safari Windows (knowing ...
Situation: you've got a .swf embedded in an html page, and when you click on something in the .swf, it needs to popup a chromeless window. Normally this would be fairly easy - but consider Safari, which completely disables all 'window.open' functionality while its popup-blocker is enabled (it makes an exception if the function is trigger...
I am creating a jQuery plugin.
How do I get real image width and height with Javascript in Safari?
Following works with Firefox 3, IE7 and Opera 9:
var pic = $("img")
// need to remove these in of case img-element has set width and height
pic.removeAttr("width");
pic.removeAttr("height");
var pic_real_width = pic.width();
var pic_r...
Whenever I try to access a NTLM authenticated intranet site, Safari takes forever to process and then comes back with "The sever is unavailable" or if allowed by the site, loads with out authenticating. I can access these same sites with no problems in both Firefox and Internet Explorer. The sites are hosted on IIS6 and are being generat...
Everyone in my office uses Macs and therefore most use Safari.
We have a page that has 30 checkboxes on it, I didn't even do the HTML myself but no matter if I use the html input checkbox with a label or an asp:Checkbox usig the text property for the label my boss is irritated because the checkbox is a little below center on the label....
Hi all,
i want to ask if you can use SIMBL and develop a plug-in for iPhone Safari.
...
Hi,
Anyone knows if Safari on the iPhone and iPod touch supports iFrame in design mode and if so, how I can enable it? I have tried following ways, but none work (but it works on my PC):
theIframe.contentWindow.document.body.contentEditable = true;
theIframe.contentWindow.document.designMode = 'on';
theIframe.contentDocument.designMo...
I have a Javascript that changes the host in links to match the current development/test server.
Here's an example:
var ndomain = document.domain;
var mydomain = 'www.foo.com';
var alink = document.getElementsByTagName('a');
for (var i = 0; i < alink.length; i++) {
if (alink[i].href.length > 0){
if (alink[i].host.substr(0, myd...
How can I programmatically generate keypress events from Javascript code running in Safari? It looks like WebKit is using the DOM level 3 model for creating keyboard events from Javascript, and the DOM level 3 keyboard event model does not support the keypress event. Is there another way that I can use?
I'm looking for as pure a Safar...
If the user does a "onmousedown" inside a iframe, drags outside the iframe and hovers over elements that have a "onmouseover" attached to them - safari does not fire this event.
I have a slightly unconventional drag n drop setup. The items that can be "dragged" are inside a iframe. The drop targets are outside the iframe. If the drag st...
Hello
We have been using Adobe Flex for a major project but it's just too slow.
We're considering switching to Silverlight.
The problem seems to be that Silverlight is not as widely supported by browsers as Flex/Flash is.
For example I tried to access the Silverlight showcase using Safari for Windows but it didn't work.
A web RIA pl...
I've tested in Chrome, do I need to test in Safari?
...