Subject:
Re: Calling a web browser from xace
From:
Ed Griffiths <edgrif@sanger.ac.uk>
Date:
22 Jan 2003 12:16:08 -0000
Newsgroups:
bionet.software.acedb
Path:
canopus.cc.umanitoba.ca!newsflash.concordia.ca!News.Dal.Ca!torn!news-out.cwix.com!newsfeed.cwix.com!bloom-beacon.mit.edu!hgmp.mrc.ac.uk!net.bio.net
Newsgroups:
bionet.software.acedb
Organization:
Sanger Institute
Lines:
68
Sender:
mod-ace@hgmp.mrc.ac.uk
Approved:
BIOSCI Approval Key <biosci-approval-key@net.bio.net>
Message-ID:
<3E2E7334.EEE67953@sanger.ac.uk>
References:
<3E2DC39D.5090608@cc.umanitoba.ca>
NNTP-Posting-Host:
mercury.hgmp.mrc.ac.uk
MIME-Version:
1.0
Content-Type:
text/plain; charset=us-ascii
Content-Transfer-Encoding:
7bit
X-Trace:
niobium.hgmp.mrc.ac.uk 1043237769 21067 193.62.192.80 (22 Jan 2003 12:16:09 GMT)
X-Complaints-To:
news@net.bio.net
NNTP-Posting-Date:
Wed, 22 Jan 2003 12:16:09 +0000 (UTC)
X-Original-To:
acedb-submit@hgmp.mrc.ac.uk
X-Accept-Language:
en
X-Auth:
PGPMoose V1.1 PGP bionet.software.acedb iQCVAwUAPi6LiKCIqsWvyF5FAQEU0AP/fHh5B49NFnYuQvaj+d5sYrQ8v1civF/k OICAD+YLEbSoc00KRDT/k6oQzY/OB1Va2zKCMFtu/wU4G/njsMx7/TivGd9gdOuZ 6Q9nDm3oIGWnk2SiFLUyvxuckDifESM99waEmXOpOJD2w/VQRAS6nbMhLMdJ0MfI zYL1xMk2JGI= =5hBw
Xref:
canopus.cc.umanitoba.ca bionet.software.acedb:3687

Brian,


> 1) Pick_me_to_call - This isn't hard to implement
> using a wrapper which generates a command like
> 
> netscape http://www.acedb.org
> 
> The problem is that
> if you already have Netscape running on the desktop,
> this command tries to launch another instance of
> Netscape, and Netscape will ask you to open a new
> profile etc., which is messy. Is there a way to
> tell an already running copy of Netscape to open
> an new window at some URL?


You can use the netscape "-remote" command flag to get pages displayed in an
already running netscape. From the netscape man page:

  -remote remote-command
      Instructs Netscape to execute a command in a Netscape process that is
      already running.  See the online Netscape handbook for a list
of            valid commands.

there are options to get pages displayed in a new netscape window or an existing
one.



> 2) Is there an internal function in xace that
> lets you call a browser? wdemo/wspec/models.wrm seems
> to imply this:
> 
> ?Url    Url UNIQUE Text // Simple, text of URL
>          Template UNIQUE ?Url // use this object as a generic template
>          Reference_tag UNIQUE Text // look for this tag in the reffing
> object for url
>          Remove_prefix UNIQUE Text // prefix to remove to make url
>          Remove_postfix UNIQUE Text // postfix to remove to make url
>          Prepend UNIQUE Text // then add this to the beginning
>          Append UNIQUE Text // then add this to the end
>         Web_location UNIQUE ?WWW_server
> 
> ?WWW_server     Url UNIQUE Text // Simple, text of URL
>                 Use_name Text // (optional) Classname
>                 Rewrite Text UNIQUE Text Text UNIQUE Text
>                 Reference_tag UNIQUE Text // look for this tag in the reffing object
> for url
> 
> I'm sure usage should be self evident, but it would sure
> be nice to have an example.


You can also use this way of getting stuff displayed in a browser, a combination
of reading the comments in wspec/models.wrm and wdoc/url.hmtl distributed with
the source code should get you started.

If you have problems then get back to us at acedb@sanger.ac.uk

cheers Ed


-- ------------------------------------------------------------------------ | Ed Griffiths, Acedb development, Informatics Group, | | Wellcome Trust Sanger Institute, Wellcome Trust Genome Campus, | | Hinxton, Cambridge CB10 1SA, UK | | | | email: edgrif@sanger.ac.uk Tel: +44-1223-494780 Fax: +44-1223-494919 | ------------------------------------------------------------------------ 