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

Pages: [1]
1
Web Server - Share Knowledge / Address Bar
« on: December 21, 2017, 07:39:17 AM »
How can I prevent the address bar from being updated as I move from page to page?

2
Web Server - Ask For Help / Translate to clarion
« on: October 01, 2015, 11:38:39 AM »
I'm trying put all my code within a clarion app and I have a small c# dll I use sign a url for google maps, and I want to get rid of this dll.

Has anyone or can anyone translate the code below to clarion, I'm figuring I can use some of the functions in kryptonite.


      public string GetGoogleURLSignRequest(string url, string ClientID, string APIKey)
        {
            SignedUrl = string.Empty;
           ASCIIEncoding encoding = new ASCIIEncoding();

            // converting key to bytes will throw an exception, need to replace '-' and '_' characters first
            string usablePrivateKey = APIKey.Replace("-", "+").Replace("_", "/");
            byte[] privateKeyBytes = Convert.FromBase64String(usablePrivateKey);

            Uri uri = new Uri(url);
            byte[] encodedPathAndQueryBytes = encoding.GetBytes(uri.LocalPath + uri.Query);

            //Compute the hash
            HMACSHA1 algorithm = new HMACSHA1(privateKeyBytes);
            byte[] hash = algorithm.ComputeHash(encodedPathAndQueryBytes);

            // convert the bytes to string and make url-safe by replacing '+' and '/' characters
            string signature = Convert.ToBase64String(hash).Replace("+", "-").Replace("/", "_");

            // Add the signature to the existing URI.
            SignedUrl = uri.Scheme + "://" + uri.Host + uri.LocalPath + uri.Query + "&signature=" + signature;

            return SignedUrl;

3
Web Server - Ask For Help / Jfiles - List arrays
« on: June 11, 2015, 08:06:31 AM »
I've been trying to read the structure below, and having a hell of a time with it.
I'm able to get the record count (4), and the labels for the fields.

but I'm unable to get  the values for destination_addresses and origin_addresses .
 
I've set up the field to be a queue with an external name of origin_addresses on the first field, but nothing I've tried works.
Does jfiles support working with  list arrarys? is there a specific way I must set up my receiving structure?

    public List<string> destination_addresses { get; set; }
    public List<string> origin_addresses { get; set; }


!!----------------------------------------------------------Json File

{
   "destination_addresses" : [ "5010 Cattleridge Drive, Sarasota, FL 34232, USA" ],
   "origin_addresses" : [ "6615 Anchor Loop, Bradenton, FL 34212, USA" ],
   "rows" : [
      {
         "elements" : [
            {
               "distance" : {
                  "text" : "16.5 mi",
                  "value" : 26580
               },
               "duration" : {
                  "text" : "20 mins",
                  "value" : 1198
               },
               "status" : "OK"
            }
         ]
      }
   ],
   "status" : "OK"
}

4
Web Server - Ask For Help / Dates , Submit and memory form
« on: July 30, 2012, 08:27:28 AM »
I am following the step to do the advance searching methods outlined by Bruce.

I got everything working, BUT I have a standard date field, and everytime I put information in the field for searching, it gets cleared out by the submit button.

All other fields String, Bytes are not cleared when I click on the submit button, and no the field is not duplicated anywhere else.

I created 3 fields  with dates and same thing happens.

Any idea as to whats going on? I'm tempted to think it has to do with the calendar look up button it automactically gets.

5
Web Server - Ask For Help / Session Timeout
« on: July 16, 2012, 05:52:58 AM »
Unable to increase the session timeout pass 20:01 on the templates.

6
Web Server - Ask For Help / wav
« on: April 06, 2012, 05:36:10 AM »
Does anyone have example they are williing to share of playing a wav file using the "OTHER BUTTON" on a browse?


Thanks

7
Web Server - Ask For Help / Play wav,mp3, avi and images
« on: March 30, 2012, 09:28:54 AM »
We have a server that's strictly used for archiving our document's , images etc of our clients,
I've tried with no success on accessing these recordings (wav), images via the browser with no success.

1: can i use UNC naming convention such as
\\servername\storage$\2012\3\nameofwav.wav

2: can the system use the client's browser default application to view these files.

Can I see a sample of how this is being done?

Thanks in advance.

Pages: [1]