views:

54

answers:

3

I am using javascript and ajax the most in my project source. All functions are working well in firefox. But some of them are not working in ie 6 and 7 browsers. Mainly Delete is not working for any page in my project. I dont know how to resolve those bugs. And dont know how to see errors in ie browsers.. So Plz help me to resolve this issue. Thanx in advance

A: 

Tools -> Internet Options -> Advanced -> Enable Script debugging.

RichardOD
+1  A: 

Download and install Internet Explorer Developer Toolbar and test your pages. Since you said you are using AJAX I think error can be javascript related.

In IE javascript erros are shown on the left hand side of the status bar (bottom).

You can also make IE show notification about error message by going to

Tools-> Internet Options -> Advanced [Tab]

and choose "Display a notification about every script error".

Please post more info about your issue.

  1. What is happening when you call the "delete" fucntion?
  2. What is it supposed to do?
Shoban
function confirm_delete() { alert("hi"); id=14; var deletingName=document.getElementById(id).innerHTML; var con_del=confirm("Do you want to delete "+deletingName+" addressbook ?"); if(con_del) { window.location.href="sync.do?reqCode=deleteParticularContact } else return false; }This is what i m trying to do.Url alone not changing in ie 6 and 7
A: 

create try-catch statements in your code, and alert or print error messages recieved in the catch clause:

try {
    somethingThatDoesntWork();
} catch(e) {
    alert(e.message);
}

Using this with the other tips on getting some proper debugger running should help quite a lot (:

peirix