Author Topic: Javascript not working - Need Jquery Version  (Read 483 times)

Offline TheDarkKnight

  • Full Member
  • ***
  • Join Date: Jan 2010
  • Posts: 34
  • Forum Citizenship: +0/-0
Javascript not working - Need Jquery Version
« on: 25 Jul 2017 06:06:45 am »
Hi All,
We recently upgraded from 10 to 11.
What is the jquery version compatible / to be used in Cognos 11.

We have a Cognos report which displays comments in text box for the parameter[Metric Type] selected.  Users can edit the comments by using the edit button, if needed and can submit the comments which will reflect in database.
The Edit functionality is coded through JavaScript [using jquery.js,ckeditor.js...etc]
The functionality was working fine in Cognos 10. Post Upgrade to Cognos 11, the edit functionality is not working

it seems the jquery version we are using is not compatible and needs to be updated. not sure
I tried 2.1.1 and other few versions. but no help

Please help

Regards
TDK


Online CognosPaul

  • Global Moderator
  • Statesman
  • *****
  • Join Date: Jan 2009
  • Posts: 1,565
  • Forum Citizenship: +244/-1
    • Paul's Cognos Blog
Re: Javascript not working - Need Jquery Version
« Reply #1 on: 25 Jul 2017 09:36:37 am »
Are you using this in interactive or non-interactive mode?

It looks like Cognos has 2.0.3, at least in the frame. Non-interactive mode does have something using the $ keyword, but it's not jQuery, it looks like it's something IBM wrote.

Can you post your code?

Offline anithask

  • Associate
  • **
  • Join Date: Jul 2017
  • Posts: 1
  • Forum Citizenship: +0/-0
Re: Javascript not working - Need Jquery Version
« Reply #2 on: 27 Jul 2017 08:45:37 am »
I have same issue in connecting JS to custom control to add JS of mapbox. can any one help me to find the procedure / JS for mapbox to get street level details in map?
<html>
<head>
<script src='https://api.mapbox.com/mapbox-gl-js/v0.38.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.38.0/mapbox-gl.css' rel='stylesheet' />
</head>
<body>
<div id='map' style='width: 400px; height: 300px;'></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1Ijoic3llZC1pc21haWwta2hhZHJ5IiwiYSI6ImNqNTJuOGF3aTBnNTUyeG8ycjB1ZzY0azIifQ.VhEXToBVrBZoFiwh2v4EPw';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v10'
});
</script>
</body>
</html>
 

 


       
Twittear