Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
afterInsertRow
30/06/2010
10:24
Avatar
thaham
New Member
Members
Forum Posts: 1
Member Since:
30/06/2010
sp_UserOfflineSmall Offline

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 Confused

thanks in advance

thaham

01/07/2010
09:27
Avatar
fzimmer
New Member
Members
Forum Posts: 1
Member Since:
01/07/2010
sp_UserOfflineSmall Offline

Hi folks,

I know this problem very well and I have no solution yet. If anyone solved this problem in his work, please let us know.

Greez

fzimmerConfused

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information