How to get value from parameters in the javascript function?

Topics: User Forum
Mar 29, 2013 at 3:29 PM
Hi all,

Is there a way to get value from parameters in the javascript function into avfp variable?
Please advise.

Best regards.
Coordinator
Mar 29, 2013 at 4:15 PM
Is there any reason why you couldn't pass it to the server as normal with a call to the VFP server by form submission, URL, or AJAX?
Mar 29, 2013 at 7:02 PM
I've create a webpage to show employee list. Each row I add a print button which call a function to export the employee data into an excel form. So I need to pass the employee id to that function and seek the employee data. That's why I need to get value from parameters in the javascript function. Please help or suggest me any other solution to solve this problem.

Many thanks for considering my request.
Mar 30, 2013 at 5:21 PM
<form name="employeedata"
<input type="submit" name= "Print" value="<%= nIdNo %>"
</form>

in the javascript
<script type="text/javascript"> var excelID = document.employeedata.print.value </script>