Solved

POST method question

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

810 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