Dunkin Donuts website

boy_toronto

Registered Member
Joined
Apr 11, 2010
Messages
66
Reaction score
21
Hey guys,

I need some help. I want to find the link for the content page of the dunkin donuts website.
news.dunkindonuts.com/alerts

I want to load the page in the browser without the header and the bottom page, I need the link for the page in the middle.
I checked the CSS and Jquery links but I couldn't find it.

Thanks
 
That's all 1 page, not 3 pages. If you're willing to share what you're trying to do, I can help you figure it out.

The entire page is built on the server and sent all at once. The template they have for header/footer is not available to you. For example, the page you provided is "Email Alerts". To you, it seems like the header is the same for all pages, but this page's title (<title>) is "Email Alerts ..." - and every page's title is different, because the header is built differently based on which page you request.

Edit: clarification
 
That's all 1 page, not 3 pages. If you're willing to share what you're trying to do, I can help you figure it out.

The entire page is built on the server and sent all at once. The template they have for header/footer is not available to you. For example, the page you provided is "Email Alerts". To you, it seems like the header is the same for all pages, but this page's title (<title>) is "Email Alerts ..." - and every page's title is different, because the header is built differently based on which page you request.

Edit: clarification

CSS can be applied to the webpage in an iFrame, OP is trying to remove the header and footer, which can be done with CSS selectors. Obviously, selectors cannot be applied inline within the "style=" attribute of the iFrame. Therefore...

Loaded from the parent page with Javascript into the iFrame:

Code:
var cssLink = document.createElement("link");
cssLink.href = "style.css";
cssLink.rel = "stylesheet";
cssLink.type = "text/css";
frames['frame1'].document.body.appendChild(cssLink);
 
CSS can be applied to the webpage in an iFrame, OP is trying to remove the header and footer, which can be done with CSS selectors. Obviously, selectors cannot be applied inline within the "style=" attribute of the iFrame. Therefore...

Loaded from the parent page with Javascript into the iFrame:

Code:
var cssLink = document.createElement("link");
cssLink.href = "style.css";
cssLink.rel = "stylesheet";
cssLink.type = "text/css";
frames['frame1'].document.body.appendChild(cssLink);


I haven't tried it, but I don't think that will work; your browser should block XSS like this (as it would allow you to iframe logged-in pages, for example Facebook, and silently steal private content from within it, for example the user's email address).

OP seems to be implying the Dunkin Donuts website has 3 iframes - it does not. TheDopest's solution assums OP wants to iframe the news page on his own website, which I don't see in the original post - that's why I asked for clarification.

Depending on what OP wants, it may be easiest to get the page with cURL and use regex to keep only what he wants.
 
I haven't tried it, but I don't think that will work; your browser should block XSS like this (as it would allow you to iframe logged-in pages, for example Facebook, and silently steal private content from within it, for example the user's email address).

OP seems to be implying the Dunkin Donuts website has 3 iframes - it does not. TheDopest's solution assums OP wants to iframe the news page on his own website, which I don't see in the original post - that's why I asked for clarification.

Depending on what OP wants, it may be easiest to get the page with cURL and use regex to keep only what he wants.

Whoops, completely forgot about xss, haven't worked with iFrame in ages but I know similar rules apply to canvas with cross-origin. Also guess I misunderstood OP.
 
Back
Top