简体   繁体   English

基于列值的超链接弹出消息

[英]Hyperlink popup message based on column value

I have the jquery grid columns like below. 我有如下的jquery网格列。

colNames: ['Site_Name', 'Details'],
colModel: [{ name: 'Site_Name', index: 'Site_Name', width: 130,editable: false,
sortable: false,formatter: 'showlink', formatoptions: { 
baseLinkUrl: 'javascript:', showAction: "Link('", addParam: "');"} },
{ name: 'Details', index: 'Details', width: 400, editable: false, sortable: false }],

Hyperlink is formed for a column. 超链接是为一列形成的。

once the user clicks on that hyperlink based values in another column (let's say status of that record/row). 一旦用户单击另一列中基于超链接的值(假设该记录/行的状态)。 I need to display a popup message before navigating to the actual page. 在导航到实际页面之前,我需要显示一个弹出消息。

How can I write a click event on a custom formatted hyperlink? 如何在自定义格式的超链接上编写click事件?

From your code I can see once user clicks the hyperlink then function Link() is called. 从您的代码中可以看到,一旦用户单击超链接,就会调用Link()函数。 So the Link() function is the place where you can show the popup message before navigating to the url. 因此,Link()函数是您可以在导航至URL之前显示弹出消息的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM