SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Non-Member webmaster2k5's Avatar
    Join Date
    Nov 2004
    Location
    New York
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with JS calendar

    Hello

    I am not very good with JavaScript but I needed to copy some JS functions from the old site to the new one. I was able to fix everything and make everything work except the calendar. This calendar is suppose to automatically change the day and the month of departure and return when the it is selected; right now it just gives me the error on line 98 and I'm not sure what it means.

    This page can be found at http://www.favored.com/html/flightsengineadv.html

    Thanks in advance for all your help.

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are passing values of "dep" and "ret" to the function - it's then looking for a <select> with id of dep_month and ret_month, but the 2 selects that correspond have other ids...cmbMonthTo and so on.

  3. #3
    Non-Member webmaster2k5's Avatar
    Join Date
    Nov 2004
    Location
    New York
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see. This version of the booking engine has different field names. Will changing id of the field effect the information that is being send by the form or is the server that's accepting the data reading name and not id tag?

  4. #4
    Non-Member webmaster2k5's Avatar
    Join Date
    Nov 2004
    Location
    New York
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I figured it out, thanks for your help.

  5. #5
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For the record - no, the ID tag is not used by the page that receives the form.

  6. #6
    Non-Member webmaster2k5's Avatar
    Join Date
    Nov 2004
    Location
    New York
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I tried changing it and it still worked so I figured that much :-)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •