473,327 Members | 1,936 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,327 software developers and data experts.

problem redirecting in explorer 7 and firefox!

155 100+
Hello friends , i got this code that works perfect in google chrome,but not in IE7 or FireFox!!

Expand|Select|Wrap|Line Numbers
  1. <HTML>
  2. <META HTTP-EQUIV="refresh" content="1;URL=http://www.bonker.co.il/product_detailclose.php?bid_id=<?=$bid_id?>">
  3. <HEAD>
  4. </HEAD>
  5.  
  6.  
  7. </HTML>
i try javascript insted but no luck!! i try alot of combinations and nothing works for me!!

any help please!!

thanx :)
Dec 7 '08 #1
10 2426
Markus
6,050 Expert 4TB
Where do you use PHP? You don't. Ergo, this is not a PHP problem. Ergo, you have posted in the wrong forum. I'll move it over to HTML/CSS for you, where it is more suited.
Dec 7 '08 #2
Markus
6,050 Expert 4TB
I'm guessing you're relatively new to HTML, right? A couple of things to say: html elements should be lower-case, as opposed to UPPER-CASE. You need a Doctype for your page to work properly in IE.

Fix those.
Dec 7 '08 #3
canabatz
155 100+
before moving any thing!!

i got a ridirection from php file to this file ,what im having here is to redirect to other php file!!

whats the problem having it here?
Dec 7 '08 #4
canabatz
155 100+
what is it? :)

im writing html with covered eyes man :)
Dec 7 '08 #5
eWish
971 Expert 512MB
What versions of IE and Firefox are you using?
Dec 7 '08 #6
canabatz
155 100+
IE 7 ,FireFox 2

thanx
Dec 7 '08 #7
Atli
5,058 Expert 4TB
If this is in fact a PHP page, you could use the PHP header function, rather than the META tag.

Like:
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. header("Location: http://example.com");
  3. ?>
  4.  
Note that this MUST be the first thing on the page. If you put so much as a white-space before it, you will get an error.
Dec 7 '08 #8
Markus
6,050 Expert 4TB
The redirect works fine for me in the latest versions of FF and IE.
Dec 7 '08 #9
canabatz
155 100+
i have a page.php ,in this page there is AJAX call to other file.php in this file php i try to do HEADER Location and it was opening the new location inside the div of the ajax!!!

what i did to pass it to top of the window ,i created a newfile.php and in this file i put the META HTTP redirection and it works fine for me "BUT" only in google chrome!!! ,im stupid that i didnt try it in explorer!! now im stuck.


i hope you get me better now!!

:)
Dec 8 '08 #10
Atli
5,058 Expert 4TB
An AJAX call is an independent HTTP request. If you use a redirect in the file your AJAX is calling, it will have no effect on the page the AJAX is in.

If you want to redirect based on results from an AJAX call, try using the JavaScript "location.href" property.
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. location.href = 'http://example.com';
  3. </script>
  4.  
Putting that anywhere in your script should redirect you to the example URL in any decent browser.

@canabatz
No, actually, that's usually the smart thing to do. Design for standard compliant browsers (like Chrome) and then work around the problems IE causes.
Dec 8 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Alex Hopson | last post by:
I'm using the code below to loop through some images and resize each image twice, once to create a thumbnail and once to create a small image. The page stops loading around the 38th image out of...
11
by: ElmoWatson | last post by:
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying to get Forms Authentication working.....I can get...
28
by: entfred | last post by:
I have the following line of html: &nbsp;&nbsp1234&nbsp;&nbsp;&nbsp;&nbsp;&nbspabc&nbsp;&nbsp;&nbspyow In Internet Explorer 6.0, the columns look ok using the above html: 1234 abcd ...
37
by: Jan Tovgaard | last post by:
Hey everyone:) We have a critical problem, which I can see that other people also has ran into. In Internet Explorer 7 it is no longer possible to do a window.close after opening a window,...
16
by: Eric | last post by:
I have a user of a web application written in Java/JSP that is unable to login to the site simply because certain links on the page do not run when they are clicked. Other popups using Javascript...
1
by: Sassenach | last post by:
Hi, folks, For the last two days, I have been unable to load the Amazon.com US site. This is the only site that I can't load, and the problem exists with both Firefox and IE7. When I attempt to...
17
by: mansb2002 | last post by:
Hi, We recently moved our webserver from Win2K to Win2003. The application works fine. Only problem is that when user views a report as a PDF, IE does not show it. The following code is used to...
7
by: psybert | last post by:
Hello everyone, Long time lurker, first time poster. I'm a beginner coder, and I've taught myself everything with the help and expertise of users and websites like this one. I normally figure out...
1
by: shidhincr | last post by:
I have some doubts regarding XML and XSL transfornation using javascript.Hope SomeOne will help me for solving this problem. Actually i Created a javascript for transforming XML and XSL. i made...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.