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

Pages: 1 2 [3] 4 5 ... 18
31
Web Server - Ask For Help / Insert variable into XHTML code
« on: April 15, 2015, 11:15:45 AM »
     I have some XHTML code as follows:

<h1>Sample Study Stats Graph</h1>

    <canvas id="cvs1" width="500" height="250">[No canvas support]</canvas>
   
    <script>
        $(document).ready(function ()
        {
            var bar = new RGraph.Bar({
                id: 'cvs1',
                data: [[100,5,3],[4,8,6],[4,2,4],[4,2,3],[1,2,3],[8,8,4],[4,8,6]],
                options: {
                    labels: {
                        self: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],
                        above: true
                    },
                    colors: ['red','yellow', 'pink'],
                    bevel: !RGraph.ISOLD,
                    grouping: 'stacked',
                    strokestyle: 'rgba(0,0,0,0)'
                }               
            }).draw()
        })
    </script>

Notice the line starting with data:, I want to fill this line with a local variable that has been pre-set.  The variable is inst1_pre.   I have changed the data: line to read the following:

 data: <!-- Net:s:inst1_pre -->,

This does not work.  How can I insert the NT variable into this XHTML code?  Using NT 8.41, C9.1.11529.

Thanks,

Jeff King

32
Web Server - Ask For Help / Re: TinyMCE issues continue...
« on: March 31, 2015, 08:26:07 AM »
Bruce,

     I have Immediate Validation off for the HTML fields but still have this issue.  I'll see if I can extract the problem procedures into an example app and send it to you.  Stay tuned!

Jeff

33
Web Server - Ask For Help / Re: email and settings.ini
« on: March 31, 2015, 08:21:53 AM »
Thanks Bruce!

34
Web Server - Ask For Help / TinyMCE issues continue...
« on: March 28, 2015, 12:46:40 PM »
Bruce,

     I still have issues with TinyMCE.  This is a C9.11529 NT 8.41 app.  I'm calling a pop-up form, in IE 11, that has the TinyMCE editor enabled.  I can add a record.  Then, when trying to edit the record, it won't save.  In Firefox, saving an edited record does work properly.  However, there is another problem within Firefox.  If I try to insert a link into the text, I find I cannot enter any text into the Link form that appears.  See the attached image.

     Issues with TinyMCE has been an ongoing problem for me since I think 2012.  Searching the forum seems to indicate you had a fix for this early on with version 8.  Were you able to fix this?  Any advice?

Thanks,

Jeff


[attachment deleted by admin]

35
Web Server - Ask For Help / Re: email and settings.ini
« on: March 27, 2015, 09:54:18 PM »
Bruce,

     I took a look at these two webinars and it did show I have the same issues discussed.  Basically, the User and Password do not get passed to the server correctly or at all.  I tried some of the modifications to code in the SendEmail procedure but it did not work for me.  Finally, I entered my user and password on the template, and commented out any code to deal with user and password.  I also removed EmailUser and EmailPassword from the settings.ini file.  Now it works.
     I used an old example 51 app to originally build this server.  It seems I have an old version of sendemail, etc.  Do you know of a more up-to-date example that contains a newer sendemail procedure I can import?  The basic problem I see is that there does not seem to be anywhere in code, parameters, etc. where the user and password are being passed.

Thanks,

Jeff

36
Web Server - Ask For Help / Re: email and settings.ini
« on: March 27, 2015, 09:08:30 AM »
Bruce,

     I think you are right.  I ran a test through an external smtp server, SMTP2Go.  It has an option to send without using an SMTP username/password.  It works great.  As soon as I try my username/password, it fails.

I'll take a look at the two webinars you referenced.

Thanks,

Jeff

37
Web Server - Ask For Help / Re: email and settings.ini
« on: March 26, 2015, 05:58:17 PM »
Bruce,

     I have attached a log from the NT/SecWin app running as a dll on the host.exe.  The Host app is running 13 non-secwin apps and this one secwin app, called MINT.  This all is running on a virtual Win 2008 R2 server.  I'm attempting to use an Exchange server on the same network.  I have an account and can send emails with it.

     Line 1061 shows an smtp response of 250 (Sender OK).  Line 1063 sets the email address I'm trying to send to.  Line 1089 shows an smtp response of 550, unable to relay.  To generate this log, I first started host.exe.  Then I started debugview.  Next, I went to another machine and started my browser and connected to the NT app.

My settings.ini has the following (without data):

[Settings]
EmailServer=
EmailPort=
EmailAuthUser=
EmailAuthPassword=
FromAddress=
EmailSSL=1
EmailStartTLS=1

I have had limited success with an exe version of this app running locally, but even this seems to work one time and not another.  Can you offer any other tips?

Thanks,

Jeff

[attachment deleted by admin]

