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] 2 3 ... 734
1
make sure the "outer" form has the "Generate <form> tag" option turned OFF and the table form has it ON.

2
I _feel_ like it inherits it automatically?
Perhaps tweak one of the example apps to show the layout you have and we can look from there.
But, from memory, the "action" is a value for the page, and so cascades down to all the controls on the page.

B

3
Web Server - Ask For Help / Re: Webcam broken in 14.03??
« on: March 24, 2024, 10:45:50 PM »
Hi Osa,

Because localhost is considered a "secure origin" as the traffic does not flow over the network. Lots of the API's which require HTTPS carve out an exception for local-host because it's "the same machine".

Cheers
Bruce

4
Web Server - Ask For Help / Re: Webcam broken in 14.03??
« on: March 22, 2024, 11:57:19 PM »
I feel like this thread is on a loop;

>> Hi, you need a secure server for this to work.

Cheers
Bruce


5
is that a question?

6
thanks, fixed for 4.20

Aside: For forms with Guids, the Guid field should be primed to a random value on the priming tab (if you allow partial saves). Otherwise you'll encounter problems when multiple users use the form at the same time.

7
Poul,

most likely you have either;
a) not deployed from your development machine correctly or
b) not run GzipAll.Bat, and deployed the web folder correctly.

If you look inside \scripts\netweb.js and \scripts\all.js you'll be able to see the nettalkversion.

8
>> On the Site Tab - 4th field down:  "Web Folder"  - THIS HAS TO BE the LOCATION THAT YOUR APP IS RUNNING FROM.

This is inaccurate Ron.
The web folder can be anywhere. (Obviously it must be where you are updating.)

9
st.SetValue(p_web.GSV(' loc:value'))
IF  st.StartsWith(p_web.GSV('loc:value'))

you're using loc:value on both sides of the IF statement here.
(also a type in the first GSV)

10
Your form-in-a-form is fine, as long as the memory form has the option to "include <form> tag" set off.

Regarding the header, it depends on whether the form is in popup mode or page mode.

11
Web Server - Ask For Help / Re: User feedback?
« on: March 18, 2024, 06:18:58 PM »
I think you're overthinking it. The Save and Cancel buttons on the form (perhaps with different text) will do you fine.

12
Hi Jeff,
tweak an example program to show the effect, and I'll take a look.
Obviously changing the GUID is not helpful.

Cheers
Bruce

13
>> Anyone have any tips on how to deal with the bad actors trying to gain access.

Ignore them.
(Incidentally they likely have zero effect on your database connections.)

>> I'm getting random errors where my nettalk webserver program(multisite/multi-dll) will say it can't find some mssql file (not consistent which file is picked), then crash.

They are not random, you just haven't spotted the pattern yet. Continue gathering information though - once you recognize the pattern it becomes a lot easier to duplicate, and fix.

>> Does that sound like it is a file disconnection issue, it might run for days or hours before the problem manifests.

sure it sounds like it. Whether it is is or not is difficult to say. Have you implemented any prop:disconnect techniques?

Cheers
Bruce

14
Web Server - Ask For Help / Re: Mssql Driver options
« on: March 15, 2024, 11:44:49 PM »
In different contexts people seem to get different results whether MultipleActiveResultsSets os on or off.
I suspect it depends a bit on the SQL Server version, and also possibly your own code style.

But yes, from my point of view, those are still recommended.

Cheers
Bruce

15
Web Server - Ask For Help / Re: expand/contract CSS
« on: March 15, 2024, 11:43:06 PM »
>> "What selector can I use to attach my CSS class to the element I want to attach it to".
>> Does that question make sense to you?

I'm going to take that as a "no"?

The custom CSS would of course be included in your custom.css file. I think you're happy with that.

What you want to know though is how to attach the custom css to the elements in question.
You're getting bogged down because you are considering only one kind of selector - the class name.

In the HTML the class list is set as
class="whatever something whoknows".
And in your CSS you "select" for a class name using a period (.)

So you wrote your CSS as
.ui-iconexp
meaning "apply this to elements that contain the class ui-iconexp".
In other words you used a "selector" which matched on classname.

This is a good start, and certainly forms the basis for using CSS. NetTalk lets you add class names all over the place, and so this approach makes sense.

But other selectors also exist. And in some cases make "more sense".
For example, say you have 10 browses with this feature. By adding a classname in each procedure that's 10 time the work. Where'as it's fair to say if you want to make the change, you want it changed everywhere. So if you pick a selector that's already there, then you don't need to change the app, you just edit your custom css file, and use whatever is already there to construct the selector.

You can read up a lot on selectors on the internet of course. It's an incredibly powerful part of CSS, and one which is under used. Chrome Explorer has a brief primer here (https://www.capesoft.com/docs/chromeexplorer2/ChromeExplorer.htm#Selectors). Take a moment to read through that then use your browser tools to inspect the generated HTML to see if anything jumps out at you.
(For best results do that now, before you read on.)





ok, so maybe you say another attribute for the element;
data-do="cv"
and maybe you wondered what that was?

data-do is added by NetTalk in many places to describe the "function" of something. This attribute is used as a selector in JavaScript (which is how "code" is attached to the element) and also in some cases for CSS.

As you saw in the Chrome Explorer docs, you can select for an attribute using [ ]
Which means you can change your Custom CSS to

[data-do="cv"] {
   width: var(--icon-size);
   height: var(--icon-size);
   background-image: var(--icons);
   transform: 1.0;
}

notice, you're not using a class selector here (the .) but rather an attribute selector [ ]

Selectors are a _really_ powerful part of CSS, and you can select on all kinds of crazy things. They're well worth exploring.

Cheers
Bruce





Pages: [1] 2 3 ... 734