BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Javascript within C++

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
SubZero
Guest





PostPosted: Thu Sep 07, 2006 9:49 pm    Post subject: Javascript within C++ Reply with quote



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
Back to top
Colin B Maharaj
Guest





PostPosted: Tue Oct 03, 2006 3:27 am    Post subject: Re: Javascript within C++ Reply with quote



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:
Quote:
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

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Oct 03, 2006 4:40 am    Post subject: Re: Javascript within C++ Reply with quote



"Colin B Maharaj" <noreply (AT) myhost (DOT) com> wrote in message
news:45219233 (AT) newsgroups (DOT) borland.com...

Quote:
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.

That is the default behavior in HTTP v1.0 and older. The default behavior
in HTTP v1.1 is to keep the connection open between requests to the same
server.


Gambit
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Oct 03, 2006 4:45 am    Post subject: Re: Javascript within C++ Reply with quote

"SubZero" <g_ates (AT) hotmail (DOT) com> wrote in message
news:45004db8$1 (AT) newsgroups (DOT) borland.com...

Quote:
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

Javascript alone cannot do that. The closest you can get is to host the
status bar in a separate HTML frame, and have that page run a timer that
periodically sends a status request to the server to get new HTML for the
status bar.

Quote:
- 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)

There is no way to make a browser do that. There is nothing in HTML to tell
the browser to send a portion of a file. It is an all-or-nothing operation.
To have better control over the connections, you would have to write a
custom Java/Flash applet or browser plugin to handle that on behalf of the
HTML page.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.