473,396 Members | 2,011 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,396 software developers and data experts.

onClick="CallMultipleFns" only invokes first function

Hi All,

I put up a toy webpage to test the use of various javascript
functions, etc.:
http://home.comcast.net/~CaptQueeg/JavaScriptDemo3.html

It has three links:

#1 clears a Trace area and adds three lines

#2 appends another line

#3 invokes functions 1 & 2 (with their respective arguments), but it
only presents the results of #1. It seems as though #2 never gets
invoked.

I tested this in both Firefox2 and IE7, as well my IDE, Aptana.

Did I make some dumb mistake, as usual :-( ?

Thanks in Advance,
Richard

P.S. I posted a version of this question on JavaScript Forum, but it
has very low traffic and waits upon moderator-review before actually
posting anything. I prefer this forum.

Oct 8 '07 #1
1 1642
Hi Chris,

Thanks for your excellent help.
Line 68 is:
var iCount = arElements.length
This fails because arElements is not defined. [snip]
That was my stupid mistake: I had fooled around with this code so
much that I left trash on the bottom. I excised it all, and it ran as
expected.
In Firefox:
Tools
Error console

will show you any JavaScript parsing or execution errors. This is where
to start looking for this sort of thing.
I didn't know that. Thanks for that heads-up.

I didn't think of it, because I haven't used it much, but I should
have run this with Firebug enabled. That was another stupid mistake.

Best wishes,
Richard

Oct 9 '07 #2

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

Similar topics

4
by: sara | last post by:
I've gotten my first function to work - to build a sql string to load a list box. I call the function whenever I want the list box loaded 1. When a customer is chosen - opens the frmCust and...
10
by: David Fort | last post by:
Hi, I'm upgrading a VB6 app to VB.net and I'm having a problem with a call to a function provided in a DLL. The function takes the address of a structure which it will fill in with values. I...
4
by: jojowebdev | last post by:
I see how the window.opener works, pretty neat in that the pop window knows the parent. Is there a property that also knows the form field parent? My function does not know which of the 3...
5
by: Bill | last post by:
This database has no forms. I am viewing an Access table in datasheet view. I'd like to execute a macro to execute a function (using "runcode"). In the function, I'll reading data from the record...
6
by: Adrian | last post by:
Can anything bad happen by using a function pointer to a static function in a different module? Below is an example: //FILE: main.cpp #include <iostream> typedef int(*func_ptr)(void);...
1
by: ravimegharaj | last post by:
Hello, I have a query with First function in MS Access. I want to know the equivalent function in PLSQL. Your help will be highly appreciated. Thanks in advance. Ravi
3
by: ravimegharaj | last post by:
Hello, I have a query with First function in MS Access. I want to know the equivalent function in PLSQL. Your help will be highly appreciated. Thanks in advance. Ravi
4
by: George2 | last post by:
Hello everyone, I want to know why virtual function's footprint and performance is compared with normal function call. Here is my analysis, please review whether I am correct. Thanks. 1....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.