I have the below script:
<script type="text/javascript">
function train(roww){
$.post ('getpeopleinjobs.php',{
postvarposition: form["position"+roww].value,
postvarjob: form["job"+roww].value,
postvarperson: form["person"+roww].value,
postrow: roww},
function(output){
popupWindow = window.open('trainingneeded.php?position=postvarposition&job=postvarjob&person=postvarperson','popUpWindow','height=400,width=1000,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
});
}
</script>
I have tested the script and it works 100%. my problem is that my variables, postvarposition,postvarjob and postvarperson are being passed as text in the URL string rather than the actual variables.
How do I format the line
popupWindow = window.open('trainingneeded.php?position=postvarposition&job=postvarjob&person=postvarperson','popUpWindow','height=400,width=1000,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
so that the variables are passed as variables and not as text.
Thanks in advance.