PHP Classes

Edit URL and EMAIL Types

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Edit URL and EMAIL Types  >  (Un) Subscribe thread alerts  
Subject:Edit URL and EMAIL Types
Summary:Can't seem to edit grid cells specified as MAILTO and URL
Messages:6
Author:AndyLouSeer
Date:2009-03-09 14:31:43
Update:2009-03-14 21:24:36
 

  1. Edit URL and EMAIL Types   Reply   Report abuse  
Picture of AndyLouSeer 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?

  2. Re: Edit URL and EMAIL Types   Reply   Report abuse  
Picture of AndyLouSeer AndyLouSeer - 2009-03-10 12:05:44 - In reply to message 1 from AndyLouSeer
First of all, I missed off the closing "}" from the above paste.

Secondly, I've discovered that this works in Firefox, but not in Internet Explorer 7.

  3. Re: Edit URL and EMAIL Types   Reply   Report abuse  
Picture of dd dd - 2009-03-14 12:04:59 - In reply to message 2 from AndyLouSeer
Hi Stephen,

You are right, this type of cell does not work well in IE7, it does work in other browsers. This is a bug.
Thanks for the message. We will fix it in the coming release.

regards,

DrasticData

  4. Re: Edit URL and EMAIL Types   Reply   Report abuse  
Picture of dd dd - 2009-03-14 16:09:30 - In reply to message 3 from dd
Hi Stephen,

It is fixed.
The fix will be included in the next version of DrasticTools (0.6.16).
Because you (or other people) may need it sooner than that we added a fix on the www.drasticdata.nl website.
You can find it on http://www.drasticdata.nl/DDHome.php?m=3

regards,

drasticdata team

  5. Re: Edit URL and EMAIL Types   Reply   Report abuse  
Picture of AndyLouSeer AndyLouSeer - 2009-03-14 16:13:50 - In reply to message 4 from dd
Thanks very much otb. Your swift action is much appreciated. I'll download the new version later and let you know if there are any more problems.

Steve.

  6. Re: Edit URL and EMAIL Types   Reply   Report abuse  
Picture of AndyLouSeer AndyLouSeer - 2009-03-14 21:24:36 - In reply to message 5 from AndyLouSeer
Perfect! Thank you.