0

if i go with upload my php file where data is being sent and from where data is getting stored (that php file) stored into server http://ip/includes/js_new/update_contact.php then it shows 500 internal problem.. pls help me frnds.. $("#update_btn").click(function(e){ e.preventDefault(); alert("debugging"); var data=$("#frmUpdate").serialize();

      $.ajax({
       // url:"index.php?option=com_jumi&fileid=44",
        url:"http://ip/includes/js_new/update_contact.php";
        type:"POST",
        data:data,
        cache:false,
        success:function(result){
          alert(result);
          console.log(result);
          alert("testting");

           }
         })

        e.preventDefault();

      });

UPDATE Guys i got the proble it is working now Thank you so much for your quick replies.. Problem was-- there was error in my php page where i'm posting or written insert and database query... because of that it was not showing error and we just focused on ajax request only it is write. i'v to change on php file.. for ajax we don't need mootool or don't require to follow whole mvc pattern of the joomla... I got it guys i written these every thing for our future developers...

13
  • What's the response you're getting back from the ajax request? Can you check your Network tab in the browser console?
    – Lodder
    May 29, 2020 at 5:54
  • index.php?option=com_jumi&fileid=32&contactType=:454 Uncaught TypeError: $(...).validationEngine is not a function at HTMLButtonElement.<anonymous> (index.php?option=com_jumi&fileid=32&contactType=:454) at HTMLButtonElement.dispatch (jquery.min.js:4) at HTMLButtonElement.r.handle (jquery.min.js:4) May 29, 2020 at 6:38
  • That's the console tab. Please check the network tab, click on the request, and check the response. Something like this: i.stack.imgur.com/Bnghj.png
    – Lodder
    May 29, 2020 at 8:07
  • Hi Lodder, thanks for replying me . but i didn't get any response when i click my ajax request button May 31, 2020 at 3:43
  • can u see my screen using any desk or zoom app May 31, 2020 at 6:07

1 Answer 1

1

Please note that when you are providing an url link you should not use a trailing slash

so instead of url:"/index.php?option=com_jumi&fileid=44",

You should give

url:"index.php?option=com_jumi&fileid=44",
8
  • i did this also it is not working May 31, 2020 at 3:46
  • 1
    if you open the console what error your are getting?
    – Amit Ray
    May 31, 2020 at 5:44
  • Pls see my updated comment of my question I posted there May 31, 2020 at 17:22
  • 500 internal server error Jun 1, 2020 at 10:32
  • I think the approach i'm going with is wrong i'v to follow the joomla docs for ajax but i wanted to do like core php or other frameworks but it is not working I'v to follow the whole documentation of the joomla com_jumi and all mootool and all so that i'll achieve. Jun 1, 2020 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.