Solved

POST method question

Posted on 2007-04-09
1
142 Views
Last Modified: 2010-04-16
hi,

i'm trying to pass a variable using POST method:

<form id="frm1" action="lobby.aspx" method="post">
<input type="hidden" name="userid" id="userid">
</form>

<script language="javascript">

function goLobby (id) {
      alert(id);
      document.all ["userid"].value = id;
      document.close();
      all ["frm1"].submit();
}
</script>

the goLobby function is invoked from flash movie clip (using getUrl), which pass an id as parameter.
the laert popup is being displayed ,however, nothing happens afterwards.

any ideas?
0
Comment
Question by:sedgwick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 58

Accepted Solution

by:
amit_g earned 125 total points
ID: 18878650
Change the script to this ...

function goLobby (id) {
      alert(id);
      document.forms["frm1"].elements["userid"].value = id;
      document.forms["frm1"].submit();
}
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

690 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