Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mori on Sep 29, 2009 14:54
open dhtmlx forum
dhtmlXGridObject error in IE7 and complex html

Dear Support,

Here is my code, which is working fine in a simple html body. (Just <html><body> and so on) but when I insert this code in a the middle of my application page body, which is pretty complex, I get "Invalid Argument" error. I can email you the complex html code.

FireFox seems to be OK, even with the complex html. Any idea?

<div id="AllRecipients" style="width:100%;height:300px;margin-top:20px;margin-bottom:10px;"></div>
<div><span id="AllRecipients_pagingArea"></span> <span id="AllRecipients_recinfoArea"></span></div>

<link href="dhtmlx.css" type="text/css" rel="stylesheet" ></link>
<script src="dhtmlx.js" ></script>
<script >

var ARGridCVS="";
for (i=0; i<10; i++)
{
    ARGridCVS = ARGridCVS + "0\tMK"+i+"\tactive\tUS\tmk@xxx.com\n";
}

ARGrid = new dhtmlXGridObject('AllRecipients');
ARGrid.setImagePath("imgs/");
ARGrid.setHeader(",Recipient,Status,Location,eMail");
ARGrid.attachHeader(" ,#text_filter,#select_filter,#text_filter,#text_filter");
ARGrid.setInitWidths("20,200,100,100,200")
ARGrid.enableAutoWidth(true);
ARGrid.setColAlign("left,left,left,left,left")
ARGrid.setColTypes("ch,ro,ro,ro,ro");
ARGrid.setColSorting("str,str,str,str,str");
ARGrid.enablePaging(true,10,5,"AllRecipients_pagingArea",true,"AllRecipients_recinfoArea");
ARGrid.setPagingSkin("toolbar", "dhx_skyblue");

ARGrid.init();
ARGrid.setSkin("dhx_skyblue")
ARGrid.csv.row = "\n";
ARGrid.csv.cell = "\t";
ARGrid.parse(ARGridCVS,"csv");

</script>
Answer posted by dhxSupport on Sep 30, 2009 03:24
Please provide us complete demo where we can reproduce this issue. You can find complete demo instructions here http://www.dhtmlx.com/docs/support/what_is_a_completed_demo.htm. Please send such example directly to the support@dhtmlx.com