I have a javascript function that uses window.open to call another page and returning the result.
Here is the section of my code:
var windowFeatures = "status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=1, scrollbars=1";
window.open ('http://www.example.com/index.php?p=view.map&coords=' + encodeURIComponent(coords), 'JobWindow', windowFeatures);
My problem now is that I am passing too much data for the GET to handle and I need to pass it using the POST method.
How can I convert the code above to open the page using the POST method without implement forms all over the page (the page lists 100's of orders with a list of suppliers - I am trying to map the suppliers)
document.body.appendChild(mapForm);
is redundant here and can be safely omitted to not clutter DOM up. – Underplay