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 ... 697 698 [699] 700 701 ... 736
10471
Web Server - Ask For Help / Re: EIP is not getting Refreshed
« on: November 03, 2008, 06:02:31 AM »
Hi,

Which build of NetTalk are you using?

For the EIP have you set it (on the client side tab) to update the cell, row, or browse?

Cheers
Bruce

10472
Web Server - Ask For Help / Re: Dropdown filter partially works
« on: November 03, 2008, 05:55:45 AM »
thanks for the example Vince

the answer is in 2 parts -
 
part 1 - my bug. In your case an error message is not popping up. The error says:
Show event type: Must be one of <Processes>, Tasks, Scripts, Triggers, Hot Keys, Web, Ftp, E-mail, News, Com Ports, Logging
 
part2 - your but - your drop down "show event type" has items like "Log Manager" which are not in the above list.
ie the dict validation for IMC:Category is kicking in.
 
cheers
Bruce

10473
Hi Bryan,

If you put a hyperlink on the button, then that triggers a synchronous GET on the server.

If you put "send new value to server" then that triggers an asynchronous GET.

Putting these 2 together on the same button will lead to weird stuff happening.

You don't really have control over the _order_ of the Gets, so having the button do _both_ these things is not ideal. Certainly not if the one will have an effect on the other. It's also possible that the browser will only do the synchronous get, as the "current page" goes out of scope when this GET is done. It's _possible_ that I could fiddle with the JS a bit to try and make it more predictable - but that only covers the client. You still have no guarantee of the order in which things will happen on the server.

Rather, get all the information you want into the URL and process just the Syncronous Get.

Cheers
Bruce


10474
Web Server - Ask For Help / Re: Garbage collection
« on: October 30, 2008, 11:09:24 PM »
Hi Ole,

Before we get into the specifics of the garbage collection, it's worth noting that _how_ you measure memory usage can be important.
(You've specifically mentioned this, but I mention it here for other readers of this thread.)

Windows is clever and at times won't report memory as being "free'd" unless it needs it for something else. So even if a program "frees" memory, windows cunningly leaves it allocated to the program on the grounds that "he may need it again". It's only if another app _needs_ the memory that it gets (visually) released.

So, especially using task manager, you have to be careful exactly "what" memory you are looking at.

Now onto the internals -
As you know there is a SessionQueue. When an "old" session is detected it is removed. A session gets "old" when it hasn't been "touched" for a period of time. The length of the period is set on the Web Server procedure extension (advanced tab.)  The default is 10 or 15 minutes, but often developers (including myself) extend this to 24 hours, or even 72 hours - depending on the nature of your site.

It sounds to me like
a) your session timeout time may be quite high and

b) perhaps the session value is _not_ being sent on your timer url. A worst-case scenario would be that you have a timer on a page, but each instance of the timer starts a new session. I don't think this would happen with the "built in" timer functions, but if you were calling a timer manually - or calling the server from a "non browser" then you would want to ensure that you were always passing the session id correctly.

Cheers
Bruce



10475
Hi Alex,

In the login form you can test to see if the form is in "chained" mode. Ie if the user was "going to a browse" but needed to login instead, then the Value "ChainTo" is set. At the top of the login form the sessionvalue
'ProcedureName_ChainTo' is then set.

So you can include a "Display" field on the form, which is only included if the Session Value is set. Also the name of the procedure you are going to is in ChainTo.

Cheers
Bruce

10476
Web Server - Ask For Help / Re: Dynamically Format Picture in NetWebForm
« on: October 28, 2008, 10:17:12 PM »
Hi Charl,

So it works, except for the date field?
Or does it generally fail on all fields?

My guess would be that you'd want to set the picture to be a Session Value - not just the field value.

ie

p_web.GSV('DateOfBirthFormat')

I'm not 100% sure where you're getting the format from, but you may need to push it into the session Queue in the GenerateForm routine.
p_web.SSV('DateOfBirthFormat',fil:dateOfBirthFormat)

cheers
Bruce

10477
Web Server - Ask For Help / Re: Browser based report designer
« on: October 28, 2008, 10:13:41 PM »
Hi John,

I'm sure I can think of a couple web apps where a report designer isn't an absolute requirement. (Google, eBay and Amazon spring to mind <g>).

Regarding Right Reports - I won't rule out online-report-designing, but it'd be quite a big job to re-write the editor for the web. As you know reports designed by reight Reports can already be _run_ on the web.

Cheers
Bruce

10478
Hi Mike,

>> The problem is the communications works with numerous directories off the root of the drive

The program can "work" with files anywhere. The restriction on the web folder is where static files can be _served from_. Do you really want to expose the whole drive as "simply downloadable" by the browser?

This is usually a massive security blunder - so it's kinda made hard on purpose.

Granted, if you were sharing a drive other than c:\ then _maybe_ you'd be ok, but it still seems to me like a very high risk.

Cheers
Bruce

10479
Hi Terry,

I think you need to send me an example.

Cheers
Bruce

10480
Hi Mike,

Then I'd add the script somewhere inside the "generate form" routine.

as in
packet = clip(packet) & '<script>.....</script>'
do SendPacket

Cheers
Bruce

10481
Web Server - Ask For Help / Re: Tabbing/focus problem
« on: October 27, 2008, 10:44:56 PM »
Hi John,

Can you duplicate in one of the examples? Or make a small example of the effect and post it here?

Cheers
Bruce

10482
Hi Neil,

no theres no "technical doc" on the class methods yet...

Cheers
Bruce

10483
Web Server - Ask For Help / Re: Browse with child Form
« on: October 27, 2008, 07:08:56 AM »
Hi Sjoerd,

>> I would like to have a form as a child on a browse.

Yes, this seems like an obvious thing to do, and something I started looking into in example #5 (which doesn't work).

It turns out to be a seriously non-trivial thing to implement, because of the way the architecture works. At the moment it's one of those cases where the "simple" is really not simple under the skin. I might be able to make it work in NetTalk 5, but at this stage I' making no promises.

One possible work-around is to use a NetWebSource rather than a netWebForm. This (unfortunately) means you have to code the html yourself, but is more-or-less the only option right now.

Cheers
Bruce

10484
Web Server - Ask For Help / Re: Local characters in FireFox
« on: October 27, 2008, 07:05:39 AM »
Hi Espen,

I'm not seeing this effect here, not in FF 3.0.3, and indeed not in any other browser either.
I'm wondering perhaps if it's a side effect of either your browser build, or perhaps an extension running in your browser?

Do you have another machine you can test in?

Any other Norwegian chaps out there reading this could perhaps try as well?

Cheers
Bruce

10485
Hi Neil,

You're on the right track.
First a direct answer to your question, then perhaps a suggestion.

a) The session values are only updated if the field has "Send new value to server" set. (ok, that's a lie, there are other times it will get updated anyway, but to be _sure_ that it is you should set the "Send New Value to Server" on).

So all your fields on the form, that affect the price, should have this ticked on.
Once that's done all the rest of the code is fine.

b) suggestion: If you are wanting to "fill all the fields in a record from the session queue" you can call
p_web.SessionQueueToFile(whateverfile)

c) Suggestion: It's possible to calculate the price "on the fly" without the user having to press the button. but I think you know that, and have chose to have the button. Doing it on the fly is more work for the server, but is _way_ cool for the user because they can see the effect of each change they make on the form.

Cheers
Bruce

Pages: 1 ... 697 698 [699] 700 701 ... 736