function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Giri Cumbum 9Giri Cumbum 9 

Bootstrap JS libraries on IE 11

Hi,
We are woking on a VF page and on this page, we are calling the boot strap JS library functions for responsive design. Few of these java script functions are not working when the Salesforce header is "ON". When the header is OFF, the javascript working as expected. This is particularly happening on IE 11 browser. We are developing the application on IE 11 as well as Chrome and functionality on Chrome is fine irespective of SFDC headers on or off.
Can you suggest how to correct this on IE 11?
Keegan McCormackKeegan McCormack
Some of the sfdc libraries (which are only included when the header is show) use the $ prefix, which would conflict with bootstrap, as it uses jQuery with the same prefix.

The problem is touched on here: https://developer.salesforce.com/page/Developing_Apps_with_jQuery

Try putting jQuery into no conflict mode after including the bootstrap js, ie the same solution suggested here: http://stackoverflow.com/questions/19573074/is-there-a-way-to-use-bootstrap-3-0-plugins-with-jquery-noconflict

If that fails, I believe you'll need to set a new prefix ( yourPrefix = jQuery.noConflict() ), before loading bootstrap and replacing the $ prefix throughout the bootstrap js with yours.