|
|
I want my VBScript to stop for 4 seconds before starting again.
Searched the web and found this "WScript.Sleep 4000".
The problem is that when I use this code i get an error "Object required 'WScript'".
What is wrong?
Is there a better way to do this?
Spaz
|
|
|
|
|
Hi Spaz,
The WScript is an object in the Windows Script Host[^] which allows you to run scrips from the command prompt or the Windows desktop, and WSH should not be used on the web page to run at the client side. AFAIK, there's no method which you can use to make the execution sleep for a period of time, and you can take a look at Eric Lippert's explaination[^] for more information. However, there are a couple of work-around solutions which you may consider: setTimeout, setInterval methods ... You can see some examples from here[^]
|
|
|
|
|
OK
Thanx for the answer, I got it working with setTimeout..
Spaz
|
|
|
|
|
can anyone please send me the complete code in ASP for sending emails.
its urgent
|
|
|
|
|
You need either to use the CDONTS component, or a third party component, to send mail. The code differs depending on the component you plan to use. What component(s) can you use?
---
b { font-weight: normal; }
|
|
|
|
|
i will use CDONTS. can you send the complete program for sending mail through ASP pages. waiting for your reply.
|
|
|
|
|
|
MSDN seems to have some problems right now, but when it works again, this link should contain some example for sending mail using CDONTS:
MSDN: NewMail object[^]
---
b { font-weight: normal; }
|
|
|
|
|
cdots not good
you can use jmail
i can send you jmail and code,please give me your email
|
|
|
|
|
my email id is ravikesari78@rediffmail.com
|
|
|
|
|
can i loose some customers publishing pages in unicode utf-8?
some brosers or os have problem?
another comments?
(of course files should be bit bigger)
|
|
|
|
|
hi
i'm a c# developer
how can i protect my image and archive(zip) files in my web site from unauthorized downloads?
thanks
|
|
|
|
|
|
hi Vasudevan
i want to do what IEEE done in it's site
if u pass one article (for example www://ieee.com/articles/math.zip) address
directly to ie address bar they do not permit u to download this file
u shoud be authorized first in their site
i'd like to do same work like that
what can i do ?
thanks
|
|
|
|
|
|
hi
ahmagh jan
how do CP protect zip files ?
thanks
|
|
|
|
|
On my web-form I have a client-side button. When this button is pressed – I want to copy a fixed value to a server-side control textbox. I have tried using client side script using javascript, but all I get is on error [object error].
document.getElementById("keypad1_txtResult").innerHTML = “x”;
Can anyone suggest any other way of doing this?
Clueless Novice
|
|
|
|
|
An input field does not have the innerHTML property, as there can be no html elements inside the field. Use the value property instead.
---
b { font-weight: normal; }
|
|
|
|
|
I've tried your suggestion, but when I put . in after ("txtResult") it does not give me the "value" option. Am I doing something else wrong?
|
|
|
|
|
If the txtResult element is a form field, it has the value property, and does not have the innerHTML property.
If Visual Studio says otherwise, it has simply gotten confused. Perhaps it fails to identify what element you are refering to, and gives you the properties for a generic element. It might also have something to do with the fact that some server elements not always render as the same html tags, but varies with the type of browser.
---
b { font-weight: normal; }
|
|
|
|
|
Hi, I think that Guffa's reply should help you.
I just wanted to note that you can run into troubles by using hard coded ID.
You can get ID rendered by any Asp.Net control using ClientID property.
So it would be better to write it like this:
document.getElementById("<%= txtResult.ClientID %>").innerHTML = “x”;
But this is just a detail
|
|
|
|
|
I would like to have a web page (or any method/language) that will keep running without a client and once a while it will call a function to update data of a MS access database on the web.
Anyone knows how to do it?
|
|
|
|
|
If you want to do it with a web page you'll need a server that queries the db (asp, jsp or php). If you just want a webpage maybe you could investigate to do it with JavaScript or VBScript.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Hi Marc,
I do have a server to queries my db, the problem is: it only update my db if one client call my site (my asp/htm), but it is too late! It should be update ... let say every one hour before the client using its db!
My better explaination is in the reply for Guffa!
Regards,
|
|
|
|