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 8193965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:39:33+00:00 2026-06-07T04:39:33+00:00

I would like to do 2 Partial refreshes and 1 document save with the

  • 0

I would like to do 2 Partial refreshes and 1 document save with the onclick of 1 button.
How could I do this ?
What I tried so far :

  1. In CCJS , and no sumbmission to the server

    XSP.partialRefreshGet("#{id:PanelSubitem}", {
        onComplete: function() {
             XSP.partialRefreshGet("#{id:PanelSubsubitem}", {
                 onComplete: function() { 
                '#{javascript:document1.save()}';
                }
            });
        }
    });
    

    Result: The 2 refrehes work but the document save not (normal since you can’t acces the back-end with ccjs.

  2. Put the same code in SSJS, with a partial refesh or with a full refresh

    Result: First click on button refreshes first Panel and then stops. Second refresh will update the second Panel and stops. Third click on the button will save the document. (this is also normal since the partial or full refresh of the code conflicts with the partial or full refresh of the server option, since you can only do 1 refresh at a time)

So if I can’t do it in SSJS and I can’t do it in CSJS , how can I do it ?

  • 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-07T04:39:35+00:00Added an answer on June 7, 2026 at 4:39 am

    What you can try is to create a Save button which saves the document and partial refreshes itself after completion of second partial refresh via CSJS. So your snippet would be something like this:

    XSP.partialRefreshGet("#{id:PanelSubitem}", {
       onComplete: function() {
          XSP.partialRefreshGet("#{id:PanelSubsubitem}", {
             onComplete: function() { 
                document.getElementById("#{id:btnSave}").click();
             }
          });
       }
    });
    <xp:button value="Save" id="btnSave">
        <xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="btnSave">
            <xp:this.action><![CDATA[#{javascript:document1.save()}]]></xp:this.action>
        </xp:eventHandler>
    </xp:button>
    

    You can hide the Save button using CSS.

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

Sidebar

Related Questions

I find functools.partial to be extremely useful, but I would like to be able
I would like a hotkey to Save All in Notepad++ then switch to the
i would like to load a smarty tpl partial inside a div with jquery,
I have a partial, _approve.html.erb in my views/users directory that I would like to
I would like to use jQuery to refresh a partial on a page, but
I would like to centralize partial views and controls for our corporate apps, but
I am using stache for server-side evaluation of Mustache templates. I would like to
I would like to put my partial view model in a folder inside an
I would like to pass more than one parameter to the partial view. With
I have a classic ASP application I would like to add some AJAX-style partial

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.