| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: Post Problem |
| User105 Posts: 7 Member Since: 04/15/02 |
posted August 16, 2002 12:20 PM i am posting for a log in section of a program. When i post w/ the example code of a 30 second timeout, it works fine. but i changed the timeout to zero. When it trys to login w/ a zero timeout, the results sent back say javascript is not enabled, but it works just fine w/ a 30 second timeout. i cant have the program wait 30 seconds for the program to log in. please help. chris |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted August 16, 2002 2:39 PM If you set the Timeout property equal to 0 you will be enabling non-blocking mode, which differs vastly in functionality from blocking mode, which you get if you set Timeout > 0. If you set the Timeout=30000 you shouldn't have to wait 30 seconds for the program to log in. The timeout property is set to tell the program when to stop blocking the main thread if the server and client get hung up in anyway. Does this answer your question? |
| User105 Posts: 7 Member Since: 04/15/02 |
posted August 16, 2002 3:54 PM i want to multithread the login and have them go all at the same time. but when i do this, the program waits for one to load then moves on to the next, etc, they never go all at the same time. how to i make it do that ? |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted August 16, 2002 4:05 PM You can set timeout=0 then check the status of the login in the progress event. When timeout=0 the method won't block and you're free to call other events. The status of the method call will be returned when the progress event fires. |
| User105 Posts: 7 Member Since: 04/15/02 |
posted August 16, 2002 4:32 PM i tryed the timeout=0 and checking the status w/ the progress, but when it sends the results back, they say javascript is not enabled. |
Jon Belanger![]() From: Rome, NY USA Posts: 310 Member Since: 06/10/02 |
posted August 16, 2002 4:34 PM Could you explain to me in detail what you're trying to do? I'm don't entirely understand. I'll try to help you out with how to use our tools in your scenerio. Thanks. |
| User105 Posts: 7 Member Since: 04/15/02 |
posted August 16, 2002 5:15 PM ok, heres whats im trying to do, have multiple logins going at the same time. when i set the timeout to 30000, the program works fine, logins in perfect, but only one at a time. ------------------------------ Http1.Timeout = 30000 Data = "login_username=user" Http1.Url = "http://www.login.com/" Http1.Post Data, , a$ MsgBox a$ this code works fine for me for one connection ------------------------------ when i set the timeout to 0 i get the result that it can not access the page because you have to be logged in. ------------------------------ Dim a As String Http1.Timeout = 0 Data = "login_username=user" Http1.Url = "http://www.login.com/" Http1.Post Data, , a$ ------------------------------ and i wait for Http1 to finish up, and i check a$ and it says it can't log in. i dont get how it can work one way and not the other, could the cookies not be working when i set the timeout to 0. i'm not sure. thanks in advance chris |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted August 16, 2002 5:27 PM Hi, Please see the Web Alive sample for an example of using the control non-blocking. Thanks, -ken |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|