Focal Point
[SHARING] App Studio 8.1.05 HTML
March 10, 2016, 10:46 AM
MattC[SHARING] App Studio 8.1.05 HTML
Just noticed this and wanted to share. If you have a listbox control and set the Unique Identifier starting with a number, the page will not load.
Not sure if this is done by design, but I know my old html built in 8.00.8 I could name starting with a number.
Food for thought.
WebFOCUS 8.1.05
March 10, 2016, 03:55 PM
CoolGuySee the following:
TricksIf your code relies on HTML 4.xx specs then starting IDs with #s is not going to work. If your code is HTML5 compliant, then use #s up front to your heart's extent. Not sure why things got worse rather than better... Oh wait! ;-)
8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
March 10, 2016, 04:21 PM
Francis MarianiI came across this issue earlier this week.
I also discovered that JavaScript variables cannot start with a number. You can test the validity of your JavaScript variable name here:
JavaScript variable name validator. The website shows that "ಠ_ಠ" is a valid variable name, but "1more" isn't.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 11, 2016, 07:57 AM
Mike in DeLandHaving been an old COBOL programmer since the 1970's, I never start variable names with numbers. It also drives me nuts when I see people creating word documents or windows folders with spaces in the names. It just feels so wrong.
Webfocus 8
Windows, Linux
March 11, 2016, 08:15 AM
Squatchquote:
Originally posted by Mike in DeLand:
Having been an old COBOL programmer since the 1970's, I never start variable names with numbers. It also drives me nuts when I see people creating word documents or windows folders with spaces in the names. It just feels so wrong.
I don't see the usefulness of starting an identifier or a variable with a number, anyway. A number doesn't describe anything, so I consider it a distraction. I find a number at the end of an alpha string very useful, however.
App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
March 11, 2016, 10:31 AM
Wep5622Are you saying that if you needed, say, a variable to specify whether your graphs should use 3D or not, you wouldn't think of naming it &3D?
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
March 11, 2016, 11:29 AM
Squatchquote:
Originally posted by Wep5622:
Are you saying that if you needed, say, a variable to specify whether your graphs should use 3D or not, you wouldn't think of naming it &3D?
No, I would name it &THREE_D.
App Studio
WebFOCUS 8.1.05M
Windows, All Outputs