Search found 38 matches

Go to advanced search

by ScottM
Mon Aug 12, 2019 11:57 am
Forum: Technical Support
Topic: Child window soft dismiss?
Replies: 0
Views: 154

Child window soft dismiss?

I did some searching on the forum, but didn't spot an answer. Maybe I used the wrong terms? I have a childwindow dialog up with OK / Cancel buttons. But if the user clicks the back button on the browser, the childwindow stays up. Is there a way to just implement a soft dismiss on the child window if...
by ScottM
Tue Jul 23, 2019 10:49 am
Forum: Technical Support
Topic: Two webclient uploads, 2nd one fails
Replies: 11
Views: 1028

Re: Two webclient uploads, 2nd one fails

... On the visible/collapse issue, attached is a zip of the xaml and cs files that should allow you to duplicate the issue. The top set of radio buttons control what is displayed below (along with a removed file dialog). Clicking the top two radio buttons doesn't change the display at all in the si...
by ScottM
Mon Jun 24, 2019 5:01 pm
Forum: Technical Support
Topic: How to decode gzip response
Replies: 4
Views: 559

Re: How to decode gzip response

I don't know how or why, but the text files are now coming down unzipped.

I wish I could say I did X, Y or Z to accomplish that.

I was looking at trying to load the pako.min.js script into the page and use it for unzipping. Would that be the right approach?
by ScottM
Thu Jun 20, 2019 11:15 am
Forum: Technical Support
Topic: How to decode gzip response
Replies: 4
Views: 559

Re: How to decode gzip response

Bump on this and related question... I'm trying to use an URL parameter to allow me to re-use the app to customize it for various clients and potential clients (of my client). The file above that I'm trying to read indicates a folder containing the text and graphic files to be used when displaying t...
by ScottM
Thu Jun 20, 2019 10:51 am
Forum: Technical Support
Topic: Two webclient uploads, 2nd one fails
Replies: 11
Views: 1028

Re: Two webclient uploads, 2nd one fails

OK, at least I can get my expectations adjusted. I hadn't encountered too many situations where a try/catch didn't … catch. On the visible/collapse issue, attached is a zip of the xaml and cs files that should allow you to duplicate the issue. The top set of radio buttons control what is displayed b...
by ScottM
Wed Jun 19, 2019 2:04 pm
Forum: Technical Support
Topic: Two webclient uploads, 2nd one fails
Replies: 11
Views: 1028

Re: Two webclient uploads, 2nd one fails

OK, found it. The F12 was showing: SEC7120: [CORS] The origin [X] did not find [X] in the Access-Control-Allow-Origin response header for cross-origin resource at [Y]. Where X was the website (in just http, not https) and Y was the Azure function. I had X listed in the Azure function CORS, but not a...
by ScottM
Fri Jun 14, 2019 1:55 pm
Forum: Technical Support
Topic: How to decode gzip response
Replies: 4
Views: 559

Re: How to decode gzip response

Using Fiddler to look at WPF vs. CSHTML5, when I use WPF for the above, I get request headers: GET /panthers/Gifting.txt HTTP/1.1 Host: www.musserportal.com Connection: Keep-Alive and CSHTML5 I get: GET /panthers/Gifting.txt HTTP/1.1 Origin: http://musserportal.com Referer: http://musserportal.com/s...
by ScottM
Fri Jun 14, 2019 1:29 pm
Forum: Technical Support
Topic: How to decode gzip response
Replies: 4
Views: 559

How to decode gzip response

Hopefully I am missing something very simple. Doing a basic WebClient.DownloadString() call to get a text file. Using Fiddler, it looks like I get a gzip of that text file. Which isn't so very string-like. (Fiddler offers to decode it, and then I can see the return that I want.) In a WPF use of the ...
by ScottM
Thu Jun 13, 2019 7:17 am
Forum: Technical Support
Topic: Two webclient uploads, 2nd one fails
Replies: 11
Views: 1028

Re: Two webclient uploads, 2nd one fails

OK, I'll look into those debugging tips.

And I'll try and create a smaller project with the radio button visible/collapsed issue.

Thanks.
by ScottM
Thu May 30, 2019 9:57 am
Forum: Technical Support
Topic: Two webclient uploads, 2nd one fails
Replies: 11
Views: 1028

Re: Two webclient uploads, 2nd one fails

