/    Sign up×
Community /Pin to ProfileBookmark

passing variable to asp page

What I’m doing is sending a variable out of Flash to a javascript function. I then need to take that variable and pass it to an asp page. How do I do this automatively without having to hit a submit button?

[code]<script language=javascript>
<!–
function submitQuizID(quiz_id){
alert (quiz_id)
<!– I need to submit quiz_id
}
</script>[/code]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@binkybooauthorMay 26.2004 — Isn't there a way to grab this variable and then post it to the asp page.

&lt;script language=javascript&gt;
&lt;!--
function submitQuizID(quiz_id){
alert (quiz_id)
document.quizID.submit();
}
&lt;/script&gt;


&lt;form name="quizID" method="post" value="quiz_id" action="http://2appl-telecomweb.intranet.teldta.com/quizConnector/process.asp"&gt;
&lt;/form&gt;
×

Success!

Help @binkyboo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...