variable is undefined

hi in this web page i mount in a ajax aplication

www.dizifilmseyret.com

you can see it in the sidebar. right hand side of the page. when first combobox is selected the second combobox is being updated. it works good in firefox.there is no problem.but in ie it says that "cotoci is undefined". i worked on it but i couldnt resolve the problem. what is the problem? thank you very much. i am not good at javascript.files that are related with this problem

<script type="text/javascript" src="app.js?v=0.1" ></script>
<script type="text/javascript" src="basics.js?v=0.5"></script>
btocakciAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gnoonCommented:
It's related with file encoding. You're using unicode character within app.js by following line

ci.options[0] = new Option("Þehir bulunamadý.");

but it may not be saved in proper encoding.
Try to open the file with notepad and save as UTF-8 encoding, or change the message to ANSI characters, or specify a proper charset attribute at the script element.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
btocakciAuthor Commented:
i did what you said.app.js is solved but now i think the problem is with the basics.js. i applied the same procedure to basics.js file but it didnt work.
0
gnoonCommented:
what's error message?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

btocakciAuthor Commented:
'null',  null or it is not an object.

cant you see from the internet explorer status bar?
0
gnoonCommented:
No, I dont see.
It seem works now as far as I wait until the second list was changed, but if I scroll the first list fast I get script error at this line in app.js

scr = function(){
    var r = scr.arguments[0].responseXML.documentElement; <------ error: 'scr.arguments.0' is null or not an object
    ...

You may improve it to this

scr = function(){
    if(!scr.arguments[0]) return;
    var r = scr.arguments[0].responseXML.documentElement;
    ...
0
btocakciAuthor Commented:
thank you.i made the change ;)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.