dbTalk Databases Forums  

Script a button to go to www

comp.databases.filemaker comp.databases.filemaker


Discuss Script a button to go to www in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Railman
 
Posts: n/a

Default Script a button to go to www - 07-20-2005 , 10:20 PM






I have a problem that I can solve if there is a way to script a button
to send me to the internet. I would like a button on on the FM screen
that I could press to go to "www.abcdefg.com".
Can it be easily done? If so could you give me a point in the right direction.


Reply With Quote
  #2  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Script a button to go to www - 07-20-2005 , 11:53 PM






In article <2005072021202816807%railman@sasktelnet>, Railman
<railman (AT) sasktel (DOT) net> wrote:

Quote:
I have a problem that I can solve if there is a way to script a button
to send me to the internet. I would like a button on on the FM screen
that I could press to go to "www.abcdefg.com".
Can it be easily done? If so could you give me a point in the right direction.
Create a script that uses the Open URL command and then define the
button to perform that script.

BUT there are a couple of problems:

1. You need to have your computer set-up properly with a default web
browser application.

2. For an Internet web site you have to include the http:// part of
the address.

3. The web address needs to be correct, eg. no spaces.

That second one can be a problem if your using a field to hold the
address and some / all of the data does not already include the http://
part. The easiest way around this is to have a Calculation field that
makes sure it is added
ie.
CorrectedWebAddress Calculation, text result
= If (Left(WebAddress, 7) <> "http://",
"http://" & WebAddress,
WebAddress)

and then use this field in the Open URL command.



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.