Paulo Roberto wrote on 05 sep 2006 in
microsoft.public.inetserver.asp.general:
"Evertjan." <ex**************@interxnl.netwrote in message
>Paulo Roberto wrote on 05 sep 2006 in
[...]
>Please read up on ASP.
[please do not toppost on usenet]
Did you read that?
>>
Resuming, what I need to know if is it possible to interchange ASP
and client JavaScript results.
Example: after the user has pressed submit form and the client
JavaScript has checked all fields I want the result being stored in
a ASP variable, can you understand?
I can understand, and I even told you how to do it.
More extensive:
<form onsubmit='return checkFields()' action='receive.asp'
method='post'<input name = 'field1'>
<input name = 'field2'>
<input name = 'field3'>
<input type='submit'>
</form>
where the clientside javascript function checkFields()
returns only true when the fields are OK.
==================
And in 'receive.asp':
<%
ValueOfField1 = request.form("field1")
ValueOfField2 = request.form("field2")
ValueOfField3 = request.form("field3")
%>
[please please please please please
please please please please please please
please please please please please
do not toppost on usenet]
I know all that you said...
I do not think so ....
Let me try a example:
In ASP a following code is valid:
<script language=Javascript>
(here comes the codes and we CAN mix asp together, like:)
int someJavaVarInt = <%=aspVariable %>
for i 1 to <%=aspVariableNumber %do
next
etc etc
</script>
Not true, that is not in ASP,
the shown ASP-vbscript code is just used
to render the clientside javascript code!
and html and clientside code is not ASP.
The client/browser only receives the value!!!
Try is by view-source-ing your page on the browser.
BUT what I need is the INVERSE, just like:
[...]
Impossible, your reasoning is wrong.
Rain stops when conditions in the cloud change,
and the street gets dry,
but you cannot change the conditons in the cloud
by swapping up the rain from the street.
ASP renders a text stream that is sent as
HTML+clientsidecode to the client.
When the clientside code executes on the browser,
the rendering of the serverside ASP code
[usualliy in vbscript or also javascript]
is done and finished.
Because on the end of the page I need to
execute instructions based on that
aspVariable...
You cannot execute serverside(!!!) code based
on something that comes up clientside in the same page.
The client has to sent this to the server
and the server can only process this under ASP
in a newly called asp-file.
This can be done as shown twice using a <formsubmit,
[or with Ajax technology,
the latter being far to difficult for you,
if you do not understand the above.]
====
[Sorry, but if you keep on topposting I will not answer anymore.]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)