Reload web page in panel

Develop and Deploy Cross-Browser Web Apps .

Reload web page in panel

Postby joedarock » Thu Mar 10, 2016 7:47 pm

I have a panel that gets loaded with a web page at startup using iframeAutoLoad. This works. How can I subsequently load a new page into the frame using code? Can you post an example?
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: Reload web page in panel

Postby support » Sat Mar 12, 2016 4:51 am

ctrl.setIframeAutoLoad("http://xxxx",true);



ctrl.setIframeAutoLoad({
url:"http://xxxx",
query:{}
},true);
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am

Re: Reload web page in panel

Postby joedarock » Mon Mar 14, 2016 11:56 am

This works with some web pages, such as www.google.com and www.msn.com, but not with others like www.msnbc.com.

For instance, on www.msnbc.com, it throws an error that starts with :

"Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME about:blank
--[executed]--> MPS Head Additions (1) ?_rand=1457956333203:95
--[executed]--> MPS Header Additions (2) ?_rand=1457956333203:1070
--[executed]--> MPS Footer Additions (3) ?_rand=1457956333203:2069
SR Page Type Check: VM211:7
Resource interpreted as Script but transferred with MIME type text/plain: "http://feed.theplatform.com/f/7wvmTC/2JXKcQKnljTh?callback=angular.callbacks._8&context=1457956335&form=json". js__-BekgUko3jm5qnV892sbJzkOXtQhKNTkoPeFw18RC-E__NHpXpZEYA03r6Yt8zyp8TmN-OxLmlTOwzlWAiDhXiXM__HMcSb…:17
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: Reload web page in panel

Postby support » Mon Mar 14, 2016 3:40 pm

Some sites will raise errors in iframe.
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am

Re: Reload web page in panel

Postby joedarock » Mon Mar 14, 2016 7:17 pm

No, that wasn't the issue. The issue was that the panel wouldn't reload after the initial load at startup.
I made this work by preceding the iFrameAutoLoad statement with:

ctlname.refresh();
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: Reload web page in panel

Postby support » Tue Mar 15, 2016 7:06 am

There's a bug in iFrameAutoLoad, I just fixed it.
Please get the latest code from https://github.com/linb/CrossUI/tree/master/xui1.3 .
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am

Re: Reload web page in panel

Postby joedarock » Tue Mar 15, 2016 1:54 pm

Thanks, but what was the bug and what am I supposed to do to fix it?
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: Reload web page in panel

Postby joedarock » Fri Apr 15, 2016 3:11 pm

Can you tell me how to know if "setIframeAutoLoad" fails to load anything, for instance if there's no data available to load?

Joe
joedarock
 
Posts: 161
Joined: Thu Nov 19, 2015 8:39 pm

Re: Reload web page in panel

Postby support » Sat Apr 16, 2016 2:02 am

It cant, if it's cross domain,
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am

Re: Reload web page in panel

Postby karmacomposer » Sat Apr 16, 2016 5:51 pm

How do we get the latest version of crossui in setup form.

I cannot seem to find that on the github link above.

Mike
karmacomposer
 
Posts: 2
Joined: Tue Dec 29, 2015 3:25 pm

Next

Return to CrossUI for Web Apps

Who is online

Users browsing this forum: No registered users and 1 guest

cron