AnsweredAssumed Answered

Receipt JavaScript issues (PebblePad + BasicLTI related)

Question asked by mb35216 on Apr 19, 2016
Latest reply on Jul 22, 2016 by vickers.stephen

Hi guys,
We are currently working on installing PebblePad on our production environment which requires BasicLTI building block to be installed as well.  Upon installing BasicLTI building block and going through testing I have noticed that a receipt page in one of our custom building blocks doesn't work as expected.

 

The receipt bar at the top of the page which contains the code below doesn't show up on the receipt page. 

<bbNG:receipt title="Course Joined to Parent" type="Success" recallUrl="${returnurl}">

 

The following code snippets is the javascript present on the receipt page when BasicLTI B2 is present (receipt page broken) and when BasicLTI B2 is uninstalled (receipt page working)

 

 

JavaScript on receipt page with BasicLTI B2 installed

FastInit.addOnLoad( function()
   {
            if ( window.DWREngine )
       {
        try {DWREngine.beginBatch();} catch(ignore) {}
       } 
                page.decoratePageBanner();
                                                             page.ContextMenu.hideMenuDiv('976aa75d05b043febb686d1366fae633');
                                                             new page.PageHelpToggler(true, 'Help is On: Click to hide page help.', 'Help is Off: Click to show page help.', false );
                                                             breadcrumbs.rightMostNavItem = 'null';
                                                             breadcrumbs.rightMostParentURL = 'null';
                                                             courseTheme.nonceKey = 'blackboard.platform.security.NonceUtil.nonce.ajax';
                                                             courseTheme.nonceValue = 'c0d4d331-4109-40a5-9c69-944f7a980838';
                                                             new page.PageMenuToggler(true,'courseMenuToggle_37_1', true);
                                                             courseMenu.nonceKey = 'blackboard.platform.security.NonceUtil.nonce.ajax';
                                                             courseMenu.nonceValue = 'c0d4d331-4109-40a5-9c69-944f7a980838';
                                                             new page.PaletteController('courseMenuPalette', 'courseMenu_link', false, false);
                                                             new page.ItemExpander('controlpanel.course.files_groupExpanderLink', 'controlpanel.course.files_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCourseFileItems', 'course_id=_17_1&navItemSubGroup=null&newWindow=false&openInParentWindow=false', 'Expand Content Collection','Collapse Content Collection');
                                                             new page.ItemExpander('controlpanel.course.tools_groupExpanderLink', 'controlpanel.course.tools_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_17_1&navItemSubGroup=course_tools&newWindow=false&openInParentWindow=false', 'Expand Course Tools','Collapse Course Tools');
                                                             new page.ItemExpander('controlpanel.evaluation_groupExpanderLink', 'controlpanel.evaluation_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_17_1&navItemSubGroup=assessment&newWindow=false&openInParentWindow=false', 'Expand Evaluation','Collapse Evaluation');
                                                             new page.ItemExpander('controlpanel.grade.center_groupExpanderLink', 'controlpanel.grade.center_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGradeCenterGroupItems', 'course_id=_17_1&navItemSubGroup=grade_center&newWindow=false&openInParentWindow=false', 'Expand Grade Center','Collapse Grade Center');
                                                             new page.ItemExpander('controlpanel.users.and.groups_groupExpanderLink', 'controlpanel.users.and.groups_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_17_1&navItemSubGroup=users_group&newWindow=false&openInParentWindow=false', 'Expand Users and Groups','Collapse Users and Groups');
                                                             new page.ItemExpander('controlpanel.customization_groupExpanderLink', 'controlpanel.customization_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_17_1&navItemSubGroup=course_customization&newWindow=false&openInParentWindow=false', 'Expand Customization','Collapse Customization');
                                                             new page.ItemExpander('controlpanel.packages.and.utilities_groupExpanderLink', 'controlpanel.packages.and.utilities_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_17_1&navItemSubGroup=package_utilities&newWindow=false&openInParentWindow=false', 'Expand Packages and Utilities','Collapse Packages and Utilities');
                                                             new page.ItemExpander('controlpanel.help_groupExpanderLink', 'controlpanel.help_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_17_1&navItemSubGroup=assistance&newWindow=false&openInParentWindow=false', 'Expand Help','Collapse Help');
                                                             new page.PaletteController('controlPanelPalette', 'controlPanelPalette_link', false, false);
                                                             theCourseMenu = new courseMenu.CourseMenu('/webapps/blackboard/execute/doCourseMenuAction', '/webapps/blackboard/execute/getCourseMenuContextMenu');
                                                             welcomeOverlay.initOverlay();
                                                             tool_service.init ('300000', 'Suppress-Session-Timestamp-Update' );
                                                             if (typeof(initEditors) == 'function') { initEditors(); }; 
                                                             if (window['org'] && window['org']['owasp']) { org.owasp.esapi.ESAPI.initialize(); }; 
                                                             quickLinks.createHelper();
                                                                  if ( window.DWREngine )
       {
         try {DWREngine.endBatch();} catch(ignore) {}
       }
                          BrowserSpecific.registerListeners();
               });

 

 

