Page 1 of 1

application.showURL problem

PostPosted: Mon Sep 09, 2013 12:30 pm
by logicimpresa
Hi to all,
I have this problem: in some smart client this function run correctly:

Code: Select all
function openURL(urlWebSite) {
   if (urlWebSite) {
      var url = urlWebSite
      //not empty - check for http
      if (url.indexOf('http://') < 0) url = 'http://' + url
      application.showURL(url, '_blank')
   }
}


In other PC instead of the call is not executed: Application Server does not detect any error, the same JVM.
What could be the problem?

I use Servoy 7.2 on Windows Server, the clients run Windows 7/XP.

Thanks.

Re: application.showURL problem

PostPosted: Mon Sep 16, 2013 12:12 pm
by Andrei Costescu
When it doesn't work:

  • is the used URL valid?
  • what does the application.showURL(...) method return? True or false?
  • does anything appear in Java Console window (if you enable it from Control panel)?
  • does something appear in the smart client's status bar (something like "URL was copied to clipboard")?

Re: application.showURL problem

PostPosted: Mon Sep 16, 2013 1:28 pm
by Adelo Herrero
Hello:

If urlWebSite begins by "https://"; url will value "http://https:// ..." Is this correct?

Best regards.

Re: application.showURL problem

PostPosted: Mon Sep 16, 2013 1:32 pm
by Andrei Costescu
No. Only one protocol should be part of the URL.
In this case "https://". You could search for existence of "://" instead of "http://" for example.

Re: application.showURL problem

PostPosted: Mon Sep 16, 2013 10:51 pm
by logicimpresa
Hello to all,
the problem has been resolved by reformatting the PC.
I just wanted to know what could be the problem.
No errors in Jvm, no errors in console, url's correct, work in webclient but not in smartclient.

Thanks