cross-domain includes

S

Steve

Hi all:

Dumb question time.

We have a frames page that we would like to take out of frames. The page is
divided into three sections: a header, middle (content), and a footer.

The content frame is actually being called from another web site using
syntax similar to this:
<frame name="bottom"
src="http://prefix.somedomain.com/Search/Search.aspx?ABCD_Id=xxxxx&nav=no"
marginheight="0" scrolling="auto">

This, of course, works well when in a frames page. However, I can't come up
with syntax that will let me bring this in to a non-frames page.

Any ideas?

Steve G
 
J

Jon Spivey

Hi Steve,

There's no way unless you can use some form of server side script - do you
have asp or asp.net available?

Jon
Microsoft MVP - FP
 
J

Jim Buyens

-----Original Message-----
Hi all:
Howdy.

Dumb question time.

OK, got my dunce hat on.
We have a frames page that we would like to take out of
frames. The page is divided into three sections: a
header, middle (content), and a footer.

The content frame is actually being called from another
web site using syntax similar to this:
<frame name="bottom"
src="http://prefix.somedomain.com/Search/Search.aspx?
ABCD_Id=xxxxx&nav=no" marginheight="0" scrolling="auto">

This, of course, works well when in a frames page.
However, I can't come up with syntax that will let me
bring this in to a non-frames page.

Any ideas?
Steve G

This sort of thing is very tricky. Basically, you have to
write something like an ASP or ASP.NET page that retrieves
the page from the other domain, then inserts your header
and footer, then sends the result to the visitor.

Of course, you'll also have to modify the HTML for any
hyperlinks, image, style sheets, and other components that
use relative URLs. Unless you convert these relative URLs
to absolute (pointing inside the other domain), they'll
point to your domain and something won't work.

Are you sure you can't live with framesets?

How about an inline frame?

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
S

Steve

Thanks Jim:

If necessary we can live with the frameset. The thing is, the content frame
contains a form that submits to itself. This cannot be modified, since the
form is coming from the other web site. What we are trying to do is change
the content in the header and footer, when the submit button has been
clicked, and the form submits to itself.

Since the form is submitting to its original page, which is being called
from a different server over which I have no control, I can't think of any
way to get the header page and the footer page to recognize the submit
action in the content page of the frameset. Hence my thought of trying to
get all of it out of a frameset and into a single page, where I could write
the appropriate code to get the header and footer to display the info I want
displayed after the form submits. I think the same problem would exist using
in-line frames, although I admit I have not tried that.

Steve G
 
S

Stefan B Rusynko

It would since you can't control the other servers page processing
Only other option is running it in a popup

--




| Thanks Jim:
|
| If necessary we can live with the frameset. The thing is, the content frame
| contains a form that submits to itself. This cannot be modified, since the
| form is coming from the other web site. What we are trying to do is change
| the content in the header and footer, when the submit button has been
| clicked, and the form submits to itself.
|
| Since the form is submitting to its original page, which is being called
| from a different server over which I have no control, I can't think of any
| way to get the header page and the footer page to recognize the submit
| action in the content page of the frameset. Hence my thought of trying to
| get all of it out of a frameset and into a single page, where I could write
| the appropriate code to get the header and footer to display the info I want
| displayed after the form submits. I think the same problem would exist using
| in-line frames, although I admit I have not tried that.
|
| Steve G
|
| | > >-----Original Message-----
| > >Hi all:
| >
| > Howdy.
| >
| > >Dumb question time.
| >
| > OK, got my dunce hat on.
| >
| > >We have a frames page that we would like to take out of
| > >frames. The page is divided into three sections: a
| > >header, middle (content), and a footer.
| > >
| > >The content frame is actually being called from another
| > >web site using syntax similar to this:
| > ><frame name="bottom"
| > >src="http://prefix.somedomain.com/Search/Search.aspx?
| > >ABCD_Id=xxxxx&nav=no" marginheight="0" scrolling="auto">
| > >
| > >This, of course, works well when in a frames page.
| > >However, I can't come up with syntax that will let me
| > >bring this in to a non-frames page.
| > >
| > >Any ideas?
| > >Steve G
| >
| > This sort of thing is very tricky. Basically, you have to
| > write something like an ASP or ASP.NET page that retrieves
| > the page from the other domain, then inserts your header
| > and footer, then sends the result to the visitor.
| >
| > Of course, you'll also have to modify the HTML for any
| > hyperlinks, image, style sheets, and other components that
| > use relative URLs. Unless you convert these relative URLs
| > to absolute (pointing inside the other domain), they'll
| > point to your domain and something won't work.
| >
| > Are you sure you can't live with framesets?
| >
| > How about an inline frame?
| >
| > Jim Buyens
| > Microsoft FrontPage MVP
| > http://www.interlacken.com
| > Author of:
| > *----------------------------------------------------
| > |\---------------------------------------------------
| > || Microsoft Office FrontPage 2003 Inside Out
| > ||---------------------------------------------------
| > || Web Database Development Step by Step .NET Edition
| > || Microsoft FrontPage Version 2002 Inside Out
| > || Faster Smarter Beginning Programming
| > || (All from Microsoft Press)
| > |/---------------------------------------------------
| > *----------------------------------------------------
| >
|
|
 
J

Jim Buyens

Steve said:
Thanks Jim:

If necessary we can live with the frameset. The thing is, the content frame
contains a form that submits to itself. This cannot be modified, since the
form is coming from the other web site. What we are trying to do is change
the content in the header and footer, when the submit button has been
clicked, and the form submits to itself.

Since the form is submitting to its original page, which is being called
from a different server over which I have no control, I can't think of any
way to get the header page and the footer page to recognize the submit
action in the content page of the frameset. Hence my thought of trying to
get all of it out of a frameset and into a single page, where I could write
the appropriate code to get the header and footer to display the info I want
displayed after the form submits. I think the same problem would exist using
in-line frames, although I admit I have not tried that.

I can't think of a reliable way to capture a form submission from
another frame either. According to MSDN Library, a frame *does* have
an onload event, so presumably you could add a script to the frameset
page that trapped that event. However, this would fire for *any*
onload event in the given frame, and not just for form submissions. I
guess you'd have to screen-scrape the content page for a message like
Form Submitted or Order Entered, provided such a message is available.
But even then, getting this to work with other browsers might not be
possible.

All in all, I think you should contact the operator of the other site
and see if you can work out a joint solution. Unless, of course, *you*
are the operator of the other site, in which case many other routes
are possible.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top