JavaScript on receipt page without BasicLTI B2 installed

FastInit.addOnLoad( function()
   {
            if ( window.DWREngine )
       {
        try {DWREngine.beginBatch();} catch(ignore) {}
       } 
                page.decoratePageBanner();
                                                             page.ContextMenu.hideMenuDiv('139617c247b74d13b8dc3658ce8f699c');
                                                             new page.NestedInlineConfirmation('warning', 'Unavailable child course: Students will not see changes made to this course. Please work in <a href=\"http://localhost:9876/webapps/blackboard/execute/courseMain?course_id=_38_1\" title=\"Course join 5\">master course</a>.', false, $('contentPanel') || $('portalPane'), false, '', false, false, 0, false, 0, true );
                                                             new page.PageHelpToggler(true, 'Help is On: Click to hide page help.', 'Help is Off: Click to show page help.', false );
                                                             breadcrumbs.rightMostNavItem = 'null';
                                                             breadcrumbs.rightMostParentURL = 'null';
                                                             new page.PageMenuToggler(true,'courseMenuToggle_24_1', true);
                                                             courseMenu.nonceKey = 'blackboard.platform.security.NonceUtil.nonce.ajax';
                                                             courseMenu.nonceValue = 'c0d4d331-4109-40a5-9c69-944f7a980838';
                                                             new page.PaletteController('courseMenuPalette', 'courseMenu_link', false, false);
                                                             new page.ItemExpander('controlpanel.course.files_groupExpanderLink', 'controlpanel.course.files_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCourseFileItems', 'course_id=_24_1&navItemSubGroup=null&newWindow=false&openInParentWindow=false', 'Expand Content Collection','Collapse Content Collection');
                                                             new page.ItemExpander('controlpanel.course.tools_groupExpanderLink', 'controlpanel.course.tools_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_24_1&navItemSubGroup=course_tools&newWindow=false&openInParentWindow=false', 'Expand Course Tools','Collapse Course Tools');
                                                             new page.ItemExpander('controlpanel.evaluation_groupExpanderLink', 'controlpanel.evaluation_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_24_1&navItemSubGroup=assessment&newWindow=false&openInParentWindow=false', 'Expand Evaluation','Collapse Evaluation');
                                                             new page.ItemExpander('controlpanel.grade.center_groupExpanderLink', 'controlpanel.grade.center_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGradeCenterGroupItems', 'course_id=_24_1&navItemSubGroup=grade_center&newWindow=false&openInParentWindow=false', 'Expand Grade Center','Collapse Grade Center');
                                                             new page.ItemExpander('controlpanel.users.and.groups_groupExpanderLink', 'controlpanel.users.and.groups_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_24_1&navItemSubGroup=users_group&newWindow=false&openInParentWindow=false', 'Expand Users and Groups','Collapse Users and Groups');
                                                             new page.ItemExpander('controlpanel.customization_groupExpanderLink', 'controlpanel.customization_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_24_1&navItemSubGroup=course_customization&newWindow=false&openInParentWindow=false', 'Expand Customization','Collapse Customization');
                                                             new page.ItemExpander('controlpanel.packages.and.utilities_groupExpanderLink', 'controlpanel.packages.and.utilities_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_24_1&navItemSubGroup=package_utilities&newWindow=false&openInParentWindow=false', 'Expand Packages and Utilities','Collapse Packages and Utilities');
                                                             new page.ItemExpander('controlpanel.help_groupExpanderLink', 'controlpanel.help_groupContents', 'Expand', 'Collapse', true, '/webapps/blackboard/execute/course/getCPGroupItems', 'course_id=_24_1&navItemSubGroup=assistance&newWindow=false&openInParentWindow=false', 'Expand Help','Collapse Help');
                                                             new page.PaletteController('controlPanelPalette', 'controlPanelPalette_link', false, false);
                                                             theCourseMenu = new courseMenu.CourseMenu('/webapps/blackboard/execute/doCourseMenuAction', '/webapps/blackboard/execute/getCourseMenuContextMenu');
                                                             welcomeOverlay.initOverlay();
                                                             tool_service.init ('300000', 'Suppress-Session-Timestamp-Update' );
                                                             if (typeof(initEditors) == 'function') { initEditors(); }; 
                                                             if (window['org'] && window['org']['owasp']) { org.owasp.esapi.ESAPI.initialize(); }; 
                                                             quickLinks.createHelper();
                                                                  if ( window.DWREngine )
       {
         try {DWREngine.endBatch();} catch(ignore) {}
       }
                          BrowserSpecific.registerListeners();
               });

 

 

Does anyone have any ideas as to what might be causing this?  Any help is appreciated.

 


Mladen

Outcomes