38
Web Server - Ask For Help / Re: email and settings.ini
« on: March 25, 2015, 07:55:23 PM »
Bruce,

I think I now have things configured properly to produce a log.  I have attached the most recent log, where I enter an email address to receive the link to create a new user.  This is for a exe version of my app, not a dll running in host.exe.  As I mentioned earlier, nothing seems to happen...no error messages etc.  

In line 1433 of the log, it seems to indicate the smtp connection was successful, and is waiting for a welcome message.  It seems this message does not arrive.  Further, I can find references to "error trap" but I don't see any references to net.packet.bindata.

I'm working on creating a log when run from the host.exe and will post this later.

Thanks,

Jeff

[attachment deleted by admin]

39
Web Server - Ask For Help / Re: email and settings.ini
« on: March 25, 2015, 01:22:29 PM »
Bruce,

Thanks.  I have found various ways to make this work when the web app is compiled as an exe and run locally.  However, when I compile it as a dll and run from the host.exe, it always fails..."The attempt to send email failed".  I know the host.exe is not designed to run secwin apps but in the past I have been able to run just one with all others as no-secwin apps.  Something to note, the dssw5.tps and settings.ini file are always created in the host.exe folder, not in the app dll folder where expected.

This particular secwin app did work in the past, probably before NT 8.  Has anything changed in version 8 that would now prevent it from working with the Host.exe?

Thanks,

Jeff

40
Web Server - Ask For Help / Re: email and settings.ini
« on: March 24, 2015, 05:41:40 PM »
Bruce,

     I have had some success.  I looked at the most recent example 51 and noticed the SendEmail and GetSettings procedures had different code (newer than mine) in the embeds.  In particular, the newer SendEmail procedure has embeds for "Error trap", "Send" and "Process", which show how self._trace is used to log all this in debugview.  This was not obvious from your previous response. 
     So, I compiled the web51 app to run locally on port 88 (no SSL) with my local ISP (Verizon) smtp settings.  It did not work.  Then I used the smtp settings from the test account I have at SMTP2Go and this did work.  It uses port 2525 whereas my local ISP uses port 465.  I'll experiment more with SSL to see how far I get.

Thanks,

Jeff

41
Web Server - Ask For Help / Re: email and settings.ini
« on: March 24, 2015, 11:36:08 AM »
Bruce,

I signed up for an smtp mail account at SMTP2Go.  Using their settings, I still can't get the emails to be sent.  I'm running from a Win 7 VM.  I have modified the Firewall on both the host and guest OS's, as well as my router.  All seems to be correct but I'm still stuck.

Jeff

42
Web Server - Ask For Help / Re: email and settings.ini
« on: March 23, 2015, 09:26:31 AM »
Bruce,

     I assumed you meant log with debugview, so I have attached my log settings and the actual log of one session, attempting to send an email.  I really don't know what to look for in the log but I did read through it.  Line 2427 seems to indicate a successful connection to my smtp server.  Starting at line 2966 seems to be the area where the email to be sent is constructed.  I'm hoping you can see something in the log.

Thanks,

Jeff
     
     

[attachment deleted by admin]

43
Web Server - Ask For Help / email and settings.ini
« on: March 22, 2015, 03:14:38 PM »
Bruce,

     I'm revisiting an old app based on the secwin nettalk example.  When I try to add a new user and have an email sent with a link to finalize the new user, nothing seems to happen...no errors, etc.  I do see a record added in the dssw5.tps file (operators.png), but no email is sent to the target email address I enter.  I have also attached an image of my settings.ini file (TestSettings.png).
     I believe I have the smtp settings correct, as I use these settings in a client app to receive email daily.  I have compiled an run this web app locally on port 443 with SSL.  I'm using NT 8.41.  Any thoughts?

Thanks,

Jeff

[attachment deleted by admin]

44
Kevin,

     Thanks, that is a good idea.  I have been experimenting with the "browse-less form" technique described in NT FAQ #4.  I have this working and will add your idea as well.
     I would still like to learn more about doing this with email.  I'll keep working on this.

Jeff

45
Bruce,

After examining the web51 secwin example, I find this would be too much to add to my app.  I simply want to allow users to change their passwords, by receiving an email with a link in it, just like the secwin example provides.

I manually add new users and use their email address as the login.  I make up a password and send that via email, not very secure thus I want to give them the opportunity to change it.  I have a small user.tps file that contains the user info with the password stored as a hash, as you have described elsewhere in these forums.

In a similar fashion as the web51 app, I want to add a tab on my login form to take the current password and the new one, then submit this request back to the server.  An email would be sent to the user's email with a link to complete the password change.  I don't yet have an understanding of how to do this after looking at the web51 example.  Can you help get me started with this?

Thanks,

Jeff

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