12.5.0 中的 TIBCO Spotfire 日期选择器功能错误

问题描述 投票:0回答:1

我最近从 Spotfire 10 升级到 12.5.0,其中使用了函数 datepicker,现在当我打开 DXP 时,升级到 Spotfire 12.5.0 后出现以下错误 -

Execution of Javascript failed:
Type: TypeError
Message: $(...).datepicker is not a function
Stacktrace: TypeError: $(...).datepicker is not a function

我使用以下 JS 脚本:-

//update document property after selection
function datePicker_onSelect(selectedDate){
 //alert(selectedDate)
 $("#dt1 input").focus()
 $("#dt1 input").blur()
}

//jquery datepicker configuration
//you can comment the buttonImageOnly and buttonImage lines to show a button instead of a calendar or the image of your choice.
pickerOptions = {
 showOn: 'button', 
 buttonImageOnly: true, 
 buttonImage: 'http://staff.washington.edu/tabrooks/343INFO/UnobtrusiveDatePicker/cal-grey.gif', 
 minDate: "-15M", maxDate: "-1D",
 defaultDate: -1,
 changeMonth: true,
 changeYear: true,
 altField:"#dt1 input",
 onSelect:datePicker_onSelect
 }

//create the date picker
document.getElementById('dt1picker').innerHTML="<input type='hidden' id='datePicker'>"
$("#datePicker").datepicker(pickerOptions);

我厌倦了浏览类似的问题,发现 TIBCO 已经停止支持第三方库。依赖于先前随 Spotfire 分发的 jQuery 库的脚本现在将失败,因为尝试使用 $ 选择器/jQuery 别名将导致类似上述的错误。是否对此有任何修复或在 Spotfire 12.5.0 中直接可用的任何解决方案? 谢谢

javascript jquery spotfire spotfire-analyst
1个回答
0
投票

和我有同样的问题,最近我升级到了不支持JS的spotfire 14。我想知道你是否有任何解决方案。

谢谢

© www.soinside.com 2019 - 2024. All rights reserved.