Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-09-2009, 09:57 PM   PM User | #1
kamputty
New Coder

 
Join Date: Feb 2009
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
kamputty is an unknown quantity at this point
Question Clearing the responseText

Hi all,

I'm doing a simple xmlhttprequest callback (actually html streaming), and I can get my "values" from the server every second just fine. I make the connection, and I just receive "data" from it that I can then parse, use, etc.

This is now all working fine.

My question is, the "responseText" keeps everything that it's gotten to date, so at the start, I would get "1", then a second later, I get "1, 2" (the old "1" and the new "2"), then "1", "2", "3", etc...How would I (if I can), clear the responseText out each time? After awhile, the responseText will get really large if it runs for hours...

One way if I cannot clear the responseText is after "100" iterations, close the connection and recreate a new one to limit the size of the buffer...

Thoughts?

~Kam (^8*
kamputty is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:07 AM.


Advertisement
Log in to turn off these ads.