Re: Problem with onblur event

2009-08-27 Thread Dave Watts

> Likewise with all of those: can anyone provide clear benefits that are more 
> significant
> than jQuery's clear dominance as THE JavaScript library:
> ...
> With other "minority" technologies (like CF), there are clear improvements 
> that make
> them worth using compared to the more popular choices, but that's not 
> something I've
> seen with any of the other JS libraries out there. (Otherwise I'd use them!)

Well, I could waste my time writing a thoughtful response, but someone
else already has:

http://jqueryvsmootools.com/

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:325779
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Problem with onblur event

2009-08-26 Thread Peter Boughton

> You recommended to Joseph not to bother looking at YUI. If he doesn't
> based on your advice, does that count as an "unrestricted choice"? I
> mean, sure, he could have disregarded your advice, but this is more a
> demonstration of the value of evangelism than of the comparative
> features of the two products.

My point is more that the "JS Library War" has been fought and won already.

I wouldn't waste time looking at YUI - unless someone can offer real technical 
benefits that it has that jQuery, Mootools, Prototype, etc don't have.

Likewise with all of those: can anyone provide clear benefits that are more 
significant than jQuery's clear dominance as THE JavaScript library:
http://www.google.com/trends?q=jquery,yahoo+ui,mootools,dojo+javascript,prototype+javascript&ctab=0&geo=all&date=all&sort=0

With other "minority" technologies (like CF), there are clear improvements that 
make them worth using compared to the more popular choices, but that's not 
something I've seen with any of the other JS libraries out there. (Otherwise 
I'd use them!) 

~|
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:325754
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with onblur event

2009-08-26 Thread Dave Watts

> It's not an accurate measure, but when you give developers an unrestricted 
> choice between half a dozen libraries and more people pick jQuery than all 
> the others combined, that's
> a pretty good sign.

It's a pretty good sign of something. I'm not sure what, though. You
recommended to Joseph not to bother looking at YUI. If he doesn't
based on your advice, does that count as an "unrestricted choice"? I
mean, sure, he could have disregarded your advice, but this is more a
demonstration of the value of evangelism than of the comparative
features of the two products.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:325741
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with onblur event

2009-08-26 Thread Peter Boughton

It's not an accurate measure, but when you give developers an unrestricted 
choice between half a dozen libraries and more people pick jQuery than all the 
others combined, that's a pretty good sign.

CF's problem is more complicated - on a level playing field it would certainly 
have a greater market share, but unfortuantely the playing field is not level - 
due to bad past experiences, ignorant snobbery about tags, lack of advocacy 
from Adobe/Macromedia, and (until recently) the whole price issue, most people 
that reject it haven't even tried CFML recently, and many more people never 
even hear of it to start with.
(Hopefully the assorted recent events & groups will help to change all that.)


~|
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:325735
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with onblur event

2009-08-26 Thread Dave Watts

> I wouldn't bother - just go with jQuery! :)
>
> It's a much better library - as reflected by the huge number of major 
> companies using it:
> http://docs.jquery.com/Sites_Using_jQuery
>
> Compared to a small handful of mediocre ones using YUI:
> http://developer.yahoo.com/yui/poweredby/

While I like jQuery, popularity is only a measure of popularity, not
of value. As a CF developer, you should be keenly aware of that.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
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:325731
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with onblur event

2009-08-26 Thread Peter Boughton

> Regarding jQuery. Yes, I definitely agree with you. Currently we are 
> evaluating and comparing it with YUI.

I wouldn't bother - just go with jQuery! :)

It's a much better library - as reflected by the huge number of major companies 
using it:
http://docs.jquery.com/Sites_Using_jQuery

Compared to a small handful of mediocre ones using YUI:
http://developer.yahoo.com/yui/poweredby/



~|
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:325730
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with onblur event

2009-08-26 Thread Joseph Bugeja

Peter, 

Thanks a lot! Your solution is excellent.

For the time being we will replace the onclick event with the 
onmousedown...Writing cross-browser independent code proves to be very 
challenging.

Regarding jQuery. Yes, I definitely agree with you. Currently we are evaluating 
and comparing it with YUI.

Joseph.

> Ah, I missed the whole ordering bit there.
> 
> That's a browser-level problem.
> 
> In Chrome, you get both alerts, as intended.
> 
> In Firefox, the initial alert removes focus from the button so the 
> mouseup doesn't register, so the onclick doesn't occur.
> 
> Try:
> 1: Using a JS-built dialog box instead of alert (e.g. jQuery UI)
> 2: using the onmousedown event for the button instead of onclick. 


~|
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:325726
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with onblur event

2009-08-26 Thread Peter Boughton

That code works fine.

If you want help, you need to post the broken code.

Most likely, if commenting a line out works, there's probably an error caused 
by that line when its not commented.

The Firebug plugin for Firefox makes debugging JavaScript much easier.
And the jQuery library makes debugging JavaScript much rarer.

Both of these are highly recommended. 

~|
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:325716
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Problem with onblur event

2009-08-26 Thread Peter Boughton

Ah, I missed the whole ordering bit there.

That's a browser-level problem.

In Chrome, you get both alerts, as intended.

In Firefox, the initial alert removes focus from the button so the mouseup 
doesn't register, so the onclick doesn't occur.

Try:
1: Using a JS-built dialog box instead of alert (e.g. jQuery UI)
2: using the onmousedown event for the button instead of onclick. 

~|
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:325718
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Problem with onblur event

2009-08-26 Thread Tom Chiverton

On Wednesday 26 Aug 2009, Joseph Bugeja wrote:
> We want that when a user clicks on the Amend button the action handler of
> the amend is executed after executing the onblur event.

Doesn't sound much like a CF problem, but...

Your code doesn't have a blur handler for the amend button. 
If you mean you want the click handler of the amend button to trigger the blur 
of the input button, just have :


-- 
Helping to competently establish enterprise-class error-free wireless 
appliances as part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
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:325717
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Problem with onblur event

2009-08-26 Thread Joseph Bugeja

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:


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








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