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_TopicIcon
Subgrid Hyperlinks Don't work.
14/08/2009
10:03
Avatar
Greg
Guest
Guests

Hi All. I have a grid with a subgrid. In this subgrid are hyperlinks that worked fine in jqGrid 3.4. I recently updated to 3.5.2 and my hyperlinks in the subgrid seem to be getting hijacked by the grid itself. Is this a bug or am I doing something wrong? If I right-click on a subgrid hyperlink I can open it in a new window fine.

Has anyone else seen this issue?

Thanks!

Greg

14/08/2009
10:27
Avatar
Jose
Guest
Guests

is it just an hyperlink or you use javascript for calling a function?.

I had this issue and was because i was calling in that way:

<a href=”javascript:openWindow(…)”….

I changed this to:

<a href=”javascript:void(0);” onclick=”openWindow(…)”…

and that worked.

14/08/2009
10:49
Avatar
Greg
Guest
Guests

Hi Jose. Thanks for getting back to me. It's just a regular hyperlink. no Javascript for the link at all. It's really just simple html.

Here is the code I extracted from the page using firebug:

<a href="index.cfm?tab=My GCA&pageName=frm_orderComments&ocmOrderID=1406">Add</a>

Pretty simple stuff which is why I am so confused. . .maybe it's the space in the link?

15/08/2009
02:54
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Yes the problem is the space.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

17/08/2009
10:36
Avatar
Greg
Guest
Guests

Hi Tony.

Thanks for getting back but I checked the hyperlink with a simple website (http://www.google.com) and it is still not working. Any possibility that this is a bug in 3.5? Seems like something in the grid is hijacking the link action. . .

It's puzzling.

19/08/2009
05:17
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

What you use grid as subgrid or “pure” subgrid?

Sorry, that I not ask before.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

19/08/2009
08:24
Avatar
Greg
Guest
Guests

Hi Tony. Just a simple subgrid:

Code:

            subGrid :    true,
            subGridUrl:    'ajax/ajx_dspChildOrders.cfm?showHeader=no',
            subGridModel:    [{    name : ['ID','Type','Sch. Del.','Comments','List'],
                                width : [45,150,90,90,70],
                                params:['ord_order_id']},
                            ],
            afterInsertRow: function(rowid, aData) {
                if ($('#sub-' + rowid + '').get(0).innerHTML == 0) {
                    $('#' + rowid + ' td:first-child').unbind();
                    $('#' + rowid + ' td:first-child').html('&nbsp;');
                }
            },

Like I said before, these links worked fine with jqGrid 3.4. It was just when I upgraded that the hyperlinks returned were getting hijacked somehow. Again, if you right click on the link in FF and select “open in new window” it works fine.

21/08/2009
02:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Greg

Thanks. This is a bug and is fixed in GitHub. You can grab the source and test and if you have difficulties with this, you should wait for the next bug fix release.

Regrads

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
39 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