Focal Point
[CLOSED] HTML Line length

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8487071026

May 15, 2012, 02:36 AM
Prasanna Vaidya
[CLOSED] HTML Line length
Can we increase HTML Line length compiled by WebFocus?

We are on 7.6.1 & length is set at 512 characters.

Our code calls many Javascripts based on particular row.

Prasanna.

WebFocus 7.6.1
SQL server 2005

This message has been edited. Last edited by: Kerry,
May 15, 2012, 05:25 PM
Waz
I'm sorry, I don't follow.

What do you mean by HTML line length ?

Can you give an example ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 16, 2012, 12:25 AM
Prasanna Vaidya
Hey waz,

WebFocus shifts the view source it generates to the next line after 512 characters.

for e.g.

DEFINE FILE HOLD
ACCOUNT_NAME/A700 = 'SOME JAVASCRIPT + HTML'| ACCOUNT_NAME|''SOME JAVASCRIPT + HTML'';
END

TABLE FILE HOLD
PRINT ACCOUNT_NAME
END

Suppose account name is XYZ Inc.

<|a onclick="alert["Hi");">XYZ inc<script> somecode <|/|scr

ipt>

This is how its generating view source. Script tag is not getting closed properly at the end. Due to which javascript is breaking.
This happens if HTML code runs for more than 512 characters.

I read on this forum that WebFOcus has some limit of 512 characters on HTML Line length.
http://forums.informationbuild...=669106635#669106635


Hope this makes my question clear.

Prasanna.

Webfocus 7.6.1
SQl Server 2005

This message has been edited. Last edited by: Prasanna Vaidya,
May 16, 2012, 02:25 AM
GamP
I seem to remember that some time ago with a later version than 761 this limit was either increased or removed, not sure any more which. Fact is that upgrading to a newer version will solve this particular problem.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
May 16, 2012, 06:01 PM
Waz
If all else fails, just add a line feed, HEXBYT(10,'A1'), to specific points in the javascript to force carriage returns.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!