Solved

POST method question

Posted on 2007-04-09
1
141 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

732 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