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

Pages: 1 ... 694 695 [696] 697 698 ... 744
10426
Web Server - Ask For Help / Re: How to Upload to a different folder
« on: January 29, 2009, 10:36:39 PM »
Have a look at what is in the property before you replace it.

You'll see it's "fully qualified", not relative to the current folder.

It needs to be "fully qualified" - and hence Kevin's suggestion is most likely the right one.

   p_web.site.UploadsPath = longpath()&'\web\uploads\pac'&p_web.GetSessionValue('DAT:ID')

Cheers
Bruce

10427
Web Server - Ask For Help / Re: Single Insert Form and Chaining
« on: January 29, 2009, 10:33:14 PM »
Hi Tim,

the fact that it works in one browser, and not the other, makes me think that there may be a difference on the browser side. I suppose the first step is to fully qualify the url. ie

http://www.whatever.com not just www.whatever.com

>> I have a (memory) form that that gets prefilled by another web site. 

pre-filled how exactly?

>> When the user clicks on the save button it is supposed to insert several records and then return to an external page that is in one of the posted fields.

Ok, there's some misconception here as to how web servers work.

When the user clicks on the save button a POST is done to a server.
At this point the browser has opened a connection to _your_ server, and can thus only receive a page from _your_ server. (I'm assuming the URL on save is pointing at your server.)

You server can't return a "site from another server" - at least not without a fair bit of effort. It _can_ return a redirection which takes the user to another server, but that may or may not be desirable. What you can also return is a page saying "records inserted, click here to continue" putting the URL of the other site under the here.

But let me know more what you have in mind, and what you're currently doing, and I can be more specific.

Cheers
Bruce


10428
Hi Alex,

I've identified an issue in NetTalk that _may_ cause this sort of thing. It's hard to say exactly what it will, and won't affect.

I'm in the process of making the PR30 build now - so as soon as that's up give it a try.

(I'll post here when it's up).

Cheers
Bruce

10429
Web Server - Ask For Help / Re: How to use blob instead of filename
« on: January 29, 2009, 06:48:17 AM »
Hi Alberto,

>> Which is the embed point "after a file is uploaded" to call that AppBlob exe?

WebHandler procedure
HandleFile method
after parent call.

the REturnValue from the parent call contains the name of the file stored on disk, relative to the "web" folder.

ie the _whole_ name of the uploaded file is
CLIP(self.site.webFolderPath) & '\' & ReturnValue

>> THe example 40 needs a template I don have.Can  do it with FILE2BLOB? AND BLOB2FILE?

No idea, I've never tried.

Cheers
Bruce


10430
Web Server - Ask For Help / Re: How to Upload to a different folder
« on: January 29, 2009, 06:42:07 AM »
WebHandler procedure
ProcessLink method
Before parent call.

Cheers
Bruce

10431
Web Server - Ask For Help / Re: Date Lookup Issue, PR29
« on: January 29, 2009, 06:40:34 AM »
Hi Bryan,


There's no real solution to this I'm afraid, at least not in the immediate term.
The mechanism that the form uses to "communicate" (and I use that word loosely) with the lookup simple won't work in the "open in another tab" situation.

There are a number of longer-term solutions which I'll need to consider. The one option is to have a "page lookup" similar to the way a lookup currently works. Another is to use a completely different lookup script (which is the most likely course of action.)

In the meantime the user will need to enter the date in the field itself.

Cheers
Bruce

10432
Web Server - Ask For Help / Re: Local characters in FireFox
« on: January 29, 2009, 01:42:05 AM »
Hi Espen,

Sorry, still no joy duplicating here.
I've tried with Auto Validate on, and Off, in FF 2 and FF3 but it always seems to work ok.

Can you send me an example, or is there a server online I can point to that shows the effect?

Cheers
Bruce

10433
Web Server - Ask For Help / Re: Refreshing child browse on button click
« on: January 29, 2009, 01:16:53 AM »
Hi Alex,

The correct approach is to create a NetWebform.

On this form have your button (as an "other" button), and the browse. (Button underneath the browse if you like.)

Add the browse to the "reset fields" list of the button.

Then you can add the code you want, on the server side, to the button, and the browse will be refreshed after the button is pressed.

Cheers
Bruce



10434
Web Server - Ask For Help / Re: Form and child browse not working
« on: January 29, 2009, 01:12:00 AM »
Hi Alberto,

I had an email from a user, Wilco van der Stek, which included a rather superb example showing the same effect. I've fixed the issue that was causing Wilco's problem in PR 30. It's possible, probable even, that your issue is the same as his, so you may see an improvement in PR30.

Cheers
Bruce

10435
Web Server - Share Knowledge / Debugging
« on: January 29, 2009, 12:42:24 AM »
I've noticed in recent examples sent to me that there are a bunch of people out there use a variety of techniques for debugging.

A common approach (perhaps because it works so well) is to use debugView.

I thought I should mention, The web server, and web handler classes have a built-in method for debugview support. To write a debug statement to debugview use the _trace method. eg
p_web._trace('hello debugview, bruce was here')

If you don't have debugview yet, you can download it for free from www.sysinternals.com (which is now owned by microsoft.)

Cheers
Bruce

10436
Web Server - Ask For Help / Re: One Browse to Many Forms
« on: January 28, 2009, 11:30:29 PM »
Hi Alberto,

I would not include any Insert or Change buttons on the browse.

Rather, on the browse row, I'd add 2 "other" buttons. One to do an insert, and one to do a change. You'll need to set the URL as per FAQ W4.

Cheers
Bruce

10437
Web Server - Ask For Help / Re: How to Upload to a different folder
« on: January 28, 2009, 11:27:50 PM »
For security reasons only the server can specify the folder, not the client.

On the server side it's in a property
p_web.site.UploadsPath

Cheers
Bruce

10438
Web Server - Ask For Help / Re: How to use blob instead of filename
« on: January 28, 2009, 11:22:03 PM »
Hi Alberto,

In the example 40 folder is a second app, a non web app, that shows how to move a file into a blob.

So start by adapting your server so that after a file is uploaded it is moved into the blob, and the original upload, on disk, is deleted.

You'll need to read the code in AddBlob and then copy appropriate parts of it into your web server.

Cheers
Bruce

10439
Web Server - Ask For Help / Re: Suggestion: allow hooking for busy.
« on: January 28, 2009, 11:19:10 PM »
Hi,

I've moved that code into it's own function for PR30 as you suggest.

Incidentally the location of the graphic is governed by CSS, so you can change it if you like.

cheers
Bruce

Pages: 1 ... 694 695 [696] 697 698 ... 744