Q: reloading OTXHTMLScriptViewEntry

1 view
Skip to first unread message

Seong Kim

unread,
Nov 20, 2009, 5:46:42 PM11/20/09
to otrunk-dev
Does anybody know how one can reload a window that has initially been
loaded from an ERB through OTXHTMLScriptViewEntry, or if it's possible
at all?

I have a pop up frame from the RI-ITEST class report and I want to
change the content of the frame based on check box selections on that
frame.

If it is impossible I'll have to put the check boxes on the main
screen so the content is determined before the frame pops up.

Thanks.

-Seong

Scott Cytacki

unread,
Nov 24, 2009, 3:06:58 PM11/24/09
to otrun...@googlegroups.com
I worked with Seong over IM to answer this. My solution (not sure if
Seong got it to work yet) was:

Add an OTScriptObject to the html page rendered by the OTXHTMLScriptView.
And have that OTScriptObject add listeners to the OTCheckBox.
When the checkbox's state changes then reload the current page by doing:
$viewContainer.reloadView
or if that doesn't work then do:
$viewContainer.parentContainer.reloadView

After thinking about it a bit more, I think this might also work without
the extra OTScriptObject. The script from the OTXHTMLScriptView can
probably add a listener itself to the OTCheckBox and this will also work.

Scott
> --
>
> You received this message because you are subscribed to the Google Groups "otrunk-dev" group.
> To post to this group, send email to otrun...@googlegroups.com.
> To unsubscribe from this group, send email to otrunk-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/otrunk-dev?hl=.
>
>
>

Seong Kim

unread,
Nov 24, 2009, 6:30:22 PM11/24/09
to otrunk-dev
It worked with an OTScriptObject and
$viewContainer.parentContainer.reloadView.
It takes rather a long time to reload because it literally reloads
everything.

-Seong
Reply all
Reply to author
Forward
0 new messages