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

  • Home
  • SEARCH
  • 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 6565309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:04:42+00:00 2026-05-25T14:04:42+00:00

I have used ajax form submission in cakephp echo $ajax->submit(‘Submit’, array(‘url’=> array(‘controller’=>’projects’, ‘action’=>’add_comment’), ‘update’

  • 0

I have used ajax form submission in cakephp

echo $ajax->submit('Submit', array('url'=> array('controller'=>'projects', 'action'=>'add_comment'), 'update' => 'feedback_'.$value['contest_submission']['id']));

After i submitting the form the update div content become null.How i can retain the content itself and just hide the div

Thanks in advance..

  • 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-05-25T14:04:42+00:00Added an answer on May 25, 2026 at 2:04 pm

    You can set Callback function(http://book.cakephp.org/view/1361/Callback-Options) on request complete. try following code and change alert message to your function to hide div if it works.

    echo $ajax->submit('Submit', array('url'=> array('controller'=>'projects', 'action'=>'add_comment'), 'update' => 'feedback_'.$value['contest_submission']['id'], 'complete' => 'alert( "Hello World" )'));
    

    Please update here if it will work or not!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have used this tutorial http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/ to create php - jquery - ajax
I have a problem with my form when I try to submit with ajax.
I have a form with two places that use ajax to submit the information
I have a form that I would like to endow with wonderful Ajax-submission goodness
Several of my ajax applications in the past have used GET request but now
I used to have a simple ajax that helped me take all items from
I have an AJAX application which has used CSS divs to create panels on
I have an asp.net ajax updatePanelAnimationExtender that is used to fade a save confirmation
I have several update methods in a javascript file, used for updating my ajax
I have a form. I am trying to validate it through AJAX GET requests.

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.