on 09-08-2014 4:26 PM
Hi,
I'm working with a theme template in javascript/ajax/html 5
I would like to integrate SAP UI in it.
But when I add
<script id="sap-ui-bootstrap" type="text/javascript"
src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-preload="sync"
data-sap-ui-libs="sap.ui.commons, sap.viz, sap.ui.table, sap.ui.core">
</script>
I have error in a javascript file :
$('#vmap').vectorMap({
map: 'world_en',
backgroundColor: '#fff',
color: '#5bc0de',
borderColor: '#5bc0de',
hoverOpacity: 0.7,
selectedColor: '#82b964',
enableZoom: true,
showTooltip: true,
values: sample_data,
scaleColors: ['#5bc0de', '#006491'],
normalizeFunction: 'polynomial'
});
=> No property or or method « vectorMap » for this item
If I don't add it, no error.
I searched and I think it's a conflict between sap-ui-core.js and jquery.vmap.min.js
I added <script type="text/javascript">jQuery.noConflict();</script>
but the error is always here.
Can you help me please?
Best regards
Yannick
Tags edited by: Michael Appleby
You need to change your bootstrap
<script
id="sap-ui-bootstrap"
src="resources/sap-ui-core-nojQuery.js"
data-sap-ui-libs="sap.ui.commons"
data-sap-ui-theme="sap_goldreflection" >
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.