Project

General

Profile

Actions

Bug #2425

closed

JavaScript error when setObjectName is called for WAbstractSpinBoxs

Added by Will Johnson about 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/15/2013
Due date:
% Done:

0%

Estimated time:

Description

I receive the following client-side javascript error whenever setObjectName(...) function has been called for WAbstractSpinBox widgets:

"Uncaught TypeError: Cannot read property 'defaultTT' of null"

Which I think is happening because in the JS a call is made to setValidationState(...), referencing the widget ID without the object name prepended, which doesn't exist in the DOM, e.x.

Wt3_3_1.setValidationState(Wt3_3_1.$('opsry94'),1,'',1),

when it should be (and in fact is also called)

Wt3_3_1.setValidationState(Wt3_3_1.$('ObjectName_opsry94'),1,'',1);

I am using the the wthttp connector, and have tried this on both Chrome and FireFox, using Wt 3.3.1 on OS X.


Files

main.cpp (1.5 KB) main.cpp minimal Wt app to reproduce issue Will Johnson, 11/15/2013 08:38 PM
Actions #1

Updated by Koen Deforche about 11 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.3.1

Hey,

Thanks for the test case. A fix is on it's way.

koen

Actions #2

Updated by Koen Deforche almost 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF