Forum



10:24

30/06/2010

Hello everyone,
the jqGrid is a great tool and we are evaluating to implement this to our companies software developement standard.
Unfortunately we have a recent problem using jqGrids "afterInsertRow" method in conjunction with jquery's "attr" method.
The problem is as follows:
After we added an "onclick" attribute into each table row, using jquery's "attr" method, the Internet Explorer (7) ignores this parameter. With Firefox it work fine.
Does anyone has experienced problems like this before?
We would appreciate any hint that point us to the reason!
Here is the code:
jQuery(document).ready(function(){
function ModifyGridRow (rowid,rowdata,rowelem) {
$("#"+rowid).attr('onmouseover', 'javascript:alert('hallo');');
}
jQuery('#list').jqGrid({
url:'/cgi-bin/ajaxresponders/HubZuordnungAjax.pl'
,datatype: 'json'
,mtype: 'POST'
,caption: 'jquery attr test'
,sortname: 'HUBSTDORT'
,sortorder: "asc"
,colNames:['ID', 'Bundesland', 'HUB-Standort']
,colModel :[
{name:'ID', index:'ID', key:true, title:false, hidden:true}
,{name:'BLANDNAME', index:'BLANDNAME', title:false}
,{name:'HUBSTDORT', index:'HUBSTDORT', title:false}
]
,afterInsertRow:ModifyGridRow
})
});
If we use the plain HTML code of the DOM structure, copied from the firebug or DOM Browser, the MS Internet Explorer works fine
thanks in advance
thaham
Most Users Ever Online: 715
Currently Online:
74 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66