Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mahesh on Dec 03, 2009 20:10
open dhtmlx forum
dhtmlx grid & firefox safari compatibility

I am using dhtmlx grid and it does not work on mozilla firefox? Is dhtmlx grid compatible with firefox & safari?
I get script data without proper rendering.
Answer posted by dhxSupport on Dec 04, 2009 04:32
Answer posted by mahesh on Dec 04, 2009 08:55

Could it be that this line of code provides compatibility where special characters are replaced?

ment.getElementById("alfa1").innerHTML = mygrid.serialize().replace(/\</g, "&lt;").replace(/\>/g, "&gt;").replace(/\&lt;row/g, "<br/>&lt;row");

Answer posted by mahesh on Dec 04, 2009 10:29

additional note:

here is a screen capture + text of the error in safari 3.0 on mac while trying to access the "rad" menu item.


<rows total_count='24'><row id='85'><cell><![CDATA[Adodra, Snehal]]></cell><cell><![CDATA[231-1502]]></cell><cell><![CDATA[4-0745]]></cell></row><row id='88'><cell><![CDATA[Chavalier, Martha (PA)]]></cell><cell><![CDATA[274-4013]]></cell><cell><![CDATA[]]></cell></row><row id='2'><cell><![CDATA[Fraker, Keith]]></cell><cell><![CDATA[237-0128]]></cell><cell><![CDATA[]]></cell></row><row id='3'><cell><![CDATA[Hanafusa, Kei]]></cell><cell><![CDATA[231-1190]]></cell><cell><![CDATA[4-0740]]></cell></row><row id='4'><cell><![CDATA[Hung, Raymond]]></cell><cell><![CDATA[231-0771]]></cell><cell><![CDATA[5-2523]]></cell></row><row id='5'><cell><![CDATA[Kang, Young]]></cell><cell><![CDATA[231-0515]]></cell><cell><![CDATA[5-6346]]></cell></row><row id='6'><cell><![CDATA[Lau, John]]></cell><cell><![CDATA[231-1081]]></cell><cell><![CDATA[3-5810]]></cell></row><row id='7'><cell><![CDATA[Lebowitz, Ed]]></cell><cell><![CDATA[231-0699]]></cell><cell><![CDATA[5-2511]]></cell></row><row id='8'><cell><![CDATA[Lee, Margaret]]></cell><cell><![CDATA[231-1195]]></cell><cell><![CDATA[5-3106]]></cell></row><row id='9'><cell><![CDATA[Morrison, Hal]]></cell><cell><![CDATA[231-0551]]></cell><cell><![CDATA[5-6356]]></cell></row><row id='10'><cell><![CDATA[Nguyen, Tuan]]></cell><cell><![CDATA[275-4134]]></cell><cell><![CDATA[4-0738]]></cell></row><row id='11'><cell><![CDATA[Noonan, John]]></cell><cell><![CDATA[231-0762]]></cell><cell><![CDATA[4-0737]]></cell></row><row id='12'><cell><![CDATA[Pandit, Rajul]]></cell><cell><![CDATA[231-0495]]></cell><cell><![CDATA[5-6357]]></cell></row><row id='87'><cell><![CDATA[Patel. Mahesh]]></cell><cell><![CDATA[231-1044]]></cell><cell><![CDATA[5-6358]]></cell></row><row id='14'><cell><![CDATA[Phan, Peter]]></cell><cell><![CDATA[no pager]]></cell><cell><![CDATA[]]></cell></row><row id='15'><cell><![CDATA[Rennell, Charles]]></cell><cell><![CDATA[no pager]]></cell><cell><![CDATA[]]></cell></row><row id='86'><cell><![CDATA[Sajewicz, Anthony]]></cell><cell><![CDATA[237-0826]]></cell><cell><![CDATA[4-0746]]></cell></row><row id='17'><cell><![CDATA[Scheff, Alice]]></cell><cell><![CDATA[231-0172]]></cell><cell><![CDATA[5-6974]]></cell></row><row id='18'><cell><![CDATA[Silberstein, Richard]]></cell><cell><![CDATA[231-2814]]></cell><cell><![CDATA[3-5811]]></cell></row><row id='19'><cell><![CDATA[Tseng, Jeffrey]]></cell><cell><![CDATA[231-7725]]></cell><cell><![CDATA[5-3593]]></cell></row><row id='20'><cell><![CDATA[Van Bockel, Shawn]]></cell><cell><![CDATA[231-0769]]></cell><cell><![CDATA[4-0747]]></cell></row><row id='21'><cell><![CDATA[Wang, Lily]]></cell><cell><![CDATA[no pager]]></cell><cell><![CDATA[]]></cell></row><row id='22'><cell><![CDATA[Wang, Mary]]></cell><cell><![CDATA[231-0884]]></cell><cell><![CDATA[5-2542]]></cell></row><row id='23'><cell><![CDATA[Zipser, Stan]]></cell><cell><![CDATA[820-5475]]></cell><cell><![CDATA[5-2544]]></cell></row></rows>

Answer posted by mahesh on Dec 08, 2009 15:57

I tired deleting white spaces in php connector files, and also added

 $grid->set_encoding("iso-8859-1");

to the connector file.  I am still unable to get the grid to display in firefox.  I get output siimilar to that above.