Forum Moderators: not2easy

Message Too Old, No Replies

Importing an external webpage in css

want to create a webmail login on a page

         

moishe

10:49 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



Howdy all,
Here's what I want to do:
My host provider webmail login page is mysite.com/webmail, it is a plain page with a webmail login in the middle of the page, using css, how would I import this page into area on my webpage thus allowing me to login to my webmail directly from my webpage.
A side issue to this:
I want to make sure the webmail loads in the whole window and not just the area containing the login box.
Thanks for ya'lls help on this.

Stratus42

3:26 pm on Feb 15, 2004 (gmt 0)

10+ Year Member



I want to make sure the webmail loads in the whole window and not just the area containing the login box.

Well Moishe, until you put that little caveat in at the end, I said to myself: "self, what this person needs is an <iframe> with src set to the URI of his login page". But, unless you have access to the source of your login page and can ensure that it opens to "_blank" or target="_namedWindow", that won't work.

My next throught was ..hm.. what about using an include.. but I've just tried that, and it won't work - soooo.. I'm stumped, any other bright ideas I have pretty much rely on having access to the source of your login page, and involve passing variables etc..

sorry, not much help here - but I'd be very interested to see if anybody can think of a solution - I can't discover any way to pass something like a "<base target="_namedWindow" to an iframe -

sorry :-(

Lana

moishe

4:28 pm on Feb 15, 2004 (gmt 0)

10+ Year Member



Thanks for your input, ultimately I got the correct paths from the host provider so I was able to just put a form on the page. I would still like to figure out how to do this as I described though, I can forsee where this knowledge could be useful at some point in the future so if anyone has an idea, plz let me know.
Thanks again,
Moishe

MWpro

4:44 pm on Feb 15, 2004 (gmt 0)

10+ Year Member



You may want to have a look at this thread What CSS Can and Cannot Do [webmasterworld.com]. CSS is only used for styling elements on a page; basically CSS just deals with the page's appearance, not how it works or what it can do. If you're talking about including a separate file on a different page, then what you need is a server side programming language, such as PHP.

CompressedAir

6:01 pm on Feb 15, 2004 (gmt 0)

10+ Year Member



Yep, you would need to use something such as a PHP include to do that. The included file would just have the code for login box, or whatever you needed for that certain area on the page. If you have a div setup for the login area and have some css styles defined in your sheet for the login page, you would use something like:

<div id="loginbox">
<? include("includes/login.html");?>
</div>

Where login.html would be the meat of the login form, contain the buttons etc.
Hope that helps :)