ThierryC
04-28-2010, 07:59 AM
i'm having trouble to send Html-formatted data back to ext.
i thought it had something to do with the length of the string, but according to the api-manual; it can be 65K(?)
so.. for some reason the string gets splitted...
thx for having a look at this.
here's what happens
in firebug i see: (value gets splitted for some reason?)
{"SUCCESS":"1",
"PARM":"<p style=\"font-family:Arial; font-weight:bold\">Updates due to change in calendars<hr></p>
<table border=\"1\" cellpadding=\"2\" cellspacing=\"0\"style=font-family:courier new; text-align-right\">
<tr style=\"background-color:silver\"><td>Month</td>
<td>Before</td>
<td>After</td></tr>
<tr><td>2010/08</td><td>15</td><td>13</td></tr></table><br>
<p style=\"font-family:Arial; font-weight:bold\">Data<hr></p>
<table border=\"1\" cellpadding:\"2\" cellspacing:\"0\" style=\"font-family:courier new; font"}
although when i debug my rpg-program i'm sending this :
d string s 5000a varying
vvOut_toJsonPair(string);
this is the content of "string" just before the vvout_toJsonPair
(i've restyled it a little for visibility.. but normally this is 1 long string.
SUCCESS:1,PARM:<p style="font-family:Arial; font-weight:bold">
Updates daa to change in calendars<hr></p><table border="1"
cellpadding="2" cellspacing="0"style=font-family:courier new;
text-align-right">
<tr style="background-color:silver"><td>Month</td>
<td>Before</td><td>After</td></tr><tr><td>2010/08</td>
<td>15</td>
<td>13</td></tr>
</table><br><p style="font-family:Arial; font-weight:bold">Data<hr></p>
<table border="1" cellpadding:"2" cellspacing:"0" style="font-family:courier new; font-size:11px; text-align:right">
<tr style="background-color:silver"><td colspan=2></td>
><td>Jan</td>
<td>Feb</td>
<td>Mrt</td>
<td>Apr</td>
<td>May</td>
<td>Jun</td>
<td>Jul</td>
<td>Aug</td>
<td>Sep</td>
<td>Oct</td>
<td>Nov</td>
<td>Dec</td>
</tr>
<tr style="background-color:LightSteelBlue">
<td colspan=15 style="text-align:center; font-size:15px">YEAR : 2010</td></tr>
<tr><td>FC/TO</td>
<td>Before</td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>3220,00</td>
<td></td><td></td><td></td><td></td></tr><tr><td></td>
<td>After</td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>3220,01</td>
<td></td><td></td><td></td><td></td>
</tr>
</table>
i thought it had something to do with the length of the string, but according to the api-manual; it can be 65K(?)
so.. for some reason the string gets splitted...
thx for having a look at this.
here's what happens
in firebug i see: (value gets splitted for some reason?)
{"SUCCESS":"1",
"PARM":"<p style=\"font-family:Arial; font-weight:bold\">Updates due to change in calendars<hr></p>
<table border=\"1\" cellpadding=\"2\" cellspacing=\"0\"style=font-family:courier new; text-align-right\">
<tr style=\"background-color:silver\"><td>Month</td>
<td>Before</td>
<td>After</td></tr>
<tr><td>2010/08</td><td>15</td><td>13</td></tr></table><br>
<p style=\"font-family:Arial; font-weight:bold\">Data<hr></p>
<table border=\"1\" cellpadding:\"2\" cellspacing:\"0\" style=\"font-family:courier new; font"}
although when i debug my rpg-program i'm sending this :
d string s 5000a varying
vvOut_toJsonPair(string);
this is the content of "string" just before the vvout_toJsonPair
(i've restyled it a little for visibility.. but normally this is 1 long string.
SUCCESS:1,PARM:<p style="font-family:Arial; font-weight:bold">
Updates daa to change in calendars<hr></p><table border="1"
cellpadding="2" cellspacing="0"style=font-family:courier new;
text-align-right">
<tr style="background-color:silver"><td>Month</td>
<td>Before</td><td>After</td></tr><tr><td>2010/08</td>
<td>15</td>
<td>13</td></tr>
</table><br><p style="font-family:Arial; font-weight:bold">Data<hr></p>
<table border="1" cellpadding:"2" cellspacing:"0" style="font-family:courier new; font-size:11px; text-align:right">
<tr style="background-color:silver"><td colspan=2></td>
><td>Jan</td>
<td>Feb</td>
<td>Mrt</td>
<td>Apr</td>
<td>May</td>
<td>Jun</td>
<td>Jul</td>
<td>Aug</td>
<td>Sep</td>
<td>Oct</td>
<td>Nov</td>
<td>Dec</td>
</tr>
<tr style="background-color:LightSteelBlue">
<td colspan=15 style="text-align:center; font-size:15px">YEAR : 2010</td></tr>
<tr><td>FC/TO</td>
<td>Before</td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>3220,00</td>
<td></td><td></td><td></td><td></td></tr><tr><td></td>
<td>After</td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>3220,01</td>
<td></td><td></td><td></td><td></td>
</tr>
</table>