Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8690941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:00:52+00:00 2026-06-13T00:00:52+00:00

I have following js code: window.addEvent(‘domready’, function() { var trigger = $(‘sendme’); trigger.addEvent( ‘click’,

  • 0

I have following js code:

window.addEvent('domready', function() {
    var trigger = $('sendme');
    trigger.addEvent( 'click', function(event){
          event.preventDefault()
          var sendform =    new Form.Request($('newform'), {
              onSend: function(){
                  console.log('sending');
              },
              onComplete: function(){
                  console.log('sent');
              }
          });           
          sendform.send();
    });
});

and form with data:

<form action="index.php?option=com_mycomp&amp;layout=edit&amp;id=1" method="post" name="newform" id="newform" class="form-validate">...

the form submits just fine and I can see changes but I get no logs,
thus cant execute actions that I need

form action is not supposed to give me any response back , it is simple post but shouldn’t this work? Do I need to send the form to another file that will give me responses like json and submit my form like that ?
what am I doing wrong ?

Any help is appreciated. Thnx!

small update since post ,

I change the form to send data and receive response via json file but still no response messages. everything is being updated so submit works 100%.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:00:53+00:00Added an answer on June 13, 2026 at 12:00 am

    right way is new Form.Request($(‘newform’),console.log(),{

    window.addEvent('domready', function() {
        var trigger = $('sendme');
        trigger.addEvent( 'click', function(event){
              event.preventDefault()
              var sendform =    new Form.Request($('newform'),console.log(), {
                  onSend: function(){
                      console.log('sending');
                  },
                  onComplete: function(){
                      console.log('sent');
                  }
              });           
              sendform.send();
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: window.addEvent('domready', function() { console.log('starting twitter stuff'); var twitter =
I have the following javascript code: $(window).bind(scheduleComplete, (function (event, params) { var hallCount =
I have the following slider code which uses Mootools: window.addEvent('domready', function () { //
I have the following JQuery code: $(document).ready(function () { var $containerHeight = $(window).height(); if
I have the following code: use strict; function isDefined(variable) { return (typeof (window[variable]) ===
I have the following JS code: window.Foo = {}; window.Foo.Name1 = function() { function
i have following code to get center of width function alertSize() { var myWidth
I have the following code which works great:- $('.ajax a').click(function() { getpageajax(this.href); return false;
I have the following code function ajaxCall(action,parameters){ if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome,
I have following code in my Wordpress: (function ($) { var $header = $(div.header);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.