Window.dialogArguments Not Supported In Safari
Jun 16, 2011I am using window.dialogArguments in safari(5.0.5) but it is not supporting.Is there any replacement for this in safari?
View 2 RepliesI am using window.dialogArguments in safari(5.0.5) but it is not supporting.Is there any replacement for this in safari?
View 2 Repliesi'm trying to send a html page directly to the print preview and bypass opening it in a new window. i've found a good solution by having a frameset with 2 rows. the top row is relative while the bottom row is 1 pixel height (hidden at the bottom). the user clicks a print button in the main top frame and it loads the html page that needs to be printed in the bottom hidden frame. on the print file, i included:
<body onload="window.print();">
therefore, the code above initiates an instant print preview. the problem is that it doesn't work in safari (osx). instead of printing the specific frame that the page is in, it print the frameset at the _top of the browser window.i tried changing the location to this., parent.window, etc...but, none worked.
I am trying to use the window.opener.location code from a link on my popup window to change the webpage in the window that opened my popup. It works on ie/firefox, but doesnt work on safari.
function changepage(id) {
window.opener.focus();
//window.opener.location('http://www.mysite.com/index.php?id='+id);
window.opener.location.pathname = 'index.php?id=' + id;
self.close();
return false;
}
Now i've tried the link with both <a href="#" changepage(35);"> and <a href="javascript:changepage(32);"> but safari doesnt want to touch the opener page. Do you know of any workaround/hack to get this to work? If not, is there a way to check to see if the user has safari and change the code to opening the page in a new window?
I use a cookie to keep track of a particular window (using window.name), lets call this the main window. I use the window to distribute data returned from the server.
I use window.open("",mainWindowName) to get the reference to the main window object.
The problem is in nearly all browsers this works fine (focus stays on the current window), however in Safari, window.open also sets focus to that window (mainWindowName).
Of course I can reset focus back to the current window in Safari, but there is a quick flash of windows focus changing and it doesn't look good.
got an one that might prove interesting. I have a window that refuses to close in OSX/Safari 3.1 if it has any history.
Details:
I have an embedded flash app that offers links. These links will initiate a new window. I have little access to the working of the links, so I am assuming that they are using window.open and call the popup page.
So once the window is open, I have a link within that window to close it using an a tag that fires a js function which in turn uses self.close(); See code below. This works well in all cases. The problem comes into play under the following conditions:
1) Mac/Safari 3.1 (note that XP/Safari 3.1 does NOT produce the same issue)
2) Once the window is open, the user clicks a 2nd link from the Flash app, showing the selected html page and adding history to the popup window.
3) The user then tries to close the window, which now fails.
4) Any additional addition to the popups history yields the same results (as one might imagine).
I tried to use javascript to navigate back to the initial history point, and then run self.close. This sort of worked as I would revert back in the history stack with the first click, then the window would close on the second call to the close function. But I couldn't get it to work in one click. I did notice that adding an alert between the history rollback and the self.close() actually allowed this idea to work. So I tried a setTimeout, but did not have success. Seems like there's something there, but I guess I don't understand well enough to come up with the solution.
Code:
function self_close(){
self.close();
}
HTML Code:
<a href="#" onclick='javascript:self_close();return false;'>close</a>
I'm opening a new window with window.open in javascript and i'm keeping his reference to make focus on it or detect if the window is closed or not.My code is working well in Firefox and Chrome (execpt the window.focus, but there's already an issue in chromium: [URL]
In Safari window.open and window.focus works well. But window.closed has a strange behaviour. If I close the new window without navigating in it, window.closed works after closing the window. But if a navigate to another page, window.closed return false, even after closed the window.Is there a way to keep the reference on my new window event if the user navigate to another page ?
here is a sample of my code (I use jQuery 1.4.2):
Code:
MyBrowser = $.klass({
window_ref: null,
initialize: function() {
[code]....
I'm opening a new window with window.open() In the new window a file is loaded with the following post data function:
function ajaxPost(url,data){
$.post(url,data,
function(data){
alert(data)
[Code]....
If I call this function form within the new window everything is fine
- If I call it from the opener window the callback function is broken
- only in safari - ff works fine.
I have a simple javascript function loadNPlay('file'),
parent.loadNPlay('file');
on clicke event it simply plays the file in a player in the parent window. with IE and Mozilla its working fine but with Safari, when called from iframe this function doesn't work(it does work, ie loadNPlay(..) when called in the same window, in safari)
I have tried:parent.loacation.loadNPlay(..) as well, it doesn't work.
<script type="text/javascript">
var tdLeftheight, tdRightHeight;
tdLeftheight=document.getElementById("tdLeftContent").clientHeight;
tdRightHeight=document.getElementById("tdSidePanelLinksUP").height;
//alert(tdLeftheight +' '+tdRightHeight);
document.getElementById("tdSidePanelLinksDown").style.height= tdLeftheight-tdRightHeight;
</script>
The clientHeight attribute is not supported by FF. Any alternative to this?
I'm using jQuery SVG and would like to check if the browser that the person is using will support SVG --- if not, they'll receive a polite message; is there anyway to check this using javascript?
View 2 Replies View RelatedIs there anyway using Javascript, one can determine whether or not the browser viewing the page supports a particular CSS property or value? For example, I know IE6 doesn't support the value of "fixed" for the "position" property, so is there anyway I can determine this with Javascript, without resorting to browser sniffing?
View 4 Replies View RelatedCan anyone let us know that what jQuery APIs are supported in Andoid 2.3.4. It would be helpful if you can provide sheet/list of jQuery APIs in different categories like TRAVERSAL,CORE,UI,AJAX etc which are supported in Android 2.3.4.
View 1 Replies View RelatedI would like to know whether anyone can tell me which plattforms are supported by jQ Touch. On the homepage of jQ Touch it is said, that is "for mobile web development on the iPhone, Android, iPod Touch, and other forward-thinking devices" SO what is meant by that. Which other browsers are supported?
View 1 Replies View Relateddoes anyone know if the setTimeout() function in js has been just recently supported? i created an online demonstration of a product that uses this function to delay the playing of .wav files after various second intervals. i know that Opera doesn't support this function because when I click my button, all of the .wav files that i have in the function that runs behind the button play at once. i have probably 10 wav files that are played throughout the function, at various conditional statements. does anyone know if earlier (like REALLY old) versions of IE do not support this function? or maybe ie8 doesn't support it? i developed this and tested it in all major browsers except IE8 and any version earlier than IE6.
View 5 Replies View Relatedis the <caption> Tag inside a Table supported? An if yes, how can i read the text inside this tag?
View 1 Replies View RelatedI've been working on a WP site that uses a handful of plugins - several of which include java-script files. I've been having trouble with one of the plugins and have started the debugging process and noticed that the page the problem is occurring on shows a few java-script errors. [URL]. What do the "Object Not Supported" errors mean - and what would it entail to fix them?
Webpage Error Details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Mon, 22 Nov 2010 16:43:02 UTC
Message: Object doesn't support this property or method
Line: 143
Char: 2
Code: 0
[URI]
Message: Object doesn't support this property or method
Line: 4621
Char: 7
Code: 0
[URI]
Message: 'style' is null or not an object
Line: 33
Char: 6
Code: 0
[URI]
Is there a way to detect if an textarea onscroll event is working in
Firefox (or Mozilla). I know that there is an onscroll event bubbling
bug with current vesions of these browsers so I want to detect this
problem with a test like "if (textarea.onscroll == 'undefined' ||
!textarea.onscroll) {}."
// This is asp.net snippet
<marquee id="marqueeLeft" class="marqueestyle" direction="up" onmouseout="this.start();" onmouseover="this.stop();"
scrolldelay="500" style="height: 99px; width: 100%;" >
<asp:PlaceHolder ID="LeftPlaceHolder" runat="server"></asp:PlaceHolder>
</marquee>
When I moved the pointer to this <marquee> tag. It shows the error message "Validation (xhtml 1.0 transitional) element marquee is not supported". When i run my web app it runs successfully but it gives jscript error as System.Argument Exception as value for controls and behaviors must not be null.
I need to obtain a list of supported events on an encountered browser version programmatically, ie, via script. Since Explorer exposes its events on document object I can do something as simple as this:
;for(x in document)if(/^on/.test(x))alert(x);
(!warning: long list ahead..., you can use the console.log(x) instead) ..and simply store them on some appropriate object for latter use in my program flow.
Is there a sort of hack or "a hidden corner" or whatever, that would enable us to build a list of events available on Firefox in a similar fashion?
So I have this script that will let me detect whether @font-face is supported by the browser. Once this script runs then isFontFaceSupported() // will return a boolean indicating support.
So I just want to load a single .css stylesheet if isFontFaceSupported returns a 1, and if it returns a 0, then it does nothing, finished.
Here is the script.
The following is a font-face glyph definition for the . character:
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]......
I have some code that changes a PDF file in another frame using:
parent.frame.document.location.href = "PDF File"
This code works fine the first time it is called. But if a PDF file is
in that frame and the code is called again IE gives me an error:
"no such interface supported"
I have used this code for the past 5 years and it has worked fine with
Adobe Acrobat 4-6 it is only 7 that started to cause me grief. It is
only IE that has this problem, Netscape seems to work fine.
I have checked the web and talked to Adobe and have yet to find a
solution.
I want to add onclick event for object tag.Does object tag supported onclick event?
View 3 Replies View RelatedThe following code works in FF, Is there any way to have the code work correctly in IE 7? The error is on both the following lines, odoc.appendChild(ne);.
<!--#include file="include/dbcommon.asp"-->
<%
set dbConnection = server.CreateObject ("ADODB.Connection")
[code]....
I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.
View 4 Replies View RelatedDoes 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.