Article View: borland.public.cppbuilder.internet.web
Article #708Re: Javascript within C++
From: Colin B Maharaj
Date: Mon, 02 Oct 2006 22:27
Date: Mon, 02 Oct 2006 22:27
46 lines
2372 bytes
2372 bytes
In most web applications that has to eventually get a connection from a browser, the default behavior would be to get a connection send content and then disconnect. Because of this it is almost impossible to have a true continuous status of any kind of activity. A good option (but complex one) would be using AJAX. Asynchronous Javascript and XML. A simpler one would be to use an HTML window of sorts and periodically update the state of the entire window (refresh) every 5 or more seconds. To see a good example of this, go to dropload.com, create an account and send a file to someone (using their rules). You will then see an upload screen that uploads and refreshes in the way I described. Hope this helped... Good luck! Colin B Maharaj, Trinidad and Tobago. -------------------------------------- C++ Builder, Javascript, XHTML, CSS Programmer at large. SubZero wrote: > Hello, > > We are producing javascript from within ICS web server/C++ and wonder if the > following is possible with JS, > > - Creating an upload meter for File POSTs with Javascript > - Making multi-socket uploads with different content-ranges (server-side > will be coded by ourselves, we are looking for a solution to hack the > browsers to send it) > > Best Regards, > > SZ > >
Technical Details
Message-ID:
<45219233@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45004db8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,afc8696cd1caaf90 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 02 Oct 2006 18:27:15 -0400 From: Colin B Maharaj <noreply@myhost.com> User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: Javascript within C++ References: <45004db8$1@newsgroups.borland.com> In-Reply-To: <45004db8$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0640-0, 02/10/2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 200.108.20.39 Message-ID: <45219233@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1159828019 200.108.20.39 (2 Oct 2006 15:26:59 -0700) Lines: 46 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail