Click to See Complete Forum and Search --> : javascript sending to asp


esthera
03-17-2004, 03:02 AM
I want to know if it is possible to call a javascript function that will call an asp page. The trick is I don't want the user to have to do anything or know that the asp page is being called.

The asp page would then do some processing when it is called.

Can this be done?

gil davis
03-17-2004, 02:56 PM
Javascript cannot "call" anything on the server. It is a client-side scripting language.

You could open a window using the URL of the ASP page, but that would not exactly be hidden from the user. There are security measures that are made to prevent you from opening small windows (smaller than 100x100) or windows that are off the screen.

That kind of surreptitious activity would be considered a virus in my book.

esthera
03-18-2004, 03:00 AM
Let me give you some background to what I am doing:
I am making a form where the user writes in his news item and does formatting. I want to be able to automatically save every 2 minutes the value of the form. Would it be better to use cookies? I thought maybe to call an asp that would save the contents to a db. I just want to be able to retrieve the contents incase of computer failure.

any better ideas?

Vladdy
03-18-2004, 06:28 AM
http://forums.webdeveloper.com/showthread.php?s=&threadid=5810