
AndyLouSeer - 2009-03-09 14:31:43
Using the following code:
thegrid = new drasticGrid('grid1', {
pathimg:"img/",
pagelength:10,
columns: [
{name: 'id', width: 40, editable: false},
{name: 'FirstName', width: 70, editable: true},
{name: 'LastName', width: 130, editable: true},
{name: 'company', width: 150, editable: true},
{name: 'Address1', width: 130, editable: true},
{name: 'Address2', width: 100, editable: true},
{name: 'Town', width: 130, editable: true},
{name: 'County', width: 130, editable: true},
{name: 'PostCode', width: 70, editable: true},
{name: 'Country', width: 130, editable: true},
{name: 'email', type: DDTYPEMAILTO, width: 200, editable: true},
{name: 'www', type: DDTYPEURL, width: 200, editable: true},
{name: 'Notes', type: DDTYPETEXT, width: 150, editable: true}],
addparams:"&fieldname="+field.value+"&fieldval="+val.value
});
The 2 grid cells specified as DDTYPEMAILTO and DDTYPEURL throws an "Error on Page" error when clicking on the pen icon to edit them. Both fields are initially blank (null) and do not give the opportunity to edit the contents.
Any advice please?