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

Pages: [1] 2 3
1
E-Mail - Ask For Help / Nettalk 4 - Sending via Gmail
« on: November 30, 2011, 10:30:55 AM »
Ok, yes I know there is a newer version than Nettalk 4, but that is what I have to work with today<g>.

I'm trying to get email to send usiong GMAIL but have not been able to get it to work. I checked and found an article in Jan 2010 but that does not seem to work. Is there a more current example somewhere that shows what is needed to get GMAIL to work.

Thanks!

Barton Whisler
Prosoft Inc - Tampa Florida

2
I don't think it would be that simple. It has been awhile but I traced it once for a different reason and the window is being opened I believe within the ABC class. That class by the way is a result of several other calls all originating from a single call with Nettalk, thus the opportunity to hide it is not possible from within our code.

Hopefully someone case prove me wrong but is what I remember<vbg>.

3
Thanks!

4
Running NT 4.49, Clarion 6.3 ABC

On a NetWebForm, I have a "File Upload" field populated on one of the tabs. I ran into a problem with Internet Explorer sometimes not accepting the click on Browse button. Looking at the generated web page, in the cases that it does not work, the control is set to "read only". Firefox works so I guess it just ignores that<g>.

Looking at the program code, I noticed that when the p_web.CreateInput() is called, it is passing the variable loc:readonly but it is not initialized anywhere in the routine. Looking at other controls in the code, it appears that they always initialize that value. Is this an oversight?

I have worked around the problem for now by embedding code to clear that variable myself.

5
The p_filename contains the name that the user gave however you can change it to anything that you want. To make sure it is unique, just add a date and time to the name.

Or alternatively you can set the name that you want to use before they even upload it and save it into a session variable like "CT:SaveFileName" in my prior example. Then regardless of what they call it, it will be save with your name.

You can also using EXISTS() in the rename method to check to see if a file already exist and if so, modify it by appending a number or something else until it is unique.

6
Ok, I was hoping that was some other magic trick since I don't like change others source code. Of course in the case of Clarion 6.3, that should not matter since I don't think we will be seeing any new updates for that<bg>.

7
First off a warning, I'm rather new at this myself<g>.

However with that said, what I have done to accomplish this is to use something like the following in the WebHandler Rename method:

    ! Rename UPLOAD FILE
    ! RenameFile PROCEDURE(STRING p_name,STRING p_filename,<String p_path>)
    !----------------------------------------------------------------------
    ! Set target based on source
    !----------------------------------------------------------------------
    CASE LOWER(p_Name)
    OF 'filemanageruploadname'
        !------------------------------------------------------------------
        ! FileManager Upload
        !------------------------------------------------------------------
        NewPath = GLO:WebPath & '\' & Self.GSV('CT:FilesLoc')
        self.site.UploadsPath = NewPath
        p_filename = self.GSV('CT:SaveFileName')
    END

In the GenerateForm of the procedure that contains the upload field, I set the Session Variable "CT:FilesLoc" to where I want the file to be stored relative to the "Web" folder. Then in the above code I retrieve that value and prefix it with the path to the Web Folder in order to get a full qualified file path. A separate session variable contains the name as I want it to be stored, in this case the variable is "CT:SaveFileName".

Since I have multiple locations that might upload a file, I make sure each one has a unique name for the upload field as well as unique session variables for passing information.

So far this seems to be working for me but maybe someone else has a better approach.

Barton

8
Web Server - Ask For Help / NT 4.48 Web Logging to file - File Assert
« on: April 29, 2010, 10:11:27 AM »
OK, first off I know this is not Nettalk issue but rather an aggressive Clarion file manager. However I'm hoping that some could give a tip to work around the problem.

When using the "Web Logging" to a disk file and the program is compiled with debug on, a File Manager Assert is given that an incorrect file close is being done when a new log file is first created. I know that the user can say "Don't GPF" and the program will continue but I would like to not have my testers having to deal with that.

Any magic suggestions on beating this minor issue. By the way, the same that happens with Example # 26.

Thanks in advance!

9
Bruce,

Please see private email sent to you in regards to new release. A new bug was introduced.

10
Outstanding - Thanks!

11
Update to this topic. The same problem will exist if the following are in the file name or path information. Also same with passed information on the URL:

Problem Characters:        #  '   ;

Researching the NetWeb.clw code, the older "_Clean" routine handled these characters however that routine has been changed to just call "_jsok" which does not.

I REALLY need a solution to this issue because I am having to work will file names that are outside of my control.


12
I would love to do the obvious workaround of not using the "#" in the name but unfortunately the images are coming from a folder where the customer can copy in whatever they want.

So with that, I will be awaiting to see what you can find.

Thanks!

13
NT 4.47, Clarion 6.3 ABC

I'm having a problem with an image on a NetWebPage when the file name contains a "#". In this case, the image just does not display however it I can the file name to not have the "#" it works fine. Note that in my test case it is " #' (space before pound symbol) and not "&#" which I know if issue in HTML.

Any suggestions on how to work around this?

14
Bruce, it is now working.

Over the weekend uninstall Nettalk and reinstalled. Erased all object, etc from project folder and then recompiled. It is now working correctly. Strange but the good news is that it is working now - hurray!

15
Whoops, after posting prior realized that global setting was wrong. I changed it and recompiled all (deleted all *.clw to make sure) but still getting the wrong date sequence shown.

New corrected "Setting" screen capture attached.



[attachment deleted by admin]

Pages: [1] 2 3