trying to send data to a new window that doesn't originate from a form.
This is what I tried:
window.open('/path/to/file.php', 'bundle', 'height=700, width=500');
$.post('/path/to/file.php', {id: $(this).data('id')}, function(res)
{});
but var_dumping $_POST returns an empty array.
the data as you can see is being passed with $(this) (the trigger is an .on('click')) and I'm not a fan of the idea of having to create a hidden form - surely there must be a way to use $.post (or something else) to just post and open a new window - any ideas? Thanks :)