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.

Topics - DonRidley

Pages: [1] 2 3 ... 7
Web Server - Share Knowledge / NetTalk and OnsenUI Example
« on: April 08, 2019, 05:05:31 AM »
Thought y'all might like this.


If you want to play around with different OnsenUI elements, check out the following link.  Select an element from the drop down.

Example app:
Clarion 11.0.13401
NT 11.07
StringTheory 3.06


Hello All,

Those who have been using NetTalk's API functionality are probably aware of what I am about to describe.  However, for those new to NetTalk or new to using API's, this post is for you.

We often find ourselves in the position of developing an application needing access to data on a web server.  The application could be a desktop, mobile, or web based app.  One reaches a point in the development process where you need to contruct a request for that data.  The request could be SOAP, REST, Javascript, or using a NetWebClient.  If you're new to this, you may not know how to construct these requests.  Enter the NetTalk API server's auto generated documentation.

If your follow the documentation for creating a NetTalk API server you can easily create this ability in just a few minutes.  The NetTalk NetWebService/NetWebServiceMethod templates automatically create documentation for your API requests.  This documentation is easily accessed via a URL. 

Here's some examples from my NetTalk API server:

A Javascript POST request with JSON response:

function syncdevicelocations_getjson(host,urldata,result){
  fetch(host + "/syncdevicelocations" +"?" + urldata, {
    credentials: "include",
    headers: {
      "Accept": "application/json;",
  }).then(function(response){ // get the text out of the reply
    return response.text()
  }).then( function(text){
    // do something with the text reply
var host = ""

Same request using NetWebClient:

net.ContentType = 'application/json'

My point is that you don't have to guess as to how to construct your request.  NetTalk tells you how to construct it!  That pretty darn cool in my book! 

As I said, many are familiar with this, but hopfully this will save some time and headaches for the API newbies.

Take care and have fun with your NetTalk API server!


Web Server - Share Knowledge / Modal Dialog CSS Tips
« on: October 08, 2018, 01:50:29 AM »
Good read on modal dialog styling:

Example app attached. 


Hello All,

I have been attempting to create a disconnected mobile app.

mBuild works great.  PhoneGap works great.  The app installs to my iPhone 7 quite easily.  App runs on my phone with no issues except...

I can enter data in my phone and the data arrives at my server fine.

Data entered server side does not arrive at my phone.

The apps are wizarded apps.

This is not a showstopper issue.  Just testing and learning.

I'm about 80% sure I'm doing something wrong but I have tried everything I can think of.

Any input would be appreciated,


As mentioned in NetTalk User Group webinar on 5/17/2018.

I threw this app together the morning of the webinar so it may be a little rough around the edges.   :)

ZIP file attached.

NetTalk 10.21
String Theory

In a NetTalk form.  How do I create a button to POST to another website form?

I think I have done this before but I don't remember how I did it.



Page loaded Browse and a Form.

Using Redactor on form with Allow xHtml on.  Redactor works fine on form with no issues there.

Click save.

Browse becomes unresponsive.  Cannot go forward or backwards.  Browse has Allow xHtml On the appropriate column.

Inspect my generated page and I see XML Parsing Error: missed match tag. Expected: </p>.  (See Attached).

Has anyone else see this before?



Web Server - Ask For Help / Multi-DLL Menus and Such
« on: March 07, 2018, 02:09:20 PM »
Hello All,

I just split up a single EXE app into a multi-DLL app.  Currently it is very basic.  A data DLL, a DLL with my main/exported procedures (most of my old app), a WebServer DLL, and a Main EXE.

I want to further break down the procedures into smaller DLL's.

My question is this:

Where do I put my menus?  Currently in the PageHeaderTag.  I'm just curious how to place everything.  I would like to have a small DLL with the basic stuff like the IndexPage, Header (with menu) and Footer and have all my other procedures separated into various other DLL's.

How have you approached this?



Web Server - Share Knowledge / Creating Mobile Friendly Menu
« on: January 21, 2018, 08:24:53 AM »
Just thought it was a good demonstration.

Web Server - Ask For Help / Cryptonite + NetTalk Webserver
« on: December 28, 2017, 04:39:45 PM »
Hello All,

I'm sure I'm making this much harder than it has to be...

Added Cryptonite global extension and set my Users' table password field to be encrypted.

Added a Key and left the Initialization Vector as is.

Now I cannot login to my application via browser.  I expected this as the password field is not encrypted "on the fly" so to speak.

I cannot get my brain wrapped around how to get logged in.

User enters a username and password (LOC:Password). 

Do I encrypt the entered password to match the already encrypted password in the users table or decrypt the stored password, etc.

Are the encrypted fields (via the global extension) hashed, Blowfish'ed, AES??  Just by what method are they encrypted by default?

Anyway, thank you you for any help.


The Rest - Ask For Help / Generating Tables
« on: November 03, 2017, 03:05:07 AM »
I know that I can use HTML to create a table in my NetTalk application.  However, I want my tables to have advanced features (mybe dynamic is a better word).  I want things like merged cells, floating cells, calculations on cell values, and so on.

I think it is possible to completely create and manipulate a table using javascript.

Would it be more efficient to use HTML or Javascript?  I'm relatively sure that Javascript will be involved no matter what. 


Thank you!!!!!!

Web Server - Ask For Help / NT WebServer and Custom CLASSes
« on: October 30, 2017, 03:45:32 AM »
Hello All,

I have began the process of writing my own CLASS for the purposes of relocating the many small code snippets I use in my NTWS apps under one roof.  It has been succesful so far and it has been an eye opening experience.  I wished I would have tried this a long long time ago!!

Anyway, I have successfully used "inheritence" to use NT, String Theory, and other methods in my class.  One thing I haven't figured out is how to pass a FileName, FieldName, Key, etc., to a procedure in my CLASS.  

I'm pretty sure I can design my procedure with something like:

myprocedure(FILE pSomeFile, FIELD pSomeField, KEY pSomeKey)

But, and I guess my question boils down to this, how do I bring the Clarion ABC FileManger into my CLASS?  How do I make my class inherit the FIleManager CLASS(s) the same way I did for NT and String Theory?



Once I get my CLASS up and running, I would like to share it with the NetTalk community.  There has got to be some things I do that someone else will find useful.  I will wrap my CLASS in a template to make it easier to use.  I will provide the template to Bruce, and if he approves, I will share it here at NetTalkCentral.  

One thing that I want to include in my CLASS is a table that I created that recreates most of the main features of the NT Planner.  It has:

* Customized Right Side Headers via CSS
* Left Side Column with Clickable Cells that Open a Form as a Popup
* Right Data Cells that Open Popup Form

Why did I recreate the planner?  Well, I loved the planner, but I was using it such a way that it was not intended on being used.  I used it to track the monthly work schedule of the officers on my shift. (I am a law enforcement shift commander over another supervisor (sergeant) and around 10 officers.)  I could never get the NT planner to display correctly.  Let me clarify, I could get the top headers (the dates) to align with the data columns at, say, 100% zoom in the web browser.  Zooming in or zooming out would break that alignment.  So I created a very simple table and slowly added the features I loved about the NT planner.

Anyway, I will provide all of this to Bruce to do with what he wants.  If he is ok with it, I will provide it to everyone.  Or, maybe Bruce could add it to NT as another option for his cutomers.  Basically it will be up to him as my CLASS relies on NT and it's his playground so to speak.

Anyway, I know I rambled on quite a bit but I hope to add something positive to NT that everyone can find useful.  I have attached some screen captures.

Thank you for your time,


Your Views and Comments / My Clarion/NT Observations...
« on: September 06, 2017, 02:17:51 AM »
It's weird, funny, etc.......

I haven't touched a particular app for about 3 years until the last few weeks.  I mean, I literally didn't fire up Clarion for about 3 years. 

Now that I'm digging around again in my old app, I'm finding tons of mistakes or ways I could have done things better back then.

You would have thought that my coding skills would have gotten worse, but, it's almost as if the time away actually helped.

Does that make sense?

Anyway, just rambling to the few people that might understand.

Thanks for the ear,


Pages: [1] 2 3 ... 7