Link to home
Get AccessLog in
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.

Avatar of amit_g
amit_g
Flag of United States of America image

What was the problem in

http:Q_21972949.html
Avatar of avo42
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.
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?
Avatar of 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.
Avatar of 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

Yes it works. Waht do I do to see the problem?
Avatar of 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
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">

Avatar of avo42

ASKER

hi

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

thanks again
Avatar of 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
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.
Avatar of 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
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
Avatar of avo42

ASKER

Thank you

i will let you know how it goes
Avatar of avo42

ASKER

Thank you

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

appriciated