seventheyejosh Posted January 29, 2009 Share Posted January 29, 2009 Hello all, i'm relatively new to javascript and i keep getting this error. Error: Object doesnt support this property or method. When i debug it says that this line is the bad one: function change_cal_value(){ exercise=encodeURI(document.getElementById('exercise').value); qty=document.getElementById('qty').value; url='<URL>='+exercise+'&qty='+qty+'&act=no&1=1'; sndReqListb(url); } i cant seem to figure out this, any help would be much appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/142994-javascript-ie-error/ Share on other sites More sharing options...
Maq Posted January 29, 2009 Share Posted January 29, 2009 Have you instantiated the variables? Should be something like: var exercise=encodeURI(document.getElementById('exercise').value); same with: var qty=document.getElementById('qty').value; Quote Link to comment https://forums.phpfreaks.com/topic/142994-javascript-ie-error/#findComment-749953 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.