Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-15-2013, 08:50 PM   PM User | #1
MrAtoBandMe
New Coder

 
Join Date: Mar 2013
Posts: 49
Thanks: 25
Thanked 0 Times in 0 Posts
MrAtoBandMe is an unknown quantity at this point
Question Why does my iFrame say that I need to enable cookies to view it?

I have a website's page that displays the following error message when I load it into an iFrame.

"This site currently requires the use of cookies. Please enable them in your browser and return to this page."

The website's page will load fine if I paste the exact same URL into my address bar on my browser. This website is not my website and I can not change any content on the website. I am using Internet Explorer 9, and I have cookies enabled.

Will I be able to load this website into an iFrame?
MrAtoBandMe is offline   Reply With Quote
Old 03-15-2013, 08:56 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,570
Thanks: 62
Thanked 4,060 Times in 4,029 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
I would suspect that the site doesn't want to be loaded into an iframe and has detected your attempt to do so. I would guess that the message you are getting is bogus.

That is, there are possibly several conditions the site/page tests for--cookies, loaded into a frame, etc.--and if any one fails it gives a message. And it's simply giving you the wrong message.

I assume you aren't willing to share the URL, else we could confirm/disprove my guess. But you could debug this, you know. IE's debugger should be able to find the JS code that is causing the message.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is online now   Reply With Quote
Users who have thanked Old Pedant for this post:
MrAtoBandMe (03-16-2013)
Old 03-15-2013, 09:07 PM   PM User | #3
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 976
Thanks: 0
Thanked 203 Times in 198 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Quote:
Originally Posted by MrAtoBandMe View Post
"This site currently requires the use of cookies. Please enable them in your browser and return to this page."

The website's page will load fine if I paste the exact same URL into my address bar on my browser.
Perhaps IE9 is treating the iframed document as third-party content and disallowing cookies on that basis.
Logic Ali is offline   Reply With Quote
Users who have thanked Logic Ali for this post:
MrAtoBandMe (03-16-2013)
Old 03-15-2013, 09:24 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,570
Thanks: 62
Thanked 4,060 Times in 4,029 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Dunno... I haven't had that problem with IE before, but it might be some Option setting.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is online now   Reply With Quote
Old 03-16-2013, 11:26 AM   PM User | #5
MrAtoBandMe
New Coder

 
Join Date: Mar 2013
Posts: 49
Thanks: 25
Thanked 0 Times in 0 Posts
MrAtoBandMe is an unknown quantity at this point
Thumbs up

Quote:
Originally Posted by Logic Ali View Post
Perhaps IE9 is treating the iframed document as third-party content and disallowing cookies on that basis.
This is exactly what is was.

Once I changed my internet privacy settings, the iFrame loaded the page just fine.

Thanks.
MrAtoBandMe is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:21 AM.


Advertisement
Log in to turn off these ads.