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.


Topics - PaulMacFarlane

Pages: [1]
1
Using the default login page example I'm trying to go to one page if the login is successful and a different page on failure.

Reading through different posts I saw examples of:
    loc:formaction = 'SuccessPage'
    loc:formactiontarget = '_top'

and
        p_web.SetValue('_parentPage','SuccessPage')

neither seem to work.

Using the example code I can 'Authenticate' fine but can't seem to 'act' on it....

  if p_web.GetValue('loc:hash') = p_web.GetSessionValue('loc:hash')
    ! login checking goes here
    if p_web.Authenticate(Loc:Name,Loc:Passw) = true ! WebHandler, Authenticate method needs to be fleshed out.
      p_web.ValidateLogin()                   ! this sets the session to "logged in"
      p_web.SetSessionValue('loc:hash',0)         ! clear the hash, so this login can't get "replayed".

        p_web.SetValue('_parentPage','SuccessPage')

else

        p_web.SetValue('_parentPage','FailedPage')
end
end

I think I'm completely off base !


2
Web Server - Ask For Help / RED BOX FLASH - Error in site script
« on: May 11, 2017, 10:29:36 AM »
I've cleaned the script folder, etc. in the WEB folder and ctl-F5 on the browser.

Tried in IE and Chrome (firefox insists on added www. in front of my localhost address - but then I've always found firefox's address bar to be obtuse)....

So, what scripting (it's all freshened to 8.71) is causing this problem?

3
This was a wizard generated webapp.

I have a client update procedure. (netwebform)
Within that update procedure is 8 tabs that contain related browses (netwebbrowse).
6 of the 8 seem to generate an ASSERT error that Close was not called....

From the client list, I double click to edit a client.
The window displays and the server generates 6 ASSERT errors ...

If I remove the call to a netwebbrowse procedure the ASSERT error to its main file goes away. 

I cannot detect any settings differences between the netwebbrowses that generate the ASSERT message and those that don't.  I've examined both the Netwebbrowse itself and the calling webform.

Suggestions?



4
Web Server - Ask For Help / Multi-Site Host and Subdomains
« on: July 07, 2015, 02:08:43 PM »
I'm experimenting with a Multi-site host and it's working fine.

app1.myhost.com -> app1.dll
app2.myhost.com -> app2.dll

So, now I want to tweak it a bit....

I want to have the host header say:

Bob.app1.myhost.com and have that host processed by app1.dll

Q1:
I suspect I can use some trickery in the host.exe, correct? where?
I've tried to change the dll registered with a host header of ".app1.myhost.com" or "*.app1.myhost.com" and neither works, so I'm probably going to have to change it in code.....

Q2:
With this experimenting I've come to realize the default website (when it can't find a host header) is the admin site......  not good....
Is there a way to create a unique URL for the admin site?
Is there a way to create a default site DLL ?

Thanks,
Paul



5
E-Mail - Ask For Help / Hotmail and TLS using NT 6.51
« on: May 12, 2015, 11:52:08 PM »
I have an older project in C55 using NT 6.51.  Client had been sending messages via Hotmail.
Not it doesn't work...

Gives and error -53.  

If I uncheck TLS I get an error indicating I need to start TLS...
If I StartTLS I get the error -53

So, something's happening but not sure why the error -53....

Any suggestions?  Is TLS broken in this release (6.51)?

6
I looked at other messages about this error - I'm not using 2 tabs...

C8, NT8.18.....

Application was working.  Edited the form and browse - now its not.... ???

Browse and Form Keys match.  Dozens of Browse/Form combinations

I think the app was originally in NT7 - so editing the procedures MAY be changing some default or something that I'm not noticing?

Any suggestions?


7
E-Mail - Ask For Help / Receive e-mail - processing Bounce Messages
« on: May 30, 2014, 08:12:59 AM »
I think it was a change in version of NT, but the following code no longer gets the correct email address from the message.

The fields do not seem to deliver any values anymore....

Does anyone have an example of processing bounce messages?

Thanks.
Paul

Code: [Select]
SaveMessage     routine

