Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Jun 15, 2019 3:34 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ShowURL works differently in Linux
PostPosted: Mon May 31, 2010 5:30 am 
Offline

Joined: Sun Feb 14, 2010 11:19 pm
Posts: 213
Location: Australia
This works on Windows and Mac but not Linux

filepath = "http://www.google.com.au/index.html"
ShowURL filepath


Linux opens the default browser but cant connect. The address bar reads -
file:///home/Jenny/Documents/http://www.google.com.au/index.html

Why does it think the page is in my Documents folder?

(RB2009 R2)

[Edit]
Mandriva 2010 / Firefox 3.6 (Doesn't work with Konqueror either)


Top
 Profile  
Reply with quote  
 Post subject: Re: ShowURL works differently in Linux
PostPosted: Wed Jun 09, 2010 5:45 am 
Offline

Joined: Sun Oct 09, 2005 4:41 pm
Posts: 57
Location: Rheinbach, Germany
I have discovered the same issue. My workaround is to create a html file and launch that file.

dim clp as new Clipboard
dim f as FolderItem
dim s as string
Dim iniStream as BinaryStream
Dim i as Integer



f = GetFolderItem ( "tmp.html" )
s = "<head>"
s = s + "Redirect to http://www.vman.cc"
s = s + "<meta http-equiv=""" + "refresh" +"""" +"content="+"""" + "0; URL=http://www.vman.cc"""+">"
s = s + "</head>"

iniStream=f.CreateBinaryFile("")
iniStream.WritePString(s)
iniStream.Close



if TargetWin32 then

f = GetFolderItem("tmp.html")
if f <> nil then
f.Launch
else
//MsgBox("Can't locate contact.html in Application Folder")
end
end

if TargetLinux then
f = GetFolderItem("tmp.html")
if f <> nil then
f.Launch
else
//MsgBox("Can't locate contact.html in Application Folder")
end
end

if TargetMacOS then
f = GetFolderItem("")
s = f.AbsolutePath
s = s + "tmp.html"
f = nil
f = GetFolderItem(s)

if f <> nil then
f.Launch
else
//MsgBox("Can't locate contact.html in Application Folder")
end
end

_________________
Dierk Walter

http://www.vman.cc
Show Control and more


Top
 Profile  
Reply with quote  
 Post subject: Re: ShowURL works differently in Linux
PostPosted: Wed Jun 09, 2010 11:05 am 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
hmmmmmmmm
Ubuntu 9.10 and 9.04 are OK here using Firefox

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
 Post subject: Re: ShowURL works differently in Linux
PostPosted: Mon Jun 14, 2010 4:15 am 
Offline

Joined: Sun Feb 14, 2010 11:19 pm
Posts: 213
Location: Australia
Thanks V-man.
I put your code in a function and passed the URL address to it.
I don't know why it works with some Linux OS and not others but at least this method works for all I've tried so far.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group