SetText works only fine if I put an alert insinde the script

Hi,



my script work’s not fine, but I don’t know why.



        



    





I placed this empty alert inside and it works, if not the script only loads the xml.



Thanks for your help



Markus

XML loading is async. , you can work with options only after data loading.



z.loadXML(“data_<%if (session.getAttribute(“lang_type”) != null){ out.print(session.getAttribute(“lang_type”)); } %>.xml”,function(){
//executed only after data loading

z.setComboText("<%if (session.getAttribute(“bank_title”) != null){ out.print(session.getAttribute(“bank_title”)); } %>");
z.setComboValue("<%if (session.getAttribute(“bank_title”) != null){ out.print(session.getAttribute(“bank_title”)); } %>");

});