We have a complicated parser that produces html from a meta format. Now, we are 
having a problem in that eventhandlers (like onClick) are not being triggered 
when the focus is on a field which has the onBlur eventhandler set. We could 
solve the problem if JS is multi-threaded or if there a way to change the 
priority of an event. Anyway, to summarize the problem we have something as 
shown below:

<script>
function onBlurHandler(val) 
{
        document.getElementById('testarea').innerText="text entered: " + val; 
        alert('alerting text'); 
}
</script>

<form>
        <input name="text" type="text" id="input" 
onblur="onBlurHandler(this.value)" size="5" />
        <input type="button" value="Amend" text="button" onclick="alert('Amend 
Clicked!');"/>
        <div id="testarea"></div>
</form>

We want that when a user clicks on the Amend button the action handler of the 
amend is executed after executing the onblur event. 

The code above works as expected only if we comment the alert('alerting text') 
in the onblur event handler. If alert('alerting text') is commented out then 
the code works as expected and the onclick handler (of the Amend button) is 
called after calling the onBlur event handler.

Is there a feasible workaround to this?  

Joseph 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325715
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to