Link to home
Start Free TrialLog in
Avatar of tchous
tchous

asked on

IFRAME and DHTML contents not appearing correctly

I have a website in which is all HTML based. Content creators are not developers, so I have to make it as simple as possible  In the left hand column, there is a menu system, with Dynamic Flyouts..

Based on the region the person is in, it shows the proper menu. I use an IFRAME as the left hand column with ASP and cookies within that to display the proper menu.

My problem is when you highlight over the menu choices and a flyout should appear, it stays within the IFrame so it tends to be cutoff as if it goes behind the rest of the webpage. This is an intranet page where all browsers will be IE 5.5.

Is there a way to layer this over top of the existing page, or maybe I am missing a completely better alternative.

Thanks.

Avatar of bruno
bruno
Flag of United States of America image

well first of all, you can not get the menu to show over the rest of the web page.


what I would recommend is that you get rid of the iframe and use server side includes instead.


http://www.bignosebird.com/ssi.shtml


you can use a server side scripting language to determine which include to show based on the region.



BRUNO
I wouldn't say that the question is clear enough without a code example or (better, if possible) url with the example there.

Thank you.
leveret, what don't you understand about the problem?  the menu is going behind the page...
Avatar of tchous
tchous

ASKER

bruno,

Can you use SSI within just plain HTML pages?

Right now the way I am calling the Menu into the contents is thru frontpage extensions..

<!--webbot
      bot="Include"
      u-include="includes/contents/d_contents.htm"
      tag="BODY" -->

Here is the code that accomplishes the left column. Is there a way with cookies that I can change this??
Avatar of tchous

ASKER

bruno,

Can you use SSI within just plain HTML pages?

Right now the way I am calling the Menu into the contents is thru frontpage extensions..

<!--webbot
      bot="Include"
      u-include="includes/contents/d_contents.htm"
      tag="BODY" -->

Here is the code that accomplishes the left column. Is there a way with cookies that I can change this??
ohhh FrontPage....

you can use SSI with plain HTML pages if the server is set up to support it.  all the info should have been in that article I linked to.


BRUNO
Avatar of tchous

ASKER

We are running IIS here, and it basically only explains Apache. So i have no clue how it works..
oh ok, same deal.


rename your file to .shtml or .asp, that forces the file to be parsed by the server first.

you can set up the server to parse any file extension but those are usually pre-set.

then just include the file.


<!--#include file="includes/contents/d_contents.html"-->
brunobear,
Yep :) Reread it and got it.

tchous,
Frames and iframes are not meant to show anything behind their area. So you just need to use something instead. While you are already using ASP (did I got u right?) you can use it for includes as well.
Avatar of tchous

ASKER

My whole problem is that I can't use ASP.

The pages have to be HTML since I am only initially designing, and people with less experience will be continuing after me.

That is why I used an IFrame initially. So I could at least call an ASP page that would read the cookie, and right the correct #include.  

As weird as it sounds, I'm not allowed to just make everything .ASP.  The SSI will not work either. That requires changing the extension. Is there something I can do possibly with client side scripting to do this??
brunobear,
Yep :) Reread it and got it.

tchous,
Frames and iframes are not meant to show anything behind their area. So you just need to use something instead. While you are already using ASP (did I got u right?) you can use it for includes as well.
ASKER CERTIFIED SOLUTION
Avatar of bruno
bruno
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tchous

ASKER

your right thanks for the help
Hope it works for you!  THanks for the A.  :-)