Jump to content

function in other frame help


MDanz

Recommended Posts

echo curPageURL();

 

 

this only works if the function is in the same frame.  how do i direct it to the function in another frame.

 

 

i get this Fatal error: Call to undefined function curpageurl() in /home/ustackc1/public_html/menu.php on line 78

 

 

i tried this and still get the above. 

 

echo parent.link_frame.curPageURL();

 

 

Link to comment
https://forums.phpfreaks.com/topic/179291-function-in-other-frame-help/
Share on other sites

it is not possible to call a php function in another frame.

 

if i'm not mistaken, 2 separate requests are made to the server for the 2 frames. Since the PHP function can only be called at runtime, there is no way to access the PHP function in the other frame without another request being made (e.g. using javascript to reload the other frame)

 

calling a javascript function from another frame is possible if i remember correctly

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.