Passing values from client vars to Server script 
Author Message
 Passing values from client vars to Server script

Can we do something like this:
<%
dim MatchedRetailers
set Matched Retailers = MyComObject.DefaultInterface()
'Matched Retailers is an array
Response.write("<LABEL NAME"Label1" onclick= 'LabelClicked(4)'

Quote:
>12345</LABEL>")

'
%>

<SCRIPT Language= "JAVAScript">
function LabelClicked(index)
{
/* i want to display the record/item in array whose index was passed from
the OnClick event , following code first line doesn't work but if i hardcode
the value of index as in line 2 it works*/
alert("<%=MatchedRetailers.Item (%>" + index + "<%)" + ".DunsNumber%>")
alert('<%=MatchedRetailers.Item(2).DunsNumber%>')

Quote:
}

</SCRIPT>


Mon, 03 Mar 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Passing value from Server script to client script.

2. Passing Server side vars to Client side

3. How to pass value from server to client

4. how to pass client side values to server side

5. How to pass value from server to client

6. questions on passing text parameter from server script to client script (some new findings)

7. questions on passing parameter from server script to client script

8. ?Passing arrays from Server script to Client Script

9. Pass client script variable to server script variable

10. ?Passing arrays from Server script to Client Script

11. Passing Vars on the client side

12. Help: problem passing variable between client/server scripts

 

 
Powered by phpBB® Forum Software