Forum Moderators: open

Message Too Old, No Replies

Writing Textarea content to a popup window

Getting undefined error

         

ASPhopeful

11:12 am on Feb 2, 2005 (gmt 0)

10+ Year Member



Hi All,

I have built a CMS system. When you are editing a page the people don't know what it will look like until they save the changes. I therefore have added a link "Preview this page" which opens a new window. I want the contents of the textarea written into this new page.

My form is called pagechangeform
My textares is called pagecontent

In the popup I am using:
document.write(document.opener.pagechangeform.pagecontent.value());

However, I am getting the error:
"document.opener.pagechangeform" is null or not an object.

Can someone please point me in the right direction.

Many Thanks,
Helen.

ASPhopeful

11:47 am on Feb 2, 2005 (gmt 0)

10+ Year Member



changed document to window and all works now.