MDanz Posted October 28, 2009 Share Posted October 28, 2009 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 More sharing options...
seanlim Posted October 28, 2009 Share Posted October 28, 2009 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 Link to comment https://forums.phpfreaks.com/topic/179291-function-in-other-frame-help/#findComment-945981 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.