473,714 Members | 3,350 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.NodeSelect ed = function( node ) {
if ( node.Value != null && node.Value != "" ) {
window.location = node.Value;
}
}

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

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

this.NodeSelect ed = 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.NodeSele cted = function( node ) {
if ( node.Value != null && node.Value != "" ) {
window.locati on = 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.locati on = node.Value;
document.locati on.href = node.Value;
parent.location = node.Value;
parent.location .href = node.Value;
top.location = node.Value;
top.location.hr ef = 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_Redirec tUrl = node.Value;
setTimeout( "window.locatio n.href = SideBar_Redirec tUrl", 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
15110
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 to achieve the above which does not work: <script language="jscript"> function PageRedirection() { if(!opener)
3
50421
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
31061
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(). The problem is that after the reload, it brings you right to the top of the page. When I click 'refresh" on the original page, it brings me back to the original viewing position. Is there a way to duplicate this in from the popup window. Also,...
2
14955
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 just before redirecting the page (also via JS), could this be the problem - not giving enough time to do the image switch before redirecting? Pieces of the page I created that generated this error are below. The
3
6333
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
3237
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 popup window should be closed on session timeout and login page should be opened in its parent window.How can I do that? Please do tell me if any one knows. Thanks in advance,
4
1278
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 text file as the program runs with a dotnet application so that I can create my own log file in SQL server and perform certain actions depending upon the output in the window/text file. Does anyone have any suggestions?
2
1693
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 and the page "A" where he was is redirected to another page, page "B". This page "B" can also be accessed by other means. Can this be done? If so, how? I was trying to do this: protected void button_Click(object sender, EventArgs e)
1
1432
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 item and also an open of editing (if the user has prileges.) I am able to get the new window to open, however, the search page refreshes back to my index page. I would like it to stay at its current location, and for the life of me can't...
0
8712
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9316
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...
0
9023
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6638
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
5959
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();...
0
4466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4729
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2525
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2113
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.