Jump to content

php inside of div tag not passing value to parent page


CyberGuru

Recommended Posts

not sure if this is the right place for this....

 

I have a php page that contains a div with a php page inside the div.  On the page inside the div, when I click on a link I need it to change the value of a text box on the parent page.  All my attempts at this so far have been unsuccessful.  Can anyone point me in the right direction of how to accomplish this?  Thanks for any input and help. 

on the embedded page I am using the following javascript to change the contents of a text field on the parent page when a link is clicked.  However when I click the link the error I receive is the function change_text is not defined. 

 

function change_text()
{

message.value = "text to be changed to";

}

If the function isn't defined then it's either out of scope for the content within the DIV, or you're not correctly including it. All we can see is the definition of the function, which doesn't explain why it's not working with the rest of the page. Can you post the whole source?

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.