Jump to content

onedear

Members
  • Content Count

    8
  • Joined

  • Last visited

Everything posted by onedear

  1. I used the markup validation service, and it passed with this error: "NET-enabling start-tag requires SHORTTAG YES". The only other errors I've gotten are some formatting errors that are within the CSS. I don't understand why the form works fine in Firefox but not IE.
  2. The page itself displays fine in IE, but the function doesn't work like it's supposed to. I can try the onchange event, and hopefully it will work.
  3. Last night I verified my code using the W3 verification and thought everything was okay, until I checked my site in IE. The main problem is the innerHTML with the drop down boxes. The idea is to select the boxes, and based on the input, the text would change to whatever was selected (for example, Monday at 7PM). I looked at the site in IE, but it leaves a blank when I do it. This works fine in Firefox. So I wanted to know if anything in the code is off, or if I need to add something else in order for it to work in IE. Thanks! <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBL
  4. What I wanted was if the form was correct, the user gets a "thank you" page. If it wasn't correct according to the validation, then it would have an alert. Is that possible? I was also thinking of making the "thank you" an alert but I don't know why its not working.
  5. Okay, I'm making a different form, and this time, I would like to have the form both validate the entries and have a pop up or an alert that if you put in all the entries correctly, it will say thank you as if it submitted elsewhere. Problem is, I can't make the button work. <script>function checkforblank() {var errormessage="";var email = document.getElementById('email').value;var elength = email.length;var atpos = email.indexOf('@');var atdot = email.lastIndexOf('.');var tld = email.substring(atdot);if (document.getElementById('fname').value == "") { errormessage += "Enter your firs
  6. Okay, I'll try it by naming it "userInput2" So do I just remove the "<form name="frmTimes">" tag?
  7. This is my first time using so much Javascript, (and I have no idea what I'm doing) but it's for an assignment. We're supposed to make a website for a fictional restaurant, and part of the requirement is to create a "reservation form", in which times and dates are selected using a drop-down box or radio buttons. Then, the selected time and date appear as text after submitting using innerHTML on the same page. I found some code that helps, but each time I submit, it returns one of the values but not the other! I don't know if the code I'm using is even the best way to approach it, and most of t
×
×
  • Create New...