You need to sign in to do that
Don't have an account?
Starz26
Open New Window in remote action response
I tried the suggestion in this thread:
and still no window opens up.
I have tried everything I can think of and it just will not open a new window.
Here is my current code:
function processAppt(scannedID, numGuests){ Visualforce.remoting.Manager.invokeAction( '{!$RemoteAction.APPT_AppointmentCheckInController.createAppt}', scannedID, numGuests, function(result, event){ if (event.status) { window.open(/apex/badge_temp?id=' + result); } else if (event.type === 'exception') { } else { } }, {escape: false} ); rerenderMsgs(); }
Anyone have anoy other ideas?
It looks like you have a typo in your code, as the URL doesn't have an opening single quote:
if that was just a cut and paste error, I'd try a couple of things:
(1) Look for errors in the javascript console
(2) Add some alerts to check that the function is being correctly called when the action completes and that the event contains what you are expecting.