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

Pages: 1 2 [3] 4 5 ... 8
31
Web Server - Ask For Help / "Are You Sure" message box
« on: August 14, 2012, 09:04:06 AM »
I want to pop up a message box with a YES and a NO button to get user response before processing continues. Is there an easy way of doing this or do I need to create a popup "Form"?

Thanks

Ian

32
Web Server - Ask For Help / Re: SSL "Intermediate" Certificate problem
« on: August 10, 2012, 06:27:03 AM »
Fantastic! That did the trick!

Thanks

Ian

33
Web Server - Ask For Help / SSL "Intermediate" Certificate problem
« on: August 10, 2012, 04:18:07 AM »
I have installed a SSL certificate from Globe Hosting and have  the .crt and .key files in the Certificates folder.

The problem is that some browsers some of the time are ok and recognise that the site is trusted, but some say there is an untrusted certificate provider.

I contacted Globe Hosting (who were recommended on this forum) and they tell me that I have not installed the "Intermediate Certificates" as per a file that I have been sent. What do I need to do?

Any help much appreciated.

Thanks

Ian

34
Hi Bill

Thank yopu so much for yopur help - that now works perfectly!

Is there any resource that documents such things as "self.SendError" and syntax to use?

Regards

Ian

35
Bill

Many thanks for that.

I have embedded the following:

 IF p_web.GetSessionLoggedIn() = 0 ! NOT logged in
   !Test for upload folders and don't serve
   IF INSTRING('\photos',p_FileName,1,1) OR INSTRING('\uploads',p_FileName,1,1) OR INSTRING('\discussion_uploads',p_FileName,1,1)
     RETURN
   .
 .

This works fine and gives an "error" in th browser if accessing anything in one of the specified folders if not logged in. What would be more elegant would be if it displayed an alert or a web page saying that you are not logged in but not sure of code to do either?

If I use:
p_web.Script('alert("You must be logged in to open view this file.");')

Rather than an alert message I get a page open showing:
<script defer="defer">
alert("You must be logged in to open view this file.");
</script>

36
I started to go down route of using \loggedin folder and subfolders and I can see that it would work, but it has implications in many parts of the app re displaying photos, generating thumbnails etc. and ideally would like not to change all these.

Since I never want to serve files if not logged in, where/how could I intercept the sendfile and processlink methods as suggested by Bill?

37
Thanks Bill and Bruce. I think I will go with the built-in \web\loggedin folder to save the static files. Bruce, please confirm that one can have sub-folders of \web\loggedin, eg. \web\loggedin\uploads and files in the sub-folder will only be served if logged in?

Thanks

Ian

38
I have a NT browse with a hypertext link on the file description column that opens a previously uploaded file from:
https://mydomain.org.uk/discussion_uploads/filename.jpg?DISH__ID=10&PressedButton=ViewAttachment

The problem is that I only want people to be able to download the file if logged in, but if someone saves the URL that opens the file, it appears that they can reopen/download that file at a later time even if not logged in. How can I prevent NT serving the files when not logged in?

Thanks

Ian

39
Web Server - Ask For Help / Re: Browse sorting - use of keys
« on: July 26, 2012, 05:18:04 AM »
Hi Bruce

That clarifies things and means that I will create some additional keys.

Many Thanks

Ian

40
Web Server - Ask For Help / Browse sorting - use of keys
« on: July 25, 2012, 11:48:19 PM »
In a NT browse you can set the sort order for each field when you click on column heading. My question is whether the browse uses a key if that is available in order to make the sorting more efficient.

Whether or not it uses a key will determine whether I create additional keys in the dictionary.

Thanks

Ian

41
Web Server - Ask For Help / Re: Open a form on a specific tab
« on: July 24, 2012, 09:51:53 PM »
Thanks Bruce. I was so intent on setting a session variable on the button press and reading it in the form that I overlooked the obvious!

I have done what you suggest and it works fine.

42
Web Server - Ask For Help / Re: Open a form on a specific tab
« on: July 24, 2012, 08:56:41 AM »
Ok I have found that I can embed in the "GenerateForm" embed point and get it to open a specific tab. My problem is now how to pass the tab number from the calling procedure.

I have tried setting a session variable "StartTab" when the button is pressed that launches the form, but I cannot find an embed point that is triggered when a button on a form is pressed? It seems that if you set the "On Click" to run a procedure, then the Server Side code is never run.

I could perhaps embed the "On click" called procedure in the Server Side code, but not sure what to embed - I am calling procedure UpdateUser_Self with a parameter of 'change_btn=change&_bidv_=' & p_web.AddBrowseValue('pageheadertag','Users',USE:ById,p_web.GetSessionValue('LoginUserID'))

... so that the form is opened from another form at the correct record.

43
Web Server - Ask For Help / Re: Popup Google Map
« on: July 24, 2012, 06:18:01 AM »
Thanks Bill, I will give this a try.

Ian

44
Web Server - Ask For Help / Re: Open a form on a specific tab
« on: July 24, 2012, 05:09:04 AM »
Ok thanks. Where in the form procedure would you embed, for example,
p_web.SSV('showtab_procedurename',3), in order to open the form at tab 3? Obviously, the setting of the session variable would be conditional in some way.

45
Web Server - Ask For Help / Re: Open a form on a specific tab
« on: July 24, 2012, 12:34:46 AM »
I should have said that I am opening the form direct from another form using
'change_btn=change&_bidv_=' & p_web.AddBrowseValue('pageheadertag','Users',USE:ById,p_web.GetSessionValue('LoginUserID'))

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