iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I am having trouble with the very simple task of refreshing a window from another window. My javascript function is
function refreshIfExists(winName, winURL) { var dm = ISGetObject("WebDesktopManager1"); var wnd = dm.GetWindow(winName); if (wnd != null) { wnd.ContentMode = "UseIFrame"; wnd.ContentURL = winURL; wnd.LoadContent(); } }
The above function is plaed on the page of my WebDesktopManager... and is called by winodws useing parent.refreshIfExists('wndName', 'url');
I can get the WebDesktopWindow and manipulate it with Maximize() and Close() methods, but I am unable to refresh the Window despite trying many different commands.
Please advise. Thank you!
Hi Alex,
Sorry to tell you, but we do not have a refresh behavior. Because in IFrame, once the IFrame window is opened and loaded, we do not have to re-load it again for the sake of performance. One other way to manipulate the refresh, is by re-setting the content of URL.
Here are the sample code that I made by modifying you code:
function refreshIfExists(winName, winURL)
{
var dm = ISGetObject("WebDesktopManager1");
var wnd = dm.GetWindow(winName);
if (wnd != null)
wndRef.ContentURLChanged = true;
wnd.SetContentURL(winURL);
}
Thank you,
Andi Santoso
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname