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

Pages: 1 ... 5 6 [7] 8 9 ... 735
91
your condition could be a variable, and you can just set it however you like (to say true or false) before it is used.

ie - inspect the generated code, see where the condition is used, and just add whatever you like before that.

92
Use F12 in your browser to inspect the CSS that is in play. If you'd like me to show you what I mean, come to the User Group meeting on Thursday - it's almost always easier to "show" css than it is to explain it.

93
Web Server - Ask For Help / Re: NT Paths - trying to sort this out
« on: January 23, 2024, 06:37:28 AM »
Hi Ron,

>> I was going to use the SETPATH() once each user logs in and I know their specific folder.  e.g. SeTPATH('C:\User1')  or SetPath('C:\User2').  In this way, they will only see their data.  I know that the NT training book uses Variable file names but I would like to use the Setpath() to get to each data set.

You absolutely cannot use SETPATH to do this. The "current directory" is a non-threaded environment variable. Since multiple users can be logged in at the same time, Environment variables cannot be used at the user level.

>> I know that the NT training book uses Variable file names

you'll be shocked to know, there's a reason for that.

>> Questions: 1. Is using SetPath() a valid approach to do this?

nope.

>>  2. If  User1 is in C:\User1 directory and UPLOADS a file to the server.   Where will it go? 

\web\uploads
(or wherever you direct it to in your code.)

>>  WIll it go to .web\uploads relative to where the App EXE is running

the \web folder is already independent of the exe folder. So there's no web folder "relative" to the exe folder. That doesn't exist.
it will go to the \web\uploads folder though (or to wherever you redirect it to.)

>> or will User 1 have an UpLoads directory in C:\User1

no. the server will not serve to, or from, folders outside the web folder. The _database_ files may of course be anywhere (since their location is determined by the file driver, not the WebServer class). They are unrelated to the\web folder, and putting database files int eh \web\ folder would be very bad.


>> I have the option of making USER 1 and USER 2 folders beneath the web folder so I am not all over the disk - is that preferable?   

For uploads, sure. For database files, not that would be very bad.

Cheers
Bruce

94
Web Server - Ask For Help / Re: Redactor options
« on: January 23, 2024, 06:31:00 AM »
loc:options is not a string, you don't set it like that.
Perhaps look in the generated code to see how loc:options is used.

Cheers
Bruce

95
Web Server - Ask For Help / Re: HTML text not displaying in view form
« on: January 23, 2024, 06:30:14 AM »
are you sure it said <bold> ?
HTML doesn't have a <bold> tag.
(If you are getting that in the html then we could add it as a "safe" tag, but it's not a normal tag.)

96
noted.

the headers disappear because of the CSS. So editing the CSS (adding your own custom css) would make them re-appear.

Cheers
Bruce

97
Web Server - Ask For Help / Re: Add a Save and Continue to edit button
« on: January 21, 2024, 10:57:13 PM »
a) On Pre-Insert create the record, and switch to "Change" mode.
b) Create an Other button, which when pressed, updates the record on disk with all the current session values.

Cheers
Bruce

98
Web Server - Ask For Help / Re: Binary data on web sockets
« on: January 21, 2024, 10:55:33 PM »
Hi Ron,

>> I would like the user to be able to see the barcode scan on their cell phone so that they can see that the QR code is in the view of the camera to read the barcode.

So you want the camera on the kiosk to send a live video feed to the server, then the server send a live video feed to the phone, which is then displayed on the phone, which would then appear as part of the image being scanned by the reader (hoping to not confuse it now there are 2 QR codes on the screen)...

all while the user both looks at the screen, and faces the QR code to the reader at the same time....

I think this has a simple answer.

no. For so many reasons... no.

Bruce

99
Web Server - Ask For Help / Re: Saving an image to the \web\images folder
« on: January 21, 2024, 10:45:05 PM »
>> I thought that p_web.MakeWebRelative(SaveFileName)  would set the save directory to \web\images

no, "relative" in this case is relative to the web folder.

>> How can I get the pictures to the \web\images folder

add images\ to the front of your filename. As in

SaveFileName = 'images\IN_' &   p_web.GSV('JSRV:GUID') & '.png'

100
Web Server - Ask For Help / Re: HTML text not displaying in view form
« on: January 21, 2024, 10:43:27 PM »
check and see (in debugview++, on the server) if the HTML is considered to be "unsafe".

Since you are getting user input here, and then displaying it, it would be very unwise to allow unsafe HTML - which in turn means (if it is unsafe) it is rendered as text.

cheers
Bruce

101
It's hard for me to give exact instructions because you are an old version of NetTalk.

But in general,
a) observe the log to see what appears (if anything) when the user selects a file.
b) read the JavaScript for the widget to see what methods (if any) might exist there to do the thing you want to do.

Cheers
Bruce

102
Web Server - Ask For Help / Re: Another problem with NT 14.14
« on: January 21, 2024, 10:39:20 PM »
The slowdown is in the cape01.tpw file, which is included with all the templates.
If you are in the habit of using the local extension to declare your objects (rather than just in hand-code) then you'll see it slowed down.

I have released build 3.66 of StringTheory to include a new Cape01 which solves the problem. So if you install that, and restart the IDE, the issue should go away. The upgrade of Cape01 will permeate through other releases as they are updated.

Cheers
Bruce

103
Web Server - Ask For Help / Re: Another problem with NT 14.14
« on: January 19, 2024, 05:06:43 AM »
I think I know what's going on, and I'm working on it.

104
Web Server - Ask For Help / Re: Another problem with NT 14.14
« on: January 17, 2024, 11:08:03 PM »
define "when I open the embedded" ?

under the hood it is doing more work now when generating non-nettalk classes, so that may have an impact.
But you'd need to be specific so I can see if I see the same effect here.

Cheers
Bruce

105
Web Server - Ask For Help / Re: No locator in mobile
« on: January 15, 2024, 06:57:12 PM »
I think you need to post an example. I'm obviously not understanding the question, since both your screen-shots show locators.

Pages: 1 ... 5 6 [7] 8 9 ... 735