NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - CaseyR

Pages: 1 [2] 3 4 ... 30
16
Hi, Bruce (et al)

I have been looking forward to the Task Panel form tabs in NT12.  Now that they are here, I am missing how to do certain things with them:

1) For new records, open a default tab on opening the form, leaving the others closed.

2) For the other tabs, set the color of the tab header to indicate any non-default values in the fields of the tab.

I was not able to get background color css for the Tab Header to work even though the css did work when applied to the tab itself.  This was true for the tabs(57) example app as well.

If this has been covered somewhere I wasn't able to find it, so a pointer would be great. If not, I thought I would ask at tomorrow's user group.

Thanks. 

17
Thanks, Jane

It looks to me that all I have to do is register the existing memory tables which have a SessionID key in the Web Handler and NT will take care of the rest.  Great.

Always glad to give up non-standard code.

18
Hi, Bruce

I am updating to NT 12 and I am finding that a method I added to NetWebServer class many NT versions ago now generates a 'not found' compiler error.  The method loops through the records of a memory table and deletes any that do not have an active SessionID.  The method is called after the parent of the GarbageCollector method is called.  The exact code with the problem:
     SELF._SessionQueue.SessionID = MemSessionID
     GET(SELF._SessionQueue,SELF._SessionQueue.SessionID)

What is the location/label of the sessionqueue used by the web server? Is there a better way to get conform a sessionId is active?

Thanks



19
Hi, Bruce

My perennial problem getting certificates renewed at Let's Encrypt has returned and, unfortunately it is affecting my clients' installations as well as my test site.  I have attached both the Debug view output and the activity log.  I removed what looked like an encrypted certificate of some sort from the Debug out put.  Any assistance you can give me on this would be greatly appreciated.

Thanks.

20
Web Server - Ask For Help / Re: Client countdown
« on: March 24, 2021, 05:35:50 PM »
Found it.

  p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100)  &',"'& 'LogoutPage' &'","countdown");')   

works

  p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100)  &',"'& 'LogoutPage' &'","");')   

doesn't

The only difference is the word 'countdown' between the double quotes.  That wasn't necessary before but it is now, even though there is no DIV labeled countdown in either the source or target page.

Thanks.

21
Web Server - Ask For Help / Re: Client countdown
« on: March 22, 2021, 12:00:51 PM »
Hi, Bruce

Here is what I have done so far

Updated to 11.50:
Confirmed that all of the js files included in update are present in the app web\script folder;
Removed all of the custom and third party scripts from all.js;
Stripped all other code in the page footer procedure;
Ran GZIPALL (seveal times);
Regenerated and recompiled app (several times);
Cleared the browsers' caches (several times).

------------------------------
Here is the only code embed left in PageFoorter procedure

          !Set count down to inactivity timeout
IF (p_web.GetSessionLoggedIn() and p_web.PageName <> p_web.site.LoginPage)                                           !parameter 1 is session time (server setttings in seconds from Clarion Long)
   p_web.Script('startCountDown('&int(p_web.site.SessionExpiryAfterHS/100)&',"'&'LogoutPage'&'","");')                !parameter 2 is logout page
END                                                                                                                                                                           !parameter 3 is the id of <div> in the html
! output eg.  startCountDown(900,"LogoutPage","");                               

-------------------------------
Here is the html for the pagefooter and the scripts:

<div id="pagefootertag_div"   data-role="footer">
<div  class="nt-width-100 nt-left nt-margin-top"><fieldset  class="ui-corner-all">
</fieldset></div>
</div><!-- pagefootertag -->

<body class="PageBody">
<div id="body_div" class="PageBodyDiv">
<script>$("#menu1").ntmenu({ position:{ my: "left top", at: "left+0 bottom+1"},
burger:"menu1_burger",
icons:{ submenu: "ui-icon-circle-triangle-s"},
touch:0,
ul:"menu1"});

initTabID();

getScreenSize();

startCountDown(120,"LogoutPage","");

</script>

Just to mention the line <body class="PageBody"> is showing in red the source code view.

Thanks

22
Web Server - Ask For Help / Re: Client countdown
« on: March 18, 2021, 04:42:41 PM »
Well, that is convenient for me. I was just about to ask why my countdown was no longer working.

The developer Console says:

Uncaught Error: Syntax error, unrecognized expression: #
    error https://resschedtest.com/scripts/all.js?c=1:4
    tokenize https://resschedtest.com/scripts/all.js?c=1:4
    select https://resschedtest.com/scripts/all.js?c=1:4
    se https://resschedtest.com/scripts/all.js?c=1:4
    find https://resschedtest.com/scripts/all.js?c=1:4
    init https://resschedtest.com/scripts/all.js?c=1:4
    k https://resschedtest.com/scripts/all.js?c=1:4
    countDown https://resschedtest.com/scripts/all.js?c=1:15271
    startCountDown https://resschedtest.com/scripts/all.js?c=1:15295
    <anonymous> https://resschedtest.com/BrowseForm:642

And sure enough there is a # in countDown

  jQuery('#' + icnt).html(t);

Using NT11.48

Any advice gratefully received.  Thanks

23
Thanks, Bruce

Might be the AV. I let the Malware Bytes trial expire a few days ago.

If the problem happens again next month, I will send you the activity log as well as the Debug output. 

24
In my case, I didn't do anything. Didn't change the certificate folder; didn't remove the old certificate. Just fired up the app and it ran through the process completely, instead of stopping at the same point it had for the last few days. I should mention I was well into the last month of the certificate's validity before things started working properly.

25
And today it is suddenly working properly. Nothing was changed, it just started working.  Good, I guess, but sure wish I knew what caused it.

Thanks anyway.

26
Would help if I included the attachment

27
Hi, Bruce

I was glad to get your notice about Lets Encrypt and NT11.48 because I was encountering problems renewing a certificate.  Unfortunately, after updating NT the problem remains.  I have attached the DebugView output for the attempt with one edit.  At line 30 there was very long string starting '{"protected": ' which had what looked like an encryption and its key.  Without knowing what it was I didn't think it would be wise to post it to a public forum. If you need the contents of that string, happy to post or email them.

Thanks a lot.

BTW, is there any hope that LE will go to longer certificate periods?

28
Web Server - Ask For Help / Re: Conditional Last on Line
« on: September 11, 2020, 12:36:06 PM »
Thanks, Bruce

That would work if the 'always' field was normally the bottom of the page. Otherwise when the 'sometimes' field isn't present, the next field is brought up to the same line as the 'always' field which would be very confusing for the user (the fields are not related).

As I said, this is an aesthetic, intuitive issue. The functionality is fine.  But if it isn't a lot of work, a conditional last on line property would be useful.  This isn't the first time I have encountered this issue.

Thanks again. 

29
Web Server - Ask For Help / Conditional Last on Line
« on: September 10, 2020, 03:06:44 PM »
Hi,

I have a situation where one field is usually the last on line, but occasionally there should be a second field shown after it. This isn't a CSS situation; it is a program setting that determines whether the second field appears on the page. I can get by putting each on their own line, but it would be intuitively clearer and aesthetically less awkward if they were on the same line.

Thanks.

30
I think Bruce's suggestion for doing this with scanner field (NT User Group July 23) would also apply here. In the accept embed, save the entry, clear the field, set focus on the same field.

Pages: 1 [2] 3 4 ... 30