www.webdeveloper.com
Results 1 to 5 of 5

Thread: txt box not displaying data.

  1. #1
    Join Date
    Feb 2010
    Posts
    12

    txt box not displaying data.

    Hello Friends,
    what i want to do is: as soon as a txt box (name of txt box is 17 ) is populated with a date, I want to automatically display the Gregorian version of that date in GrDate2 text box.
    here is the site (you can check out the source code there).
    http://www.myethiopia.org/EthiopianC.../Calendar.html
    The GrDate2 txtbox displays nothing.
    I have checked with Jquery experts and the jquery code is correct and should work. The only thing I can think of is it has to do with Javascript or Html. Can you someone tell me what i am doing wrong please?

  2. #2
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623
    could have somethign to do with having the Jquery framework loaded twice, this often has undesired results.

    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 
    <script type="text/javascript" src="http://www.myethiopia.org/EthiopianCalendar/js/jquery-1.3.2.js"></script>

  3. #3
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623
    also you have given the page a doctype of <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    But you are using XHTML in the document and have over 30 validation errors because of this. Bad html/xhtml can break a script or have undesired results often as well.

  4. #4
    Join Date
    Feb 2010
    Posts
    12
    Dan, Thanks for that info. As you can see, Html is not my strong suit.
    I have taken out the "doctype" line and the extra framework and no dice.
    I will go back and see if I can clean the html on my own.
    thanks for the quick info.

  5. #5
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623
    make your life easier . Use an online validator ( this is how I found some of your markup issues) Also you definitely want to declare a doctype

    this is the one I use - http://validator.w3.org/#validate_by_uri+with_options

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles