Hi all,
Im currently writing a script that allows a multiple records to be selected for editing. The only thing that changes is the id number eg. edit.asp?SID=123
Then i use loop through all the ids and open the edit page passing the id along. The only problem is i cant pass the asp variable that holds the record number to open
how do i output my ASP variable into the javascript url section
heres the code
Code:
<%
SID = Request.Form("select")
SelectAll = Request.Form("SelectAll")
' split profile id's into array
SID = Split(SID,",")
ProfileCount = 0
' loop though ids and open window with javascript
Do While Not ProfileCount > Ubound(SID)
ProfileCount = ProfileCount + 1
%>
<SCRIPT language="JavaScript1.2">
{
window.open("../Profile_Edit.asp?SID=ineedmyvariablehere");
}
</SCRIPT>
<%
Loop
%>
Thanks Tim:)
TDA