Solved

POST method question

Posted on 2007-04-09
1
135 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
Comment Utility
Change the script to this ...

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article will show, step by step, how to integrate R code into a R Sweave document
The goal of the tutorial is to teach the user how to how to record live broadcast.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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

14 Experts available now in Live!

Get 1:1 Help Now