Parameters & Checked values

raghooveer

New Member
Hi There,

I have a text field where user will enter user id and have "find button" next to it. On click of that I am opening an new *.html page and displaying all the records with the begining with the text in the field. User can check any record. Once they select it and confirmed(have button for that) I will come back to the page where I started.

Now How do I get the selected value back to the first page ?
How to identify which record user is checked ?

Could somebody pls help me out :-)

Regards
Raghuveer
 
To answer your questions:

1. In your new .html page you will be using GET-VALUE (or GET-FIELD) to retrieve the value of the original text entry. To pass it back to your original page you can do one of two things -- pass it back as part of the URL (using field/value pairs) or pass it back as a HIDDEN field (see INPUT HTML element). You then need to check to see if the value is set or not and set the input text to the value stored in the hidden/url field.

2. Again, you have one of two options as to what you can do here. Either, post the html page to another page which accepts all entries (and the check boxes should be unique and should somehow identify which record they are associated with). Or, you can use Javascript to identify which records were selected and process accordingly --- but you'd still require an additional html page (or by calling the same page and doing some additional processing).


Anyway, I'm not 100% sure of what you mean by 'confirm' but I think my answers will help steer you in the right direction.

HTH,
Gordon
 
Back
Top