Ext JS problem in the form of the hyperlink

My code is as follows:
var cm = new Ext.grid.ColumnModel ([
new Ext.grid.RowNumberer (),
(Header: "Name", dataIndex: 'name', width: 140),
(Header: "Age", dataIndex: 'age', width: 100),
(Header: "Year", dataIndex: 'grade'),
(Header: "operation", dataIndex: 'id', renderer: function (v) (return "<a href='javascript:sel(" + v + ")'> View </ a>"))
]);
function sel (id) (
alert ('test');
)

The question now is: Click "delete" when the hyperlink, there is no response, in the FF view, always suggest that del is not defined, is that why you? Should be how to solve, Xie

Thanks!

分类:Web 时间:2010-03-10 人气:272
本文关键词: lt renderer
分享到:
blog comments powered by Disqus

相关文章

  • renderer hyperlink Solution 2 2009-08-24

    <script type="text/javascript"> function showUrl (value) ( return "<a href='http://"+value+"' target='_blank'>" + value + "</ a>"; ) function abc (value) ( return String.format ( '<a href="

  • ext3.0 learning renderer hyperlink 2008-09-02

    <script type="text/javascript" src="extJs/adapter/ext/ext-base.js"> </ script> <script type="text/javascript" src="extJs/ext-all.js"> </ script> <link rel="stylesheet" type="

  • Flex learning records (ClassFactory generated using renderer) 2010-03-26

    You want to change the List or DataGridColumn runtime renderer, or change the properties of the renderer. Use a ClassFactory object as ItmeRdnerer. ClassFacotry realized IFactory interface, you just pass a class object (that is, an object of type Cla

  • java in the model and renderer 2010-04-26

    Java Foundation Classes (JFC) Swing tool using the Java platform to create highly interactive graphical user interface of the class. Swing is a highly flexible, but also so complex, although the novice can use Swing to create a basic graphical user i

  • List Component renderer instance (the main program calls subroutine Edition) 2010-06-19

    1, LastDesign.mxml <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" fontSize="16" creationComplete="initList();"> <mx:Script> <![CDATA[

  • GataGrid renderer instance (subroutine call to the main program version) 2010-06-19

    1, test.mxml <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"

  • DataGrid renderer instance (the parent class data Methods Edition) 2010-06-19

    1, test.mxml <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"

  • [Translation] AGG Reference of Basic Renderers (based renderer) (1) 2010-07-04

    Rendering Buffer Let's start here: open a store in the memory area, then its content to write simple documents in raster format, that is, PPM (Portable Pixel Map) format. While this format is not Windows native support, but many image viewer and conv

  • [Translation] AGG Reference of Basic Renderers (based renderer) (2) 2010-07-04

    Alpha-Mask Adaptor Alpha-Mask is a separate cache area, usually at the bottom of an arbitrary shape for cutting. A special adapter class, all of the pixel format can be renderer (pixel format renderes) call first threw alpha-mask filters. alpha-mask

  • Flex item renderer and use the DataGrid 2010-08-08

    Introduction: While the DataGrid does provide Daliang way data exchange with the use of procedures, but it will bring additional costs, such as in the performance area or file size. Before using the DataGrid, first consider how you want users to use

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.074 (s). 12 q(s)