I am in the process of converting a small art gallery's web site over to wordpress so they can take over management. I have run into a roadblock with the membership page. The existing, non-CMS page uses a paypal form which uses a javascript function to change the donation amount in the text input box based on the selected index of the pulldown menu.
I have tried:
- Putting the script tag and form with the function call in a post
- Putting the script in the header and the form with the function call in the template file, outside the loop
- linking to the script file locally as well as entering the full URL
So far none of my attempts has worked.
I am also having trouble understanding the instructions for javascript in the wordpress codex. For instance, the way the form call the function is through an onchange event from inside the form's opening select tag:
<select name="os0" onchange="changeValue()">
The codex says that the function call has to formatted as:
<script type="text/javascript">
<!--
updatepage();
//--></script>
I don't think that html allows for the embedding a script tag inside another tag, which in this case would be the opening select tag. Can anyone suggest a way to solve this?