I am having trouble sending navigator plugins with AJAX as I am only getting one plugin in the result.
The plugin list currently shows: Shockwave Flash. However, it should display like this: Shockwave Flash - Chrome Remote Desktop Viewer - Native Client...
<script>
for (var myIndex = 0; myIndex < navigator.plugins.length; myIndex++) {
var blabla = (navigator.plugins[myIndex].name);
}
$.ajax({
type: 'POST',
url: 'save.php',
cache: false,
data: {
pluginlist: blabla,
},
});
</script>
What could be causing this issue?
Additionally, when testing the script, it appears to work correctly.
<SCRIPT>
for (var myIndex=0; myIndex<navigator.plugins.length; myIndex++) {
document.write(navigator.plugins[myIndex].name, " - ");
}
</SCRIPT>