EasyUI Forum
September 16, 2025, 11:16:38 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datetimebox setValue error  (Read 12051 times)
jd0000
Newbie
*
Posts: 7


View Profile
« on: April 17, 2013, 07:46:27 AM »

When I try to use $('#datefield').datetimebox('setValue','4/12/2013 11:15'); i get the error
TypeError: $.data(...) is undefined
line is jquery-easyui-1.3.2.min.js line 11048
is the command I am using wrong?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 19, 2013, 01:59:13 AM »

Please refer to this example http://jsfiddle.net/Amavh/. It works fine.
Logged
jd0000
Newbie
*
Posts: 7


View Profile
« Reply #2 on: April 19, 2013, 06:50:15 AM »

yup that works fine. ive been trying to narrow down the issue. my html with the datetime input is loaded through ajax. when i put it on the initial page statically it works. when i load it through ajax i get that error

TypeError: $.data(...) is undefined
[Break On This Error]    
var opts=$.data(_823,"datetimebox").options;

jquery-easyui.min.js line 11048 ( my easyui min is different from the one you used on jfiddle, but its the same version? ... i tried the one you used and had the same problem ).
Logged
jd0000
Newbie
*
Posts: 7


View Profile
« Reply #3 on: April 19, 2013, 07:37:53 AM »

ok got it now. it was related to it being ajax.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!