473,804 Members | 3,509 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with window.navigate on aple

hello

i have this small code:
<?
if ($errorsTable == 0) {
?>
<script type="text/javascript">
window.navigate ("main.php") ;
</script>
<?
exit;
}
?>

it works ok on Ie, FF, Opera, but not on Safari on apple.
it seems safari doesn't see javaScript , and the page doesn't change
anyone help?
Sep 19 '06 #1
1 1795
lorents wrote:
hello

i have this small code:
<?
if ($errorsTable == 0) {
?>
<script type="text/javascript">
window.navigate ("main.php") ;
</script>
<?
exit;
}
?>

it works ok on Ie, FF, Opera, but not on Safari on apple.
it seems safari doesn't see javaScript , and the page doesn't change
anyone help?
You are assuming that Safari implements the - navigate - method. Last
time I looked it did not. The normal way of navigating a browser to a
URL is to assign the URL to the window's - location property. I.E.:-

location = 'main.php';

- and that works cross-browser.

Richard.

Sep 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3541
by: josh.asbury | last post by:
I am having some major issues with whitespace in my XSL stylesheets. We recently upgraded our servlet-based application to JDK 1.4, and this has forced the issue of my finally upgrading to Xalan-Java 2. The earlier version of Xalan was much more forgiving in regards to whitespace in our .xsl files, and now I am learning all about <xsl:text> and <xsl:strip-space>. I've come across something with HTML buttons, though, that I can't find a...
2
8313
by: Richard Bell | last post by:
Newbie question ... please respond to group I'm trying to open/navigate to a url. How can I tell when the page is fully loaded? Testing suggest that window.open returns before the page is completely loaded and displayed. Likewise, window.navigate. The code looks something like this: wHandle = window.open( url, name, flags ); .... // how to tell when url is fully loaded and displayed
5
5100
by: Nicola Pedrozzi | last post by:
Here I really need a guru... ;^( I found out today with a big disappointment that : window.open("url", ...) and also navigate("url") limit the max length of the url string to something like 2080 characters. That on Explorer only; Netscape and Mozilla work perfectly
18
9471
by: Wladimir Borsov | last post by:
Inside a html page (more precicesly inside a JSP page) I defined a button. When the user clicks this button a second browser window should pop up und load the passed URL. I coded <img src="mybutton.gif" onclick='window.open("http://mydomain.com", "Mytitle);'> However when I click on the button (under Win2000 + IE5.5) no window pops up. Why?
2
1671
by: Sunil Sabir | last post by:
Dear All, I have a Main Asp.Net page . In that Page I have a Tab Strip which has SIX tabs each representing a different web Forms.So that when a user clicks different tab he can navigate between different forms.In my Main Page I have written a javascript code function ConfirmClose() { confirm("Are you Sure You Want to Close This Main Window?") ;
0
1255
by: Husam | last post by:
Hi EveryBody: I got this decleration from msdn documntation which is: object.Navigate( _ url As String, _ _ _ _ )
0
1177
by: Jeanine | last post by:
Hi, I'm using the webbrowser control in a windows application in vb.net. When you navigate to a site, a new window is always opened. I have read various articles explaining how to use in MDI applications etc, and have tried these things, but still a new window opens when I use the navigate method. I need the browser to stay in the its parent control (ie form or panel control). Is this possible, any suggestions would be most...
18
3353
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to the image. The desired behavior is that when the pop-up is invoked, I want the underlying window to stay put. I don't have this problem when I run the code on my local computer but I do have it when I run the code on geocities.
3
3503
by: buhailiang | last post by:
I've a 'TEST' link on page, which has href='javascript: void(0)', and a big iframe page. When I load the page, window.onload event is triggered after the big iframe page loaded, If I click the 'TEST' link before the window.onload execute, the window.onload will never execute in IE 6.0. <html> <body>
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10327
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.