task

FIX-PRB-6765

PROBLEM TO SOLUTION

  1. TITLE =
    1. 'FIX-PRB-6765'
  2. DESC =
    1. WHEN='click select change option' RESULT='2nd level select does not populate'
  3. [WHERE]
    1. ] ON PG = 'view/money'
  4. [WHEN]
    1. ] PG loads, the select boxes change event doesnt fire, hence 2nd level select doesnt fill
  5. [WHAT.HAPPENS.WHEN]
    1. x] ERROR MSG = 'none'
    2. x] ERROR MSG DETAILS =''
  6. [CAUSE.SUSPECT]
    1. ] = ''
  7. [TRY =]
    1. ]
    2. [TEST=]
      1. ] ...
    3. [RESULT=]
      1. ] ...
  8. [RESOLUTION=]
    1. ] ...
  9. [STATUS]
    1. ] RESOLVED, ] Pending,] Working
  10. [OTHER]
    1. openDate: 2017-01-08
    2. openBy: don.sagrott
    3. startDate:2017-01-08
    4. completeDate: 
    5. owner: don.sagrott
    6. time: 8.0 +

[previously]

  1. [2017-01-08][00:00] NEW task IN ?
    1. ] # 6765 - FIX-PRB-6765 - selects not loading in  
  2. [00:00] NEW article IN 
    1. ] # # - 

[currently]

  1. ] PROBLEM - inner 
    1. ] dlgtransaction is using DUPLICATE div id
    2. ] EDIT = changed from id=grpSelects, to class=grpSelects
  2. ]  SOLUTION (working)
    1. x] bind to an event higher up, 
    2. x] TRY= use "document" 
    3. x] TEST = pass
    4. ] TRY body, ... 
    5. x] TRY div id=wrapperForm, 
    6. x] TEST = pass chr
    7. ] CAUSE: binding to element that doesnt exist yet, 
    8. ] http://stackoverflow.com/questions/14942048/why-is-my-jquery-onchange-not-working-for-dynamically-added-selects 
    9. ] ?=why does it work in FF, IE
  3. ] SOLUTION (working)
    1. *] now all selects have the same event bound to each, BUT 
    2. ] NEED = assign specific function per select ( hence the original code of #FromAccount.on('change', doSomething) 
    3. x] SOLUTION: assign .on delegated event to a 'higher up' element in the dom (ex document,body, ... I am using div wrapperForm )
    4. x] pass data(args) with event via data map
    5. x] use arg to customize the generic fillSelectL2

[next]

  1. ]

[reference]

  1. ] https://api.jquery.com/on/#on-events-selector-data-handler
  2. ] http://stackoverflow.com/questions/3273350/jquerys-click-pass-parameters-to-user-function

PRB 5 - 001 (contd) 
- x] TEST=PASS works local, works in ie 
- x] TEST = FAIL in chrome ( ) 
- delegates || select boxes
TRY 
- change VS onchange , change works in ie, onchange
- html5 event attributes , NOT select object methods
TRY 
- rename without hyphen(-) in object names,FromAccount VS From-Account, works in IE, still no go in chr
TRY 
- rem balance of change event script, 
- works in ie, no go in chr
 TRY 
- execute code FromAccount change in console - then it fires
TRY 
- test in FF works

<!------------------------------------------------------------------------------------ 
money [_v_003 ][ base= dlgSelect4_transaction.cshtml ][ 2012-09-30 ][ copyright don.sagrott, all rights reserved ] 
------------------------------------------------------------------------------------ 
[ def ] dlg PAGE used to display a GENERIC 4 level cascading select, 
modelled on casc sel used in sendEmail feature (id=552) [ called ] money.cshtml 
[ revision history ] 
--------------------------------------------------------------------------------------- 
001] _v_001 
002] _v_002 NEW VERSION - adding favorites 

[===current===] 
---------------------------------------------------------------------------------------- 
] 

[===next===] 
---------------------------------------------------------------------------------------- 
] 
[ begin CODE ] 
------------------------------------------------------------------------------------------->
Details Photos Edit more

Details

ID: 6765

NAME: FIX-PRB-6765

DESCRIPTION: ] # 6765 FIX-PRB-6765 - money update - selects NOT populating on PG add/transaction -

START DATE TIME: 2017-01-09 08:22:20

EST DURATION: 01:00:00

END DATE TIME: 2017-01-09 09:22:20

STATUS: To-Do

PRIORITY: -5

OWNER ID: 1

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities