How to post the selected data?

Alec's Avatar

Alec

17 Oct, 2012 02:48 AM

Okay, now I've got the data selected, how I go about posting the selected data to the server side code handler???

  1. 1 Posted by Jon on 17 Oct, 2012 01:10 PM

    Jon's Avatar

    Just put the input inside a form. The variable posted will be 'as-values' + the value of the asHtmlID parameter.

  2. 2 Posted by Alec on 18 Oct, 2012 02:03 PM

    Alec's Avatar

    I tried as-values which is null, however i can see there is a as_values_028 which contains the selected data. But the thing is the number keep changing on every page load... Any idea how I can give it a fixed id/ name?

    Apparently, whenever I refresh the page, it becomes as_values_0xx, where xx just keeps changing...

  3. 3 Posted by Jon on 18 Oct, 2012 03:19 PM

    Jon's Avatar

    You should be able to give a fixed value with the asHtmlID parameter, so the variable would be 'as_values_whateveryouwantasHtmlIDparameter'.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac