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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    AJAX Function Doesnt Fire!

    Hi Team,
    I am creating the page where a user can edit or add values in db table. The page works fine but when the user presses any button the onclick function doesnt fire or it fires but perhaps cant pass variables , I dont know!
    I have tested the PHP file without AJAX and it works as it should.
    Attached two files, PHP file and AJAX function.
    • PHP File(vehiclebodytype.txt).
    • AJAX Function (ajaxscript.txt).

    Something must be wrong somewhere please help!!
    BR,
    Kassimu
    Attached Files Attached Files

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,487
    Thanks
    23
    Thanked 636 Times in 635 Posts
    Here's your function title in js:
    Code:
    function ajaxFunction()
    NO attributes.

    But you call it like this
    Code:
    onclick=\"ajaxFunction('save','')\"
    Doesn't work

  • #3
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks,
    I've made corrections and now it is working.


  •  

    Tags for this Thread

    Posting Permissions

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