|
 |
asp_web_howto thread: ASP and Java
Message #1 by "Craig Flannigan" <ckf@k...> on Fri, 30 Nov 2001 11:39:49 -0000
|
|
Hi,
this is probably a simple question to most, but how do I take the value from
a variable from Javascript and put it into a ASP Variable/Session?
Java Variable is: idContent.document.body.innerHTML
which I want to place the content of which, into a session - but I'm not
sure how.
Any help will be appreciated.
Regards,
Craig.
Message #2 by Russell Peto <russell.peto@i...> on Fri, 30 Nov 2001 11:49:48 -0000
|
|
The easiest way to do this is to submit this variable by POST or GET method
to an .asp page that will then submit this to a session variable.
If I was doing it, I'd create a hidden form with an action pointed to the
relevant .asp page.
I'd then set the value of a hidden input field to the
idContent.document.body.innerHTML value and execute the submit action on the
form.
It is probably worth noting (although I'm sure you know this) that this is
probably the only way to do this as JavaScript is a client side scripting
language whereas ASP variables and session variables are server side values.
Hope this helps
Russell
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: 30 November 2001 11:40
To: ASP Web HowTo
Subject: [asp_web_howto] ASP and Java
Hi,
this is probably a simple question to most, but how do I take the value from
a variable from Javascript and put it into a ASP Variable/Session?
Java Variable is: idContent.document.body.innerHTML
which I want to place the content of which, into a session - but I'm not
sure how.
Any help will be appreciated.
Regards,
Craig.
russell.peto@i...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/2001
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.298 / Virus Database: 161 - Release Date: 13/11/2001
Message #3 by "Craig Flannigan" <ckf@k...> on Fri, 30 Nov 2001 12:00:39 -0000
|
|
Thanks for your suggestion - I will try that.
-----Original Message-----
From: Russell Peto [mailto:russell.peto@i...]
Sent: Friday 30 November 2001 11:50
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
The easiest way to do this is to submit this variable by POST or GET method
to an .asp page that will then submit this to a session variable.
If I was doing it, I'd create a hidden form with an action pointed to the
relevant .asp page.
I'd then set the value of a hidden input field to the
idContent.document.body.innerHTML value and execute the submit action on the
form.
It is probably worth noting (although I'm sure you know this) that this is
probably the only way to do this as JavaScript is a client side scripting
language whereas ASP variables and session variables are server side values.
Hope this helps
Russell
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: 30 November 2001 11:40
To: ASP Web HowTo
Subject: [asp_web_howto] ASP and Java
Hi,
this is probably a simple question to most, but how do I take the value from
a variable from Javascript and put it into a ASP Variable/Session?
Java Variable is: idContent.document.body.innerHTML
which I want to place the content of which, into a session - but I'm not
sure how.
Any help will be appreciated.
Regards,
Craig.
russell.peto@i...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/2001
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.298 / Virus Database: 161 - Release Date: 13/11/2001
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
Message #4 by "Craig Flannigan" <ckf@k...> on Fri, 30 Nov 2001 15:32:57 -0000
|
|
Hi,
Sorry to pester you again - but ...
I know this is really a Java question, but since you know I figured it would
be a quick one for you..
I have set up the Form, and the hidden field. Normally in ASP to send the
contents of a variable, you'd use code such as:
<input type="hidden" name="test" value="<%=VariableName%>">
But this obviously wont work in Javascript.
So how do I place the "idContent.document.body.innerHTML" variable in the
above HTML code? I tried putting the Script tags around it, but it failed.
Cheers
Craig.
-----Original Message-----
From: Russell Peto [mailto:russell.peto@i...]
Sent: Friday 30 November 2001 11:50
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
The easiest way to do this is to submit this variable by POST or GET method
to an .asp page that will then submit this to a session variable.
If I was doing it, I'd create a hidden form with an action pointed to the
relevant .asp page.
I'd then set the value of a hidden input field to the
idContent.document.body.innerHTML value and execute the submit action on the
form.
It is probably worth noting (although I'm sure you know this) that this is
probably the only way to do this as JavaScript is a client side scripting
language whereas ASP variables and session variables are server side values.
Hope this helps
Russell
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: 30 November 2001 11:40
To: ASP Web HowTo
Subject: [asp_web_howto] ASP and Java
Hi,
this is probably a simple question to most, but how do I take the value from
a variable from Javascript and put it into a ASP Variable/Session?
Java Variable is: idContent.document.body.innerHTML
which I want to place the content of which, into a session - but I'm not
sure how.
Any help will be appreciated.
Regards,
Craig.
russell.peto@i...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/2001
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.298 / Virus Database: 161 - Release Date: 13/11/2001
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
|
|
 |