Connecting Tech Pros Worldwide Forums | Help | Site Map

AJAX: Character limits?

sugapablo
Guest
 
Posts: n/a
#1: Jul 27 '06
I have a simple AJAX script set up where the XML retrieved populates a DIV.

One XML field can be quite large. For example, one is 35,961 characters
long.

When viewed, the data seems cut off. Is there a limit to how many
characters Javascript can read into a string variable and pass to
innerHTML?

If so, what is that limit? Not to mention...any ideas on a workaround?

--
Sugapablo
http://www.sugapablo.net


Martin Honnen
Guest
 
Posts: n/a
#2: Jul 27 '06

re: AJAX: Character limits?




sugapablo wrote:
Quote:
I have a simple AJAX script set up where the XML retrieved populates a DIV.
>
One XML field can be quite large. For example, one is 35,961 characters
long.
>
When viewed, the data seems cut off.
Which browser is that? Mozilla's XML DOM parsing is flawed in that the
parser creates adjacent text nodes if there is more that 32KB of data.
You need to either use textContent to get all text in an element or you
an call e.g.
httpRequest.responseXML.normalize()
before you access text nodes in responseXML

--

Martin Honnen
http://JavaScript.FAQTs.com/
sugapablo
Guest
 
Posts: n/a
#3: Jul 27 '06

re: AJAX: Character limits?


On Thu, 27 Jul 2006 17:34:15 +0200, Martin Honnen wrote:
Quote:
Which browser is that?
It was Firebird. So let me try what you suggested.

--
Sugapablo
http://www.sugapablo.net

Closed Thread


Similar JavaScript / Ajax / DHTML bytes