PDA

View Full Version : Transfering data from one page to another



lynott
September 27th, 2002, 10:10 AM
Can someone help please?

I have 2 radio Buttons in a group called train1.

I am trying to carry the label of the selected radio button to a dynamic text field on another page(frame).

I have tried this


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function onClick(btn) {
if (btn == submit_btn) {
getResults();
gotoAndStop("pg2");
}
else if (btn == return_btn) {
gotoAndStop("pg1");
}
}

function getResults() {
train1_results = train1.getSelectedItem().label;
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

train1_results is the var name of the dynamic text field on pg2.

Nothing is being carried forward.

Thanks in advance.

L.

lynott
September 27th, 2002, 10:53 AM
I got it, if anyone is interested

replace

train1_results = train1.getSelectedItem().label;


with

train1_results = train1.getValue();

very annoy that was!

:)

L.