Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6114403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:58:14+00:00 2026-05-23T14:58:14+00:00

I push [script]dosomething()[/script] tags into the iframe for my comet server using chunked data,

  • 0

I push [script]dosomething()[/script] tags into the iframe for my comet server using chunked data, but script tags just continues to accumulate forever. How do I wipe it after every script tag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:58:15+00:00Added an answer on May 23, 2026 at 2:58 pm

    Wipe script tag

    P.S: When you want to wipe script tags it is probably to follow Does comet server data in the iframe just accumulate?

    I believe you should close the connection after sometime(no good, see Does comet server data in the iframe just accumulate? instead) which automatically frees up the memory associated with that request. You then off course need to reconnect. This page says something else even:

    “Page Streaming” means the browser
    discovers server changes almost
    immediately. This opens up the
    possibility of real-time updates in
    the browser, and allows for
    bi-directional information flow.
    However, it’s quite a departure from
    standard HTTP usage, which leads to
    several problems. First, there are
    unfortunate memory implications,
    because the Javascript keep
    accumulating, and the browser must
    retain all of that in its page model.
    In a rich application with lots of
    updates, that model is going to grow
    quickly, and at some point a page
    refresh will be necessary in order to
    avoid hard drive swapping, or a worse
    fate.

    This advices to reload the page which is also an option. But I think closing that connection(iframe) and reconnecting might also work.

    Comet has a lot of problems you need to hack around:

    • As you can read from this WIKI page it also has problems with “reliable error handling method, and the impossibility of tracking the state of the request calling process.”.
    • Also Internet Explorer needs to sent some junk to get the process started(see http://cometdaily.com/2007/11/05/the-forever-frame-technique/)

    That’s why I again recommend you to use socket.io(see below) which takes care of all this nonsense.

    Socket.io

    I advice you to use socket.io instead, which is very good product. It is supported by all major browsers. As you can see it support a lot of transport(XHR, Websockets, etc) and choices the best one available on your browser for the best performance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using extend script to push a variable into an array it's basically javascript. any
I've got a ruby script that opens a connection to Apple's push server and
Im trying push some data into a CRM system via an XML import. I
Read about Server push here . I want to push data to client from
I'm trying to implement a server side script for sending push notifications to apple
I'm trying to push packets of data from my HTTP server to a browser,
I am using a PHP script to send push notifications to my device. Here
Would facebook get notifications via comet push or an ajax script that checks for
I created an autosuggest script using php, ajax and some css but I can't
I am working on a script that will push each child element into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.