NetTalk Central

Author Topic: Client-side processing  (Read 3629 times)

Majodi

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Client-side processing
« on: June 26, 2008, 04:31:25 AM »
I have a few drop lists on a form. The drop lists are created from a file. They show a string but they save an integer (the id from the record choosen). Works great.

But now I need the choosen string from two of the drop lists to prepare the contents of a "description" field. I managed to fill the description field with the choosen values but of course these are the id's of the choosen records. At the server side I don't have the displayed strings from the drop lists.

Now I guess I need some client-side processing. I saw this checkbox "send new value to server" [onChange]. My question is; how can I use this to catch a change in my server code and could I code it such that I can send the string in stead of the id?

Majodi

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Client-side processing
« Reply #1 on: June 26, 2008, 08:07:59 AM »
one way is to "send new value to server" for your drops
tell them to reset the fields you want to change dynamically in the reset box,
then in the server code embed, you can open your file, read/build your new "desciption" field (using the ID to reread etc), perhaps stuff the result in the session queue
eg:  p_web.ssv('cool:descriptionfield', loc:Userfeedback)
( close the file - too!)

then the "desciption" field or a comment or whatever just needs to be referencing that session value ie:  p_web.gsv('cool:descriptionfield')
which the reset would cause to update automatically.
 

Majodi

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: Client-side processing
« Reply #2 on: June 26, 2008, 11:05:39 AM »
Thanks, I need to look into this. If I don't get it to work I'll get back to you.

Majodi