I was trying to open a subtab using javascript, in the js console in IE browser and I am getting this error:

URl does not exists

But the URL is correct and its opening in Firefox browser the way I would expect.


 window.parent.sforce.console.getEnclosingPrimaryTabId(function(result) {
                        console.debug('inside call back' + result.id);
                        window.parent.sforce.console.openSubtab(result.id, '/00T/e?retURL=%2F{!Account.Id}&tsk5=Call&title=Call&followup=1&what_id={!Account.Id}',true,'Log a Note', null);

I am using window.parent since I kept the code in iframe, for iframe to identify its primary tab id.

  • Is it possible that the iframe is in a different domain to window.parent? – Daniel Ballinger Feb 12 '14 at 19:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.