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

Pages: 1 2 [3] 4 5 ... 10
31
Web Server - Ask For Help / Re: Autofill off request
« on: May 21, 2020, 01:10:39 PM »
you're wanting to set the auto-complete to a specific value for a specific field?

Yes, their's too many possible values to do it any other way.

32
Is the browse getting 2 refresh events very quickly? This happened to me recently. I had 2 browses, the second had an epi button and would refresh the first when accepted. When a user clicked the button a rowClicked and an eidAcceped event would be sent to the server very quickly causing some of the _bidv_ values to become invalid.

The solution for me was to go into the from containing the browses and change the case statement to ignore the rowClicked event.

33
Web Server - Ask For Help / Re: Autofill off request
« on: May 20, 2020, 01:11:32 PM »
Can we get autocomplete changed to a string? I've been using loc:extra to get around that. ie:
Code: [Select]
loc:extra = 'autocomplete="new-password"'

34
Web Server - Ask For Help / Re: How to SendMessage in a button
« on: May 15, 2020, 01:43:16 PM »
I find browses don't use loc:alert, even though they declare it. Instead I put the browse in a form (if it isn't already, most of mine are) and save the alert test to a session value. Then in the Server Code for the form element add

Code: [Select]
loc:alert = p_web.gsv('AlertText')
p_web.DeleteSessionValue('AlertText')

35
Web Server - Ask For Help / Re: Sessions timout problem
« on: May 15, 2020, 01:29:06 PM »
I've noticed that the server will take a few min to actually delete the session, some times up to 5. Also I feel like the server needs some kind of event to trigger the code, clicking on the web server window, or another user sending a request. If the page is getting refreshed every min then the session will get touched, resetting the timer.

These have just been my observations as I'm working on a server where I need to delete a bunch of rows when a session is deleted.

36
Web Server - Ask For Help / Users getting the wrong reports
« on: May 13, 2020, 02:45:10 PM »
NT: 11.35
Clarion: 11

This has been an issue for a while now, and is becoming more common as my server bet more busy. It can generate 300 or more reports per day, and will normally have 20+ pdf files in the reports folder that users haven't downloaded.

My guess is that the pdf generator won't over write a file if it already exists. I don't have much to go on as the information that gets to me is very little, normally just a screenshot of the offending report. I did put in code to make sure the important session values didn't get changed, and after a few months of no issues with incorrect session values I removed the code.

Even with 90,000 possible file names the chances of a collision is about 7% per day.

I have 2 suggestions
1: Let us choose how often to delete reports. If a user hasn't downloaded it in 10 min the are very unlikely to.
2: Add letters to the random file name. This should push the chance of a collision back to acceptable levels, even as my user base grows.

Thank you
Mathew

37
Web Server - Ask For Help / Re: How to restore the SessionID
« on: May 13, 2020, 02:16:43 PM »
I'm running into a similar problem in almost the exact same situation. I'm using Global Payments as my payment processor.

My payment page is placed inside an iFrame using the Media form element. My callback page is a NetWebPage and gets posted to, I see yours is a get but I don't think that'll make a difference.

I also get no cookie at all in my callback.

My solution was similar to yours, post the sessionID to the payment gateway, and they sent it back. I set it to p_web.SessionID and it worked for me. I think the difference may be the iFrame is somehow protecting the cookie for future page requests. If that doesn't work you could try p_web.SetCookie and that should override the new sessionID.

I tried putting code before the parent call of _FindSessionID, but the value queue isn't read in at this point, and I don't want to pars every request a second time to see if it has a sessionID.

Also for extra security I encrypt and URL Base64 encode my sessionID before sending it to the processor.

I do get an unused Session, but that's not a big deal as we just got their money.

38
Web Server - Ask For Help / So many browses, so many errors
« on: March 02, 2020, 02:27:01 PM »
NetTalk 10.40

What I'm doing is a bit confusing so I'll do my best to explain. I've run into a few and had to hack some solutions. Perhaps my solutions could be worked into NetTalk?. I have a Tag Master Browse, and inside that browse have a Tag Browse.

Problem: Only the last browse would be able to know what record to work with when the check box was clicked. The cause is all the browses have the same loc:RandomBrowseId value.
Solution: Include the parent row when calculating loc:RandomBrowseId. As I don't have an embed point right after it's set I put the following code in "Start of Procedure"
Code: [Select]
        IF p_web.GetValue('_rid_') = ''
            p_web.SetValue('_rid_', p_web.Crc32(clip(loc:parent) & lower(p_web.GetValue('_parentRow_')) & ' TagBrowse'))
        END

I also have Product Browse to the side of the Tag Master Browse.
Problem: As it is after Tag Master Browse in the code p_web.GetValue('_parentRow_') still has a value at this time. This caused the browse to not respond to any update events.
Solution: I put p_web.DeleteValue('_parentRow_') at the start of Product Browse. Perhaps a better place would have been at the end of Tag Master Browse.

If these are already fixed in NT11 you can dis regard my post.

Thank you
Matthew Leavitt


39
p_web.getValue('TIPO') should do the trick.

40
In the TabChanged embed point
Code: [Select]
Case TabNumber
OF 1
[Code for 1st tab]
OF 3
[Code for 3rd tab]
END

41
Web Server - Ask For Help / Re: Best way of show a big note
« on: February 27, 2020, 04:00:33 PM »
Simplest way I guess would be to use a NewWebPage. Include a stringTheory object. In the Processed code embed put
Code: [Select]
st.SetValue(p_web.Translate([noteString]))
st.Replace('<13,10>', '<<br>')
packet.append(st.GetValue())

42
Web Server - Ask For Help / Re: File Download Issues with Example 40
« on: October 07, 2019, 02:55:28 PM »
You should be sure that this is the method you need to serve a file (note the warnings all over that example). The simplest and safest way to serve a file is to have it located inside the web folder. The web server will let any user download any file in that folder if they do a get.

44
Web Server - Ask For Help / Redactor Editor Upload Image
« on: October 02, 2019, 12:59:42 PM »
I'm working with the Redactor html editor and I want to change the name and location of any images the user uploads using the editor, but I can't find an embed point that works, or where a default location can be set, though I would rather choose a dynamic location based on other data.

Thanks
Matthew

45
Web Server - Ask For Help / Re: downloading a CSV file to Users desktop
« on: October 02, 2019, 12:47:10 PM »
The most you can do is inform the browser that you want a file downloaded. The browser then chooses where to save it. Most likely to the downloads folder. This is to protect users from attackers, or just bad web developers saving files they shouldn't to location their not allowed.

If the csv file is created at run time, and only expected to be downloaded once I recommend using a "start" button with a progress field. Beginning the file name with $$$ or @@@ and the server will delete the file after it's been served.

Pages: 1 2 [3] 4 5 ... 10