473,394 Members | 1,737 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,394 software developers and data experts.

pgm_b fires before pgm_a is completed

I have a link on my form like:

<a href="javascript:pgm_a();pgm_b()><img src="a-.jpg"></a>

that I want to do 2 things:
1) open up a component window and let the user make a selection and
store the result in an input text field we will call fielda,
2) update another field we will call fieldb based on the value of what
gets stored in fielda.

What is wrong with the way I have this link is that pgm_b gets fired off
right after pgm_a fires and does not wait until the user has made the
selection.

I don't want to modify the component window and put code in there to
execute pgm_b because it is used on many screens and is only applicable
to this screen. I don't want any custome code in there.

Pgm_a resides in the component window and pgm_b resides in the screen
window.

I tried putting an onBlur event in the input field where pgm_a updates,
but it doesn't get fired off.

Any thought are appreciated.

Mike

Jul 20 '05 #1
1 1181
OK this is what I did to fix the problem I was having.

1) on the <input> object I included an onblur="pgm_b" event and took pgm_b
out of the link.
2) in the component window I inlcuded a focus, then a blur to the input
object mentioned in 1) above.

pgm_b then fires off when it should.

Mike

Michael Hill wrote:
I have a link on my form like:

<a href="javascript:pgm_a();pgm_b()><img src="a-.jpg"></a>

that I want to do 2 things:
1) open up a component window and let the user make a selection and
store the result in an input text field we will call fielda,
2) update another field we will call fieldb based on the value of what
gets stored in fielda.

What is wrong with the way I have this link is that pgm_b gets fired off
right after pgm_a fires and does not wait until the user has made the
selection.

I don't want to modify the component window and put code in there to
execute pgm_b because it is used on many screens and is only applicable
to this screen. I don't want any custome code in there.

Pgm_a resides in the component window and pgm_b resides in the screen
window.

I tried putting an onBlur event in the input field where pgm_a updates,
but it doesn't get fired off.

Any thought are appreciated.

Mike


Jul 20 '05 #2

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

Similar topics

0
by: Will Griffiths | last post by:
Hi, I am running DB2 v8.1 ESE on Windows 2000 and have a single instance on my machine with 3 nodes. When I attempt to run *any* command using db2_all I get the following output (my machine...
3
by: Vic | last post by:
Dear All, I have a database of laboratory records in Access 2000. There is one form which acts as an interface to input experimetal data. This form incorporates information from several tables....
2
by: Niklas Ringdahl | last post by:
Hello. I am using databindings to bind my dataset to comboboxes, textboxes and labels. Some of my UI depends on knowing when the user changes the values, but I have some problems knowing when my...
1
by: Craig | last post by:
Hi, I'd just like to know why, when a System.Threading.Timer timer is fired, and I set a class variable to CurrentThread within the Timer method, that when calling Join on that thread in a...
9
by: HL | last post by:
I am using VS 2005 Beta - C# Problem: The Timer fires a few milliseconds before the actual Due-Time Let's say a timer is created in the following manner: System.Threading.Timer m_timer = null;...
19
by: Heidi Hundåla | last post by:
Hi ! I have a Wep App in C#. Page_Unload fires after Page_Load, and it seems totally unreasonable when you want to use this event when you _leave_ the page. In my project we wanted to use...
3
by: Sandy | last post by:
Hi All! I have a password textbox and a verify password textbox. I threw in the compare validator to make sure both values agree. I noticed, however, that immediately the compare validator...
0
by: slemen | last post by:
My GridView is bound in VB code to a DataTable. The RowUpdating event fires when the row's Update linkbutton is clicked and the row contains the old, pre-edited values (as is expected.) ...
6
by: kirk | last post by:
I have three events, using event handler methods as depicted below. Two of those event handler methods need to reset specific data whenever the other event left fires. I wasn't sure how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.