Print

Print


Hi Tim.

Thanks a lot!  I will give this a try later and let you know how I fare.

Best,

David.

On 20/03/2008, Tim Hodson <[log in to unmask]> wrote:
>
> One way I have used to resolve this is to poll the object until it
> exisits before continuing.
>
> function myInit(id){
> 13 // if Obj is not defined yet, call this function again until it is.
> 14
> 15 if (typeof myObj == "undefined"){
> 16 createScript();
> 17 setTimeout("myInit()", 60);
> 18 return;
> 19 }
> 20 // do stuff onlu if myObj is now an object
> 21 else if (typeof myObj == "object"){
> 22
> 23 myGo();
> 24 return;
> 25 }
>
> HTH Tim
> 26}
>
>
> On 20/03/2008, David Kane <[log in to unmask]> wrote:
> > HI Folks,
> >
> >  We were one of the first libraries to get the GBS API working on our
> OPAC.
> >  Like many OPACs, ours is difficult to modify at times and requires a
> dynamic
> >  insert of a generated (by PHP) JavaScript, which is hosted on a
> separate
> >  server to the OPAC pages.
> >
> >  It seems to work fine on most browsers, giving an appropriate link to a
> >  full/partial text preview of that work on GBS.  I run into a problem
> with
> >  IE6, which means that the function defined in the JavaScript aren't
> >  available by the time the script is called at the bottom of the page.
> >
> >  You should be able to see a GBS link on most pages, here is an example:
> >
> >  http://witcat.wit.ie/search/i?SEARCH=0192833987
> >
> >  The attached image shows you what you should see.
> >
> >  If anyone can shed any light on this, it would be appreciated.
> >
> >  Thanks and best regards,
> >
> >
> >  David Kane
> >  Systems Librarian
> >  Waterford Institute of Technology
> >  Ireland
> >
> >
>
>
>
> --
> Tim Hodson
> www.informationtakesover.co.uk
> www.timhodson.co.uk
>