application.showURL problem

Hi to all,
I have this problem: in some smart client this function run correctly:

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.

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”)?

Hello:

If urlWebSite begins by “https://”; url will value “http://https:// …” Is this correct?

Best regards.

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.

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