473,435 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,435 software developers and data experts.

IE window.location not redirecting

Hi!

I'm working on a page that uses javascript very much. My problem is now
that i cannot redirect to another page in IE with window.location =<URL>;
This command gets executed (proofed with alert messages) but nothing
happens. FF acts like expected but i cant get it work in IE. What can be
the problem here?

here the code i use:

this.NodeSelected = function( node ) {
if ( node.Value != null && node.Value != "" ) {
window.location = node.Value;
}
}

thanks & greetings,
chris
Jul 23 '05 #1
3 22955
Ivo
"Christian Hubinger" wrote

FF acts like expected but i cant get it work in IE. What can be
the problem here?

this.NodeSelected = function( node ) {
if ( node.Value != null && node.Value != "" ) {
window.location = node.Value;
}
}


Hm, if you sure about the value of node.Value, have you tried
window.location.href = node.Value;

hth
ivo
Jul 23 '05 #2
Ivo wrote:
"Christian Hubinger" wrote
FF acts like expected but i cant get it work in IE. What can be
the problem here?

this.NodeSelected = function( node ) {
if ( node.Value != null && node.Value != "" ) {
window.location = node.Value;
}
}
Hm, if you sure about the value of node.Value,


yes i let it show up in an alert biox and it's right, it works perfectly
in FF - IE just ignors it

have you tried window.location.href = node.Value;


well here the things i've tried

window.location = node.Value;
window.location.href = node.Value;
location = node.Value;
location.href = node.Value;
document.location = node.Value;
document.location.href = node.Value;
parent.location = node.Value;
parent.location.href = node.Value;
top.location = node.Value;
top.location.href = node.Value;
....

I've tried everything that came into my mind - and none of them, showed
any effect in IE. It just makes the location in the browser windo show
selected, but no URL change. Also when i do an alert(
window.location.href ); after asiging the new value i still get the old
url displaed - strange isn't it.

I ran out of ideas, the strange thing is that all documentation, forum
posts etc. tell me that this works, so i've no idea whats wrong.

thanks & greetings,
chris
Jul 23 '05 #3
Christian Hubinger wrote:
Ivo wrote:
"Christian Hubinger" wrote

[snip]

Well got it work by doing it that way:

SideBar_RedirectUrl = node.Value;
setTimeout( "window.location.href = SideBar_RedirectUrl", 0 );

don'tknow why this works and the other versions don't - but it works.

greetings,
chris
Jul 23 '05 #4

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

Similar topics

8
by: Renuka | last post by:
I have a confirmation page with an OK button. If this window has an opener then this browser window needs to go to another URL or else the window must close. Thus I have the following javascript...
3
by: saiho.yuen | last post by:
Hi, Is anyone know what is the difference between Location.href and Window.location.href Thanks you very much:) Saiho
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
2
by: John Mack | last post by:
Intermittently I get the following error on Firefox: "Error: uncaught exception: Permission denied to get property HTMLDocument.window" What can cause this error? I do an image switch via JS...
3
by: Dan M | last post by:
Is it possible to redirect or refresh the contents of Page1 from within Page2 where Page2 was opened by Page1?
1
by: Kalyani | last post by:
Hi, I have a page with a button.On click of this button a popup window opens.Now if this window is kept open until session timeout then login page opens in the same window. Now I want that the...
4
by: Mike | last post by:
I have a program which runs in a dos window. That program generates output and writes it to the dos window as well as piping it to a text file. I would like to be able to monitor the window or...
2
by: Ricardo Videira | last post by:
Hi to all. I'm having trouble with the following situation: I have a page where the user inserts some stuff and when he clicks on the submit button a popup window showing that info is launched...
1
by: runsrealfast | last post by:
I have a search page that will generate results at the bottom of the page. As part of the results each item will have a button that will open a window that will contain a more detailed view of the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.