I am developing a web app in php with help from javascript. But in IE6, javascript function is not being called after clicking a button. I have tried a lot to tackle the problem but eventually I have to land up here…
I have tried a lot of things after googling but nothing worked out. Nothing happens after clicking the button though it works in FF, Chrome. Can anyone help me…
Your function name is different from the name your calling, IE is very sensitive to case types so if you simply change your onclick A(); to a(); it should work fine.
I have made the error bold and red so you can see it, what happens is in IE when it says a comma that’s not supposed to be there it automatically ends the script there and then while other browsers have been designed to read the code no matter if there’s a stray comma. To fix the error simply remove that comma and it should work fine after that.
Sorry but you changed the wrong function, what you need to do is revert the change for the function you removed the comma in as that had no issues. Next find the act_update function which starts on line 234 and end on line 249. Inside that function you will find the stray comma which needs to be removed as per my previous post.
I looked at your source and i kept missing the main issue, in your file you have act_update repeated about 3-4 times which is a simple oversight, if you remove the repeats the errors should go away and everything should work fine.