can't get ReloadEditedPage() to work

29 views
Skip to first unread message

Luca Loguercio

unread,
May 10, 2012, 11:22:10 AM5/10/12
to RedDot-C...@googlegroups.com
Hi,

We're in the process of upgrading to RedDot 10, but have found that
our plugins' previous way of reloading the SmartEdit page no longer
works. I've been trying the code on page 134 of
http://info.csmd.edu/cms/pdf/management_server_10_server_manager_en_US_Letter.pdf
(the ReloadEditedPage() function) but that doesn't seem to work
either.

Has anyone had any luck getting the SmartEdit page to reload once the
plugin is finished doing it's thing?

Thanks,

Luca

Jian Huang

unread,
May 10, 2012, 11:48:22 AM5/10/12
to reddot-c...@googlegroups.com, RedDot-C...@googlegroups.com
Hi Luca,

If the code is in the plugin, which is a new popup from SmartEdit, you can use

// Refresh page if it is in SmartEdit
if(window.opener.name == "Preview")
{
    window.opener.location.reload();
}
else if(window.opener.name == "ioActionMenu")
{
    // Refresh page if it is in SmartTree
    window.opener.ReloadTreeSegment();
}

If the code is within the page in SmartEdit, this should do

location.reload();

Best,

-Jian

Luca Loguercio

unread,
May 10, 2012, 11:57:44 AM5/10/12
to reddot-c...@googlegroups.com
awesome, works like a charm

thanks!

- Luca
> --
> You received this message because you are subscribed to the Google Groups
> "RedDot CMS Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/reddot-cms-users/-/EM5C6wnhE84J.
> To post to this group, send email to reddot-c...@googlegroups.com.
> To unsubscribe from this group, send email to
> reddot-cms-use...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/reddot-cms-users?hl=en.
Reply all
Reply to author
Forward
0 new messages