Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ViewState problem

Status
Not open for further replies.

dg043

Programmer
Apr 22, 2002
52
GB
I am trying to create an application that presents a button (which I shal call cmdA) in a frame in a browser. There is another frame below this which contains another button (which I shall call cmdB).
On click of cmdB, I want to make cmdA invisible. This seems like it should be a fairly easy thing to do and I can only guess that it must have something to do with ViewState. Can I anybody suggest an elegant solution? (preferably one that doesn't involve script commands)

Dan Griffiths
Software Analyst
National Grid Transco (NGT)
 
Because those two frames are physically and logically separate pages in your application, the only way to communicate between them is w/ JavaScript.

You can use the following syntax to access the other frame's document model:

parent.top.frames[index].document

From there, you have access to all of the document's objects.

-p

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top