View Full Version : Web Browser Object
hobbsdan
10-20-2003, 09:59 PM
Please help. I want to use a web browser object in AMS4. When I click on a link within the browser I would like the application associated with the file to launch in a separate window or even within the same window if possible (i.e. if I click a link on a file that was made in Microsoft Excel or Word I would like that application to launch) so that the file can then be edited and saved in a new location (a folder on the end users system).
Thanks,
Corey
10-20-2003, 10:34 PM
Create a link, i.e. #worddoc in your web page, and then in the web browser object's On Navigate Complete event insert:
1. A WEB BROWSER OBJECT > GET PROPERTY > URL action to get the URL into a variable.
2. Use a STRING > GET DELIMITED STRING action using # as your delimiter and 1 as your item index. Use the same variable name for the source and destination fields. This truncates your string to contain only the bit you want, i.e. "worddoc".
3. Use an IF statement or series of IF statments to discern which link was passed,, i.e. in this case "worddoc" and then launch the appropriate application however you like. The application you choose to launch it in may not be the user's default viewer though unless you set it that way. For example some people open .doc files with word whereas some people don't even own MS Office or Word so on their systems .doc files may open with a variety of different text editors or .doc viewers...
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
TJ_Tigger
10-21-2003, 08:24 AM
Corey,
That post looks strangely familiar. Are you becoming a cut and past King?
Corey
10-21-2003, 11:52 AM
Yes. I have a crudely fashioned tin foil crown and garbage bag cape and am now getting set to storm the veranda and address "my people". (my cat and the neighbor's kid)
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.