474,044 Members | 4,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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**********@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


Jul 19 '05 #1
0 1198

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

Similar topics

4
2744
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. Thanks, Greg
25
2031
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 until I hosted them on our IIS server. Then the pages refuse to see nested javascript calls. e.g.
0
1311
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
1584
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
4279
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 avaliable at... http://www.geocities.com/binnyva/code/javascript/advanced_tutorial/ If any of you could spare the time, please have a look at my tutorial
5
3018
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 to general questions such as: Will my VBA still work? What is the migration procedure?
10
3952
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 page, which sets a $_SESSION variable. javascript.js: <script type="text/javascript"> <!--//
5
1777
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 niggerly problems, this one baffles me. This is a very simplistic example of the problem. <%@ Language="JavaScript"%>
7
4140
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
10546
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11602
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8698
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6652
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6837
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.