This switch statement is working fine. One small appearance issue I'm dealing with though. After selecting pet from the select menu I get the appropriate ages however it breaks the form field down by 1 line. Is there anyway to eliminate the line break?
- Justin
When someone selecs 'Pets' from the main select list below I want the 'petages' select list to appear dynamically and replace the 'ages' select list. I've been having trouble with the coding. Thanks...
//main select list
<select name="whatareyou" id="whatareyou">
<option...
The actualy field names below the post action are already parsed. I'm not sure why I included php brackets around that bit of code. The field names for the text fields are parsed from a previous script...the bit of php that uses the array.
When I submit I'm getting the following javascript...
I'm having a bit of trouble with this one. I've got conflicting array brackets and was curious how to break it apart programmatically so that is functions correctly.
The problem exists at the form action below. I'm including javascript at the end of the post action so that it checks the...
I am having difficulties with the javascript below to operate on the Mozilla browser. Works perfect in IE!.
I do know for a fact that after a radio selection is made it DOES alter the price because I get the selected value later on in paypal.
It's not initiating or outputing the text or maybe...
I'd like to flip between 2 headlines (in this example logos and templates) by using two div's. When one appears, the other dissapears...vice versa. This is what I have so far but it shows both content areas.
- Justin
<script type="text/javascript">
<!--//
function makeVisible(id) {...
Okay, I did that however after viewing the source on the cart page I see the following in the hidden field line:
<input type="hidden" name="amount" id="amount">
Shouldn't the total numeric value appear? or will it transfer after the paypal form is posted?
Ahh actually one more thing. How would I integrate the total price into my other paypal form? I need to transfer that variable to the line
<input type="hidden" name="amount" value="total here">
Well thank you sir, it works..............had to change var rnum = 0; to equal 1 because I ended up starting my php while loop with it.
This is the best help I've gotten in awhile, .thanks a lot!
- Justin
Theniteowl,
Yes I would like TWO prices per row and a way to toggle between two prices for that same row. The two radio buttons exist in the 3rd column along with the text descriptions. Integrating two types of distributions which are exclusive and non-exclusive (separate prices).
In my php...
Well, I can't really definitly set the amount of radio buttons or checkboxes because that depends on how many products a person would order. The code that I'm using is parsed from PHP code. Hope that helps
I'm sorry, there is actually supposed to be two price fields per row.
so in essense they're toggling between two prices per cart row. So I'm assuming I have to throw in a hidden field value that contains the second price?
<input type="hidden" name="page" value="100.00">
<form...
I gave each row their perspective id's and names however I'm not sure how would integrate this into the getelementsbyid javascript function.
Prior to the page loading, I'd like the javascript function to flip hidden field values for use of the form name 'cart'. I'd like the page to then...
Below is the parsed php information from my code. I somehow need to use javascript to pull two price fields from my db and use of a toggle radio button for each existing product row in cart. I can pull the two price fields from my db fine, but how would I integrate that into javascript so that...
Trying to parse out a date, and then compare it with two integer values from an options menu to see whether or not those two days(integers) are valid (if they are it runs the rest of the html, if not user is alerted with two days that they are allowed to use form). I think the problem area may...
I have this, but doesn't seem to work.
//splice form options data into comma delimited line with two intergers
var day1 = form1.Branch.options[form1.Branch.selectedIndex].value
var day2 = form1.Branch.options[form1.Branch.selectedIndex].value
day1 = day1.substr(0,1) //returns first interger...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.