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.
1
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« on: October 30, 2025, 08:25:15 AM »
Nice!
2
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« on: October 30, 2025, 04:20:53 AM »
Good day Ron,
If you take a look at the NetTalk webserver Insight Graphing example's WebGraphSize procedure you will find:
The important parts are:
ThisGraph2.SaveAs:
SaveAs uses draw to create the image that is eventually displayed using p_web.CreateImage.
Now, this is one way to approach this. You could use this method to generate a QR code image and display it but you're going to run into the main problem I have with Insight graphs in a web app...resolution.
If you want a higher resolution image with this approach you'll need to make the container Window larger and the image control larger which creates a larger image. The larger the image file then the slower the HTML page loads.
So, this is a long winded way of saying that I suggest you use a JavaScript approach using jQuery.
Here's a link to a jQuery plugin for QR codes:
https://github.com/jeromeetienne/jquery-qrcode
I think this would be a better way. Generate the QR code client side.
That's my humble opinion.
If you take a look at the NetTalk webserver Insight Graphing example's WebGraphSize procedure you will find:
Code: [Select]
If not p_Web &= NULL
loc:silent = p_web.GetValue('_Silent')
p_web.DivHeader('WebGraphSize_2','nt-left')
If loc:Silent = 0
Window{prop:hide} = 1
ThisGraph2.Reset()
ThisGraph2.DrawGraph()
ans = 'images\@@@' & format(random(1,99999),@n05) &'.png'
ThisGraph2.SaveAs(clip(p_web.site.WebFolderPath) & '\' & Ans)
Window{prop:pixels} = 1
packet.append(p_web.CreateImage(ans,ThisGraph2.Width,ThisGraph2.Height,ThisGraph2.HeaderName))
End
p_web.ParseHTML(packet,1,0,NET:NoHeader)
packet.SetValue('')
p_web.DivFooter()
Return(Level:Notify)
End
The important parts are:
Code: [Select]
ans = 'images\@@@' & format(random(1,99999),@n05) &'.png' !<<--- Path string to an image file is create
ThisGraph2.SaveAs(clip(p_web.site.WebFolderPath) & '\' & Ans) !<<--- Actual image file is saved to the path
packet.append(p_web.CreateImage(ans,ThisGraph2.Width,ThisGraph2.Height,ThisGraph2.HeaderName)) !<<--- HTML for the image is generated
ThisGraph2.SaveAs:
Code: [Select]
InsightRoot.SaveAs Procedure (string FileName)
f string(255)
code
if self.thisDraw &= null then return . ! ghnn
f = filename
if instring('.',lower(f),1,1) = 0
f = clip(f) & '.png'
end
if instring('.wmf',lower(f),1,1)
elsif instring('.bmp',lower(f),1,1)
Self.ThisDraw.Writebmp(f)
elsif instring('.png',lower(f),1,1)
Self.ThisDraw.WritePng(f)
end
SaveAs uses draw to create the image that is eventually displayed using p_web.CreateImage.
Now, this is one way to approach this. You could use this method to generate a QR code image and display it but you're going to run into the main problem I have with Insight graphs in a web app...resolution.
If you want a higher resolution image with this approach you'll need to make the container Window larger and the image control larger which creates a larger image. The larger the image file then the slower the HTML page loads.
So, this is a long winded way of saying that I suggest you use a JavaScript approach using jQuery.
Here's a link to a jQuery plugin for QR codes:
https://github.com/jeromeetienne/jquery-qrcode
I think this would be a better way. Generate the QR code client side.
That's my humble opinion.
3
Web Server - Ask For Help / Re: Load balancing
« on: August 22, 2023, 04:02:52 AM »
Willie,
Sent to your email.
Sent to your email.
4
Web Server - Ask For Help / Re: Load balancing
« on: August 21, 2023, 03:18:31 PM »
Sure I?ll send it but it?ll probably be tomorrow.
5
Web Server - Share Knowledge / Created an CSS and JS Minfier/gZipper
« on: August 03, 2023, 08:30:06 AM »6
Web Server - Ask For Help / Re: Child browse reading primary key from multiple tabs in NWB
« on: June 22, 2023, 02:45:33 AM »
Following Bruce?s idea..
You could use buttons and then use CSS to make them look ?like? tabs. I would spread them across the top of the browse perhaps.
You could use buttons and then use CSS to make them look ?like? tabs. I would spread them across the top of the browse perhaps.
7
Web Server - Ask For Help / Re: Next freezes browse
« on: June 12, 2023, 04:41:21 AM »There isn't any hand-coded or added HTML. It's all Wizard generated.
Trust me. Check your HTML.
I'm not saying the wizarded procedure was generated wrong. I suspect it is attempting to display exactly what is in the database.
Right click on the browser on that offending browse and select "view source." Any incorrect HTML code should be red if I remember correctly.
Like I said...trust me.

Don
8
Web Server - Ask For Help / Re: Next freezes browse
« on: June 12, 2023, 03:04:06 AM »
Ubaidullah,
I would debug your HTML.
The fields in question may be causing an error in your HTML which would cause your browse to stop working on that particular page of records.
I would debug your HTML.
The fields in question may be causing an error in your HTML which would cause your browse to stop working on that particular page of records.
9
Web Server - Ask For Help / Re: Menu type best suited to Mobile Web Apps
« on: June 07, 2023, 02:32:03 AM »
Double Drop for sure.
10
Web Server - Ask For Help / Re: New Builds for NT10, 11 and 12 to update LetsEncrypt code.
« on: April 12, 2023, 03:14:18 AM »
Thank you Bruce!
11
Web Server - Ask For Help / Re: How to Freeze NavBar or Pageheader using CSS?
« on: April 04, 2023, 02:50:02 AM »
I "think" he's talking about a fixed header. Like:
https://www.w3schools.com/howto/howto_js_sticky_header.asp
But I could be wrong.
https://www.w3schools.com/howto/howto_js_sticky_header.asp
But I could be wrong.
12
Web Server - Share Knowledge / Finally - Push Notifications for iOS Safari
« on: March 29, 2023, 03:37:15 AM »
iOS 16.4 Updates
This update includes the following enhancements and bug fixes:
* 21 new emoji including animals, hand gestures, and objects are now available in emoji keyboard
* Notifications for web apps added to the Home Screen
* Voice Isolation for cellular calls prioritizes your voice and blocks out ambient noise around you
* Duplicates album in Photos expands support to detect duplicate photos and videos in an iCloud Shared Photo Library
* VoiceOver support for maps in the Weather app
* Accessibility setting to automatically dim video when flashes of light or strobe effects are detected
* Fixes an issue where Ask to Buy requests from children may fail to appear on the parent's device
* Addresses issues where Matter-compatible thermostats could become unresponsive when paired to Apple Home
* Crash Detection optimizations on iPhone 14 and iPhone 14 Pro models
This update includes the following enhancements and bug fixes:
* 21 new emoji including animals, hand gestures, and objects are now available in emoji keyboard
* Notifications for web apps added to the Home Screen
* Voice Isolation for cellular calls prioritizes your voice and blocks out ambient noise around you
* Duplicates album in Photos expands support to detect duplicate photos and videos in an iCloud Shared Photo Library
* VoiceOver support for maps in the Weather app
* Accessibility setting to automatically dim video when flashes of light or strobe effects are detected
* Fixes an issue where Ask to Buy requests from children may fail to appear on the parent's device
* Addresses issues where Matter-compatible thermostats could become unresponsive when paired to Apple Home
* Crash Detection optimizations on iPhone 14 and iPhone 14 Pro models
13
Web Server - Ask For Help / Re: String Teory Question
« on: January 04, 2023, 03:42:49 PM »
When you do st.Load() in StringTheory you can then use st.Length().
st.Load() calls this Win32 API (along with others):
stGetFileSize(long hFile,*long SizeHigh), long, pascal, name('GetFileSize')
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfilesize
Just tested loading various files into the StringTheory demo. Seems st.Length() after st.Load() will do what you need.
st.Load() calls this Win32 API (along with others):
stGetFileSize(long hFile,*long SizeHigh), long, pascal, name('GetFileSize')
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfilesize
Just tested loading various files into the StringTheory demo. Seems st.Length() after st.Load() will do what you need.
14
Web Server - Ask For Help / Re: Load balancing
« on: January 04, 2023, 04:05:51 AM »
Hello Matthew,
I like your demo site. Nice and clean interface.
I would be interested in learning more about your approach to handling sessions.
I like your demo site. Nice and clean interface.
I would be interested in learning more about your approach to handling sessions.
15
Web Server - Ask For Help / Re: Larges Reports on NT
« on: December 22, 2022, 04:56:01 AM »
I don't see why you couldn't.
You could say that any file larger than x megabytes would trigger a "long" process.
Then in your user interface, notify the user that the report will take a while to process and that they will be notified when the report is ready for download.
Report process runs on its own thread.
When it's finished, file would be saved to a folder visible to the web server.
Then create a link to the file and email or SMS it to the user.
You could say that any file larger than x megabytes would trigger a "long" process.
Then in your user interface, notify the user that the report will take a while to process and that they will be notified when the report is ready for download.
Report process runs on its own thread.
When it's finished, file would be saved to a folder visible to the web server.
Then create a link to the file and email or SMS it to the user.