![]() |
form problems ...
I have this form I am trying to get right but I am very stuck! I have looked this up all over the Internet and the answers conflict too much, I need your expertise please. My HTML is:
Code:
<?xml version="1.0" encoding="UTF-8" ?> |
and here's the js ...
I accidentally posted that before I was done making it readable. The javascript that I have figured out so far, follows:
Code:
Functions List:Pulling out hair! Janice |
Sounds like homework! What are the problems? We are not clairvoyant. Have you tried using your error console? What error messages do you receive? Or are you saying that you want someone to write your Javascript code for you?
|
I would NEVER ask that!
2 Attachment(s)
:eek: I have an error saying document.order is undefined, I was just making screen-shots to explain to you all where I am stuck so I can figure it out and go on. I was trying to figure out how they want the document.order defined. I am not sure what wording to use. :confused:
|
I know I am just getting started w/ this one, I am trying to fix each problem as I come to them instead of jumping over some to fix others.
|
document.orders is undefined because you have assigned the id orders to your form, not the name orders.
A form field is addressed as document.formname.elementname.value; or document.forms[0].elementname.value; There is not much point in assigning ids to form fields as only fields with a name can be passed to the server when the form is submitted. Screen shots are of little use if you want us to run your code to diagnose errors. Post the actual (relevant) code (within code tags, please). |
thought I had posted code above ??
This is the HTML:
Code:
<?xml version="1.0" encoding="UTF-8" ?>Code:
Functions List: |
just is case
here's the CSS, this was pre-written for me, I don't like the way they run it all together, but, here it is:
Code:
body {background-image: url(border.jpg); background-position:left; |
I do not see any Javascript in your post - just HTML, and a list of the Javascript functions which you have not written.
I now see you are using XHTML - the name attribute of form is in fact now deprecated, so you should use document.forms[0].elementname.value; Quite a few of your questions could be answered by using the search feature of the forum. For example, only the other day at http://www.codingforums.com/showthread.php?t=253698 I posted a script to return the current date in the format mm-dd-yyyy (or whatever you require). If you are not asking for people to write your code for you, please explain what you are asking for. |
That part was pre-assigned. I am trying to figure out how to word it to define the "document.orders" part so Firebug will let me go on to the next part.
|
Quote:
|
Quote:
Code:
<input name="price1" id="price1" size="8" value="19.95" |
Quote:
If you are saying that the HTML is not your work but was provided for you (as was the css), then what part of this is your work? document.orders will not work because the browser is looking for a form with the name orders. People here are very willing to help you correct/improve the scripts you have written, but are less keen to do the whole thing for you. |
Quote:
Code:
window.onload = initForm; |
Quote:
|
| All times are GMT +1. The time now is 07:20 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.