In a popup window, I create a string dynamically which represents a function existing in the window.opener
e.g. funcstring = 'getProductListings("user_id",true)';
This is one of several possible functions that could be created dynamically, so I can't just hardcode it into the window.opener function call.
Then I want to call this in the opener something like as follows, but I'm not sure how to structure it.
window.opener.funcstring; // Pure pseudocode; I have no idea how to construct it.
alert('Success');
window.close();