Solved

To read data from Javascript

Posted on 2004-04-06
3
170 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
3 Comments
 
LVL 22

Accepted Solution

by:
Snarf0001 earned 250 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now