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 - markster

Pages: [1] 2 3 ... 14
1
Web Server - Ask For Help / Re: Music playing
« on: August 30, 2016, 09:55:10 AM »
Typical audio formats: mp3, m4a.

The user would select a file from a browse with an embedded button and then it would decompress from file storage and play, so it could be either the browse or open a form, whatever is easiest to implement.

Mark

2
Web Server - Ask For Help / Music playing
« on: August 28, 2016, 03:52:46 PM »
I have a NetTalk app that needs to be able to play music files. The Media(74) example file's audio listings in the browse don't work--when you load the form, it says they need Flash. I have Flash installed, but nothing happens. Is there some other way to play audio files?

Thanks,

Mark


3
Whooo hooo! Thanks.

4
Bruce, I'm still trying to get to the bottom of the UTC date issue. Here's the data. I'm in Pacific Daylight Time, 7 hours later than UTC base time:

Reading #1 4/19/16 4:12pm PDT  UTCTimeStamp from NetWebServer.GetElapsedTimeUTC() = 1461107575  UTCDate from NetWebServer.UnixToClarionDate = 78640
Reading #2 4/19/16 5:02pm PDT  UTCTimeStamp from NetWebServer.GetElapsedTimeUTC() = 1461024154  UTCDate from NetWebServer.UnixToClarionDate = 78640

The obvious problem is that Reading #2 should have a UTC timestamp greater than Reading #1. It's generating the correct UTC time, but not the date, which should be UTC 4/20/16 12:02AM, ie the UTCDate should be 78641.

Since the NetTalk GetElapsedTimeUTC() function is reading the local computer's date/time stamp and then calculating the UTC, the function must have additional code that compensates for time zone gaps. As it stands right now with my case of PDT being 7 hours behind UTC, the UTC times generated by the NetTalk function from 5pm to midnight will always have an incorrect UTC date.

Regards,
Mark

5
Web Server - Ask For Help / Speech input/recognition
« on: July 27, 2016, 09:57:05 AM »
Has anyone created a NetTalk (or Clarion) app that captures voice input as a file, and then uses Google Voice/Dragon Naturally Speaking/etc to process it and return the text for downstream processing?

Regards,

Mark

6
Web Server - Ask For Help / Re: Line feed in xHTML
« on: July 01, 2016, 01:27:06 PM »
Worked great. Thanks.

7
Web Server - Ask For Help / Knowing when file uploads are completed
« on: July 01, 2016, 01:26:27 PM »
Is there any p_web setting or other flag generated when multiple files are finished uploading? If I select multiple files to upload and start the transfers, the SaveFile routine is processed for each file selected but after they are all uploaded, the web page does not register another "hit". I want to be able to reset the Add File button to clear it and the files uploaded list, but it has to happen after uploading is completed.

Thanks,

Mark

8
Vinnie's solution (note: the 7 in his text should be an &) worked great for me. Placing that code AFTER the refresh call to display the hidden field that I wanted the focus set to was the answer.

Regards,

Mark

9
Web Server - Ask For Help / Re: Line feed in xHTML
« on: June 22, 2016, 07:56:42 AM »
Bruce, thanks that took care of the issue. Along the same lines, is there some coding trick to getting an image to display in xHTML. I've been trying to use the following code:

'<img src="'&Clip(LOC:ImageName)&'" height="24" width="24">'

This crashes the app when trying to load.

Thanks,

Mark

10
After a fresh start this morning, I realized that there must have been some updated NT CSS files on my local computer that I overlooked copying to the web server. Sometimes it is a bit confusing because it seems like with an NT version update, I have to set my app files setting to Debug mode, generate everything, copy that to the server, and run it online to get the updated style in effect. Then I can go back and reset my app files setting to Web and regenerate it, then recopy everything to the server to get it running properly.

Mark

11
Bruce, today I updated from NT9.09 to NT 9.11 and also to the latest Clarion update (10.0.12211). I updated my web app and deployed the update on my Amazon server. When I accessed my app on the web server, I realized that none of the Save/Cancel buttons on any popup forms were functioning. I tried reverting to NT9.09 and also to the prior Clarion update to try to fix the problem, but to no avail. I restored the current versions, updated the app on the Amazon server and tried again. After further investigation, I observed that clicking on the Save and Cancel buttons on my popups registers nothing on the Web Server window. If I change the popup to a full screen, the buttons work.

When I run the app on my local computer, I'm not having the same issue. Clicking on those form buttons in popup mode registers a POST as it should.

Any ideas?
Mark

12
Web Server - Ask For Help / Line feed in xHTML
« on: June 16, 2016, 02:54:57 PM »
I'm trying to display some HTML text on a form. The text is entered in a standard TEXT field, which allows line feeds, ie CHR(10) like the following:

Some Text.
Here's a new line.


However, later when I want to display this text as xHTML by adding a <p> tag at the beginning and a </p> tag at the end, it displays like this:

Some Text. Here's a new line.


If I try to add the <br> tag between the two "sentences" of  text, the form will crash when it tries to load the text. Yes, I do have the Allow xHTML tag checked! I have also tried checking the Allow unsafe xHTML. Still crashes every time.

Thanks, Mark


13
Web Server - Ask For Help / Re: Fatal Application Error
« on: June 09, 2016, 04:02:02 PM »
The error turns out to be caused by starting an app as one entity which used the FastMem template. Then I split the app out into a data DLL and main EXE, but didn't realize that only the data DLL should have the FastMem template enabled. After I deleted the FastMem template from the main exe, the error went away.

14
Web Server - Ask For Help / Fatal Application Error
« on: June 07, 2016, 10:56:34 AM »
My web app recently started to have the following error occur when closing the app. A message window pops up that says:

Given a foreign memory block - Realloc

This error occurs only AFTER all code in the app's base module has run during the close down process. Any ideas? It's a problem because in the event of an EXE crash, it won't auto restart and my website will be left hanging.

Regards,

Mark

15
Web Server - Ask For Help / Re: Browse within a browse
« on: June 06, 2016, 08:36:52 AM »
Bruce, I looked for the p_web.GSV('parent.id') first thing. It doesn't work in the scenario I described because the parent browse gets built first, and then then secondary browse gets built. So the p_web.GSV('parent.id') value is the value for the last record displayed in the parent browse, not the actual value needed when the secondary browse is being built.

Mark

Pages: [1] 2 3 ... 14