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 ... 692 693 [694] 695 696 ... 735
10396
Web Server - Ask For Help / Re: WebClient: POSTing large files
« on: December 01, 2008, 11:43:05 PM »
The size of the file is not relevant.
You need to do it the way the docs specify.

The http post is sent from a string, so sooner or later the file has to be loaded into ram.

cheers
Bruce

10397
Hi Mike,

it can be done using JavaScript - but it's not exactly trivial.

You can of course set the maximum length of the text field itself.
(The Max Length setting.)

Cheers
Bruce

10398
Web Server - Ask For Help / Re: Next button
« on: December 01, 2008, 11:34:19 PM »
try with the latest PR (PR21) - I think it's sorted out.

Cheers
Bruce

10399
Hi Terry,

Firstly, I suspect the source procedure should be based on a normal Source, not a NetWebSource. A NetWebSource is specifically designed to send html to the browser, and in this case I don't think the Source will be doing any XML.

The correct embed point to call it would be the top of the GenerateBrowse routine.

However you don't really mention what Driver you are using. If you are using the In-Memory driver, with unique contents per thread, then bear in mind that the file will disappear when the thread ends, which is really the instant the user sees it. So it won't be there for subsequent browse actions.

If you are using a TPS file, or In-Memory file in "normal" mode, then you will want to add the session value to the file, and don't "clear" it at the start of every thread - or one user will interfere with another user.

Cheers
Bruce

10400
Hi Terry,

the docs are installed into
\clarion6\3rdparty\docs\nettalk

you'll notice some of the web htm files have a later date than the other docs.

Cheers
Bruce


10401
Web Server - Ask For Help / Re: Embed point for all fields
« on: November 28, 2008, 09:53:45 PM »
Hi Michelis,

I recommend you make a new routine containing the code, and then just add a call to that routine to the various form fields "validate" routines.

cheers
Bruce

10402
Web Server - Ask For Help / Re: Field validation and static pages
« on: November 28, 2008, 09:52:07 PM »
thanks Espen, I'll look into it.

Cheers
Bruce

10403
Web Server - Ask For Help / Re: Adding new NetWebServerWorker method
« on: November 28, 2008, 09:51:08 PM »
Hi John,

The parameter being passed into the browse or form or whatever, p_web, is prototyped as an object besed on NetWebServerWorker. So the compiler doesn't know about your extension - because you didn't pass the "derived class".

To do what you want you would need to create a new, derived, NetWebServerWorker in a clw and inc file, and then use that as the base class in the WebHandler, and also use that in the parameter list of the browses etc.

Or perhaps you can describe a bit more about _when_ you're planning to call this method. for example, it sounds like maybe it's just before, or just after the regular call to .SetView, in which case you could add the call, in the WebHandler, in the Setview call that is there.

Cheers
Bruce


10404
Web Server - Ask For Help / Re: Global, really? yikes
« on: November 28, 2008, 09:46:54 PM »
Hi Poul,

>> See bruce, your documentation does get read <g>

miracles...

Seriously though - there's no implication if you leave it off, and the app compiles ok. (Which it quite probably does.) If you get a compile error in the WebHandler about unknown functions then turn Generate Globally on.

so as long as it compiles you're ok.

Cheers
Bruce

10405
Web Server - Ask For Help / Re: Incorrect behavior on hide condtion
« on: November 28, 2008, 09:44:44 PM »
Hi John,

The trick is to make sure that the checkbox resets the hidden field.
But not _just_ resetting the VALUE but the PROMPT and COMMENT as well.
(If you go to the reset list, and click on the hidden field there you'll see what I mean).

Cheers
Bruce


10406
Web Server - Ask For Help / Re: Trying to use BUFFERS
« on: November 27, 2008, 11:22:26 PM »
Hi Michelis,

As of PR20 I've removed the BUFFERS setting completely as it caused really weird effects with SQL. I might experiment with it a bit and bring it back in later on.

Cheers
Bruce

10407
Web Server - Ask For Help / Re: SOAP Server: Empty xmlString string
« on: November 27, 2008, 11:19:40 PM »
Hi Greg,

Parameters passed via the request are automatically parsed out and stored in the Value queue.
A parameter can arrive in one of 3 ways;
a) as a cookie
b) as part of the URL - for example  www.capesoft.com?id=4 would result in p_web.GetValue('id') returning '4'.
c) as the "data" part of the Post - when it is in the format x=1&y=2&z=3 and so on.

As you can see your XML packet is really none of these. The data is clearly in the data pasrt of the post, but it's not using the HTML format. Rather it's just a big XML packet.
So clearly the above won't really help you.

But there are 2 approaches you can take.

a) the whole request is stored in p_web.RequestData.DataString. So you can parse that out by hand easily enough. typically you can find the start of the "data part" by searching for CR/LF/CR/LF. eg

x = instring('<13,10,13,10>', self.RequestData.DataString, 1, 1)

b) there is a special case handled as well. If the incoming request has the Content-Type item in the header set to 'text/xml' then the engine will automatically parse out the xml packet and place it in a special value (called 'xml').
In that case the big xml string is in p_web.GetValue('xml')

note that your packet below does _not_ include this header though so you would not be able to use this technique (unless you changed the request to include the content-type: header.)

One last thing worth mentioning :
GetValue does not look "inside" the xml packet at all - that job is for the XML class.

Cheers
Bruce

10408
Thanks.
Fixed PR 22.

Cheers
Bruce

10409
Web Server - Ask For Help / Re: PR20 Release Noi matching procedure error
« on: November 27, 2008, 10:32:51 PM »
please send me the app Terry.

Cheers
Bruce

10410
Web Server - Ask For Help / Re: Busy.gif position
« on: November 27, 2008, 10:30:47 PM »
Hi Michelis

I've just tested in the current build and the graphic seems to "stick" in the corner now.

Cheers
Bruce

Pages: 1 ... 692 693 [694] 695 696 ... 735