Solved

POST method question

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

Industry Leaders: 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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
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 …

713 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