Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-26 Thread KREYCHE, MICHAEL
> I looked into this issue some more and like to share a bit of > what I learned. > > The short answer is: use jQuery (or a library like it.) Thanks, Godmar, for investigating this further and sharing. > JQuery will determine when the document is ready and execute > your anonymous function then,

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-25 Thread Godmar Back
DE4LIB@LISTSERV.ND.EDU > > Subject: Re: [CODE4LIB] Google Book Search API - JavaScript Query > > > > > Have you tried placing your code in an window.onload handler? > > Read the example I created at libx.org/gbs and if that works > > for you in IE6, use the techni

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread KREYCHE, MICHAEL
> -Original Message- > From: Code for Libraries [mailto:[EMAIL PROTECTED] On > Behalf Of Godmar Back > Sent: Thursday, March 20, 2008 10:45 AM > To: CODE4LIB@LISTSERV.ND.EDU > Subject: Re: [CODE4LIB] Google Book Search API - JavaScript Query > > Have you tried

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread Godmar Back
; Systems Librarian / Associate Professor > > > Libraries and Media Services > > > Kent State University > > > 330-672-1918 > > > > > > > > > > > > > -Original Message- > > > > From: Code for Libraries [mailto

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread David Kane
> Michael Kreyche > > Systems Librarian / Associate Professor > > Libraries and Media Services > > Kent State University > > 330-672-1918 > > > > > > > > > -----Original Message- > > > From: Code for Libraries [mailto:[EMAIL PROTEC

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread Ethan Gruber
t; -Original Message- > > > From: Code for Libraries [mailto:[EMAIL PROTECTED] On > > > Behalf Of Tim Hodson > > > Sent: Thursday, March 20, 2008 7:21 AM > > > To: CODE4LIB@LISTSERV.ND.EDU > > > Subject: Re: [CODE4LIB] Google Book Search

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread Mitchell, Matthew (mwm4n)
0:45 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] Google Book Search API - JavaScript Query Have you tried placing your code in an window.onload handler? Read the example I created at libx.org/gbs and if that works for you in IE6, use the technique there. (Or you may just use the entire s

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread Godmar Back
raries [mailto:[EMAIL PROTECTED] On > > Behalf Of Tim Hodson > > Sent: Thursday, March 20, 2008 7:21 AM > > To: CODE4LIB@LISTSERV.ND.EDU > > Subject: Re: [CODE4LIB] Google Book Search API - JavaScript Query > > > > One way I have used to resolve this

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread KREYCHE, MICHAEL
a Services Kent State University 330-672-1918 > -Original Message- > From: Code for Libraries [mailto:[EMAIL PROTECTED] On > Behalf Of Tim Hodson > Sent: Thursday, March 20, 2008 7:21 AM > To: CODE4LIB@LISTSERV.ND.EDU > Subject: Re: [CODE4LIB] Google Book Search API - Ja

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread David Kane
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 <[EMAIL PROTECTED]> 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 d

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread Tim Hodson
Excuse the line numbers... On 20/03/2008, Tim Hodson <[EMAIL PROTECTED]> 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 (typ

Re: [CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread Tim Hodson
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 //

[CODE4LIB] Google Book Search API - JavaScript Query

2008-03-20 Thread David Kane
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 browse