Thanks guys.
All my includes are in the head section, and the offending line is being
called from the page onLoad routine which I thought was only actioned once
the page HAD downloaded all its 'bits'. It doesn't do it when using PWS, so
at least I can carry on testing for the moment but it must be something it
the timing og page downloads.
I'll check out the DOM object to see how I can check the script loading -
any idea of the method?
In terms of sequence of events when the browser loads a page, is there some
info somewhere that explains it? I've browsed the web without much luck but
sometimes it's useful to know what keywords to look for ;-)!
Thanks again
Martin
"Chris Barber" <ch***@blue-canoe.co.uk.NOS PAM> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Object expected implies that the reference you used is either correct and
the object doesn't exist (script may have failed to load) or that the
reference is incorrect (eg. case sensitivity).
Try putting an alert into the script onload event to see if this pops up
before an alert at the point at which you call the function. You can also
use the DOM to check the script load status if you give the script an id
that you can refer to.
Make sure you .js files are referenced in the HEAD section of the html -
the page body shouldn't load until all elements of this section have loaded
*unless* you specify that a script can be loaded asynchronously.
Chris.
"Martin Walke" <ma**********@s pamvega.co.uk> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Hi,
This may seem like a client side problem but....
I have web pages that are made up of a number of javascript include files
as well as 'in page' script. They all work fine running locally until I
hosted them on our IIS server. Then the pages refuse to see nested javascript
calls.
e.g.
Main page contains JS code to call a function to one of the include files
(- no probs), which in turn wants to call a function in one of the other JS
include files but falls over with 'object expected' error in the line of
that call - I assume because it can't fine the function.
I think it may be something to do with processing order but as these files
are almost identical to another site that I created (certainly the JS
include files are and that worked 100%), I'm a bit lost. Any help would be
greatly appreciated.
Martin