Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user action on key stroke

Status
Not open for further replies.

ccampbell

Programmer
Aug 16, 2001
201
US
I have created and opened and executed a task on an object in my asp code like below

set obj = Server.CreateObject("....")
obj.Open (... , ...)
obj.Exec (task1)

I need the user to be able to click a button or perform a keystroke that will execute "task2" on that same object. I am having problems figuring out how to do this. Can anyone help me with this?

Thanks in advance
 
If it is ASP code then it executes on the server... but user events like keystrokes execute in the browser.
 
I understand that, but is there a way to take a browser action like a button click or a key stroke and execute a task on an object that I have created server side?
 
>I understand that, but is there a way to take a browser action like a button click or a key stroke and execute a task on an object that I have created server side?

You can use xmlhttp request to an asp page within which you execute something, but if you said "execute a task on [blue]an object that I have created server side[/blue]" then you have to have a means to retrieve a persistent reference to that object like session variable. You have to read more on your own.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top