Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael on Jun 11, 2009 13:17
open dhtmlx forum
dhtmlxGrid IE 8 setTransactionMode("POST", true)

In IE 8, I have dp.setTransactionMode("POST",true)

However, if I put a break point in my code in NuSphere IDE, this request is still sending multiple request.

Example:

Lets say I delete 5 rows from grid. The request is sent with all 5 row ids as it should, but then it does it 4 more times each time the number of ids decreases from 4 to 3 to 2 to 1 because rows are being deleted along the way.


This does not happen in Mozilla firefox 3.0.. data is only sent once.

I just recently upgraded to IE 8...Do you fully support IE 8? Dont' think this was happening with IE 7 and it definitely does not happen in Mozilla firefox 3.0.
Answer posted by Support on Jun 12, 2009 01:51
The only difference between IE7 and IE8 is in HTML rendering, there are no any significant changes , which may affect data saving functionality. 
Which version of dataprocessor|grid you are using? In case of grid 2.0 - issue may occur because of incorrect content-type of server side response.
Please be sure that server side response sent with
          Content-type:text/xml
Answer posted by Michael on Jun 12, 2009 06:11

Thank you so much.  Yes it was the incorrect content-type. 

Could you please point me to documentation that explains when I should use header("Content-type: application/xhtml+xml") vs header("Content-type: text/xml");

because I mainly use application/xhtml+xml and have had little problems until now.  I will update all to use text/xml if appropriate for 2.0 controls... please advise.

Thanks again.

Answer posted by Alex (support) on Jun 12, 2009 09:49

Hello, 

In common case the correct content-type for xml documents is text/xml.

Do you usually use application/xhtml+xml content-type for the xml documents ? Could you provide us the example ?

Answer posted by Michael on Jun 12, 2009 10:14

Thanks. 

There is no real reason why I was using application/xhtml+xml  in most cases.  I must have saw an example somewhere and just kept using it for all the rest of my xml that I output via php.  I will change to text/xml if this is more appropriate.