+ Start a Discussion

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){
        scannedID, numGuests, 
        function(result, event){
            if (event.status) {
                    window.open(/apex/badge_temp?id=' + result);
            } else if (event.type === 'exception') {

            } else {

        {escape: false}



 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:


window.open('/apex/badge_temp?id=' + result);

 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.