safari

Tiny MCE Safari, IE<8 problem

I am facing a weird problem with TinyMCE. I have incorporated tiny mce for my reply area and when the page loads for the very first time it doesn't show the tiny mce rich text editor the moment i refresh the page the rich text editor is visible. This problem come on Safari all the versions, IE version less than 8. Firefox everything w...

jQuery script doesn't work in safari when button is disabled

I wrote this simple piece of code to prevent a form from being submitted more than once. jQuery.fn.preventDoubleSubmit = function() { this.find(":submit").each(function() { $(this).click(function() { this.originalValue = this.value; this.disabled = true; this.beenClicked = true; }); }); // [...] retu...

<thead> and <tfoot> in Safari

I trying to print a page with multiple tables. The problem is that any of these tables may break and carry over to the next page. Have been trying to get the table header to repeat on the second page. Am currently using thead and setting the display property to table-header-group. This works just as expected in IE and firefox but the...

When use clicktoflash, how to show other flashs in a webview based on Safari?

Now I develop a program with a webview showing flash. but I found that when I installed clickToFlash , the webview not to show the flash. I think that when webview load , the safari will check the MIMETYPE , and clickToFlash's MIMETYPE will first chek by safari , so the clicktoflash will handle my falsh , but it didn't have methods to do...

Is there a 0-width way to prevent floated divs from collapsing

First, this issue is not about block elements collapsing when their children are floated. In fact the issue has nothing to do with clearing at all. The issue is this. Suppose I have a series of floated divs like: <div class="column">Column 1</div> <div class="column"></div> <div class="column">Column 3</div> With css: div.column {...

Safari/Webkit jQuery UI sortable loses behavior when showing/hiding container elements

$(".someUl").sortable({ ... }).disableSelection(); $(".containerOfSomeUl").hide(); $(".someButton").click(function() { $(".containerOfSomeUl").show(); }); The above works fine in Firefox and IE, but not in Safari (but Chrome works). After I hide and later show the container, someUl loses all sortable behavior and does not work. I...

Youtube App on iPhone ignoring private videos

Hello there. I seem to have noticed an odd bug in the YouTube App with the iPhone. I have written a small program that fires off the YouTube app with a url like: http://www.youtube.com/watch?v=adsakasjda This video is a private video held on youtube. When the Youtube player launches I receive the message "YouTube not available". HOWEV...

Scrollbar problem with jquery ui dialog in Chrome and Safari

I'm using the jquery ui dialog with modal=true. In Chrome and Safari, this disables scrolling via the scroll bar and cursor keys (scrolling with the mouse wheel and page up/down still works). This is a problem if the dialog is too tall to fit on one page - users on a laptop get frustrated. Someone raised this three months ago on the jq...

How to get X/Y position of touch in iPhone Safari?

I'm having a bit of a problem figuring out how to get the X/Y coordinates of where the finger is touching in a webapp on iPhone Safari. I've got a function subscribed to the 'touchstart', 'touchmove', and 'touchend' events, and I have tried pageX/pageY on the event but can't seem to get anything other than 'undefined' or 0. I'm also th...

Is the Safari Web Browser an Open Source Project?

I'm interested in doing some development against the Safari browser but I'm not sure if it's an open source project or not? I know webkit is open source but that doesn't mean the browser is. I've emailed apple but they haven't been very responsive so I'm wondering if anyone on stackoverflow has any idea? ...

Ultimate Editor in my asp.net page is not rendering properly in safari 4.

I am using Ultimate editor in my asp.net page(reportViewer.aspx). but its textbox is not rendering in safari 4. and samething I am using on different page (profilePage.aspx) it is working fine. But I am making editors visibility true or false in reportViewer page. ...

Why does Safari ignore css table row (tr) height attributes after re-draw?

I'm struggling to apply css-styling to a GWT (Google Web Toolkit) generated html table in Safari. Specifically, I cannot get Safari to respect the height attribute of a table row after I trigger any kind of re-draw of the table. The following basic example illustrates the problem: <html> <head> <style type="text/css"> tr...

iPhone App: Making a webpage accessible only to people using a specific app.

Hi all! I was just wondering if it is possible and if so what the best way to create a web-page that is only accessible from a custom iPhone application? For example, if you tried to access the webpage from the iPhone's built in browser, or any other browser it would display an error page but when accessed from a custom built applicatio...

jQuery Syntax error in Safari

Can anyone tell me why this would generate a syntax error in Safari and not in Firefox? toggle = function(){ $("#type_new").hide(); $("a[class^='toggle']").unbind('click').click(function(){ $.class = $(this).attr("class"); if($(":input."+$.class+".text").is(':visible')==true) $(this).find("small").html("Add New Typ...

Possible to open iPhone Safari and target a specific window?

I have an app that uses OAuth to authenticate, which means the user must be directed to the website to authorize the application. I prefer to make it obvious to the user that they are using a standard browser to authorize at the original site rather than just using a web view to show the content within my app. However, every time they ...

Targeting JS named opening window in Safari?

HI all. I have a static HTML page which is named via javascript as such: window.name = "windowname". This window opens a popup window, which contains links that target 'windowname'. This works as expected in IE/FF/Chrome and opens the links on the opener, howeve Safari opens all links in a new window and not the opener. Is anyone awar...

Blacking out content leaving one page div visable

Hiya, So i am looking to do something like what the apple inspector tool does, but with CSS for a project i am working on. So, the idea is on a certain page of the site, the site is shaded out (much like a lightbox or thickbox) but certain Divs, & other elements are still visible. This is similar to what Safari does when you inspect an...

Javascript event when mouse leaves browser window

I'd like some Javascript code to run when the mouse leaves the browser window. I only need to support Safari (WebKit.) I tried putting a mouseout handler on window. That handler is reliably called when the mouse leaves the browser window. But because of bubbling it is also called when the mouse moves between elements in the document. I ...

Is it possible to change the keyboard type when using the prompt() Javascript function when using Mobile Safari on the iPhone?

Mobile Safari on the iPhone allows you to specify different keyboard types for text input boxes as demonstrated in the Safari How-To's for iPhone, here. However, I'm wondering if it's possible to change keyboard type displayed when a Javascript prompt() dialog is displayed. I know I can roll my own modal pop-up if I have to, but I'd ...

How to close iphone Safari window before launching native app?

Easy enough to register a custom protocol handler so that a native app gets launched by a URL in Safari. However, doing this leaves the current browser window open. If the app then provides a link back to a URL (via openURL), that url will open in a new Safari window, ignoring the existing window. I asked a question here about loading...