BUG: Cast to Integer

thread: 3 messages  |  last: about 3 years ago  |  started: sunday, february 24, 2008, 1:09 am pst


#1  |  Joeri Boudewijns (Antwerp Belgium) Belgium
Sunday, February 24, 2008, 1:09 AM PST

Hi,

While testing the Examples on my own server i bumped upon a Casting error with the Advanced Ajax exapmles:

**Adding a Wait Icon
**Resizing Block Controls

Whenever a position was called, lets say left or top, or whenever a borderwidth was set indicating 'px' (e.g. 200px) or for the border “2px 1px 4px 2px” i stumbled upon a Cast to Integer error in the QControlBase.class.php class.

I had to alter:

on line 749:

$strTop = QType::Cast($this->strTop, QType::String);

same for line 737:

$strLeft = QType::Cast($this->strLeft, QType::String);

and line 543:

$strBorderWidth = QType::Cast($this->strBorderWidth, QType::String);

Before it used to be all: * ....::Integer);* on the end.


Hope it can be adjusted because on the examples part here on the site from Qcodo all seems to work fine.

Grtz.

#2  |  Yong Bakos (Denver, CO) United States of America Qcodo Core Contributor
Tuesday, February 26, 2008, 10:04 AM PST

You'll get a better chance of reply if you post this issue in the bug forum here:

http://qcodo.com/forums/forum.php/3

#3  |  alex94040 (Seattle, WA) United States of America Qcodo Core Contributor
Tuesday, November 11, 2008, 10:42 AM PST

I created a QCubed ticket to investigate this issue: <http://trac.qcu.be/projects/qcubed/ticket/89>



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.