?
Solved

To read data from Javascript

Posted on 2004-04-06
3
Medium Priority
?
199 Views
Last Modified: 2010-04-17
Hi

I'm Rags here, Can anybody tell me how can I get a value from javascript  variable to  a ASP  variable


Regards
Rags
0
Comment
Question by:rags_1980
1 Comment
 
LVL 23

Accepted Solution

by:
Snarf0001 earned 1000 total points
ID: 10768832
The only way that I'm aware of is to load it into a hidden field so that it goes back to the server in the response.
ie

<script>

var ValueToPass;

function TransferValues()
{
  document.Form1.HoldValues.value = ValueToPass.toString();
  return true;
}
</script>

<form name="Form1" action="somewhere.asp" method="post" onSubmit="return TransferValues();">
  <input type="hidden" name="HoldValues">
</form>
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Starting up a Project

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question