|
 |
asp_web_howto thread: RE: ASP and Java
Message #1 by "O'Hara, Elliott M" <EMOHARA@k...> on Mon, 3 Dec 2001 05:51:57 -0500
|
|
<%
Response.write "<script language='javascript'>"&_
"function window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
make sure to call window_onload
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Friday, November 30, 2001 10:33 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
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.
emohara@k...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
Message #2 by "Craig Flannigan" <ckf@k...> on Mon, 3 Dec 2001 11:09:13 -0000
|
|
Thanks.
Do you mean call the Window_onload on the next page (the one the form
submits to?)
Sorry for the questions, but I really am clueless with Javascript!
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 10:52
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
<%
Response.write "<script language='javascript'>"&_
"function window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
make sure to call window_onload
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Friday, November 30, 2001 10:33 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
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.
emohara@k...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
$subst('Email.Unsub')
_____________________________________________________________________
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 #3 by "O'Hara, Elliott M" <EMOHARA@k...> on Mon, 3 Dec 2001 06:28:02 -0500
|
|
you want a form with a hidden input type passed by a Session Variable (yuck)
or cookie or variable ect...
if thats the case this should work
Where VaribleName is the value passed to the page by ASP
<html>
<head>
<%
Response.write "<script language='javascript'>"&_
"function Window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
</head>
<body onload="Window_onload()">
ect......
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Monday, December 03, 2001 6:09 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
Thanks.
Do you mean call the Window_onload on the next page (the one the form
submits to?)
Sorry for the questions, but I really am clueless with Javascript!
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 10:52
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
<%
Response.write "<script language='javascript'>"&_
"function window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
make sure to call window_onload
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Friday, November 30, 2001 10:33 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
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.
emohara@k...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
$subst('Email.Unsub')
_____________________________________________________________________
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.
emohara@k...
$subst('Email.Unsub')
Message #4 by "Craig Flannigan" <ckf@k...> on Mon, 3 Dec 2001 11:37:05 -0000
|
|
"(yuck)"
Well I don't know if there is a better way to do it!
Basically I have a Javascript Variable, "sTMP" filled with text. What I'd
like to do is to pass this to another page which will contain ASP to write
it into a database.
What I know how to do is to dynamically place a variable content into a
hidden field to pass it to the next page, but I didn't know the best method
for doing this when Java is involved.
So I have a Javascript page (it's a text editor). The text editor uses an <I
Frame> tag to allow the user to write/view HTML. This then needs saving to a
database...
But as you can tell, Java stumps me a little!
Thanks for your help so far - much appreciated.
Regards,
Craig.
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 11:28
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
you want a form with a hidden input type passed by a Session Variable (yuck)
or cookie or variable ect...
if thats the case this should work
Where VaribleName is the value passed to the page by ASP
<html>
<head>
<%
Response.write "<script language='javascript'>"&_
"function Window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
</head>
<body onload="Window_onload()">
ect......
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Monday, December 03, 2001 6:09 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
Thanks.
Do you mean call the Window_onload on the next page (the one the form
submits to?)
Sorry for the questions, but I really am clueless with Javascript!
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 10:52
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
<%
Response.write "<script language='javascript'>"&_
"function window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
make sure to call window_onload
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Friday, November 30, 2001 10:33 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
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.
emohara@k...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
$subst('Email.Unsub')
_____________________________________________________________________
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.
emohara@k...
$subst('Email.Unsub')
$subst('Email.Unsub')
_____________________________________________________________________
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 #5 by "O'Hara, Elliott M" <EMOHARA@k...> on Mon, 3 Dec 2001 07:18:24 -0500
|
|
think i gotcha...
So before the form is submitted, you want to add the value of your innerHTML
of the IFrame to a hidden input type???
try
formname.idofthehidden.value=formname.idoftheIFrame.innerhtml
how 'bout sending some code????
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Monday, December 03, 2001 6:37 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
"(yuck)"
Well I don't know if there is a better way to do it!
Basically I have a Javascript Variable, "sTMP" filled with text. What I'd
like to do is to pass this to another page which will contain ASP to write
it into a database.
What I know how to do is to dynamically place a variable content into a
hidden field to pass it to the next page, but I didn't know the best method
for doing this when Java is involved.
So I have a Javascript page (it's a text editor). The text editor uses an <I
Frame> tag to allow the user to write/view HTML. This then needs saving to a
database...
But as you can tell, Java stumps me a little!
Thanks for your help so far - much appreciated.
Regards,
Craig.
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 11:28
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
you want a form with a hidden input type passed by a Session Variable (yuck)
or cookie or variable ect...
if thats the case this should work
Where VaribleName is the value passed to the page by ASP
<html>
<head>
<%
Response.write "<script language='javascript'>"&_
"function Window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
</head>
<body onload="Window_onload()">
ect......
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Monday, December 03, 2001 6:09 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
Thanks.
Do you mean call the Window_onload on the next page (the one the form
submits to?)
Sorry for the questions, but I really am clueless with Javascript!
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 10:52
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
<%
Response.write "<script language='javascript'>"&_
"function window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
make sure to call window_onload
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Friday, November 30, 2001 10:33 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
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.
emohara@k...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
$subst('Email.Unsub')
_____________________________________________________________________
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.
emohara@k...
$subst('Email.Unsub')
$subst('Email.Unsub')
_____________________________________________________________________
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.
emohara@k...
$subst('Email.Unsub')
Message #6 by "Craig Flannigan" <ckf@k...> on Mon, 3 Dec 2001 12:21:46 -0000
|
|
Yes, that's what I need.
But I'm thick!
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 12:18
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
think i gotcha...
So before the form is submitted, you want to add the value of your innerHTML
of the IFrame to a hidden input type???
try
formname.idofthehidden.value=formname.idoftheIFrame.innerhtml
how 'bout sending some code????
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Monday, December 03, 2001 6:37 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
"(yuck)"
Well I don't know if there is a better way to do it!
Basically I have a Javascript Variable, "sTMP" filled with text. What I'd
like to do is to pass this to another page which will contain ASP to write
it into a database.
What I know how to do is to dynamically place a variable content into a
hidden field to pass it to the next page, but I didn't know the best method
for doing this when Java is involved.
So I have a Javascript page (it's a text editor). The text editor uses an <I
Frame> tag to allow the user to write/view HTML. This then needs saving to a
database...
But as you can tell, Java stumps me a little!
Thanks for your help so far - much appreciated.
Regards,
Craig.
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 11:28
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
you want a form with a hidden input type passed by a Session Variable (yuck)
or cookie or variable ect...
if thats the case this should work
Where VaribleName is the value passed to the page by ASP
<html>
<head>
<%
Response.write "<script language='javascript'>"&_
"function Window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
</head>
<body onload="Window_onload()">
ect......
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Monday, December 03, 2001 6:09 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
Thanks.
Do you mean call the Window_onload on the next page (the one the form
submits to?)
Sorry for the questions, but I really am clueless with Javascript!
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Monday 3 December 2001 10:52
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
<%
Response.write "<script language='javascript'>"&_
"function window_onload(){"&_
"FormName.idContent.value="&VariableName&"}</script>"
%>
make sure to call window_onload
-----Original Message-----
From: Craig Flannigan [mailto:ckf@k...]
Sent: Friday, November 30, 2001 10:33 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: ASP and Java
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.
emohara@k...
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
$subst('Email.Unsub')
_____________________________________________________________________
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.
emohara@k...
$subst('Email.Unsub')
$subst('Email.Unsub')
_____________________________________________________________________
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.
emohara@k...
$subst('Email.Unsub')
$subst('Email.Unsub')
_____________________________________________________________________
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.
|
|
 |