Appex strips class names with spaces

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Appex strips class names with spaces

Maarten Mostert-2
Hi,
I am rebuilding a nice BootStrap theme with Appex.

When doing something like:

buildHtml() {
 
var body = document.body;
 
body.className=« front no-trans";   

The generated html shows:

<body class="front">
<!-- BEGIN body:100 - AppeX.Application class>>#bodyInstallApplication -->
<script>(new $t.AppeX.SerendipityClient()).install();</script><div id="page-wrapper" class="page-wrapper"><div id="container" class="container"><div id="row" class="row"><p id="col-sm-6" class="col-sm-6">hi joh how are you</p></div></div></div>
<!-- END body:100 -->

</body>

Is there some sort of workaround ?

Regards,

@+Maarten,


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Appex strips class names with spaces

Maarten Mostert-2
Notice that putting this on the Application side with:

headBodyToNoTrans
<body: 99>

^'<body class="hekko   ">

Will show:

<body class="hekko">
 
???

Regards,

@+Maarten,


Le 28 févr. 2015 à 11:37, Maarten Mostert <[hidden email]> a écrit :

Hi,
I am rebuilding a nice BootStrap theme with Appex.

When doing something like:

buildHtml() {
 
var body = document.body;
 
body.className=« front no-trans";   

The generated html shows:

<body class="front">
<!-- BEGIN body:100 - AppeX.Application class>>#bodyInstallApplication -->
<script>(new $t.AppeX.SerendipityClient()).install();</script><div id="page-wrapper" class="page-wrapper"><div id="container" class="container"><div id="row" class="row"><p id="col-sm-6" class="col-sm-6">hi joh how are you</p></div></div></div>
<!-- END body:100 -->

</body>

Is there some sort of workaround ?

Regards,

@+Maarten,

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Appex strips class names with spaces

Maarten Mostert-2
Olé finally the following did it,
buildHtml() {
var body = document.body;
body.className="front";  
var  aClassName = body.className;
body.className =aClassName + » "+ "no-string";

The problem was the - sign which seems to provoke some coercing problems on concatenating string names.

@+Maarten,


Le 28 févr. 2015 à 15:23, Maarten Mostert <[hidden email]> a écrit :

Notice that putting this on the Application side with:

headBodyToNoTrans
<body: 99>

^'<body class="hekko   ">

Will show:

<body class="hekko">
 
???

Regards,

@+Maarten,


Le 28 févr. 2015 à 11:37, Maarten Mostert <[hidden email]> a écrit :

Hi,
I am rebuilding a nice BootStrap theme with Appex.

When doing something like:

buildHtml() {
 
var body = document.body;
 
body.className=« front no-trans";   

The generated html shows:

<body class="front">
<!-- BEGIN body:100 - AppeX.Application class>>#bodyInstallApplication -->
<script>(new $t.AppeX.SerendipityClient()).install();</script><div id="page-wrapper" class="page-wrapper"><div id="container" class="container"><div id="row" class="row"><p id="col-sm-6" class="col-sm-6">hi joh how are you</p></div></div></div>
<!-- END body:100 -->

</body>

Is there some sort of workaround ?

Regards,

@+Maarten,

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Appex strips class names with spaces

Jerry Kott
Thank you Maarten, for letting us know. I’ll open a ticket for this.

Jerry Kott
Smalltalk Development, Cincom Systems
PGP fingerprint: 07D0987E142BE7D39A3F99D71DAF1CF392A9236F

On 28-02-2015, at 8:02 AM, Maarten Mostert <[hidden email]> wrote:

Olé finally the following did it,
buildHtml() {
var body = document.body;
body.className="front";  
var  aClassName = body.className;
body.className =aClassName + » "+ "no-string";

The problem was the - sign which seems to provoke some coercing problems on concatenating string names.

@+Maarten,


Le 28 févr. 2015 à 15:23, Maarten Mostert <[hidden email]> a écrit :

Notice that putting this on the Application side with:

headBodyToNoTrans
<body: 99>

^'<body class="hekko   ">

Will show:

<body class="hekko">
 
???

Regards,

@+Maarten,


Le 28 févr. 2015 à 11:37, Maarten Mostert <[hidden email]> a écrit :

Hi,
I am rebuilding a nice BootStrap theme with Appex.

When doing something like:

buildHtml() {
 
var body = document.body;
 
body.className=« front no-trans";   

The generated html shows:

<body class="front">
<!-- BEGIN body:100 - AppeX.Application class>>#bodyInstallApplication -->
<script>(new $t.AppeX.SerendipityClient()).install();</script><div id="page-wrapper" class="page-wrapper"><div id="container" class="container"><div id="row" class="row"><p id="col-sm-6" class="col-sm-6">hi joh how are you</p></div></div></div>
<!-- END body:100 -->

</body>

Is there some sort of workaround ?

Regards,

@+Maarten,

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

signature.asc (507 bytes) Download Attachment