Actually, it's super easy. All you have to do to call a function in the page framing the greybox is prepend it with "top.".
(eg) top.ShowCommentBox(msgID); -- Tyler Style http://malthusian-solutions.com http://nirdvana.com MetalvoicE wrote: > hi all > i have this javascript in the parent page > <script type="javascript" language="javascript"> > function PopupPicker(ctl,w,h) > { > var PopupWindow=true; > settings='width='+ w + ',height='+ h + > ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no > '; > PopupWindow=window.open('DatePicker.aspx?Ctl=' + > ctl,'DatePicker',settings); > PopupWindow.focus(); > } > > function ToggleDivState(ctrl) > { > div = eval(ctrl); > if (div.style.display == "none") > div.style.display = ""; > else > div.style.display = "none"; > } > > function ShowCommentBox(msgID) > { > // set the ParentMessageID hidden field with the ID of the message > being commented > document.forms[0].ParentMessageID.value = msgID; > // expand the CommentBox div > ShowCommentBox2(); > } > > function ShowCommentBox2() > { > // expand the CommentBox div > CommentBox.style.display = ""; > // jump to the CommantBox, so that it becomes visible even if the page > // is very long and the user is currently at the top of it > window.location.href = '#CommentBoxAnchor'; > } > function CallFun() { > /* ChildWin is the name of the child window */ > addcomment.ShowCommentBox() > } > > </script> > > and i use the graybox javascript to open an popup window > how can i call the ShowCommentBox(msgID) function in the graybox popup > window ? > > plz help > > thanx alot --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GreyBox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/greybox?hl=en -~----------~----~----~----~------~----~------~--~---

