Sigma Php Ajax framework, Ajax Components, GUI Builder
May 21, 2012, 10:46:38 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ComboInput setLabelCaption()? (not a bug)  (Read 426 times)
Bruce_Dickey
Sr. Member
****
Posts: 67


View Profile
« on: January 16, 2012, 12:24:23 PM »

Hi,

If I set the type of a ComboInput to `spin`, VisualJS adds a setLabelCaption() call. At run-time, this method is undefined.

This is surprising because the API documentation indicates that linb.UI.ComboInput is derived from linb.UI.Input. The latter has the setLabelCaption() method.

Is this a bug that setLabelCaption() is undefined for the `spin` ComboInput?

Thanks,
Bruce

« Last Edit: January 31, 2012, 02:21:52 PM by Bruce_Dickey » Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: January 16, 2012, 05:08:35 PM »

All types of ComboInput have setLabelCaption, maybe your run-time lib is 3.0
Logged
Bruce_Dickey
Sr. Member
****
Posts: 67


View Profile
« Reply #2 on: January 30, 2012, 10:34:42 AM »

Hi,

I am using linb 4.0

Other stuff:
Red Hat Enterprise 5, 64-bit
PHP 5.1.6
Apache 2.2.3
mod_wsgi 3.3
Web2py 1.97.1
Firefox 3.6.7 w/ Firebug 1.7.3
Or Firefox 9.0.1 w/ Firebug 1.9.0
Or Opera 11.60

To recreate this problem, I create a new project in VisualJS and use the following index.js code. Then click the Run button. The error message in Firebug is:

(new (linb.UI.ComboInput)).setHost(host, "ctl_comboinput94").setLeft(130).setTop(110).setLabelCaption is not a function
http://brucedickey-lnx/linb/static/VisualJS/projects/SPA_spin/App/js/index.js?rand=1327937550345
Line 23





What is odd is that this problem occurs on my PC, but not on my co-worker's (who is also running RHEL5 64-bit, Firefox 3). And it does not occur when running this app in the online Builder.  So it is something to do with my PC.

By the way, there is the same issue with .setLabelSize(). Odd that certain functions give the problem, but not others.

Anyone have a suggestion on how to proceed to debug this?

Thanks

Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #3 on: January 30, 2012, 05:53:48 PM »

setLabelCaption and setLabelSize are new functions in 4.0, maybe you firefox cached the older version lib.

I suggest you copy linb lib from your co-worker's or from SVN.
Logged
Bruce_Dickey
Sr. Member
****
Posts: 67


View Profile
« Reply #4 on: January 31, 2012, 02:21:09 PM »

I thought sure I had updated the run-time! Thanks for the help.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!