NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on June 29, 2015, 09:56:30 AM

Title: CSS Style File not affecting the application
Post by: terryd on June 29, 2015, 09:56:30 AM
I have a standard cssfile which I store in the styles folder of the majority of my applications.
In one specific application which I have just converted  from Clarion6/Nettalk 4.
The application is not recognising the settings.
I have run gzipall.bat in the netsimple object and my css file has been included in the mobiletheme.css and mobiletheme.fat.css
in each of my themes
This is an extract from the end of one of the mobiletheme.css files.
This is  one of the elements in my standard css file, so it is being included as expected.

.nt-entry-required {
 background-color: red;
}

I set the nt-entry-required element to red for testing purposes but nothing happens in this application but in all my other apps any field set to entry required will have a background with the set background colour.

Is there anything related to the upgrade that could affect this or any ideas why this line is not being used?
Title: Re: CSS Style File not affecting the application
Post by: Bruce on June 29, 2015, 11:05:25 PM
Hi Terry,

I would try deleting all the gz files from the \web\scripts and \web\styles folders.
Then run GzipAll again, and try again.

If that fails I would test the program with "combined" and "precompressed" turned off. If this also fails then the error is in the CSS file itself - either the CSS or how the file is plugged into the app. If it succeeds then we look closer at gzip.

cheers
Bruce
Title: Re: CSS Style File not affecting the application
Post by: terryd on July 06, 2015, 06:00:04 AM
Hi Bruce
Did all that. The field is still not displaying with the background colour.
This is the strange part.
Capture 1 shows that I have checked the required box
Capture2 is the firebug section covering the field
If you compare it with Capture3, the firebug section from another application,  you will notice that there is no nt-entry-required element in Capture2
However if nothing is entered in the field the required validation kicks in and the message alert displays.

As I mentioned in my first posting this application was brought forward from Nettalk4 so I am wondering if this has something to do with it.

[attachment deleted by admin]
Title: Re: CSS Style File not affecting the application
Post by: terryd on July 07, 2015, 04:37:52 AM
The issue seems to be that if I move an older version of an application originally written in Nettalk4 there is no nt-entry-required attribute, it seems to be formrqd which used to be set in all.css.
Is there a way to update this without having to recreate the forms?
Title: Re: CSS Style File not affecting the application
Post by: Bruce on July 08, 2015, 04:16:43 AM
Hi Terry,

The problem with upgrading from NT4 now is that it's a long time ago so I don't recall all (or indeed any) of the details for that.
Time to review the upgrade doc I suspect;
http://www.capesoft.com/docs/NetTalk8/NetTalk5Upgrade.htm
especially
http://www.capesoft.com/docs/NetTalk8/NetTalk5Upgrade.htm#BrowseFormChanges

cheers
Bruce

Title: Re: CSS Style File not affecting the application
Post by: terryd on July 09, 2015, 02:58:06 AM
Thanks Bruce
I'm not sure which operation sorted it out but redoing all of those procedures has sorted out the problem