AnsweredAssumed Answered

Switch statement JS - Typeerror e is null -

Question asked by alex92190 on Jun 9, 2014
Latest reply on Jun 10, 2014 by alex92190
Hi all,
I am trying to create a GIS data portal that allows users to select one out three diffent methods for data extraction.
1) extract by graphic extent
2) extract by extent of a county
3) extract by unit (calfire)


I am using a switch statement that allow the users to select either one of these methods independently as shown on this thread.

The 1st extraction method works fine  but the two next return an error in firefox is:

TypeError: e is null http://js.arcgis.com/3.9/ Line 136


The error in internet explorer error is:

TypeError: Unable to get property 'style' of undefined or null reference



You can access a template of my app here:

http://testegis.fire.ca.gov/its/alexapps/clipandship/index.html



The code itself is here:

http://jsbin.com/rozic/1/edit

If any of you have ideas how to solve this. That would be very helpful!

Thank you,
Alex

Outcomes