Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Joe Mizzi on Nov 06, 2007 14:28
open dhtmlx forum
Retrieving HTML Value for Link cell type

Hi,

Currently we are trying to retrieve the value which our grid is actually displaying, but when we run the following code

mygrid.cells(IndexArray[x],2).getValue()

We are getting the Grids full XML data which in this case is:
471^javascript:view_record("471")^_self

We want it to Return the "471" and nothing else

The column is defined as a "link" type

I have also been able to store the value we want to retrieve in the title field (which currently displays as a popup) but have not found a way to retrieve that

Can you Help?

Thanks
Joe
Answer posted on Nov 08, 2007 02:28
You can get only text part of link as
    mygrid.cells(IndexArray[x],2).getContent()