Another Internet Explorer problem... JQuery events

Posted by Parhs on Stack Overflow See other posts from Stack Overflow or by Parhs
Published on 2010-04-11T13:29:44Z Indexed on 2010/04/11 13:33 UTC
Read the original article Hit count: 485

Filed under:
|
|

Here is my spaggeti code

$("#table_exams tbody tr").click(function ()
{
    window.location.hash="#" +$(this).attr("exam_ID");
     window.location.href="/medilab/prototypes/exams/edit?examId=" + $(this).attr("exam_ID") +"&referer=" + referer;

   row_select(this);
});

$("#table_exams tbody tr td a").click(function ()
{

    window.location.hash="#" +$(this).parent().parent().attr("exam_ID");        
    var where="/medilab/prototypes/exams/edit?examId=" + $(this).parent().parent().attr("exam_ID") +"&referer=" + referer;
    window.open(where);
    row_select($(this).parent().parent());

alert("propaganda"); event.stopPropagation(); event.preventDefault(); return false;

});

The problem is that when this function is triggered $("#table_exams tbody tr td a").click(function () {

the other function is triggered also.... only in IE... What can i do for this????

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery