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 04, 2008, 06:49:04 AM »
Hi Sebastian,

Hang on - 4.30 didn't have EIP did it? So you must be using a build of 4.31...

Probably the best thing to do is download the latest 4.31 pre-release from
http://www.capesoft.com/ftp/public/prerelease/index.htm
and see if it's been fixed in that.
There have been quite a few tweaks along the way, especially with EIP that may already resolve your problem.

Cheers
Bruce

10472
Web Server - Ask For Help / Re: next last buttons not working
« on: November 03, 2008, 11:18:24 PM »
Hi Ray,

The problem with the online example is that

when the radio is selected, fields that "do not exist" on the form are being updated.
ie the radio is set to reset a bunch of fields including
classequate (value)
itembytype  (value)
type_equate (value)

When you update fields that don't exist on the form, then the javascript stops processing, and hence the browse display doesn't update, and the buttons don't work.

Remember there are 2 fields for a form field.
a) "Include Condition" and
b) "hide Condition".

If a field is not _included_ then it cannot be updated, or unhidden.
If a field _is_ included then it can be hidden, and unhidden dynamically.

My guess is that you have got "Include Conditions" for some of these fields that should not be there.

Cheers
Bruce

10473
Web Server - Ask For Help / Re: NetWebForm generation timeout?
« on: November 03, 2008, 10:56:28 PM »
Hi Brian,

Typically the browser will time-out if it requests a page, but gets no response within about 30 seconds.
As far as I know there's no way to change this timeout value.

So the important thing to do is make sure at least _something_ has been sent to the browser within that time. After that you can take some time (although not an endless amount of time) to get something done.

I recommend you simply move your code down a bit. What I'd do (off the top of my head without checking) is have a display field saying something like
"contacting PayPal - please wait...."
And then embed your code after that has been sent.
(Form fields are sent from the value::whatever routine for that field, so you can embed after that.)

Then you do the calc, and the next form field is the display of the "paypal response".

Cheers
Bruce

10474
Web Server - Ask For Help / Re: HTML text box sizing regression
« on: November 03, 2008, 06:44:10 AM »
Hi Mike,

check example 36 - seems to be ok in that...

Cheers
Bruce

10475
Hi Mike,

All the "hot field" does is add it to the View.
I'd need to see your exact setup to comment specifically, but presumably yes, the field was not being added to the view?

cheers
Bruce

10476
Hi Mike,

Does your text box have "allow xhtml" ticked on, or off?
If it's ticked on, perhaps you need to tick on the "include html editor" option in the
webServer procedure, Extensions, Settings tab, Scripts tab.

I tested example number1, Auto response tab, and it seems ok.

Cheers
Bruce

10477
Web Server - Ask For Help / Re: 'Other' button on browse
« on: November 03, 2008, 06:36:35 AM »
Hi Sjoerd,

Check out FAQ #4 as it tells you more specifically how to call a form "by hand". In your case, the second form would be called in "change" mode, but where the form has the "delete" button turned on. Then the user can see the form, and click on Delete.

Cheers
Bruce

10478
Hi Alex,

I can't seem to duplicate your effect, using example 43 in either FF or IE.
Can you give me specific steps to follow?

Cheers
Bruce


10479
Hi Mike,

My guess is that in your page you simply have a recursive call.
ie check if you are including the form as a child of itself (or a "child loop") - look for procedures embedded in the xhtml tab, and so on.

Cheers
Bruce


10480
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

10481
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

10482
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


10483
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



10484
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

10485
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

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