JS problem when redirecting page

J

Jacek Karczmarczyk

Hi,
Please take a look at the html file http://www.career.pl/test.html and
make a test:

- click the "popup" link - the popup should open
- click the first link ("Przekierowanie bez hasha") - it should redirect
you to test.html?q=q_123 page - click the "popup" link - the popup
should open
- click the second link ("Przekierowanie z hashem") - it should redirect
you to test.html#hash page - click the "popup" link - *the popup doesn't
open!* (page will open in the same browser window, press the "Back"
button and click "popup" one again - this time it will open)

Can you see the same effect? And if so - is this an IE bug or what?

test.html is a plain html file, not generated by PHP or something

first link (test2.html) leads to a short PHP file:
<? Header("Location: http://www.career.pl/test.html?q=q_123"); ?>

second link (test3.html) leads to a short PHP file:
<? Header("Location: http://www.career.pl/test.html#test"); ?>
 
R

Rob Parsons

Hi Jacek,

Its a bit hard to read your code without the functions.js file, but never
mind it was easy to download and read it.

Try using a target value for your hyperlinks. Usually to open a hyperlink
using scripting the following syntax is used
<a href="#" onclick="openwindow()">My link</a>

Using the class attribute as you have makes it hard to read and understand.
 
J

Jacek Karczmarczyk

Rob Parsons napisa³(a):
Try using a target value for your hyperlinks. Usually to open a hyperlink
using scripting the following syntax is used
<a href="#" onclick="openwindow()">My link</a>

Using the class attribute as you have makes it hard to read and understand.

Thanks, generally I don't agree with you, but it's not important now. I
just wonder why popup doesn't work after clicking the second link
("Przekierowanie z hashem") and starts to work after refreshing the page...
For me it seems to be an IE bug...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top