Update. I tried basically the same code (uploading two strings) in a WPF app, I got two files created. The code: string sJson = "A test"; WebClient webClient2 = new WebClient(); string sOrderUri = await webClient2.UploadStringTaskAsync("https://xyz.azurewebsites.net/api/UploadOrder&qu...
by ScottM
Wed May 29, 2019 5:16 pm
Forum: Technical Support
Topic: Two webclient uploads, 2nd one fails
Replies: 11
Views: 1028

Re: Two webclient uploads, 2nd one fails

Weirdly, I always get the first one if I try two. And I get this error: SEC7120: [CORS] The origin 'http://www.xyz.com' did not find 'http://www.xyz.com' in the Access-Control-Allow-Origin response header for cross-origin resource at 'https://abc.azurewebsites.net/api/UploadCsv'. But I only get one ...
by ScottM
Wed May 29, 2019 2:30 pm
Forum: Technical Support
Topic: Two webclient uploads, 2nd one fails
Replies: 11
Views: 1028

Re: Two webclient uploads, 2nd one fails

Update. I went back and tried two json uploads and the 2nd one failed.

Still messing.
by ScottM
Wed May 29, 2019 11:29 am
Forum: Technical Support
Topic: Two webclient uploads, 2nd one fails
Replies: 11
Views: 1028

Two webclient uploads, 2nd one fails

Well, after my little happy-dance on getting uploads working, I ran into a problem that I hope is simple. I'm uploading a csv file to an Azure function, which in turn puts the e.base64EncodedContent into an Azure blob and returns the URI. I want to put that URI into a class, convert that class to JS...
by ScottM
Tue May 28, 2019 11:04 am
Forum: Technical Support
Topic: Send email / file upload
Replies: 10
Views: 1035

Re: Send email / file upload

I need to do some more testing, but I think I got it working with an Azure function saving the file to Azure BlobStorage. It eliminates any CORS issue.

Thanks.
by ScottM
Fri May 24, 2019 6:46 am
Forum: Technical Support
Topic: Send email / file upload
Replies: 10
Views: 1035

Re: Send email / file upload

Remi: Thanks for the reply. I tried implementing the process.php file (modified for my file types) to get a POST api https://www.taniarascia.com/how-to-upload-files-to-a-server-with-plain-javascript-and-php/ on the server, and calling it (renamed nuplload.php from Postman) I get a 200, but the file ...
by ScottM
Wed May 22, 2019 12:19 pm
Forum: Technical Support
Topic: Send email / file upload
Replies: 10
Views: 1035

Re: Send email / file upload

Still fighting this. Tried poking some more around an ftp solution using javascript. Got a token from http://ftp.apixml.net/ thinking I could just do a javascript call via interop, which seems like it should work, but I'm not sure how to push a file into the javascript. It seems like it could look s...
by ScottM
Wed May 22, 2019 7:02 am
Forum: Technical Support
Topic: Send email / file upload
Replies: 10
Views: 1035

Re: Send email / file upload

Remi: Thanks for the reply and hints. I'm using v2 (the latest, I think) and here is what I see: F12Results.png the code for that was: WebClient webClient = new WebClient(); string sReply = webClient.UploadString(new Uri("https://musserportal.com/salesportal/sv2dos/firsttest.txt"), "t...
by ScottM
Tue May 21, 2019 3:23 pm
Forum: Technical Support
Topic: Send email / file upload
Replies: 10
Views: 1035

Re: Send email / file upload

Update, didn't do email, built a test WPF app. This works: WebClient webClient = new WebClient(); webClient.Credentials = new NetworkCredential("name", "password"); webClient.UploadStringAsync(new Uri("ftp://ftp.xyz.com/uploads/string.txt"), "STOR", "test...
by ScottM
Tue May 21, 2019 2:08 pm
Forum: Technical Support
Topic: Send email / file upload
Replies: 10
Views: 1035

Re: Send email / file upload

OK, so if I launch the CSHTML5 app from xyz.com, and I try to UploadString to the same xyz.com, the CORS shouldn't be a problem, right? I'm OK with that, if I can just upload a string (JSON) to a folder on xyz.com. But I can't get it to work. Obviously in the simulator, I get the "No 'Access-Co...
by ScottM
Tue May 21, 2019 10:54 am
Forum: Technical Support
Topic: Send email / file upload
Replies: 10
Views: 1035

Re: Send email / file upload

Thank you for your help.

Go to advanced search

 

 

cron