Avatar of avo42
avo42
 asked on

remove include on some inner frame

Hi all

can you please help me out with this one

im hopeing to use php for this if possible ok what i have got is a page.php in this page im also got a frame everytime i click a link on the index.php it loads the selected page in the frame

so
>include_once('header.php')<
----->>>>index.php

--->>frame

----->>>>index.php
>include_once('footer.php')<

so thats my index.php layout but some pages it loads im wanting to remove the footer so

the example bellow (badpage.php)i need the footer removed and frame size changing from say 300 to 600

if (frame is badpage.php){

remove footer from index.php
make hight 600 not 300 on index.php

}

how can i do this please ?

all help appriciated.

Web Languages and StandardsPHP

Avatar of undefined
Last Comment
avo42

8/22/2022 - Mon
amit_g

What was the problem in

http:Q_21972949.html
avo42

ASKER
Hi

sometimes i dont know why but the footer is shown and the size does not change .javascript is enabled on the browser is there a check we can do on this is javascript is not enabled as well please .

do you have any more ideas please ?

thanks in advance.
amit_g

Does it not work always or does it work sometimes and doesn't work sometimes? Do you have it online where we can see it?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
avo42

ASKER
hi

yes sometimes it works sometimes not tryed it both in ie and firefox
its not viewable online got it on local server to test .

i will pop it on a external server for you to view

http://test.teamconsole.eu 

thanks again.
avo42

ASKER
ok if you click member at top this will remove footer and make frame bigger or if you enter a first name in the footer and a lastname then click search

amit_g

Yes it works. Waht do I do to see the problem?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
avo42

ASKER
hi

randomly the footer stays and screen size stays the same

if you click member at top or enter a name in firstname and last name then click search

whats yours like in I.E please is it ok ?

thanks in advance
amit_g

I am using FF and it works fine as long as I am at http://www.identitypi.com. When the domains are mixed i.e. I am at http://test.teamconsole.eu/ and submit I see the problem and the problem is due to the fact that the top url is at test.teamconsole.eu while the iframe url is domain www.identitypi.com and so the javascript cannot access location.href. This happens when you submit the form. You need to make form action url relative instead of absolute. So change

<form action="http://www.identitypi.com/packages.php" target="floater" method="GET">

to

<form action="packages.php" target="floater" method="GET">

avo42

ASKER
hi

thanks i will check that out and sort the page action links out

thanks again
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
avo42

ASKER
Hi

Is there any other way we could try and do this

http:Q_21972949.html

it is ok here in the uk but usa says its missing intermittantly

thanks for your help
amit_g

Is there a difference between the URL when accessed from USA and UK? The javascript logic is not country dependent so there must be something else that is causing it.
avo42

ASKER
hi

no nothing everything is now using identitypi server which is a usa host

http://test.teamconsole.eu/  was just a test to show you the issue is with identitypi

i can not recreate the fault they are on about on identitypi but the see it intermittant on I.E and FIREFOX

hope you can help me out
all help appriciated
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
amit_g

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
avo42

ASKER
Thank you

i will let you know how it goes
avo42

ASKER
Thank you

you was correct there was a hard code url in an form action

appriciated