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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:03:16+00:00 2026-05-16T15:03:16+00:00

I have an action that summarizes an entity’s information. The view for the action

  • 0

I have an action that summarizes an entity’s information. The view for the action contains a script to handle the summary’s UI. I also have another action that loads this view multiple times (to summarize multiple entity instances). It seems that the jQuery document.ready function fires each time the action’s view is loaded on the page. Is that correct behavior?

For example:

I have a SummaryController.Summarize(Entity item) action which has the script to do all the fancy UI stuff.
I also have a JobController.Index() action that passes 5 Entity instances to it’s view. The view calls RenderAction(“Summarize”, “Summary”, entity) to display each entity. However, I’m expecting the document.ready function to only fire once all of the Summarize actions have loaded (to link up events) but it fires each time, so my events are subscribed to multiple times. Hope that makes sense.

  • 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-16T15:03:17+00:00Added an answer on May 16, 2026 at 3:03 pm

    The RenderAction method outputs the raw HTML returned by the action.
    The browser is unaware that the HTML came from different actions.

    Therefore, each call to $(document).ready will execute separately.

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

Sidebar

Related Questions

I have an action that renders two different view scripts based on whether the
I have this action script that pulls images from a xml file > myPhoto
I have an Action that returns URLs which need to call another Struts2 action.
I have an Action that returns a FileResult via View(...) . This works well.
Right. I have an action that needs to call another activity. As I understand
I have an action that returns a view with a master page with a
I'm kind of confused... I have one action that takes an ID, loads up
I have an action that saves a record by calling my BLL entity's Save
I have an action that relies on User.Identity.Name to get the username of the
i have an action that return a file content. i added: Response.AddHeader(Content-Disposition, attactment; filename:\

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.