Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.