Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2007
    Location
    Yorkshire, UK
    Posts
    54
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Functions gone wrong - (new to JS)

    Hi, I have created my school timetable in HTML and CSS and want when I rollover a lesson it to bring up a CSS Rollover Div displaying the name of the teacher and room where it is, calling this from a table in my Mysql table through PHP and JS.

    I have already had help on this problem here: Simple Javascript function not working (Please read to understand what I am talking about.

    Here is my last post on that thread, which is also my question for this one (2reikis told me to post it here because it is an AJAX question now, not JS):

    I've put the html "Mr Hilton<br /> 26" etc into fields in a table.

    And as you can see in the code of timetable.html, the onmouseover function for the first Maths lesson is showData('maths', 1);. If you look at showData, it should go off to the php page, run the query and then return the string that is put into "popup" box.

    I know it was fine as it was but I am just learning AJAX and so need something to test on.

    Anyway, now it doesn't display any of the information in the "popup" box, does this mean there is some wrong syntax in one of the functions used when the onmouseover function is called? And do you have any reasons why my code doesn't work?

    Thanks for your time. I hope I have cleared up the confusion now.
    Any reply is appreciated. Thanks for your time.

  • #2
    New Coder
    Join Date
    Jul 2007
    Location
    Yorkshire, UK
    Posts
    54
    Thanks
    1
    Thanked 0 Times in 0 Posts
    bump...please

  • #3
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #4
    New Coder
    Join Date
    Jul 2007
    Location
    Yorkshire, UK
    Posts
    54
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ok sorry I didn't see you had posted there.


  •  

    Posting Permissions

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