Hi again
> I am a basic of Websh,Please help me.
> I Use Websh to write a HTML page, when I do a Button like this:
> <input type=button onClick="...">
>
> Question:
> How can i Capture the Event when Click the Button?
> a proc?
> a web::command ?
> how to write it?
Remeber that Websh is on the server side and JvaScript runs on the
client. So the only way to catch a JavaScript Event is when you send a
request to the server, which in the easiest case you do in JavaScript by
document.location.href = aURLVariable;
or similar (Some AJAX call or whatever).
procs and web::comand come only into play once you get a request on
the server. There you have a Websh script that takes the request and
sends a response.
(My guess is that you want to mix Websh and JS no the client side,
which is not possible.)
hth
Ronnie
--
Ronnie Brunner | [EMAIL PROTECTED]
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]