alstone Posted May 7, 2009 Share Posted May 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/ Share on other sites More sharing options...
premiso Posted May 7, 2009 Share Posted May 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-828579 Share on other sites More sharing options...
alstone Posted May 7, 2009 Author Share Posted May 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-828584 Share on other sites More sharing options...
premiso Posted May 7, 2009 Share Posted May 7, 2009 <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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-828587 Share on other sites More sharing options...
alstone Posted May 7, 2009 Author Share Posted May 7, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-828611 Share on other sites More sharing options...
premiso Posted May 7, 2009 Share Posted May 7, 2009 When you view the source of the page that the iframe is on, what is the html code returned? Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-828634 Share on other sites More sharing options...
alstone Posted May 7, 2009 Author Share Posted May 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-828791 Share on other sites More sharing options...
premiso Posted May 7, 2009 Share Posted May 7, 2009 What happens when you go directly to that site in MSIE (not in the iframe)? Does it work? Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-828803 Share on other sites More sharing options...
alstone Posted May 8, 2009 Author Share Posted May 8, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-829196 Share on other sites More sharing options...
premiso Posted May 8, 2009 Share Posted May 8, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-829413 Share on other sites More sharing options...
alstone Posted May 8, 2009 Author Share Posted May 8, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-829805 Share on other sites More sharing options...
premiso Posted May 8, 2009 Share Posted May 8, 2009 I dunno, it could be that the asp file is having a caching problem. I do not think your issue lies on the PHP. You may look how to set no-cache headers in .asp. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-829810 Share on other sites More sharing options...
alstone Posted May 8, 2009 Author Share Posted May 8, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-829819 Share on other sites More sharing options...
premiso Posted May 8, 2009 Share Posted May 8, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-829828 Share on other sites More sharing options...
alstone Posted May 8, 2009 Author Share Posted May 8, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-829840 Share on other sites More sharing options...
premiso Posted May 8, 2009 Share Posted May 8, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/157243-msie-not-resolving-getiframe-correctly/#findComment-829852 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.