Jump to content

MSIE not resolving GET/iFrame correctly


alstone

Recommended Posts

Hiyas, this is my very first PHP experience, and it's working perfectly in all browsers but MSIE (what else is new?).

 

I'm importing an iFrame into a page. The iFrame has variables in the URL using the "get" method. So, I'm linking to a URL that populates those variables. However, in MSIE it doesn't display using those variables.

 

Here's an example of this problem.

 

This page should import a screen into the iFrame (main central area of this page) where you pick one of four appointment options. Works great in all browsers, but MSIE.

 

Here's what I have on my PHP page:

<iframe frameborder="0" src="http://clients.mindbodyonline.com/ws.asp?studioid=<? echo $studioid = $_GET['studioid'];?>&stype=<? echo $stype = $_GET['stype'];?>&sView=<? echo $sView = $_GET['sView'];?>" title="Gentle Journey Online Booking System" width="915" height="1000" align="middle">
</iframe>

 

However, when I send the browser to:

 

http://wawrra.pair.com/taurus/z.gj.mt/appt.scheduler.php?studioid=5692&stype=-9&sView=week

 

It should cause the iFrame URL to load with the words "Find an Appointment". In MSIE (many versions, 6 through 8 ) it loads with "Featured Clients" and that's not right.

 

Any ideas? Is it possible that the problem is in the iFrame? The weird thing is that in my Windows Vista installation, the problem doesn't exist. Is this about security settings in MSIE?

 

-al.

Link to comment
Share on other sites

To me it sounds like a Caching problem on the box where you are noticing this issue. Clear your browsers cache and temporary files and see if that helps.

 

I can do that, but it doesn't fix the problem since I asked a bunch of friends on a mailing list to check this page, and they all found the wrong iFrame displaying.

Link to comment
Share on other sites

<iframe frameborder="0" src="http://clients.mindbodyonline.com/ws.asp?studioid=<?php echo $_GET['studioid'];?>&stype=<?php echo $_GET['stype'];?>&sView=<?php echo $_GET['sView'];?>" title="Gentle Journey Online Booking System" width="915" height="1000" align="middle">
</iframe>

 

Try that. Notice you were echoing the assignment. Not sure why it would work sometimes and not others, but hopefully that fixes your issue.

Link to comment
Share on other sites

Try that. Notice you were echoing the assignment. Not sure why it would work sometimes and not others, but hopefully that fixes your issue.

 

Tried it, no change. I did empty my cache, and it is displaying like everybody else's MSIE is seeing it, with "featured clients" instead of the appointment making screen.

 

Any other ideas? Outlaw MSIE?

Link to comment
Share on other sites

When you view the source of the page that the iframe is on, what is the html code returned?

 

HTML code looks right. Here's the iFrame src before your suggestion:

http://clients.mindbodyonline.com/ws.asp?studioid=5692&stype=-9&sView=week

 

And here's the HTML from the page we modified as you suggested prior:

http://clients.mindbodyonline.com/ws.asp?studioid=5692&stype=-9&sView=week

 

Lookin' identical to me.

 

Link to comment
Share on other sites

What happens when you go directly to that site in MSIE (not in the iframe)? Does it work?

 

Yes, I've heard from four on my list and they all report that the correct page displays when one goes directly there.

 

Link to comment
Share on other sites

So IE has a known problem with caching iFrames that do not do "unique" requests. Give this a try and see what happens:

 

<iframe frameborder="0" src="http://clients.mindbodyonline.com/ws.asp?rand=<?php echo rand(111111, 999999);?>&studioid=<?php echo $_GET['studioid'];?>&stype=<?php echo $_GET['stype'];?>&sView=<?php echo $_GET['sView'];?>" title="Gentle Journey Online Booking System" width="915" height="1000" align="middle">
</iframe>

 

It should make it look unique each time so IE does not choose to cache it. Let me know if it works.

Link to comment
Share on other sites

It should make it look unique each time so IE does not choose to cache it. Let me know if it works.

 

No luck. The error page is still loading into the iFrame instead of the frame with the correct attributes.

 

Looks like the HTML is loading the random number, though.

 

<iframe frameborder="0" src="http://clients.mindbodyonline.com/ws.asp?rand=689598&studioid=5692&stype=-9&sView=week" title="Gentle Journey Online Booking System" width="915" height="1000" align="middle">
</iframe>

 

Any other ideas?

Link to comment
Share on other sites

This is a .php page which is predomaintely HTML with just the php importing the attributes for the iFrame.

 

".asp" means a windows server, right? This is on a Unix server.

Link to comment
Share on other sites

Am I not correct in that your iframe is calling an .asp page ?

 

http://clients.mindbodyonline.com/ws.asp?rand=689598&studioid=5692&stype=-9&sView=week

 

My point is, the problem lies else where. Your .php is fine for all I know. This issue does not lay within php. You may want to google IE iframe cache prevent or something similar as this seems to either be a script error (ASP page is caching) or a software error (Internet Explorer) which has nothing to do with the server/php code unfortunately.

Link to comment
Share on other sites

Am I not correct in that your iframe is calling an .asp page ?

 

I'm sorry, yes. The remote page is an asp page.

 

Okay dokay, is Firefox more widely used than IE yet???? Looking forward to that day.

Link to comment
Share on other sites

Okay dokay, is Firefox more widely used than IE yet???? Looking forward to that day.

 

Nope and I doubt it ever will be. IE8 is actually a pretty decent browser and is the closest to the standards of all the IE versions.

 

As long as your code works in IE8, yea. But most people still use IE 6 which makes everyone's life a hassle.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.