473,320 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Javascript includes not recognised - the sequel

Hi guys,

For those who responded before here's an update from hell!!!

I think I confused people before when I said on the 'page load' and Chris
suggested using the body onload. I was using the onLoad of the body tag
anyway to start my JS function.

Anyway, I changed the order of my includes such that the one that calls all
the rest was loaded last and that worked.....or so I thought.

Then it suddenly stopped working. I'd given all my includes IDs so I used a
while loop to make sure that the includes had fully loaded. I assume that's
right? If the ID is null then the object hasn't fully loaded?

Well, it passed the loops OK but the very next line was the call to one of
the nested calls which then failed! So the includes were loaded successfully
but not the functions???? How does that work then?

I couldn't find any way of determining whether a function was defined so I
simply recreated the function as a dummy function and lo and behold the
bl**dy thing worked! I added the meat to the function and it also worked. I
copied the code from the existing include to a new file, renamed it to the
correct name and run the page and ....... it worked!! There was another
instance of the page not working with a different nested function so I
repeated the exercise and ...... it worked.

So now I'm lost. Everything works exactly as it should do but it worries me
that the correcting action doesn't make sense. I've compared the newly
created file with the old non-working one both alphabetically and binary
wise and there is no difference.

Any ideas at this stage are purely academic but it would be interesting to
know why - and know what to prevent/check for in the future especially once
it's loaded at the client's! ;-)

Martin

"Martin Walke" <ma**********@spamvega.co.uk> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
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


Jul 19 '05 #1
0 1169

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: GJones | last post by:
Is there away to capture a session variable value from IIS and use it in a SQL 2000 trigger with out passing it as a part of a string query. I just want to capture it somehow systemically. ...
25
by: Martin Walke | last post by:
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...
0
by: Mike Doanh Tran | last post by:
Hi all, Does anyone have any suggestion for converting a Sequel database to MYSQL? I just want to copy a Sequel database data to a Mysql one. Thanks in advance for any suggestion, Mike --
11
by: Karl-Hugo Weesberg | last post by:
The evil AI creates virus and worm programs to conquer the internet and turn humans into slaves. Throw away javascript, fast, or your brain will be damaged beyond repair!
15
by: binnyva | last post by:
Hello Everyone, I have just compleated a JavaScript tutorial and publishing the draft(or the beta version, as I like to call it) for review. This is not open to public yet. The Tutorial is...
5
by: Ian | last post by:
Can anyone give me advice on migrating my Access backend to sequel server? I am sure there are discussion groups and documentation for this but don't know where to look. I am looking for answers...
10
by: ANTISPAM_garycnew_ANTISPAM | last post by:
I am trying to create/update a Php Session with Javascript to confirm if users have Javascript enabled. My first thought was to create a Javascript that writes a script tag referencing a php...
5
by: Martin Walke | last post by:
Hi all, Can someone help me out here? I'm been using ASP and VBScript for some years but have just ventured into the realms of using server side Javascript and apart from hitting various...
7
by: polychrom | last post by:
Is there some handy Javascript encryptor based on XOR algorithm? (html page with encoded javascript will have a "decoder stub" prefixed before the code that is actually executed.)
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.