! Save the message

        rcvd:Subject = clip(GetMsg.Subject)
        rcvd:account_address = GetMsg.user
        rcvd:DeliveryReceiptTo = clip(GetMsg.DeliveryReceiptTo)
        rcvd:DSOriginalRecipient = clip(GetMsg.DeliveryStatusOriginalRecipient)
        rcvd:DSFinalRecipient = clip(GetMsg.DeliveryStatusFinalRecipient)
        rcvd:DSAction = clip(GetMsg.DeliveryStatusAction)
        rcvd:DSStatus = clip(GetMsg.DeliveryStatusStatus)
        rcvd:DSRemoteMTA = clip(GetMsg.DeliveryStatusRemoteMTA)
        rcvd:DSDiagCode = clip(GetMsg.DeliveryStatusDiagnosticCode)
        rcvd:DSLastAttemptDate = clip(GetMsg.DeliveryStatusLastAttemptDate)
        rcvd:MessageID = clip(GetMsg.MessageID)
        rcvd:WholeMsg = clip(GetMsg.WholeMessage[1:GetMsg.WholeMessageLen])

        rcvd:ToAddress = clip(GetMsg.ToList)
        rcvd:FromAddress = clip(GetMsg.From)

        TempDateStr = GetMsg.sentdate
        TempDateStr = sub(TempDateStr,6,11)
        TempTimeStr = GetMsg.sentdate
        TempTimeStr = sub(TempTimeStr,len(TempTimeStr)-18,8)

        rcvd:rcvDate_DATE = deformat(TempDateStr,@D8)  ! today()
        rcvd:rcvDate_TIME = deformat(TempTimeStr,@T4)

        Access:RcvdeMail.Insert()


8
For certain reasons I can't go to 8 right now...

I upgraded a webserver from 6 to 7.  Of course I ran into the SSL changed, etc. and made the appropriate changes....

I can connect to the site with any web browser and get a valid certificate, etc.
The problem is Paypal says they can't "establish ssl"
I can post to my IPN page.  I can take their posting and it works.

But they continue to say they can't establish ssl.

I don't think it's my firewall (I can reach the page from outside).....

I ran SSL scan and it reports:
    Accepted  SSLv3  256 bits  AES256-SHA
    Accepted  SSLv3  128 bits  AES128-SHA
    Accepted  SSLv3  168 bits  DES-CBC3-SHA

Thoughts?

9
Web Server - Share Knowledge / Multi-company solution using HostHeader
« on: February 20, 2014, 10:13:52 AM »
In the Nettalk webinar #7 there was a discussion about how to handle multiple companies using the HostHeader property.

One part of the discussion was the adding of DNS entries to handle different companies.
Example:
C1.mysite.com
C2.mysite.com

You'd need to add CNAME entries C1, C2, etc.

You could get the HostHeader and distinguish between the "companies".  The downside is that you need to create A records in the DNS for each company..  or do you?

A better way is to use a DNS Wildcard....

What you can do is add a DNS A entry that says something like:
"*.app" and point it to the correct IP....
So, the User would type "C1.app.mysite.com" and be directed to that IP.
They could type "C2.app.mysite.com" and go to the same IP.

No matter what they type in the URL before ".app.mysite.com", DNS will send them to the correct place.

On your server you would then receive a HostHeader of "C1.app.mysite.com" or whatever they had typed.

1 DNS entry - unlimited "companies"


10
Web Server - Ask For Help / LoginForm vs SecwinWebLoginForm
« on: March 10, 2012, 01:02:28 AM »
Are both of these procedures needed?  2 login forms?
This was a wizarded app...

11
I'm getting a lot of pressure from users of one of my products to get a web version going.  Basically 90% of my inqueries are for a web version.

So, initially I was thinking of having a NTS login page where once logged in it would set some session variables for company ID, and Database Path.  This would point their data access to a separate set of TPS files.

Alternatively, restructure the database with an EntityID in each table and filter data using this EntityID.
In this case probably go with a SQL backend.

My concern is how will NTS behave when I'm changing the path/filename of tables constantly.  Every page load, etc.


Thoughts, experience, suggestions?

Thanks,
Paul

Pages: [1]