-
In the SBUSA site (still under development), I need some help with a clean example: I have looked through many posts with examples that talks about PostMessage, Onmessage and so on… but none of the examples provide a clear understanding of what portion of code goes where. (May be I am so naive with JS).
Here is what I am trying to achieve :
Page1 : I created several User Input fields to accept personal details such as name, phone, address and so on. Along with it I also added two more input fields Donation Amount, and Donation Frequency. Then there is a button called “Donate Now”. The idea is once the user enters the personal details and Clicks the Donate Button it must do two things: -
it should save the data in a dataset. This I could accomplish well - created a database table and connected the fields to it. So no problem there.
-
it should open a PayPal link and passing the “Donation Amount”. - This I could not accomplish and need help . For this part I tried the following with no good outcome.
-
Added a Pay Pal link on the “Donate Now” button. But not sure how to pass the amount as parameter; Also it takes me to PayPal screen, but does not save the data in the dataset (seems like the link takes precedence over saving the data).
-
Trying to create a new Page (Page2) where I can display all the data from Page1 as read only and create another PayPal button. I guess this is where I must use PostMessage() and OnMessage() functionality, but I don;t know how to specify the data to be passed from Page1 to Page2; Can someone please give a clean complete code for passing data from Page1 and Page2?