agnonikov

Hi All,

have one strange problem. Scenario:
1) Server with MS CRM 3.0 and some custom client-side scripts applied to CRM elements (OnChange, OnLoad handl;ers etc.)
2) PC A with IE7 installed
3) PC B with IE6 installed
4) PC C with IE7 installed

Problem is, that some (not all!) JavaScript events are just not fired on PC A and PC B. At the same time, same code form same server are running perfectly well on PC C!
OnLoad events are working everywhere. OnChange - almost never on PC A and PC B.
I tried to make every change I could think of in IE security settings - it didn't help.
During making chaotic changes to IE settings on PC A I managed to make events fire normally - but when I closed IE window and re-opened it - every problem returned back.
Event handler code is written on javascript and it does not matter whats inside - even alert("test"); is not working.

Does anybody have any idea, what can prevent IE6-7 to stop firing OnChange events

I completely lost..

Best regards, Alexander G. Nonikov


Re: Internet Explorer Web Development Please help !!! - Javascript OnChange events are not fired

Ashish Basran

Check if JavaScript is disabled on PC A and B. You might like to check security settings of IE






Re: Internet Explorer Web Development Please help !!! - Javascript OnChange events are not fired

agnonikov

Not so easy.
Finally I traced it down to DHTML behaviour problem.
We have IMG.lu.htc behaviour, which implements some kind of lookup control. To fill it I can eighter use a standard popup dialog with list of values or use Form Assistant pane from the same page.
On CRM New Case page I have a number of such lookups for different entities.
Repro steps:
Open new case,
On new case form choose Account from Form Assistant pane (important !) Account field onChange is fired - but from this point no other lookup fields will fire their OnChange events. (while Account continues to fire it's own as intended)

If you use any other lookup except Account first, or use Lookup pop-up window to choose account - everything will work fine.
Finally I traced down to following code at IMG.lu.htc (function RaiseOnChangeEvent)

onChangeEvent.fire(oEvent);

On Acccount lookup it works as intended - fires whatever is put into onchange event. For all other fields - it doesn't do anything ! Don't know why..





Re: Internet Explorer Web Development Please help !!! - Javascript OnChange events are not fired

Black01

Hey I have a similar problem writing custom wizards for CRM. On certain occassions, onchange stops firing for certain lookup and date controls.

Did you find a solution to this problem Thx! JB