|
What exactly isn't working? I assume you get a VBS error message of some kind.
Jason Henderson My articles
"The best argument against democracy is a five-minute conversation with the average voter." - Winston Churchill
|
|
|
|
|
Jason Henderson wrote:
I assume you get a VBS error message
Yeah, right! No, there are no error messages - which only says that the code is perfectly valid VBS, but my understanding of what I've written is defective.
Actually, Jason, I've got everything working almost satisfactorily. It's a simple login routine - nothing fancy - that asks for id, checks its validity, and displays a 'Go Away' message if the login fails. It works, though not the way I'd like, because my intent is to display the message, wait a few seconds, then display the login screen again. What I get, though, is the message at the top of the screen, and the login appended after it, and both appear after the delay period, rather than in the order they're written (msg - delay - transfer). Very odd.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
Roger Wright wrote:
and both appear after the delay period, rather than in the order they're written (msg - delay - transfer). Very odd.
Could be the buffering. If it is buffered it will wait until the page is compelete before sending it. If you want a delay you could use a meta tag in the "go away" page that causes it to refresh after x amount of seconds. Would have the added bonus to allow the user to hit refresh for instant login screen.
Rocky Moore <><
|
|
|
|
|
Rocky Moore wrote:
Could be the buffering.
Yes, I think that's somehow related, but I can't see how to correct it. I tried turning buffering on and off, but it didn't seem to change the behavior much. I'm still playing with it, though...
"The Lion shall lie down with the Lamb; but the Lamb will not get much sleep..." Lazarus Long
|
|
|
|
|
How do you turn off buffer, is in IIS or in the script on the page with Response.Buffer = FALSE?
Here is a little test script:
<% Response.Buffer = TRUE %>
<html>
<!-- -------------------------------------
-------------------------------------
-------------------------------------
-------------------------------------
-------------------------------------
-------------------------------------
-------------------------------------
-->
<body>
<p>Hello There</p>
<% response.flush
for i = 1 to 5000000
next
%>
<p>Something to happen</p>
<% response.flush
for i = 1 to 5000000
next
%>
<p>Ok</p>
</body>
</html>
This works on my system with a buffered page. If you turn off buffering and drop the flush lines, it should work the same. Had to add the comment section to give the page enough bulk to be accepted. If I remove them, it will process the entire page even with the flush lines before it is actual written out.
The true question here though is if you are using redirect or transfer. If you are using redirect, you can scrap this entire idea. The redirect it a special header sent that has to be sent first. Thus nothing will be displayed and it will redirect to a new page. Does not matter if you flush or not, the header has to be first.
Server.Transfer does not work since it has already output the header information for the request and the Server.Transfer just continues the stream that was already started.
The best solution in situations such as this is to use a meta tag refresh for the time you want to cycle. You can then redirect the page to itself or any other page. You would use something like:
That would refresh that page in the client's browser in 4 seconds and send it to the url listed. The added benifit is that if the user hits their refresh button before the 4 seconds is up, it will cut short their wait.
Rocky Moore <><
|
|
|
|
|
Thanks for the examples! I was using Response.Buffer to control buffering, and tried mixing in some Flush commands in various places to see how the behavior varied. It didn't. The meta tag technique is more along the line of what I actually want to accomplish, though. That helps a heap!
"The Lion shall lie down with the Lamb; but the Lamb will not get much sleep..." Lazarus Long
|
|
|
|
|
I'm using IXMLHTTPRequest of MSXML4 to obtain an XML file from a server. First time I query I get the correct content, but following queries seem to take the data from the local cache. I poll a newsfeed, so it's important my data is up to date. Opening the newsfeed URL with IE and hitting refresh causes the cached version to be updated, and my request returns the new data. I have this behavior with my local IIS as well as a remote Apache server. How to I get MSXML to really obtain the XML from the server and ignoring any locally cached version ?
Thanks for your time,
Tim
|
|
|
|
|
Has anyone ever used the WebService Behavior?
I have just started using it and I don't know how to debug SOAP errors!
How can I view the SOAP messages that the client and the server exchange?
Thank you!
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Does anyone know how I can call the NPV financial function from within VBScript in an ASP page?
|
|
|
|
|
Hello All,
Could any of you please tell me how can i return datareader from web service .
How can i serialize datareader ???????????
Regards,
Gandhi
|
|
|
|
|
You cannot serialize a datareader as far as I know. It doesn't implement the ISerializable interface. However, it does inherit from MarshalByRefObject so you could return a reference to the datareader from your webservice.
So you could do something like this:
SqlDataReader dr = myWebService.GetDatareader();
Just be sure to close the connection when you're done with the datareader!
Depending on your needs, you might be better of with a DataSet, e.g. if you need to hold on to the data for a while.
HTH,
Jeffry
|
|
|
|
|
Ok. I finally got broadband at my house. (comcast.net)
Life is goooood!
My background is i'm an outa work oracle developer who needs some
web experience to get a FRICKEN job.
I know simple ole html and the basics, but that's mostly it.
No fancy shmancy dynamic stuff like asp or cgi yet.
I don't LIKE Oracle anymore now that I've met my new love: SqlServer2000.
I've got VisualStudio.NET enterprise.
I've got XP home edition on a 833 MHz pentium3 with plenty of ram n disk.
What should i do to play around with a database backed website?
I'm just gettin my feet wet w SqlServer2000 n C#.
I've done plenty of Oracle PL/SQL n C and C++ on windows.
Where should I go today???
IIS? Apache? Can Apache talk to SqlServer?
I don't like vb (no offense anyone) so I'd like to stick w c# asp.net
if that's possible...
Should i bother lookin for a web hoster that'll let me do full
asp? Or try to wing my own lil pc into a web server.
(dynamic ip address, not sure how dynamic).
Any recommendations?
Thanks for ANY help...
...Steve
|
|
|
|
|
Steve Hazel wrote:
Should i bother lookin for a web hoster that'll let me do full
asp?
When I do that, it'll probably be www.onmatrix.com[^].
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
|
Just wondering... if the PWS found in the win-98 CD can be used for ME too??
I was born intelligent Education ruined me!.
|
|
|
|
|
Why don't you try it yourself?
|
|
|
|
|
TPN wrote:
Why don't you try it yourself?
heheh...Good suggesstion
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
I did... and its working... All I wanted to know is... is there any special version (Microsoft is fond of releasing vesrions, u know!) for windows ME.
Thanks for ur suggestions
I was born intelligent Education ruined me!.
|
|
|
|
|
is it possible to instantiate a .NET type within
Internet Explorer ?
For example I would like to write some component (using c#) that would expose interface with a single method calculating something, and I would like to use it within a web page (interpreted in IExplore) just like i used to make use of ActiveX components from within JScript code.
Is it possible ?
Thanx for any info
Michal Januszczyk
|
|
|
|
|
How about creating a web service and calling the web service method(s) from within JavaScript?
|
|
|
|
|
Hi,
I'm mainly a C++ Developher but i am creating a simple Wemsite at the moment.
To get to a certain part of the Website and download a Demo of my App it will require a User Name and Password to be entered,the ID and Password will be E_mailed by me to the user.
I have been browsing the Site this morning but still not clear how this shall be done. I would like to do this as simply as possible as i have no Perl, ASP or PHP experience.
Can any of you recommend away to do this and possible some tutorials..
Thanks
Brian
Kind Regards,
Brian.
|
|
|
|
|
A relatively simple way to do this is to construct a form that requests the user information, then post the form contents to a script that does the mailing for you. A decent site for learning about server scripting (and a lot of other goodies) is W3schools.com[^], and you can find a free email component at ASPEmail[^]. Using the ASPEmail component requires a web host that supports it, but there are a number of other approaches, including CDO for Windows.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
I use the CDONTS dll and have had no problems at all. I know it comes with Windows 2000 but not XP, but I think it's easy to get hold of. Here is a really simple e-mail script and here is a password tutorial.
Hope this helps.
Anthony
|
|
|
|
|
I didn't know that CDO isn't included in XP! There must be some equivalent, though - the Collaboration Data Objects are fundamental parts of Office.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
They have replaced CDONTS.dll with something called CDOSYS.dll, which I think is an updated version. There are various code samples from Google for using it.
|
|
|
|