javascript - How to locate bug from clients view for a syntaxerror -


i have webpage uses various libraries , personal javascript code. i've tested on machine , works.

when pushed production user informed page broken. after looking @ console log see page throwing syntaxerror on generic function seems fine. can't reproduce on machine happens on theirs.

i'm assuming either different os issue or x-browser version issue (i'm using win-8, chrome using mac, chrome). see how function break , spit out error saying couldn't execute function of undefined. next step in trying identify cause?

the syntaxerror "unexpected token ("

is there php can inject page more info error?

var objbillmanager = { ...     objbilltablemanager:{ ...         getsbillsstatus(bpayed){             if(bpayed == "1"){                 return "payed";             } else {                 return "not payed";             }         }, ...     }, ... } 

without seeing more, it's hard know what's going on. else mentioned, firebug pretty debugger.

one thing noticed: getsbillsstatus not defined function. should this:

getsbillsstatus: function(bpayed){     if(bpayed == "1") {         return "payed";     } else {         return "not payed";     } } 

maybe that's issue?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -