NetTalk Central

Author Topic: New Methods in 5.03 - What are they for?  (Read 2848 times)

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
New Methods in 5.03 - What are they for?
« on: November 25, 2010, 04:44:54 AM »
5.03 introduced the following: Add: New methods, SetUserSetting, GetUserSetting, LoadUserSetting

What do the new methods do?  Is this session information that would be saved to disk?  Server settings?

Thank you,
David.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: New Methods in 5.03 - What are they for?
« Reply #1 on: November 25, 2010, 10:36:48 PM »
Hi David,

They'll be documented in due course, and more usefully explained when I'm reasonably sure they're doing what I want.

The need for them goes something like this;

a) I've introduced Browse-Resizing in 5.03. This allows you to make a browse resizeable, and in turn allows the user to adjust the size of the browse on the web page. (At this stage I don't recommend using it - there's still some rough edges to polish.)

b) part of the resizing though is that the system "remembers" the size of the browse the next time the user comes to the page (using session variables - nothing special there.)

c) I want to be able to "preserve" the setting though, based on the user's login. IOW a way to make the settings "storable", so that they're automatically primed when the user next logs in.

At the moment the "flesh" of the methods needs to be hand-coded in your WebHandler, so that it uses the backend, and file structure, of your choosing. Obviously an example of this will be coming soon so you can see an example of the sort of code that can be used.

Cheers
Bruce