2 replies
by beta611
Is this call client side or sever side? one way to do it is to pass the values using a querystring to the loading page if the call is server side. then the loading page can take the value from the querystring.
if its client side code suchas javascript you could do something like this:
var arryArgs = new Array ("1","2","3");
var results = window.showModalDialog("myhtml.htm",arryArgs);
"I have created a menu page where the user enters the CallID number that they want to take the quiz on."
I assume this means they are filling in a form text field and then they are redirected to a specific page.
If so, on the form entry page: (using [] instead of <>)
[script type="text/javascript"]
function goCallReport() {
var icallid;
icallid = document.callidform.callid;
if(!icallid.value) {
alert('CallID field cannot be blank');
icallid.focus();
return false;
} else {
var ecallid='';
ecallid='callreport.asp?' + icallid.value;
document.callidform.action=ecallid;
return true;
}
}
[/script]
[form name="callidform" method="get" onSubmit="goCallReport()"]
[input type=text value="" id="callid" name="callid" /]Enter call ID
[/form]
In the callreport page:
<%@ LANGUAGE=VBScript %>
<%
Option Explicit
dim callid
callid = Trim(Request.QueryString("callid"))
%>
...
...
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending