ShowUrl weirdness

Questions, tips and tricks and techniques for scripting in Servoy

ShowUrl weirdness

Postby Riccardino » Fri Aug 08, 2003 2:29 pm

Hi,

I wrote a simple method that takes the content of a field (MovieTitle) and uses the openurl command to perform a search on the Internet Movie DataBase.
The method is:
application.showURL("http://us.imdb.com/Find?" + MovieTitle)
In servoy developer, it returns me the message 'If running in client...", showing the correct url. I also tried to paste the url from the clipboard and it works.
In Servoy client, the button doesn't do anything.
Even stranger, I have another button that uses the showurl function (in this case, it takes only the value of a field, as url) and it works fine.

Any idea? :wink:
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Jan Aleman » Fri Aug 08, 2003 3:32 pm

Make sure to replace the spaces with %20 then it will work fine.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Riccardino » Fri Aug 08, 2003 5:37 pm

jaleman wrote:Make sure to replace the spaces with %20 then it will work fine.

I did it, but I still had problems: the button reacted to my action, but it didn't work also (it appeared a generic error message.

So, I tried to start Servoy server, instead of using Developer as server: the problem disappeared :D
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Jan Aleman » Fri Aug 08, 2003 5:47 pm

Probably you didn't reload your solution in Client after fixing it in Developer? I personally tested it with Developer as a server and it worked perfectly fine.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth


Return to Methods

Who is online

Users browsing this forum: No registered users and 11 guests

cron